/* =========================================================================
   AutoCleaning51 — Design System
   Premium / professionnel — bleu eau & propreté
   ========================================================================= */

:root{
  /* Brand */
  --navy:      #14315B;
  --navy-900:  #0D2244;
  --navy-deep: #0C2244;
  --blue:      #1E5FA8;
  --blue-600:  #2570C4;
  --sky:       #5C95D8;
  --sky-300:   #8FBCEA;

  /* Surfaces */
  --bg:        #FFFFFF;
  --bg-alt:    #F2F7FC;
  --bg-tint:   #E9F1FB;
  --ink:       #102038;
  --muted:     #5A6A80;
  --muted-2:   #8493A6;
  --line:      #E1E9F2;
  --line-2:    #D2DEEC;

  /* Accent for ratings */
  --gold:      #F2B53C;
  --ok:        #2BA06B;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16,32,56,.06), 0 1px 3px rgba(16,32,56,.05);
  --shadow:    0 6px 20px rgba(16,40,80,.08), 0 2px 6px rgba(16,40,80,.05);
  --shadow-lg: 0 24px 60px rgba(13,40,90,.16), 0 6px 18px rgba(13,40,90,.08);
  --shadow-blue: 0 14px 34px rgba(30,95,168,.30);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 56px);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

/* Allow brand color override via admin (set on :root inline) */

*{ box-sizing: border-box; }
*::selection{ background: var(--sky-300); color: var(--navy); }

