/*
 * DARNÉO — homepage 2026 redesign.
 * Scoped under .dh- prefixed classes so it can never collide with the
 * site-wide Tailwind utilities, nav/footer styles, or the legacy inline
 * <style> block already in index.html. Self-contained on purpose: the
 * four stylesheets index.html used to reference (darneo-design-system,
 * darneo-luxury, darneo-premium-landing, darneo-main-nav-unified) are
 * all 404 on disk, so nothing here depends on them.
 */

.dh-scope{
  --dh-bg:#F1E7D6;
  --dh-surface:#FFFCF6;
  --dh-surface-2:#EADFC9;
  --dh-ink:#241B12;
  --dh-ink-muted:#6B5B47;
  --dh-ink-faint:#8C7B64;
  --dh-accent:#B54E27;
  --dh-accent-ink:#FFF9F0;
  --dh-accent-soft:#B54E2714;
  --dh-accent-2:#2F5D50;
  --dh-line:#DECBA8;
  --dh-line-strong:#C9AE7C;
  --dh-font-display:"Fraunces", Georgia, serif;
  --dh-font-body:"Work Sans", -apple-system, "Segoe UI", sans-serif;
  --dh-font-mono:"IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  background:var(--dh-bg);
  color:var(--dh-ink);
  font-family:var(--dh-font-body);
  line-height:1.55;
}
.dh-scope *{ box-sizing:border-box; }
.dh-scope img{ max-width:100%; display:block; }
.dh-scope a{ color:inherit; }

.dh-wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
@media (max-width:640px){ .dh-wrap{ padding:0 18px; } }

.dh-scope h1, .dh-scope h2, .dh-scope h3, .dh-scope h4{
  font-family:var(--dh-font-display);
  font-weight:600;
  margin:0;
  text-wrap:balance;
  letter-spacing:-0.01em;
}
.dh-scope em{ font-style:italic; color:var(--dh-accent); }

.dh-eyebrow{
  font-family:var(--dh-font-mono);
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--dh-accent);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.dh-eyebrow::before{ content:""; width:14px; height:1px; background:var(--dh-accent); display:inline-block; }
.dh-num{ font-family:var(--dh-font-mono); font-variant-numeric:tabular-nums; font-feature-settings:"tnum"; }

/* ============ HERO ============ */
.dh-hero{
  position:relative;
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  min-height:88vh;
  border-bottom:1px solid var(--dh-line);
}
@media (max-width:900px){ .dh-hero{ grid-template-columns:1fr; min-height:auto; } }

.dh-hero-copy{ display:flex; flex-direction:column; justify-content:center; padding:72px 56px 72px clamp(24px,5vw,72px); gap:28px; }
@media (max-width:900px){ .dh-hero-copy{ padding:52px 24px 40px; } }
.dh-hero-copy h1{ font-size:clamp(2.3rem,4.4vw,3.6rem); line-height:1.06; font-weight:500; }
.dh-hero-sub{ max-width:38ch; color:var(--dh-ink-muted); font-size:17px; line-height:1.65; }
.dh-hero-actions{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }

.dh-btn-primary{
  font-weight:600; font-size:14.5px; background:var(--dh-accent); color:var(--dh-accent-ink);
  padding:15px 26px; border-radius:3px; text-decoration:none;
  box-shadow:0 10px 24px -10px var(--dh-accent-soft); display:inline-flex; align-items:center; gap:10px;
  border:none; cursor:pointer;
}
.dh-link-ghost{ text-decoration:none; font-size:14.5px; font-weight:600; color:var(--dh-ink); border-bottom:1px solid var(--dh-line-strong); padding-bottom:2px; }

.dh-hero-media{ position:relative; overflow:hidden; background:#14100C; }
.dh-hero-media video, .dh-hero-media img{ width:100%; height:100%; object-fit:cover; min-height:340px; }
.dh-hero-media::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,16,12,0) 55%, rgba(20,16,12,0.55) 100%); }
.dh-hero-media-tag{
  position:absolute; left:20px; bottom:20px; z-index:2; font-family:var(--dh-font-mono); font-size:11px;
  letter-spacing:0.08em; color:#FFF9F0; text-transform:uppercase; background:rgba(20,16,12,0.45);
  backdrop-filter:blur(6px); padding:8px 12px; border:1px solid rgba(255,255,255,0.18);
}

