/*
Theme Name: MAJALIS
Description: Thème sur mesure du groupe MAJALIS — conseil en stratégie des territoires. From scratch, API WordPress officielle, zéro builder.
Author: Purpleads
Version: 1.0.0
Requires PHP: 7.4
License: proprietary
Text Domain: majalis
*/
/* MAJALIS — maquette V2 — mobile-first — identité propre : Space Grotesk, angles droits */
:root{
  --teal:#0E7D80;
  --teal-deep:#0A5F62;
  --teal-ink:#083F42;
  --ink:#152A2C;
  --muted:#4D6163;
  --soft:#F4F8F7;
  --softer:#E9F1F0;
  --line:#DCE7E5;
  --white:#FFFFFF;
  --sage:#8FBFBA;
  --mist:#D0D8E0;
  --radius:0;
  --shadow:0 1px 2px rgba(8,63,66,.06),0 8px 24px -12px rgba(8,63,66,.18);
  --font-display:"Space Grotesk",system-ui,sans-serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  margin:0;font-family:var(--font-body);color:var(--ink);background:var(--white);
  font-size:1rem;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--teal);text-decoration:none}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--sage);outline-offset:2px;border-radius:4px}
.container{width:100%;max-width:72rem;margin-inline:auto;padding-inline:1.25rem}
.container--narrow{max-width:52rem}

