/* ============================================================
   DIFFÉRENCIEL — Feuille de style
   Palette : encre / nuit / or / sable / blanc
   Type    : Fraunces (titres) · Manrope (texte)
   Signature : le signe ≠ (« différent »), marque dorée récurrente
   ============================================================ */

:root{
  --encre:#1F3A5F;
  --nuit:#122236;
  --or:#C9A35B;
  --or-clair:#DEC392;
  --sable:#F3EEE5;
  --brume:#F6F6F3;
  --blanc:#FFFFFF;
  --ardoise:#33404D;
  --gris:#6B7280;
  --ligne:#E7E2D6;

  --serif:"Fraunces", Georgia, "Times New Roman", serif;
  --sans:"Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max:1180px;
  --pad:clamp(1.25rem, 5vw, 4rem);
  --section:clamp(4rem, 9vw, 7.5rem);
  --radius:14px;
  --shadow:0 18px 50px -28px rgba(18,34,54,.45);
  --shadow-sm:0 8px 24px -16px rgba(18,34,54,.4);
  --t:.55s cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  color:var(--ardoise);
  background:var(--blanc);
  line-height:1.7;
  font-size:clamp(1rem,.97rem + .25vw,1.12rem);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* ---------- Layout helpers ---------- */
.wrap{max-width:var(--max);margin-inline:auto;padding-inline:var(--pad)}
.section{padding-block:var(--section)}
.section--tint{background:var(--brume)}
.section--sand{background:var(--sable)}
.section--dark{background:var(--nuit);color:#E8EDF3}
.lead{font-size:clamp(1.12rem,1.05rem + .4vw,1.4rem);line-height:1.6;color:var(--ardoise);max-width:42ch}
.section--dark .lead{color:#CBD6E4}
.muted{color:var(--gris)}
.center{text-align:center}
.mx-auto{margin-inline:auto}

/* ---------- Typography ---------- */
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;line-height:1.08;color:var(--encre);letter-spacing:-.01em}
.section--dark h1,.section--dark h2,.section--dark h3{color:#fff}
h1{font-size:clamp(2.4rem,1.6rem + 3.6vw,4.2rem)}
h2{font-size:clamp(1.9rem,1.4rem + 2vw,2.9rem)}
h3{font-size:clamp(1.3rem,1.15rem + .7vw,1.6rem);font-weight:600}
.display{font-size:clamp(2.8rem,1.8rem + 5vw,5.4rem);font-weight:400;line-height:1.02}
em,.italic{font-style:italic}

/* Eyebrow + horizon rule (the recurring gold device) */
.eyebrow{
  font-family:var(--sans);font-weight:700;font-size:.78rem;
  letter-spacing:.18em;text-transform:uppercase;color:var(--or);
  display:flex;align-items:center;gap:.7rem;margin-bottom:1.1rem;
}
.eyebrow::before{content:"";width:34px;height:1px;background:var(--or);display:inline-block;flex:none}
.eyebrow.is-center{justify-content:center}

/* ≠ brand mark */
.neq{font-family:var(--sans);font-weight:800;color:var(--or);font-style:normal;display:inline-block}

/* ---------- Header ---------- */
.site-header{
  position:fixed;inset:0 0 auto 0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.05rem var(--pad);
  background:rgba(255,255,255,0);
  transition:background var(--t),box-shadow var(--t),padding var(--t);
}
.site-header.scrolled{
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(160%) blur(10px);
  box-shadow:0 1px 0 var(--ligne);
  padding-block:.75rem;
}
.brand{display:flex;align-items:center;gap:.5rem}
.brand img{height:28px;width:auto;display:block}
.brand .logo-on-light{display:none}
.site-header.scrolled .brand .logo-on-dark,
.site-header.on-light .brand .logo-on-dark{display:none}
.site-header.scrolled .brand .logo-on-light,
.site-header.on-light .brand .logo-on-light{display:block}

.nav{display:flex;align-items:center;gap:1.55rem}
.nav a{white-space:nowrap;
  font-size:.92rem;font-weight:600;color:rgba(255,255,255,.9);
  letter-spacing:.01em;position:relative;padding-block:.3rem;transition:color var(--t);
}
.site-header.scrolled .nav a,.site-header.on-light .nav a{color:var(--encre)}
.nav a::after{content:"";position:absolute;left:0;bottom:0;height:1.5px;width:0;background:var(--or);transition:width var(--t)}
.nav a:hover::after,.nav a.active::after{width:100%}
.nav a.active{color:var(--or)}
.site-header.scrolled .nav a.active,.site-header.on-light .nav a.active{color:var(--or)}

.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--sans);font-weight:700;font-size:.92rem;letter-spacing:.01em;
  padding:.7rem 1.25rem;border-radius:999px;cursor:pointer;border:1.5px solid transparent;
  transition:background var(--t),color var(--t),border-color var(--t),transform var(--t);
}
.btn .arrow{transition:transform var(--t)}
.btn:hover .arrow{transform:translateX(4px)}
.btn--gold{background:var(--or);color:#fff;border-color:var(--or)}
.btn--gold:hover{background:#b8924a;border-color:#b8924a}
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn--ghost:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.site-header.scrolled .btn--ghost,.site-header.on-light .btn--ghost{color:var(--encre);border-color:rgba(31,58,95,.4)}
.site-header.scrolled .btn--ghost:hover,.site-header.on-light .btn--ghost:hover{border-color:var(--encre);background:rgba(31,58,95,.05)}
.btn--dark{background:var(--encre);color:#fff;border-color:var(--encre)}
.btn--dark:hover{background:var(--nuit);border-color:var(--nuit)}
.btn--lg{padding:.95rem 1.7rem;font-size:1rem}

.nav-toggle{display:none;background:none;border:0;cursor:pointer;width:30px;height:24px;position:relative}
.nav-toggle span{position:absolute;left:0;height:2px;width:100%;background:#fff;border-radius:2px;transition:var(--t)}
.site-header.scrolled .nav-toggle span,.site-header.on-light .nav-toggle span{background:var(--encre)}
.nav-toggle span:nth-child(1){top:3px}
.nav-toggle span:nth-child(2){top:11px}
.nav-toggle span:nth-child(3){top:19px}

/* ---------- Hero (home) ---------- */
.hero{
  position:relative;min-height:100svh;display:flex;align-items:center;
  background:var(--nuit) url("../images/hero-kyoto.jpg") center/cover no-repeat;
  color:#fff;overflow:hidden;
}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,16,28,.62),rgba(8,16,28,0) 26%),linear-gradient(90deg,rgba(8,16,28,.82),rgba(8,16,28,.28) 80%)}
.hero__inner{position:relative;z-index:2;width:100%;max-width:var(--max);margin-inline:auto;padding-inline:var(--pad);padding-top:6rem}
.hero__eyebrow{color:var(--or-clair)}
.hero__eyebrow::before{background:var(--or-clair)}
.hero h1{color:#fff;margin-bottom:1.4rem;max-width:16ch}
.hero h1 .tag{display:block;font-style:italic;font-weight:400;color:var(--or-clair);font-size:.52em;margin-top:1.1rem;letter-spacing:0}
.hero__sub{font-size:clamp(1.05rem,1rem + .4vw,1.3rem);color:#CBD6E4;max-width:46ch;margin-bottom:2.3rem}
.hero__cta{display:flex;flex-wrap:wrap;gap:1rem}
.hero__meta{
  position:absolute;left:var(--pad);right:var(--pad);bottom:2rem;z-index:2;
  display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;
  font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.6);
}
.hero__scroll{display:flex;align-items:center;gap:.6rem}
.hero__scroll .dot{width:7px;height:7px;border-radius:50%;background:var(--or);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}

/* ---------- Page header (inner pages) ---------- */
.page-head{padding-top:clamp(8rem,12vw,11rem);padding-bottom:var(--section);border-bottom:1px solid var(--ligne)}
.page-head h1{margin-bottom:1.3rem}
.page-head .lead{max-width:54ch}

/* ---------- Generic blocks ---------- */
.stack > * + *{margin-top:1.1rem}
.grid{display:grid;gap:clamp(1.2rem,2.5vw,2rem)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,5rem);align-items:center}
.split--wide-left{grid-template-columns:1.05fr .95fr}

/* Cards */
.card{
  background:var(--blanc);border:1px solid var(--ligne);border-radius:var(--radius);
  padding:clamp(1.6rem,2.5vw,2.2rem);box-shadow:var(--shadow-sm);
  transition:transform var(--t),box-shadow var(--t),border-color var(--t);
  height:100%;
}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#dcd4c2}
.card .num{font-family:var(--serif);font-size:2.4rem;color:var(--or);line-height:1;font-weight:500}
.card h3{margin:.2rem 0 .6rem}
.card p{color:var(--gris);font-size:.98rem;line-height:1.6}
.card__icon{width:54px;height:54px;border-radius:50%;background:var(--sable);display:flex;align-items:center;justify-content:center;margin-bottom:1.1rem}
.card__icon svg{width:26px;height:26px;stroke:var(--or);fill:none;stroke-width:1.7}

/* Feature row (icon left, text right) */
.feature{display:flex;gap:1.3rem;align-items:flex-start}
.feature .ic{width:48px;height:48px;flex:none;border-radius:50%;background:var(--sable);display:flex;align-items:center;justify-content:center}
.feature .ic svg{width:23px;height:23px;stroke:var(--or);fill:none;stroke-width:1.7}
.feature h3{margin-bottom:.35rem;font-size:1.25rem}
.feature p{color:var(--gris);font-size:1rem}

/* Stat row */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.stat .big{font-family:var(--serif);font-size:clamp(2rem,1.4rem + 2vw,3rem);color:#fff;font-weight:500;line-height:1}
.stat .lab{color:#A9B7C8;font-size:.92rem;margin-top:.5rem}
.section--dark .stat .big{color:var(--or-clair)}

/* Photo slot (placeholder until real photos dropped in) */
.photo{
  position:relative;border-radius:var(--radius);overflow:hidden;
  background:linear-gradient(135deg,#efe9dd,#f6f2ea);
  border:1px solid var(--ligne);aspect-ratio:4/3;
  display:flex;align-items:center;justify-content:center;text-align:center;
}
.photo.tall{aspect-ratio:3/4}
.photo.wide{aspect-ratio:16/10}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo__label{padding:1.2rem;color:#9a8c6e;z-index:1}
.photo__label svg{width:30px;height:30px;stroke:#bda968;fill:none;stroke-width:1.5;margin-bottom:.5rem}
.photo__label span{display:block;font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600}
.photo__corner{position:absolute;top:12px;left:12px;width:22px;height:22px;border-top:2px solid var(--or);border-left:2px solid var(--or);z-index:1;opacity:.8}

/* Quote */
.quote{
  font-family:var(--serif);font-style:italic;font-size:clamp(1.2rem,1.05rem + .8vw,1.7rem);
  line-height:1.45;color:var(--encre);
}
.quote--block{border-left:3px solid var(--or);padding-left:1.4rem}
.section--dark .quote{color:#fff}

/* Pull list with ≠ markers */
.neq-list{list-style:none;display:grid;gap:.9rem}
.neq-list li{display:flex;gap:.85rem;align-items:flex-start;line-height:1.55}
.neq-list li::before{content:"≠";font-family:var(--sans);font-weight:800;color:var(--or);flex:none;font-size:1.05rem;line-height:1.5}

/* Case study layout */
.case{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.case + .case{margin-top:clamp(3rem,7vw,6rem)}
.case--rev .case__media{order:2}
.case__fig{font-family:var(--serif);font-size:clamp(3rem,2rem + 5vw,5rem);color:var(--or);line-height:1;font-weight:500}
.case__fig .u{display:block;font-family:var(--sans);font-size:.95rem;font-weight:600;color:var(--gris);letter-spacing:.04em;text-transform:none;margin-top:.4rem}

/* CTA band */
.cta-band{
  position:relative;background:var(--nuit) url("assets/cta-bg.jpg") center/cover no-repeat;color:#fff;text-align:center;
}
.cta-band::after{content:"";position:absolute;inset:0;background:rgba(10,20,34,.45)}
.cta-band .wrap{position:relative;z-index:2}
.cta-band h2{color:#fff;margin-bottom:1rem}
.cta-band p{color:#CBD6E4;max-width:48ch;margin:0 auto 2rem}

/* ---------- Forms ---------- */
.form{display:grid;gap:1.2rem}
.field{display:grid;gap:.45rem}
.field label{font-size:.85rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--encre)}
.field input,.field select,.field textarea{
  font-family:var(--sans);font-size:1rem;color:var(--ardoise);
  padding:.85rem 1rem;border:1px solid var(--ligne);border-radius:10px;background:#fff;
  transition:border-color var(--t),box-shadow var(--t);width:100%;
}
.field textarea{min-height:130px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--or);box-shadow:0 0 0 3px rgba(201,163,91,.18);
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-note{font-size:.85rem;color:var(--gris)}
.form-status{display:none;padding:1rem 1.2rem;border-radius:10px;font-weight:600}
.form-status.ok{display:block;background:#EAF3EC;color:#2E6B45;border:1px solid #BFE0C9}
.form-status.err{display:block;background:#FBEDED;color:#9B2C2C;border:1px solid #F0C9C9}

/* Contact info list */
.contact-list{list-style:none;display:grid;gap:1.3rem}
.contact-list li{display:flex;gap:1rem;align-items:center}
.contact-list .ic{width:44px;height:44px;flex:none;border-radius:50%;background:rgba(201,163,91,.14);display:flex;align-items:center;justify-content:center}
.contact-list .ic svg{width:21px;height:21px;stroke:var(--or);fill:none;stroke-width:1.8}
.contact-list .k{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gris);font-weight:700;display:block;margin-bottom:.15rem}
.contact-list .v{font-size:1.05rem;color:var(--encre);font-weight:600;display:block}
.section--dark .contact-list .v{color:#fff}
.section--dark .contact-list .k{color:#A9B7C8}

/* ---------- Footer ---------- */
.site-footer{background:var(--nuit);color:#B9C6D6;padding-block:clamp(3rem,6vw,4.5rem) 2rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2.5rem;align-items:start}
.footer-brand{font-family:var(--serif);font-size:1.7rem;color:#fff;font-weight:600;display:flex;align-items:center;gap:.5rem;margin-bottom:.9rem}
.footer-brand .neq{color:var(--or)}
.site-footer .tag{font-style:italic;color:var(--or-clair);font-family:var(--serif);font-size:1.05rem;margin-bottom:1rem}
.site-footer p{font-size:.95rem;color:#9FB0C2;max-width:34ch}
.footer-col h4{font-family:var(--sans);font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:#fff;margin-bottom:1rem;font-weight:700}
.footer-col a{display:block;color:#A9B7C8;font-size:.96rem;padding-block:.32rem;transition:color var(--t)}
.footer-col a:hover{color:var(--or-clair)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:2.5rem;padding-top:1.5rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;font-size:.85rem;color:#7E90A4}

/* ---------- Reveal animation ---------- */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal.is-visible{opacity:1;transform:none}
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}.reveal.d4{transition-delay:.32s}

/* ---------- Responsive ---------- */
@media(max-width:900px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr);gap:2rem}
  .split,.case,.case--rev .case__media{grid-template-columns:1fr;order:0}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
}
@media(max-width:900px){
  .nav{
    position:fixed;inset:0 0 0 auto;width:min(78vw,320px);background:var(--nuit);
    flex-direction:column;align-items:flex-start;justify-content:center;gap:1.6rem;
    padding:2rem;transform:translateX(100%);transition:transform var(--t);box-shadow:-20px 0 60px -30px #000;
  }
  .nav.open{transform:translateX(0)}
  .nav a{color:#fff!important;font-size:1.1rem}
  .nav .btn{color:#fff;border-color:rgba(255,255,255,.5)}
  .nav-toggle{display:block;z-index:101}
  .grid-2,.grid-4,.form-row{grid-template-columns:1fr}
  .hero__meta{flex-direction:column;align-items:flex-start;gap:.5rem;font-size:.7rem}
  .footer-grid{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none}
}

/* ---------- Home : aperçu réalisations ---------- */
.work-grid a{display:block;transition:transform var(--t)}
.work-grid a:hover{transform:translateY(-4px)}
.work-grid .photo{margin-bottom:1.1rem}
.work-grid .eyebrow{margin-bottom:.5rem}
.work-grid h3{margin-bottom:.4rem}
.work-grid p{color:var(--gris);font-size:.97rem}

/* ---------- Home : liste expertises ---------- */
.exp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.exp-item{padding:1.6rem 0;border-top:1px solid var(--ligne)}
.exp-item .neq{font-size:1rem;margin-right:.4rem}
.exp-item h3{display:inline-block;font-size:1.2rem;margin-bottom:.5rem}
.exp-item p{color:var(--gris);font-size:.96rem}
@media(max-width:900px){.exp-grid{grid-template-columns:1fr}}

/* On-light page-head needs top space already from .page-head; ensure header contrast */
.intro-tag{font-family:var(--serif);font-style:italic;color:var(--or);font-size:1.05rem}

/* ---------- Agence : timeline + équipe ---------- */
.era{display:grid;grid-template-columns:170px 1fr;gap:2rem;padding-block:1.9rem;border-top:1px solid var(--ligne);align-items:start}
.era:first-of-type{border-top:0}
.era .y{font-family:var(--serif);font-size:clamp(1.8rem,1.4rem + 1vw,2.4rem);color:var(--or);font-weight:500;line-height:1}
.era h3{margin-bottom:.5rem}
.era p{color:var(--gris)}
@media(max-width:900px){.era{grid-template-columns:1fr;gap:.4rem}}

.team .photo{margin-bottom:.85rem}
.team .name{font-family:var(--serif);font-size:1.15rem;color:var(--encre);font-weight:600;display:block}
.team .role{font-size:.85rem;color:var(--gris)}

/* ---------- Logo pied de page ---------- */
.footer-logo{height:30px;width:auto;display:block;margin-bottom:1rem}
@media(max-width:900px){.brand img{height:24px}}

/* ---------- Actualités / veille ---------- */
.news-list{display:grid;gap:clamp(1rem,2vw,1.4rem)}
.news-item .eyebrow{margin-bottom:.5rem}
.news-item h3{margin-bottom:.5rem;font-size:1.2rem}
.news-item p{color:var(--gris);margin-bottom:.8rem;font-size:1rem}
.readmore{font-weight:700;color:var(--or);font-size:.95rem;display:inline-flex;align-items:center;gap:.45rem;transition:gap var(--t),color var(--t)}
.readmore:hover{color:#b8924a;gap:.7rem}
.news-note{font-size:.9rem;color:var(--gris);font-style:italic}