html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,h2,h3,h4{ font-family: var(--font-display); color: var(--navy); line-height: 1.08; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1{ font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2{ font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3{ font-size: clamp(1.25rem, 2vw, 1.6rem); }
p{ margin: 0 0 1rem; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }

.container{ max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section{ padding-block: clamp(64px, 9vw, 120px); }
.section--tight{ padding-block: clamp(48px, 6vw, 84px); }
.bg-alt{ background: var(--bg-alt); }
.bg-navy{ background: var(--navy); color: #fff; }
.bg-navy h1,.bg-navy h2,.bg-navy h3{ color: #fff; }

.text-center{ text-align: center; }
.mx-auto{ margin-inline: auto; }
.measure{ max-width: 60ch; }
.measure-sm{ max-width: 46ch; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before{ content:""; width: 26px; height: 2px; background: var(--sky); border-radius: 2px; }
.eyebrow.on-dark{ color: var(--sky-300); }
.eyebrow.on-dark::before{ background: var(--sky); }
.section-head{ max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head p{ color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.bg-navy .section-head p{ color: #B7C7DC; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg{ width: 18px; height: 18px; }
.btn-primary{ background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover{ background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(30,95,168,.38); }
.btn-dark{ background: var(--navy); color: #fff; }
.btn-dark:hover{ background: #1c4078; transform: translateY(-2px); }
.btn-ghost{ background: #fff; color: var(--navy); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover{ border-color: var(--sky); color: var(--blue); transform: translateY(-2px); }
.btn-outline-light{ background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.32); }
.btn-outline-light:hover{ background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-sm{ padding: 11px 18px; font-size: .92rem; }
.btn-block{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav{ display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ height: 46px; width: auto; }
.brand .brand-fallback{ font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -.02em; }
.brand .brand-fallback b{ color: var(--sky); }
.nav-links{ display: flex; align-items: center; gap: 4px; }
.nav-links a{
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; color: var(--ink);
  padding: 9px 14px; border-radius: 999px; transition: color .18s, background .18s;
}
.nav-links a:hover{ color: var(--blue); background: var(--bg-tint); }
.nav-links a.active{ color: var(--blue); background: var(--bg-tint); }
.nav-cta{ display: flex; align-items: center; gap: 12px; }
.nav-phone{ display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.nav-phone svg{ width: 18px; height: 18px; color: var(--blue); }
.nav-toggle{ display: none; background: none; border: none; padding: 8px; color: var(--navy); }
.nav-toggle svg{ width: 28px; height: 28px; }

/* mobile drawer */
.mobile-menu{
  position: fixed; inset: 0; z-index: 300; background: rgba(12,34,68,.5);
  display: none;
}
.mobile-menu.open{ display: block; }
.mobile-panel{
  position: absolute; top: 0; right: 0; height: 100%; width: min(82vw, 360px);
  background: #fff; padding: 26px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-lg);
}
.mobile-panel .m-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-panel a{ font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); padding: 14px 12px; border-radius: 12px; }
.mobile-panel a:hover{ background: var(--bg-tint); }
.mobile-panel .btn{ margin-top: 14px; }

/* ---------- Hero ---------- */
.hero{ position: relative; overflow: hidden; background: linear-gradient(180deg, #F4F9FE 0%, #fff 70%); }
.hero-grid{ display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 span{ color: var(--blue); }
.hero .lead{ font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-top: 22px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust{ display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.trust-item{ display: flex; flex-direction: column; }
.trust-item .n{ font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--navy); line-height: 1; }
.trust-item .l{ font-size: .9rem; color: var(--muted); margin-top: 4px; }
.hero-visual{ position: relative; }
.hero-visual .media{ border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.hero-badge{
  position: absolute; left: -26px; bottom: 40px; background: #fff; border-radius: var(--r-lg);
  padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line);
}
.hero-badge .ic{ width: 46px; height: 46px; border-radius: 12px; background: var(--bg-tint); display: grid; place-items: center; color: var(--blue); }
.hero-badge .ic svg{ width: 24px; height: 24px; }
.hero-badge .t{ font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1.1; }
.hero-badge .s{ font-size: .82rem; color: var(--muted); }
.hero-blob{ position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(92,149,216,.22), transparent 65%); top: -120px; right: -120px; z-index: 0; }

/* ---------- Image placeholder ---------- */
.ph{
  position: relative; background:
    repeating-linear-gradient(135deg, #DCE8F5 0 12px, #E8F0FA 12px 24px);
  display: grid; place-items: center; color: var(--blue); overflow: hidden;
}
.ph::after{ content: attr(data-label); font-family: 'Sora', monospace; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: #6b87a8; background: rgba(255,255,255,.72); padding: 6px 12px; border-radius: 999px; }
.ph img{ width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ---------- Logo strip ---------- */
.clients{ padding-block: 34px; border-block: 1px solid var(--line); }
.clients .row{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px,5vw,64px); }
.clients .lbl{ width: 100%; text-align: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.clients .chip{ font-family: var(--font-display); font-weight: 700; color: var(--muted-2); font-size: 1.15rem; opacity: .8; }

/* ---------- Service cards ---------- */
.grid{ display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.svc{
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; transition: transform .22s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; height: 100%;
}
.svc:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc .ic{ width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(145deg, var(--blue), var(--sky)); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-blue); }
.svc .ic svg{ width: 28px; height: 28px; }
.svc h3{ margin-top: 22px; }
.svc p{ color: var(--muted); margin-top: 10px; font-size: 1rem; flex: 1; }
.svc .more{ display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; color: var(--blue); margin-top: 18px; font-size: .95rem; }
.svc .more svg{ width: 16px; height: 16px; transition: transform .2s; }
.svc:hover .more svg{ transform: translateX(4px); }

/* service detailed rows */
.svc-row{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.svc-row.flip .svc-media{ order: 2; }
.svc-media{ border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/11; }
.svc-list{ margin-top: 20px; display: grid; gap: 12px; }
.svc-list li{ display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.svc-list .tick{ flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; margin-top: 2px; }
.svc-list .tick svg{ width: 15px; height: 15px; }

/* ---------- Steps ---------- */
.steps{ display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: s; }
.step{ position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.step .num{ font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.step h3{ font-size: 1.2rem; margin-top: 18px; }
.step p{ color: var(--muted); font-size: .96rem; margin-top: 8px; margin-bottom: 0; }

/* ---------- Pricing ---------- */
.price-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
.plan{
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px;
  display: flex; flex-direction: column; position: relative; transition: transform .22s, box-shadow .25s;
}
.plan:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan.popular{ border-color: var(--blue); box-shadow: var(--shadow-lg); }
.plan.popular::before{
  content: "Le plus choisi"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap;
}
.plan .pname{ font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.plan .pdesc{ color: var(--muted); font-size: .95rem; margin-top: 6px; min-height: 42px; }
.plan .price{ display: flex; align-items: baseline; gap: 4px; margin-top: 18px; }
.plan .price .amt{ font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.plan .price .cur{ font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.plan .price .unit{ color: var(--muted); font-size: .95rem; }
.plan .pfeat{ margin-top: 24px; display: grid; gap: 13px; flex: 1; padding-top: 24px; border-top: 1px solid var(--line); }
.plan .pfeat li{ display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; }
.plan .pfeat .tick{ flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; margin-top: 1px; }
.plan .pfeat .tick svg{ width: 14px; height: 14px; }
.plan .pfeat li.off{ color: var(--muted-2); }
.plan .pfeat li.off .tick{ background: #F0F2F5; color: var(--muted-2); }
.plan .btn{ margin-top: 26px; }
.price-note{ text-align: center; color: var(--muted); margin-top: 30px; font-size: .96rem; }

/* ---------- Gallery before/after ---------- */
.gallery-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.ba{ border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.ba-stage{ position: relative; aspect-ratio: 4/3; user-select: none; touch-action: none; cursor: ew-resize; }
.ba-stage .layer{ position: absolute; inset: 0; }
.ba-stage .after{ z-index: 1; }
.ba-stage .before{ z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-stage .layer .ph,.ba-stage .layer img{ width: 100%; height: 100%; object-fit: cover; }
.ba-stage .tag{ position: absolute; bottom: 14px; z-index: 3; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(12,34,68,.72); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.ba-stage .tag.t-before{ left: 14px; }
.ba-stage .tag.t-after{ right: 14px; }
.ba-handle{ position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; z-index: 4; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(12,34,68,.1); }
.ba-handle .knob{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--blue); }
.ba-handle .knob svg{ width: 22px; height: 22px; }
.ba-cap{ display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; }
.ba-cap .t{ font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.ba-cap .s{ font-size: .88rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.tgrid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.quote{ background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; height: 100%; }
.stars{ display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg{ width: 19px; height: 19px; fill: currentColor; }
.quote p{ color: var(--ink); font-size: 1.06rem; margin-top: 16px; flex: 1; }
.quote .who{ display: flex; align-items: center; gap: 13px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote .av{ width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg,var(--blue),var(--sky)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.quote .who .n{ font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1.2; }
.quote .who .r{ font-size: .85rem; color: var(--muted); }

/* ---------- Zones / map ---------- */
.zones-wrap{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: center; }
.zone-map{ position: relative; aspect-ratio: 5/4; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-tint); }
.zone-map iframe{ width: 100%; height: 100%; border: 0; }
.zone-list{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.zone-pill{ display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-family: var(--font-display); font-weight: 500; font-size: .94rem; color: var(--navy); box-shadow: var(--shadow-sm); }
.zone-pill svg{ width: 15px; height: 15px; color: var(--blue); }

/* ---------- CTA band ---------- */
.cta-band{ position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--navy) 0%, #1c4d8f 100%); color: #fff; padding: clamp(40px,6vw,72px); }
.cta-band::before{ content:""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(92,149,216,.4), transparent 70%); top: -140px; right: -80px; }
.cta-band h2{ color: #fff; }
.cta-band p{ color: #C6D6EA; max-width: 50ch; margin-top: 14px; }
.cta-band .actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; position: relative; }

/* ---------- Forms ---------- */
.form-card{ background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px,4vw,44px); box-shadow: var(--shadow); }
.field{ margin-bottom: 18px; }
.field label{ display: block; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 8px; }
.field label .req{ color: var(--blue); }
.field input, .field select, .field textarea{
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-alt);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(30,95,168,.14); }
.field textarea{ resize: vertical; min-height: 120px; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-ok{ display: none; text-align: center; padding: 20px; }
.form-ok .ic{ width: 64px; height: 64px; border-radius: 50%; background: var(--bg-tint); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.form-ok .ic svg{ width: 34px; height: 34px; }

/* choice chips (service select) */
.chips{ display: flex; flex-wrap: wrap; gap: 10px; }
.chip-choice{ position: relative; }
.chip-choice input{ position: absolute; opacity: 0; }
.chip-choice span{ display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--navy); background: var(--bg-alt); transition: all .16s; }
.chip-choice input:checked + span{ background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Info blocks (contact) ---------- */
.info-item{ display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child{ border-bottom: 0; }
.info-item .ic{ flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; }
.info-item .ic svg{ width: 22px; height: 22px; }
.info-item .k{ font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.info-item .v{ color: var(--muted); }
.info-item .v a:hover{ color: var(--blue); }

/* ---------- FAQ accordion ---------- */
.faq{ max-width: 800px; margin-inline: auto; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{ width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: none; padding: 24px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--navy); }
.faq-q svg{ width: 22px; height: 22px; color: var(--blue); flex: none; transition: transform .25s; }
.faq-q.active svg{ transform: rotate(45deg); }
.faq-a{ display: none; }
.faq-a.open{ display: block; }
.faq-a p{ color: var(--muted); padding: 0 4px 24px; margin: 0; font-size: 1.04rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ background: linear-gradient(180deg,#F4F9FE,#fff); border-bottom: 1px solid var(--line); padding-block: clamp(48px,6vw,84px); text-align: center; }
.page-hero .crumb{ font-family: var(--font-display); font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.page-hero .crumb a:hover{ color: var(--blue); }
.page-hero p{ color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin: 18px auto 0; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: #C6D6EA; padding-block: clamp(48px,6vw,76px) 0; }
.footer-grid{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .brand-fallback{ color: #fff; font-size: 1.5rem; }
.footer-brand .brand-fallback b{ color: var(--sky-300); }
.footer-brand p{ color: #9DB4D0; margin-top: 16px; max-width: 32ch; font-size: .96rem; }
.footer-brand img{ height: 52px; filter: brightness(0) invert(1); opacity: .95; }
.foot-col h4{ color: #fff; font-size: 1rem; font-family: var(--font-display); margin-bottom: 16px; letter-spacing: .02em; }
.foot-col a, .foot-col li{ display: block; color: #A9BFD8; padding: 6px 0; font-size: .96rem; transition: color .15s; }
.foot-col a:hover{ color: #fff; }
.foot-contact .row{ display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: #A9BFD8; font-size: .96rem; }
.foot-contact .row svg{ width: 17px; height: 17px; color: var(--sky-300); flex: none; margin-top: 3px; }
.footer-bottom{ margin-top: clamp(40px,5vw,60px); border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .88rem; color: #8DA5C4; }
.footer-bottom a:hover{ color: #fff; }
.socials{ display: flex; gap: 10px; }
.socials a{ width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #C6D6EA; transition: background .18s, color .18s; }
.socials a:hover{ background: var(--blue); color: #fff; }
.socials svg{ width: 18px; height: 18px; }

/* ---------- Admin launcher + panel ---------- */
.admin-fab{
  position: fixed; right: 20px; bottom: 20px; z-index: 400;
  width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--navy); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s, background .2s; opacity: .5;
}
.admin-fab:hover{ transform: scale(1.08); background: var(--blue); opacity: 1; }
.admin-fab svg{ width: 22px; height: 22px; }

.admin-overlay{ position: fixed; inset: 0; z-index: 500; background: rgba(8,22,44,.55); display: none; }
.admin-overlay.open{ display: block; }
.admin-drawer{
  position: absolute; top: 0; right: 0; height: 100%; width: min(94vw, 560px); background: #fff;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.admin-head{ display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--navy); color: #fff; }
.admin-head .ttl{ font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.admin-head .ttl svg{ width: 20px; height: 20px; color: var(--sky-300); }
.admin-close{ background: rgba(255,255,255,.12); border: none; color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.admin-close:hover{ background: rgba(255,255,255,.22); }
.admin-close svg{ width: 18px; height: 18px; }
.admin-body{ flex: 1; overflow-y: auto; padding: 22px 24px; background: var(--bg-alt); }

.admin-login{ max-width: 340px; margin: 8vh auto; text-align: center; }
.admin-login .ic{ width: 60px; height: 60px; border-radius: 16px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; margin: 0 auto 18px; }
.admin-login .ic svg{ width: 30px; height: 30px; }
.admin-login h3{ margin-bottom: 8px; }
.admin-login p{ color: var(--muted); font-size: .94rem; margin-bottom: 20px; }
.admin-login .err{ color: #C0392B; font-size: .88rem; margin-top: 10px; min-height: 18px; }

.admin-tabs{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; position: sticky; top: -22px; background: var(--bg-alt); padding: 14px 0; z-index: 2; }
.admin-tab{ font-family: var(--font-display); font-weight: 600; font-size: .85rem; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); }
.admin-tab.active{ background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-panel{ display: none; }
.admin-panel.active{ display: block; }
.admin-section-title{ font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 4px 0 14px; }
.admin-field{ margin-bottom: 14px; }
.admin-field label{ display: block; font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--navy); margin-bottom: 6px; }
.admin-field input, .admin-field textarea, .admin-field select{ width: 100%; font-family: var(--font-body); font-size: .94rem; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); }
.admin-field input:focus, .admin-field textarea:focus{ outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,95,168,.12); }
.admin-field textarea{ min-height: 70px; resize: vertical; }
.admin-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-item{ background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; position: relative; }
.admin-item .item-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.admin-item .item-head .lbl{ font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--blue); }
.admin-del{ background: #FCEAEA; color: #C0392B; border: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.admin-del:hover{ background: #F6D5D5; }
.admin-del svg{ width: 16px; height: 16px; }
.admin-add{ width: 100%; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: #fff; color: var(--blue); font-family: var(--font-display); font-weight: 600; font-size: .9rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.admin-add:hover{ border-color: var(--blue); background: var(--bg-tint); }
.admin-add svg{ width: 16px; height: 16px; }
.admin-img-field{ display: flex; gap: 10px; align-items: center; }
.admin-img-prev{ width: 54px; height: 54px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex: none; background: var(--bg-tint); }
.admin-upload{ font-size: .82rem; }
.color-swatches{ display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch{ width: 36px; height: 36px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; box-shadow: var(--shadow-sm); }
.color-swatch.sel{ border-color: var(--ink); }
.admin-foot{ padding: 16px 24px; border-top: 1px solid var(--line); background: #fff; display: flex; gap: 12px; align-items: center; }
.admin-foot .btn{ flex: 1; }
.admin-reset{ background: none; border: none; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: .85rem; text-decoration: underline; }
.admin-reset:hover{ color: #C0392B; }
.admin-saved{ position: fixed; bottom: 26px; left: 50%; translate: -50% 0; z-index: 600; background: var(--ok); color: #fff; padding: 13px 22px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; box-shadow: var(--shadow-lg); display: none; pointer-events: none; }
.admin-saved.show{ display: block; }
.admin-hint{ font-size: .82rem; color: var(--muted); background: var(--bg-tint); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; line-height: 1.5; }

/* ---------- Espace compte (auth) ---------- */
.acct-slot{ display: flex; align-items: center; }
.acct-wrap{ position: relative; }
.acct-btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--navy); background: #fff; border: 1px solid var(--line-2);
  padding: 9px 15px; border-radius: 999px; transition: border-color .18s, color .18s, background .18s;
}
.acct-btn:hover{ border-color: var(--sky); color: var(--blue); }
.acct-btn svg{ width: 17px; height: 17px; }
.acct-btn.is-in{ padding-left: 7px; }
.acct-avatar{
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700; flex: none;
}
.acct-menu{
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 300;
}
.acct-menu.open{ display: block; animation: acFaq .16s ease; }
.acct-greet{ display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-greet svg{ width: 20px; height: 20px; color: var(--blue); flex: none; }
.acct-greet b{ display: block; font-family: var(--font-display); font-size: .92rem; color: var(--navy); }
.acct-greet span{ font-size: .8rem; color: var(--muted); word-break: break-all; }
.acct-item{
  width: 100%; display: flex; align-items: center; gap: 9px; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink);
  background: none; border: none; padding: 10px; border-radius: 9px;
}
.acct-item:hover{ background: var(--bg-tint); color: var(--blue); }
.acct-item svg{ width: 17px; height: 17px; }
.acct-item.danger:hover{ background: #FCEAEA; color: #C0392B; }
.acct-slot-mobile{ margin-top: 14px; }
.acct-slot-mobile .acct-btn,
.acct-slot-mobile .acct-wrap{ width: 100%; }
.acct-slot-mobile .acct-btn{ justify-content: center; }
.acct-slot-mobile .acct-menu{ position: static; box-shadow: none; margin-top: 8px; width: 100%; }

.auth-overlay{
  position: fixed; inset: 0; z-index: 700; display: none;
  background: rgba(8,22,44,.55); backdrop-filter: blur(3px);
  padding: 20px; overflow-y: auto;
}
.auth-overlay.open{ display: grid; place-items: center; animation: acFade .2s ease; }
.auth-card{
  position: relative; width: min(100%, 420px); background: #fff;
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 30px 30px 34px;
  animation: revealUp .35s cubic-bezier(.22,.61,.36,1);
}
.auth-close{
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px;
  background: var(--bg-tint); border: none; color: var(--navy); display: grid; place-items: center;
}
.auth-close:hover{ background: var(--line-2); }
.auth-close svg{ width: 18px; height: 18px; }
.auth-head{ text-align: center; margin-bottom: 20px; }
.auth-logo{ width: 56px; height: 56px; border-radius: 16px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; margin: 0 auto 14px; }
.auth-logo svg{ width: 28px; height: 28px; }
.auth-head h3{ font-size: 1.4rem; margin-bottom: 6px; }
.auth-head p{ color: var(--muted); font-size: .92rem; }
.auth-tabs{ display: flex; gap: 6px; background: var(--bg-tint); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.auth-tabs:empty{ display: none; }
.auth-tab{ flex: 1; font-family: var(--font-display); font-weight: 600; font-size: .92rem; padding: 10px; border-radius: 9px; border: none; background: none; color: var(--muted); }
.auth-tab.active{ background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.auth-field{ margin-bottom: 14px; }
.auth-field label{ display: block; font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--navy); margin-bottom: 6px; }
.auth-field input{ width: 100%; font-family: var(--font-body); font-size: .96rem; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
.auth-field input:focus{ outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,95,168,.12); }
.auth-err{ color: #C0392B; font-size: .86rem; min-height: 20px; margin: 2px 0 8px; }
.auth-switch{ text-align: center; font-size: .9rem; color: var(--muted); margin-top: 18px; }
.auth-switch a{ color: var(--blue); font-weight: 600; cursor: pointer; }
.auth-switch a:hover{ text-decoration: underline; }
.auth-hint{ display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; font-size: .8rem; color: var(--muted); margin-top: 16px; }
.auth-hint svg{ width: 15px; height: 15px; flex: none; }
.auth-toast{
  position: fixed; bottom: 26px; left: 50%; translate: -50% 0; z-index: 800;
  background: var(--ok); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; box-shadow: var(--shadow-lg);
  display: none; align-items: center; gap: 8px; pointer-events: none;
}
.auth-toast.show{ display: inline-flex; animation: revealUp .3s ease; }
.auth-toast svg{ width: 18px; height: 18px; }

/* ---------- Tableau de bord admin ---------- */
.admin-app{ background: var(--bg-alt); min-height: 100vh; }
.admin-root{ min-height: 100vh; }

/* Écran de connexion centré */
.admin-login{ max-width: 380px; margin: 0 auto; padding: 40px 34px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); text-align: center; }
.admin-login-wrap{ min-height: 100vh; display: grid; place-items: center; padding: 24px; }

/* Structure : sidebar + contenu */
.dash{ display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

/* --- Sidebar --- */
.dash-side{
  position: sticky; top: 0; align-self: start; height: 100vh;
  background: var(--navy); color: #fff; display: flex; flex-direction: column;
  padding: 22px 16px; overflow-y: auto;
}
.dash-brand{ display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.dash-brand .logo{ width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; }
.dash-brand .logo svg{ width: 20px; height: 20px; color: var(--sky-300); }
.dash-brand .t{ font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.1; }
.dash-brand .t span{ display: block; font-weight: 500; font-size: .72rem; color: #9fb6d4; }
.dash-nav{ display: flex; flex-direction: column; gap: 2px; flex: 1; padding-top: 8px; }
.dash-group{ font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6f88ab; padding: 16px 10px 7px; }
.dash-link{
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: #cdd9ea;
  background: none; border: none; padding: 10px 11px; border-radius: 10px; transition: background .15s, color .15s;
}
.dash-link svg{ width: 18px; height: 18px; flex: none; color: #8fa6c6; transition: color .15s; }
.dash-link:hover{ background: rgba(255,255,255,.07); color: #fff; }
.dash-link.active{ background: var(--blue); color: #fff; }
.dash-link.active svg{ color: #fff; }
.dash-link .tab-badge{ margin-left: auto; }
.dash-user{ display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.dash-user .av{ width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.dash-user .who{ min-width: 0; flex: 1; }
.dash-user .who b{ display: block; font-family: var(--font-display); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user .who span{ font-size: .74rem; color: #9fb6d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dash-logout{ background: rgba(255,255,255,.08); border: none; color: #cdd9ea; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.dash-logout:hover{ background: #C0392B; color: #fff; }
.dash-logout svg{ width: 17px; height: 17px; }

/* --- Contenu --- */
.dash-main{ display: flex; flex-direction: column; min-width: 0; }
.dash-top{
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 30px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.dash-top .ttl{ font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.dash-top .sub{ color: var(--muted); font-size: .86rem; margin-top: 2px; }
.dash-actions{ display: flex; align-items: center; gap: 10px; flex: none; }
.dash-btn{
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--navy);
}
.dash-btn:hover{ border-color: var(--sky); color: var(--blue); }
.dash-btn svg{ width: 16px; height: 16px; }
.dash-btn.primary{ background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-blue); }
.dash-btn.primary:hover{ background: var(--blue-600); color: #fff; }
.dash-btn.ghost{ background: none; border-color: transparent; color: var(--muted); }
.dash-btn.ghost:hover{ color: #C0392B; }
.dash-content{ padding: 30px; max-width: 920px; width: 100%; }
.dash-card{ background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-sm); }
.dash-plain{ }

/* --- Vue d'ensemble (tableau de bord) --- */
.dash-hero{ display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; border-radius: 16px; padding: 24px 28px; margin-bottom: 20px; box-shadow: var(--shadow-blue); }
.dash-hero .hi{ font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; }
.dash-hero .dt{ color: #cfe0f3; font-size: .9rem; margin-top: 5px; text-transform: capitalize; }
.dash-hero-ic{ width: 56px; height: 56px; border-radius: 15px; background: rgba(255,255,255,.15); display: grid; place-items: center; flex: none; }
.dash-hero-ic svg{ width: 28px; height: 28px; color: #fff; }

.kpi-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 20px; }
.kpi{ text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 3px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kpi:hover{ transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,49,91,.12); border-color: var(--sky-300); }
.kpi-ic{ width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 8px; }
.kpi-ic svg{ width: 19px; height: 19px; }
.kpi-ic.red{ background: #FCE9E7; color: #E0392B; }
.kpi-ic.blue{ background: var(--bg-tint); color: var(--blue); }
.kpi-ic.green{ background: #E3F3E8; color: #157347; }
.kpi-ic.navy{ background: #E7ECF4; color: var(--navy); }
.kpi-n{ font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; color: var(--navy); line-height: 1; }
.kpi-l{ font-size: .82rem; color: var(--muted); }

.dash-2col{ display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.dash-block{ background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.dash-block-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dash-block-head > span{ display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1rem; }
.dash-block-head svg{ width: 17px; height: 17px; color: var(--blue); }
.link-more{ background: none; border: none; color: var(--blue); font-family: var(--font-display); font-weight: 600; font-size: .84rem; display: inline-flex; align-items: center; gap: 5px; }
.link-more svg{ width: 14px; height: 14px; }
.dash-recent-item{ width: 100%; text-align: left; display: flex; align-items: center; gap: 11px; padding: 11px 8px; border: none; border-bottom: 1px solid var(--line); background: none; border-radius: 8px; }
.dash-recent-item:last-child{ border-bottom: none; }
.dash-recent-item:hover{ background: var(--bg-tint); }
.dash-recent-item .dot{ width: 8px; height: 8px; border-radius: 50%; background: transparent; flex: none; }
.dash-recent-item.unread .dot{ background: var(--blue); }
.dash-recent-item .rc-main{ flex: 1; min-width: 0; }
.dash-recent-item .rc-main b{ display: block; font-family: var(--font-display); font-size: .9rem; color: var(--navy); }
.dash-recent-item .rc-main span{ font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dash-recent-item .rc-date{ font-size: .76rem; color: var(--muted-2); flex: none; }
.dash-recent-item > svg{ width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.quick-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick{ display: flex; align-items: center; gap: 9px; padding: 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-alt); font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--navy); }
.quick:hover{ border-color: var(--blue); color: var(--blue); background: var(--bg-tint); transform: translateY(-2px); }
.quick svg{ width: 17px; height: 17px; flex: none; }

@media (max-width: 760px){
  .kpi-grid{ grid-template-columns: repeat(2, 1fr); }
  .dash-2col{ grid-template-columns: 1fr; }
  .quick-grid{ grid-template-columns: 1fr; }
  .dash-hero .hi{ font-size: 1.3rem; }
}

/* Responsive : sidebar en barre horizontale */
@media (max-width: 900px){
  .dash{ grid-template-columns: 1fr; }
  .dash-side{ position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; overflow-x: auto; }
  .dash-brand{ border: none; padding: 4px 10px 4px 4px; margin: 0; flex: none; }
  .dash-brand .t span{ display: none; }
  .dash-nav{ flex-direction: row; flex: 1; gap: 4px; padding: 0; }
  .dash-group{ display: none; }
  .dash-link{ flex-direction: column; gap: 3px; font-size: .68rem; padding: 7px 9px; white-space: nowrap; }
  .dash-link svg{ width: 19px; height: 19px; }
  .dash-link .tab-badge{ margin: 0; position: absolute; transform: translate(14px,-8px); }
  .dash-link{ position: relative; }
  .dash-user{ display: none; }
  .dash-top{ padding: 14px 18px; }
  .dash-content{ padding: 18px; }
  .dash-card{ padding: 18px; }
}

/* Cartes de statistiques (panneaux admin) */
.stat-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 22px; }
.stat-card{ background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; }
.stat-card .n{ font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--navy); line-height: 1; }
.stat-card .l{ font-size: .8rem; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.stat-card .l svg{ width: 14px; height: 14px; }
.stat-card.accent{ background: var(--bg-tint); border-color: var(--sky-300); }
.stat-card.accent .n{ color: var(--blue); }

/* En-tête de sous-section */
.panel-subhead{ display: flex; align-items: center; justify-content: space-between; gap: 9px; margin: 24px 0 12px; }
.panel-subhead > span:first-child{ display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.panel-subhead svg{ width: 18px; height: 18px; color: var(--blue); }
.panel-subhead.clients svg{ color: var(--navy); }
.panel-subhead .count{ font-size: .72rem; font-weight: 800; color: #fff; background: var(--navy); border-radius: 999px; padding: 3px 9px; }
.muted-note{ color: var(--muted); font-size: .9rem; padding: 8px 2px; }

/* Recherche */
.search-box{ position: relative; margin-bottom: 12px; }
.search-box svg{ position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.user-search{ width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line-2); border-radius: 9px; font-family: var(--font-body); font-size: .92rem; color: var(--ink); }
.user-search:focus{ outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,95,168,.12); }

/* Liste des comptes (panneau admin) */
.user-row{ display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.user-info{ display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-avatar{
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--bg-tint); color: var(--blue);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.user-avatar.admin{ background: var(--navy); color: #fff; }
.user-meta{ min-width: 0; }
.user-name{ font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: .95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-you{ font-size: .7rem; font-weight: 700; color: var(--blue); background: var(--bg-tint); padding: 2px 7px; border-radius: 999px; }
.user-badge{ font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--line-2); color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.user-badge.admin{ background: var(--navy); color: #fff; }
.user-mail{ font-size: .85rem; color: var(--muted); word-break: break-all; }
.user-date{ font-size: .76rem; color: var(--muted-2); margin-top: 2px; }
.user-actions{ display: flex; align-items: center; gap: 8px; flex: none; }
.user-toggle{
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  padding: 9px 13px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--navy);
}
.user-toggle:hover{ border-color: var(--blue); color: var(--blue); }
.user-toggle.on{ background: var(--navy); color: #fff; border-color: var(--navy); }
.user-toggle svg{ width: 15px; height: 15px; }
.user-err{ color: #C0392B; font-size: .85rem; min-height: 18px; margin-bottom: 6px; }

/* Badge de rôle + avatar admin dans l'en-tête */
.acct-avatar.admin{ background: var(--navy); }
.acct-role{ font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 2px 7px; border-radius: 999px; }

/* Boîte de réception (messages) */
.tab-badge{ display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #E0392B; color: #fff; font-size: .7rem; font-weight: 800; vertical-align: middle; }
.msg-item{ background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.msg-item.unread{ border-color: var(--sky); background: var(--bg-tint); }
.msg-head{ display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.msg-head:hover{ background: rgba(92,149,216,.08); }
.msg-dot{ width: 9px; height: 9px; border-radius: 50%; background: transparent; flex: none; }
.msg-item.unread .msg-dot{ background: var(--blue); }
.msg-main{ flex: 1; min-width: 0; }
.msg-line{ font-family: var(--font-display); color: var(--navy); font-size: .92rem; }
.msg-item.unread .msg-line b{ font-weight: 800; }
.msg-mail{ color: var(--muted); font-weight: 500; font-size: .85rem; }
.msg-subj{ color: var(--muted); font-size: .85rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-date{ color: var(--muted-2); font-size: .76rem; flex: none; }
.msg-body{ border-top: 1px solid var(--line); padding: 14px 16px; background: #fff; }
.msg-body pre{ font-family: var(--font-body); font-size: .9rem; color: var(--ink); white-space: pre-wrap; word-break: break-word; margin: 0 0 12px; line-height: 1.55; }
.msg-actions{ display: flex; flex-wrap: wrap; gap: 8px; }
.msg-act{ display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line-2); padding: 7px 11px; border-radius: 8px; }
.msg-act:hover{ border-color: var(--blue); color: var(--blue); }
.msg-act.danger:hover{ border-color: #C0392B; color: #C0392B; background: #FCEAEA; }
.msg-act svg{ width: 15px; height: 15px; }
.msg-act.primary{ background: var(--blue); color: #fff; border-color: var(--blue); }
.msg-act.primary:hover{ background: var(--blue-600); color: #fff; }
.msg-act.primary:disabled{ opacity: .6; }
.msg-tag{ font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #157347; background: #E3F3E8; padding: 2px 7px; border-radius: 999px; }
.msg-reply{ margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.msg-reply-input{ width: 100%; min-height: 90px; resize: vertical; font-family: var(--font-body); font-size: .92rem; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); margin-bottom: 8px; }
.msg-reply-input:focus{ outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,95,168,.12); }
.msg-reply-err{ color: #C0392B; font-size: .85rem; min-height: 16px; margin-bottom: 6px; }
.msg-replied{ background: #E3F3E8; border-radius: 9px; padding: 10px 12px; font-size: .85rem; color: #157347; font-weight: 600; margin-bottom: 12px; }
.msg-replied span{ display: block; margin-top: 6px; color: var(--ink); font-weight: 400; white-space: pre-wrap; }
.msg-warn{ display: flex; align-items: center; gap: 8px; background: #FFF6E6; color: #8a5a00; border-radius: 9px; padding: 10px 12px; font-size: .84rem; margin-bottom: 10px; }
.msg-warn svg{ width: 16px; height: 16px; flex: none; }
.msg-noemail{ display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.msg-noemail svg{ width: 16px; height: 16px; }

/* ---------- Reveal animation (content visible by default; entrance only) ---------- */
@media (prefers-reduced-motion: no-preference){
  .reveal.in{ animation: revealUp .6s cubic-bezier(.22,.61,.36,1); }
}
@keyframes revealUp{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: none; }
}
@keyframes acFade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes acSlideIn{ from{ transform: translateX(100%); } to{ transform: translateX(0); } }
@keyframes acFaq{ from{ opacity: 0; transform: translateY(-6px); } to{ opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px){
  .grid-3,.grid-4,.price-grid,.tgrid{ grid-template-columns: repeat(2,1fr); }
  .steps{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 480px; }
  .nav-links{ display: none; }
  .nav-toggle{ display: grid; place-items: center; }
  .nav-phone{ display: none; }
}
@media (max-width: 720px){
  body{ font-size: 16px; }
  .grid-3,.grid-4,.grid-2,.price-grid,.tgrid,.gallery-grid,.zones-wrap,.svc-row,.field-row,.admin-row{ grid-template-columns: 1fr; }
  .svc-row.flip .svc-media{ order: 0; }
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
  .hero-badge{ left: 0; }
  .plan.popular{ order: -1; }
  .nav-cta .btn{ display: none; }
}