/* ---------- typography ---------- */
h1,h2,h3{font-family:var(--font-display);font-weight:700;line-height:1.1;color:var(--teal-ink);margin:0 0 .6em;letter-spacing:-.02em}
h1{font-size:clamp(2rem,7vw,3.4rem)}
h2{font-size:clamp(1.55rem,4.5vw,2.3rem)}
h3{font-size:clamp(1.15rem,3vw,1.4rem)}
p{margin:0 0 1em}
.lede{font-size:clamp(1.05rem,2.6vw,1.25rem);color:var(--muted);max-width:46rem}
.eyebrow{
  display:inline-flex;align-items:center;gap:.55rem;
  font-size:.78rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--teal);
  margin-bottom:1.1rem;
}
.section--teal .eyebrow{color:#BFE0DD}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  min-height:48px;padding:.8rem 1.5rem;border-radius:0;border:1.5px solid transparent;
  font-weight:600;font-size:.98rem;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;
}
.btn svg{flex:none}
.btn--primary{background:var(--teal);color:#fff}
.btn--primary:hover{background:var(--teal-deep);box-shadow:var(--shadow)}
.btn--ghost{border-color:var(--line);color:var(--teal-ink);background:transparent}
.btn--ghost:hover{border-color:var(--teal);color:var(--teal)}
.btn--light{background:#fff;color:var(--teal-deep)}
.btn--light:hover{background:var(--softer)}
.btn--outline-light{border-color:rgba(255,255,255,.45);color:#fff}
.btn--outline-light:hover{border-color:#fff;background:rgba(255,255,255,.08)}

/* ---------- header ---------- */
.header{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
}
.header__in{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.25rem}
.brand{display:inline-flex;align-items:center}
.brand img{height:40px;width:auto}
.nav{display:none}
.burger{
  display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;
  background:none;border:0;cursor:pointer;color:var(--teal-ink);margin-right:-8px;
}
.mobile-nav{
  display:none;border-top:1px solid var(--line);background:#fff;
  padding:1rem 1.25rem 1.5rem;max-height:calc(100dvh - 4.25rem);overflow:auto;
}
.mobile-nav.is-open{display:block}
.mobile-nav a{display:block;padding:.7rem .25rem;font-weight:600;color:var(--teal-ink);border-bottom:1px solid var(--softer)}
.mobile-nav a.sub{padding-left:1.25rem;font-weight:400;color:var(--muted)}
.mobile-nav a[aria-current="page"]{color:var(--teal)}
.mobile-nav .btn{margin-top:1.1rem;width:100%}
@media (min-width:64rem){
  .burger,.mobile-nav{display:none!important}
  .nav{display:flex;align-items:center;gap:2rem}
  .nav a.top{font-weight:600;color:var(--teal-ink);padding:.75rem 0}
  .nav a.top:hover,.nav a.top[aria-current="page"]{color:var(--teal)}
}

/* ---------- hero ---------- */
.hero{background:linear-gradient(180deg,var(--soft) 0%,#fff 90%);overflow:hidden}
.hero__in{display:grid;gap:2.5rem;padding-block:3.25rem 3.5rem}
.hero__txt .btns{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.8rem}
.hero__visual{position:relative;justify-self:center;width:min(320px,78vw)}
.hero__visual .ring{display:none}
.hero__visual img{position:relative;border-radius:0;box-shadow:12px 12px 0 var(--softer)}
.hero__visual figcaption{
  position:relative;text-align:center;font-size:.8rem;color:var(--muted);
  font-style:italic;margin-top:.9rem;
}
.hero-logo{margin:0 0 1rem}
.hero-logo img{max-width:min(400px,78vw);height:auto}
@media (max-width:63.99rem){.hero-logo img{margin-inline:auto}}
@media (max-width:63.99rem){
  .hero__in{padding-block:2.75rem 3.25rem;gap:2.25rem}
  .hero__txt{text-align:center}
  .hero__txt .eyebrow{justify-content:center;font-size:.7rem}
  .hero__txt .lede{margin-inline:auto;font-size:1.02rem}
  .hero__txt .btns{flex-direction:column;align-items:stretch;margin-top:1.6rem;max-width:22rem;margin-inline:auto}
  .hero__visual{width:min(240px,62vw)}
}
@media (min-width:64rem){
  .hero__in{grid-template-columns:1.25fr .75fr;align-items:center;padding-block:5.5rem 6rem;gap:3rem}
  .hero__visual{width:100%;max-width:360px}
}

/* ---------- sections ---------- */
.section{padding-block:3.5rem}
.section--soft{background:var(--soft)}
.section--teal{background:var(--teal-deep);color:#E4F0EF}
.section--teal h2,.section--teal h3{color:#fff}
.section--teal p{color:#C6DDDB}
.section__head{max-width:46rem;margin-bottom:2.25rem}
@media (min-width:64rem){.section{padding-block:5.5rem}}

.split{display:grid;gap:2.5rem}
@media (min-width:64rem){.split{grid-template-columns:1.1fr .9fr;gap:4rem;align-items:start}}

.photo-card{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.photo-card img{width:100%;height:100%;object-fit:cover}

/* double expertise */
.duo{display:grid;gap:1.1rem;margin-top:1.6rem}
@media (min-width:46rem){.duo{grid-template-columns:1fr 1fr}}
.duo .d{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;
  display:flex;gap:1rem;align-items:flex-start;
}
.duo .num{
  font-family:var(--font-display);background:var(--teal);color:#fff;width:2.4rem;height:2.4rem;flex:none;
  border-radius:0;display:inline-flex;align-items:center;justify-content:center;font-size:1.1rem;
}
.duo strong{display:block;color:var(--teal-ink);margin-bottom:.2rem}
.duo span{color:var(--muted);font-size:.95rem}

/* cards */
.grid{display:grid;gap:1.1rem}
@media (min-width:46rem){.grid--2{grid-template-columns:1fr 1fr}.grid--3{grid-template-columns:repeat(2,1fr)}}
@media (min-width:64rem){.grid--3{grid-template-columns:repeat(3,1fr)}.grid--4{grid-template-columns:repeat(4,1fr)}}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem;display:flex;flex-direction:column;gap:.6rem;
  transition:border-color .2s,box-shadow .2s,transform .2s;
}
a.card{cursor:pointer;color:inherit}
a.card:hover{border-color:var(--teal);box-shadow:var(--shadow);transform:translateY(-2px)}
.card .icn{
  width:44px;height:44px;border-radius:0;background:var(--softer);color:var(--teal);
  display:flex;align-items:center;justify-content:center;margin-bottom:.4rem;
}
.card h3{margin:0}
.card p{color:var(--muted);font-size:.95rem;margin:0}
.card ul{margin:.2rem 0 0;padding-left:1.1rem;color:var(--muted);font-size:.92rem}
.card ul li{margin-bottom:.3rem}

/* méthode steps */
.steps{display:grid;gap:1.1rem;counter-reset:s}
@media (min-width:64rem){.steps{grid-template-columns:repeat(3,1fr)}}
.steps .st{
  counter-increment:s;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem;
}
.steps .st::before{
  content:counter(s,decimal-leading-zero);
  font-family:var(--font-display);font-size:2rem;color:var(--sage);display:block;margin-bottom:.6rem;line-height:1;
}
.steps .st strong{display:block;font-family:var(--font-display);font-size:1.15rem;color:var(--teal-ink);margin-bottom:.5rem;line-height:1.3}
.steps .st p,.steps .st ul{color:var(--muted);font-size:.94rem;margin:0}
.steps .st ul{padding-left:1.1rem}
.steps .st ul li{margin-bottom:.25rem}

/* axes */
.axes{display:grid;gap:1rem}
@media (min-width:46rem){.axes{grid-template-columns:1fr 1fr}}
@media (min-width:64rem){.axes{grid-template-columns:repeat(3,1fr)}}
.axes .ax{
  border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);padding:1.25rem;
  background:rgba(255,255,255,.05);
}
.axes .ax strong{color:#fff;display:block;margin-bottom:.35rem;font-size:1.02rem}
.axes .ax ul{margin:0;padding-left:1.05rem;color:#B7D4D1;font-size:.9rem}
.axes .ax ul li{margin-bottom:.2rem}

/* filiales */
.filiales{display:grid;gap:1.1rem}
@media (min-width:46rem){.filiales{grid-template-columns:1fr 1fr}}
@media (min-width:64rem){.filiales{grid-template-columns:repeat(3,1fr)}}
.fcard{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem;
  display:flex;flex-direction:column;gap:.7rem;transition:border-color .2s,box-shadow .2s,transform .2s;
}
.fcard:hover{border-color:var(--teal);box-shadow:var(--shadow);transform:translateY(-2px)}
.fcard .flogo{
  height:64px;display:flex;align-items:center;justify-content:flex-start;margin-bottom:.3rem;
}
.fcard .flogo img{max-height:64px;max-width:200px;width:auto;object-fit:contain}
.fcard h3{margin:0;font-size:1.15rem}
.fcard .tag{color:var(--teal);font-weight:600;font-size:.9rem}
.fcard p{color:var(--muted);font-size:.93rem;margin:0}
.fcard ul{margin:.1rem 0 0;padding-left:1.05rem;color:var(--muted);font-size:.9rem}
.fcard ul li{margin-bottom:.25rem}
.fcard .more{margin-top:auto;padding-top:.7rem;font-weight:600;font-size:.9rem;display:inline-flex;align-items:center;gap:.4rem;color:var(--teal)}

/* filiale detail (groupe.html) */
.fdetail{
  display:grid;gap:1.5rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.75rem;margin-bottom:1.5rem;
}
@media (min-width:64rem){.fdetail{grid-template-columns:220px 1fr;gap:2.5rem;align-items:start}}
.fdetail .flogo{display:flex;align-items:flex-start;justify-content:flex-start}
.fdetail .flogo img{max-height:80px;max-width:210px;width:auto;object-fit:contain}
.fdetail h3{margin-bottom:.2rem}
.fdetail .tag{color:var(--teal);font-weight:600;font-size:.95rem;display:block;margin-bottom:.8rem}
.fdetail p{color:var(--muted);font-size:.97rem}
.fdetail ul{margin:.4rem 0 0;padding-left:1.1rem;color:var(--muted);font-size:.94rem}
.fdetail ul li{margin-bottom:.3rem}
.fdetail .more{font-weight:600;font-size:.92rem;display:inline-flex;align-items:center;gap:.4rem;margin-top:.9rem}

/* partenaire band */
.partner{
  background:var(--soft);border:1px dashed var(--line);border-radius:var(--radius);padding:1.5rem;
  display:grid;gap:.6rem;margin-top:2rem;
}
.partner .lbl{font-size:.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.partner strong{font-family:var(--font-display);font-size:1.15rem;color:var(--teal-ink)}
.partner p{margin:0;color:var(--muted);font-size:.95rem}

/* quote */
.quote{position:relative;padding-block:4rem}
.quote blockquote{
  margin:0 auto;font-family:var(--font-display);font-weight:500;font-style:italic;
  font-size:clamp(1.25rem,3.6vw,1.9rem);line-height:1.45;color:var(--teal-ink);
  max-width:44rem;
}
.quote blockquote::before{
  content:"\201C";display:block;font-size:4.5rem;line-height:.6;color:var(--teal);
  opacity:.28;margin-bottom:1.2rem;font-style:normal;
}
.quote figcaption{margin-top:1.4rem;color:var(--muted);font-size:.92rem}

/* CTA band */
.ctaband{background:var(--teal-ink);color:#fff}
.ctaband .in{padding-block:3.5rem;display:grid;gap:1.5rem}
.ctaband h2{color:#fff;margin:0}
.ctaband p{color:#B7D4D1;margin:0}
.ctaband .btns{display:flex;flex-wrap:wrap;gap:.8rem}
@media (min-width:64rem){
  .ctaband .in{grid-template-columns:1fr auto;align-items:center;padding-block:4.5rem}
}

/* breadcrumb + page hero */
.crumbs{font-size:.85rem;color:var(--muted);padding-top:1.5rem;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--teal)}
.crumbs svg{opacity:.5}
.crumbs [aria-current]{color:var(--teal-ink);font-weight:600}
.phero{background:linear-gradient(180deg,var(--soft),#fff);padding-block:1rem 2.75rem}
.phero h1{margin-top:1.6rem}

/* contact */
.contact-grid{display:grid;gap:1.1rem;margin-block:2rem}
@media (min-width:46rem){.contact-grid{grid-template-columns:repeat(3,1fr)}}

/* legal */
.legal h2{font-size:1.3rem;margin-top:2.2rem}
.legal p{color:var(--muted)}

/* footer */
.footer{background:var(--teal-ink);color:#9DBFBC;font-size:.92rem}
.footer .in{padding-block:3rem;display:grid;gap:2rem}
.footer h4{color:#fff;font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;margin:0 0 .9rem}
.footer a{color:#C6DDDB;display:inline-block;padding:.18rem 0}
.footer a:hover{color:#fff}
.footer .brandline img{height:34px;width:auto}
.footer .base{border-top:1px solid rgba(255,255,255,.14);padding-block:1.2rem;display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between;font-size:.82rem}
@media (min-width:46rem){.footer .in{grid-template-columns:1.4fr 1fr 1fr}}

/* reveal */
html.js .rv{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
html.js .rv.on{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){html.js .rv{opacity:1;transform:none}}

/* bandeau photo pleine largeur */
.band{line-height:0}
.band img{width:100%;height:clamp(220px,36vw,420px);object-fit:cover}

/* split inversé : photo à gauche sur desktop, texte d'abord sur mobile */
@media (min-width:64rem){
  .split--rev{grid-template-columns:.9fr 1.1fr}
  .split--rev .photo-card{order:-1}
}

/* bande devise */
.devise-band{background:var(--soft);border-bottom:1px solid var(--line)}
.devise-band .in{padding-block:2.75rem;text-align:center}
.devise-band p{
  font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;margin:0;
  font-size:clamp(1.15rem,4vw,2.4rem);color:var(--teal-ink);white-space:nowrap;
}
.devise-band .sep{color:var(--sage);padding-inline:.3em;font-weight:500}