/* ============ LEDGER ============ */
.dh-ledger{ border-bottom:1px solid var(--dh-line); background:var(--dh-surface); }
.dh-ledger-row{ display:grid; grid-template-columns:repeat(4,1fr); }
@media (max-width:760px){ .dh-ledger-row{ grid-template-columns:repeat(2,1fr); } }
.dh-ledger-item{ padding:26px 22px; border-right:1px solid var(--dh-line); }
.dh-ledger-item:nth-child(4){ border-right:none; }
@media (max-width:760px){
  .dh-ledger-item:nth-child(2n){ border-right:none; }
  .dh-ledger-item{ border-bottom:1px solid var(--dh-line); }
}
.dh-ledger-value{ font-family:var(--dh-font-mono); font-size:1.7rem; font-weight:500; color:var(--dh-accent); font-variant-numeric:tabular-nums; }
.dh-ledger-label{ font-size:12.5px; color:var(--dh-ink-muted); margin-top:4px; text-transform:uppercase; letter-spacing:0.06em; }

/* ============ SECTION SHELL ============ */
.dh-section{ padding:96px 0; }
@media (max-width:760px){ .dh-section{ padding:64px 0; } }
.dh-section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:32px; margin-bottom:52px; flex-wrap:wrap; }
.dh-section-head h2{ font-size:clamp(1.7rem,3vw,2.5rem); font-weight:500; max-width:22ch; margin-top:12px; }
.dh-section-head p{ max-width:34ch; color:var(--dh-ink-muted); font-size:15px; line-height:1.6; }

/* ============ SERVICES ============ */
.dh-svc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--dh-line); border:1px solid var(--dh-line); }
@media (max-width:900px){ .dh-svc-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .dh-svc-grid{ grid-template-columns:1fr; } }
.dh-svc-cell{
  background:var(--dh-surface); padding:32px 26px; text-decoration:none; color:inherit;
  display:flex; flex-direction:column; gap:14px; transition:background .15s ease; position:relative;
}
.dh-svc-cell:hover{ background:var(--dh-accent-soft); }
.dh-svc-index{ font-family:var(--dh-font-mono); font-size:11px; color:var(--dh-ink-faint); letter-spacing:0.08em; }
.dh-svc-cell h4{ font-size:1.08rem; font-weight:500; }
.dh-svc-cell p{ font-size:13.5px; color:var(--dh-ink-muted); line-height:1.6; margin:0; }
.dh-svc-arrow{ margin-top:auto; font-family:var(--dh-font-mono); font-size:12px; color:var(--dh-accent); opacity:0; transform:translateX(-4px); transition:all .15s ease; }
.dh-svc-cell:hover .dh-svc-arrow{ opacity:1; transform:translateX(0); }

/* ============ WHY ============ */
.dh-why-list{ border-top:1px solid var(--dh-line); }
.dh-why-row{ display:grid; grid-template-columns:90px 1.1fr 1.4fr; gap:32px; padding:38px 0; border-bottom:1px solid var(--dh-line); align-items:start; }
@media (max-width:820px){ .dh-why-row{ grid-template-columns:56px 1fr; } .dh-why-row .dh-why-detail{ grid-column:1/-1; padding-left:0; } }
.dh-why-n{ font-family:var(--dh-font-mono); font-size:14px; color:var(--dh-accent); padding-top:4px; }
.dh-why-title{ font-size:1.2rem; font-weight:500; font-family:var(--dh-font-display); }
.dh-why-body p{ color:var(--dh-ink-muted); font-size:14.5px; line-height:1.7; margin:0 0 14px; }
.dh-why-body ul{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; }
.dh-why-body li{ font-size:13px; color:var(--dh-ink-faint); display:flex; gap:8px; }
.dh-why-body li::before{ content:"—"; color:var(--dh-accent-2); flex-shrink:0; }

/* ============ ATMOSPHERE BAND (generated reveal image) ============ */
.dh-atmosphere{ position:relative; min-height:52vh; overflow:hidden; }
.dh-atmosphere img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.dh-atmosphere::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,16,12,0.15) 0%, rgba(20,16,12,0.55) 100%); }
.dh-atmosphere-copy{ position:relative; z-index:1; height:100%; display:flex; align-items:flex-end; padding:56px 24px; }
.dh-atmosphere-copy blockquote{ margin:0; max-width:44ch; font-family:var(--dh-font-display); font-style:italic; font-size:clamp(1.4rem,2.6vw,2.1rem); color:#FFF9F0; line-height:1.3; }
.dh-atmosphere-copy cite{ display:block; margin-top:16px; font-style:normal; font-family:var(--dh-font-mono); font-size:12px; letter-spacing:0.06em; color:rgba(255,249,240,0.7); }

/* ============ PORTFOLIO — before/after ============ */
.dh-bf-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
@media (max-width:900px){ .dh-bf-grid{ grid-template-columns:1fr; gap:48px; } }
.dh-bf-images{ display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--dh-accent); aspect-ratio:2/3; overflow:hidden; }
.dh-bf-images img{ width:100%; height:100%; object-fit:cover; }
.dh-bf-tag{ position:relative; }
.dh-bf-tag::before{
  content:attr(data-label); position:absolute; top:10px; left:10px; font-family:var(--dh-font-mono); font-size:10px;
  letter-spacing:0.08em; text-transform:uppercase; color:#FFF9F0; background:rgba(20,16,12,0.55); padding:5px 9px;
}
.dh-bf-meta{ display:flex; justify-content:space-between; padding-top:14px; align-items:baseline; }
.dh-bf-meta h4{ font-size:1rem; font-weight:500; }
.dh-bf-meta span{ font-family:var(--dh-font-mono); font-size:11.5px; color:var(--dh-ink-faint); }
.dh-portfolio-cta{ text-align:center; margin-top:56px; }

/* ============ TESTIMONIALS ============ */
.dh-testi-strip{ border-top:1px solid var(--dh-line); border-bottom:1px solid var(--dh-line); }
.dh-testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .dh-testi-grid{ grid-template-columns:1fr; } }
.dh-testi{ padding:44px 40px; border-right:1px solid var(--dh-line); }
.dh-testi:last-child{ border-right:none; }
@media (max-width:900px){ .dh-testi{ border-right:none; border-bottom:1px solid var(--dh-line); } }
.dh-testi-mark{ font-family:var(--dh-font-display); font-size:3rem; color:var(--dh-accent-2); line-height:1; margin-bottom:6px; font-style:italic; }
.dh-testi p.dh-quote{ font-family:var(--dh-font-display); font-size:1.08rem; font-weight:400; line-height:1.5; margin:0 0 24px; color:var(--dh-ink); }
.dh-testi-name{ font-size:14px; font-weight:600; }
.dh-testi-meta{ font-family:var(--dh-font-mono); font-size:11.5px; color:var(--dh-ink-faint); margin-top:2px; }
.dh-google-strip{ text-align:center; padding:22px 0; font-family:var(--dh-font-mono); font-size:12.5px; color:var(--dh-ink-muted); }
.dh-google-strip .dh-num{ color:var(--dh-accent); }

/* ============ PROCESS ============ */
.dh-process{ background:var(--dh-ink); color:var(--dh-surface); }
.dh-process .dh-eyebrow{ color:var(--dh-accent); }
.dh-process .dh-section-head h2{ color:var(--dh-surface); }
.dh-process .dh-section-head p{ color:rgba(255,252,246,0.62); }
.dh-proc-list{ border-top:1px solid rgba(255,252,246,0.16); }
.dh-proc-row{ display:grid; grid-template-columns:70px 1fr 60px; gap:24px; padding:28px 0; border-bottom:1px solid rgba(255,252,246,0.16); align-items:baseline; }
@media (max-width:700px){ .dh-proc-row{ grid-template-columns:44px 1fr; } .dh-proc-time{ grid-column:1/-1; padding-left:68px; margin-top:-14px; } }
.dh-proc-n{ font-family:var(--dh-font-mono); font-size:13px; color:rgba(255,252,246,0.4); }
.dh-proc-title{ font-family:var(--dh-font-display); font-size:1.15rem; font-weight:500; margin-bottom:6px; color:var(--dh-surface); }
.dh-proc-desc{ font-size:13.5px; color:rgba(255,252,246,0.6); line-height:1.65; max-width:56ch; }
.dh-proc-time{ font-family:var(--dh-font-mono); font-size:11.5px; color:var(--dh-accent); text-align:right; white-space:nowrap; }

/* ============ CONTACT ============ */
.dh-contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
@media (max-width:900px){ .dh-contact-grid{ grid-template-columns:1fr; gap:40px; } }
.dh-contact-info h2{ font-size:clamp(1.8rem,3.2vw,2.6rem); font-weight:500; margin-bottom:18px; }
.dh-contact-info p.dh-lead{ color:var(--dh-ink-muted); font-size:15.5px; max-width:42ch; line-height:1.7; margin-bottom:32px; }
.dh-contact-lines{ display:flex; flex-direction:column; gap:16px; }
.dh-contact-line{ display:flex; justify-content:space-between; border-bottom:1px solid var(--dh-line); padding-bottom:14px; font-size:14px; }
.dh-contact-line span:first-child{ color:var(--dh-ink-faint); font-family:var(--dh-font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:0.06em; }
.dh-contact-line a{ text-decoration:none; font-weight:500; color:var(--dh-ink); }

.dh-form{ background:var(--dh-surface); border:1px solid var(--dh-line); padding:36px; }
.dh-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
@media (max-width:520px){ .dh-form-row{ grid-template-columns:1fr; } }
.dh-form input, .dh-form select, .dh-form textarea{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--dh-line-strong);
  padding:11px 2px; font-family:var(--dh-font-body); font-size:14px; color:var(--dh-ink); margin-bottom:14px; border-radius:0;
}
.dh-form input:focus, .dh-form select:focus, .dh-form textarea:focus{ outline:none; border-color:var(--dh-accent); }
.dh-form label{ font-family:var(--dh-font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.06em; color:var(--dh-ink-faint); display:block; margin-bottom:4px; }
.dh-form button{
  width:100%; background:var(--dh-accent); color:var(--dh-accent-ink); border:none; padding:16px;
  font-family:var(--dh-font-body); font-weight:600; font-size:14.5px; cursor:pointer; margin-top:6px;
}
.dh-form button:hover{ background:#9C4220; }

/* ============ FAQ ============ */
.dh-faq-stack{ display:flex; flex-direction:column; border-top:1px solid var(--dh-line); max-width:820px; }
.dh-faq-item{ border-bottom:1px solid var(--dh-line); padding:22px 0; }
.dh-faq-item summary{ cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; font-family:var(--dh-font-display); font-size:1.05rem; font-weight:500; }
.dh-faq-item summary::-webkit-details-marker{ display:none; }
.dh-faq-item summary .dh-faq-icon{ font-family:var(--dh-font-mono); color:var(--dh-accent); font-size:18px; flex-shrink:0; transition:transform .2s ease; }
.dh-faq-item[open] summary .dh-faq-icon{ transform:rotate(45deg); }
.dh-faq-item p{ margin:14px 0 0; color:var(--dh-ink-muted); font-size:14px; line-height:1.7; max-width:68ch; }

/* ============ FOOTER SPACER ============ */
.dh-scope + footer{ border-top:1px solid var(--dh-line); }


/* Barre or / terracotta sous les titres de section */
.section-title-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.85rem;
}
.section-title-accent::after {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #C17A5A, rgba(184, 160, 112, 0.45));
}

/* ============ PROCESSUS (accueil 2026) ============ */
@media (max-width: 639px) {
  #processus-title {
    font-size: 1.125rem !important; /* text-lg — titre sur une seule ligne */
    letter-spacing: -0.02em;
  }
}
#processus .processus-steps {
  counter-reset: none;
}
#processus .processus-step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding-top: 0.25rem;
}
#processus .processus-step-num {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #C17A5A;
  padding-top: 0.15rem;
}
#processus .processus-step-body {
  min-width: 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(139, 109, 90, 0.18);
}
#processus .processus-step-glyph {
  display: block;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  color: #C17A5A;
  margin-bottom: 0.55rem;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}
#processus .processus-step h3 {
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  #processus .processus-step {
    grid-template-columns: 3.5rem 1fr;
  }
}
html.dark #processus .processus-step-num,
html.dark #processus .processus-step-glyph {
  color: #D4A574;
}
html.dark #processus .processus-step-body {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
@media (prefers-reduced-motion: no-preference) {
  #processus .processus-step.animate-on-scroll {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  #processus .processus-step.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
  }
}

/* Barre sticky Appeler + Devis — styles autonomes */
#appeler-devis.mobile-sticky-cta-bar {
  background: rgba(31, 26, 23, 0.97) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
#appeler-devis a.appeler-devis-call {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}
#appeler-devis a.appeler-devis-devis,
#appeler-devis a[href*="devis"] {
  background: #C17A5A !important;
  color: #fff !important;
  border: none !important;
}
@media (min-width: 1024px) {
  #appeler-devis {
    display: none !important;
  }
}

/* Section rhythm — bundle non chargé sur l'accueil */
body.darneo-home > main#accueil,
body.darneo-home > section#expertise-atouts,
body.darneo-home > section#services,
body.darneo-home > section#pourquoi-darneo,
body.darneo-home > section#darneo-portfolio-teaser,
body.darneo-home > section#temoignages,
body.darneo-home > section#processus,
body.darneo-home > section#contact,
body.darneo-home > section#faq {
  padding-top: clamp(2.75rem, 5.5vw, 4.25rem);
  padding-bottom: clamp(2.75rem, 5.5vw, 4.25rem);
}
@media (min-width: 1024px) {
  body.darneo-home > main#accueil,
  body.darneo-home > section#expertise-atouts,
  body.darneo-home > section#services,
  body.darneo-home > section#pourquoi-darneo,
  body.darneo-home > section#darneo-portfolio-teaser,
  body.darneo-home > section#temoignages,
  body.darneo-home > section#processus,
  body.darneo-home > section#contact,
  body.darneo-home > section#faq {
    padding-top: clamp(3.5rem, 6vw, 5.25rem);
    padding-bottom: clamp(3.5rem, 6vw, 5.25rem);
  }
}

/* Footer mobile : moins de hauteur (accueil sans darneo-bundle) */
@media (max-width: 639px) {
  #main-footer {
    padding: 1.15rem 1rem 1rem !important;
  }
  #main-footer .max-w-6xl > div:first-child {
    gap: 0.75rem !important;
  }
  #main-footer .order-1 p {
    margin-top: 0 !important;
    line-height: 1.4;
  }
  #main-footer .order-1 p + p {
    margin-top: 0.35rem !important;
    max-width: 100%;
    line-height: 1.35;
  }
  #main-footer nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 0.75rem !important;
    width: 100%;
    max-width: 17rem;
    margin-inline: auto;
  }
  #main-footer nav a {
    min-height: 2rem !important;
    padding: 0.1rem 0;
    font-size: 0.8125rem;
  }
  #main-footer .order-3 {
    gap: 0.35rem !important;
  }
  #main-footer .footer-trust {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
  }
  #main-footer .footer-trust .grid {
    gap: 0.55rem !important;
  }
  #main-footer .footer-trust .grid > div span:first-child {
    margin-bottom: 0.1rem !important;
  }
  #main-footer .mt-10.pt-6,
  #main-footer .border-t.border-white\/10 {
    margin-top: 0.75rem !important;
    padding-top: 0.65rem !important;
    gap: 0.55rem !important;
  }
  #main-footer .size-8 {
    width: 1.75rem;
    height: 1.75rem;
  }
  #main-footer a[href^="tel:"],
  #main-footer a[href^="mailto:"],
  #main-footer a[href^="https://wa.me"] {
    min-height: 0 !important;
    min-width: 0 !important;
  }
}
