/* ==========================================================================
   Zot Company — feuille de style
   Mobile d’abord · palette bleu marine, vert et blanc
   ========================================================================== */

:root {
  --navy-950: #061a30;
  --navy-900: #0b2a4a;
  --navy-800: #123a63;
  --navy-700: #1b4b7d;
  --navy-100: #e6edf6;
  --navy-50: #f3f7fb;

  --green-700: #0d6b3e;
  --green-600: #13804b; /* 4.98:1 sur blanc */
  --green-400: #3cc27f;
  --green-300: #7ad9a8;
  --green-100: #e2f5eb;
  --green-50: #f0faf4;

  --white: #ffffff;
  --ink: #0e1b2c;
  --muted: #4a5b70;
  --line: #dbe3ec;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --warning-bg: #fff8e6;
  --warning-line: #f2d48a;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, 0.06), 0 1px 3px rgba(11, 42, 74, 0.08);
  --shadow: 0 10px 30px -12px rgba(11, 42, 74, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(11, 42, 74, 0.35);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--green-600);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy-900); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
strong { font-weight: 700; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
main:focus, section:focus { outline: none; box-shadow: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.text-accent { color: var(--green-600); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green-600); color: var(--white); box-shadow: 0 8px 20px -10px rgba(19, 128, 75, .8); }
.btn--primary:hover { background: var(--green-700); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--ghost:hover { background: var(--navy-900); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--green-100); color: var(--navy-900); }
.btn--whatsapp { background: var(--white); color: var(--green-700); border-color: var(--green-600); }
.btn--whatsapp:hover { background: var(--green-50); color: var(--green-700); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 100%; }
@media (min-width: 520px) { .btn-row .btn { flex: 0 0 auto; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--green-700);
  padding: 6px 0;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ----- Header & navigation ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 42, 74, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); }
.logo__mark {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--navy-900); color: var(--white);
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em;
}
.logo__mark::after {
  content: ''; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px;
  border-radius: 4px; background: var(--green-400); border: 2px solid var(--white);
}
.logo__text { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.logo__accent { font-weight: 600; color: var(--green-600); margin-left: 3px; }
.logo:hover { color: var(--navy-900); }

.nav__toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--navy-900); cursor: pointer;
}
.nav__toggle > span { display: inline-flex; align-items: center; gap: 8px; }
.nav__toggle-close { display: none !important; }
.nav__toggle[aria-expanded="true"] .nav__toggle-open { display: none !important; }
.nav__toggle[aria-expanded="true"] .nav__toggle-close { display: inline-flex !important; }

.nav__panel {
  position: fixed; inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  padding: 12px 16px 24px; background: var(--white);
  border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: none;
}
.nav__panel.is-open { display: block; animation: slideDown .25s var(--ease); }
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .nav__panel { position: static; display: block; box-shadow: none; border: 0; padding: 0; }
.nav__list { display: grid; gap: 4px; }
.nav__link {
  display: flex; align-items: center; min-height: 52px; padding: 10px 14px;
  border-radius: var(--radius-sm); font-weight: 600; color: var(--navy-900); text-decoration: none; font-size: 1.05rem;
}
.nav__link:hover { background: var(--navy-50); color: var(--navy-900); }
.nav__link[aria-current] { background: var(--green-50); color: var(--green-700); }
.nav__cta { width: 100%; margin-top: 12px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 1100px) {
  .nav__toggle { display: none; }
  .nav__panel, html:not(.js) .nav__panel {
    position: static; display: flex !important; align-items: center; gap: 20px;
    max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; background: transparent; animation: none;
  }
  .nav__list { display: flex; gap: 2px; }
  .nav__link { min-height: 44px; padding: 8px 11px; font-size: .95rem; position: relative; white-space: nowrap; }
  .nav__cta { white-space: nowrap; }
  .nav__link[aria-current] { background: transparent; }
  .nav__link[aria-current]::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--green-600);
  }
  .nav__cta { width: auto; margin: 0; min-height: 46px; padding: 10px 20px; font-size: .95rem; }
}

/* ----- Sections ----- */
.section { padding: 72px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--navy-50); }
@media (min-width: 900px) { .section { padding: 104px 0; } .section--tight { padding: 80px 0; } }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p:not(.kicker) { color: var(--muted); font-size: 1.1rem; }
.kicker {
  display: inline-block; margin-bottom: 12px; font-size: .85rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-700);
}
.kicker--light { color: var(--green-300); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 14px 7px 10px;
  border-radius: 999px; background: var(--green-100); color: var(--green-700);
  font-size: .9rem; font-weight: 700;
}
.lead { font-size: clamp(1.1rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 620px; margin-bottom: 32px; }

/* ----- Home hero ----- */
.hero {
  position: relative; overflow: hidden; padding: 48px 0 72px;
  background:
    radial-gradient(900px 500px at 100% 0%, var(--green-50), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, var(--navy-50), transparent 60%);
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 112px; } .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; color: var(--navy-800); font-weight: 600; font-size: .98rem; }
.hero__points li { display: flex; align-items: center; gap: 10px; }
.hero__points .icon { color: var(--white); background: var(--green-600); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
@media (max-width: 519px) { .hero__points li { flex: 1 1 100%; } }

/* Hero illustration built with CSS (no images): CV, facture, carte de visite */
.hero-visual { position: relative; height: 400px; max-width: 500px; width: 100%; margin: 0 auto; font-size: 11px; line-height: 1.3; }
@media (min-width: 480px) { .hero-visual { height: 440px; font-size: 12px; } }
@media (min-width: 960px) { .hero-visual { height: 480px; } }
.doc {
  position: absolute; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); animation: float 7s ease-in-out infinite; overflow: hidden;
}
.doc p { margin: 0; }
.doc__bar { display: block; height: 6px; border-radius: 4px; background: var(--navy-100); }
.doc__bar--light { background: rgba(255, 255, 255, .35); }
.doc__bar--accent { background: var(--card-lime); height: 10px; width: 38%; }
.doc__label { font-size: .75em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--card-lime); margin-top: 6px !important; }
.doc__title { font-size: 1.45em; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.doc__subtitle { color: var(--green-700); font-weight: 700; font-size: .95em; margin-bottom: 4px !important; }
.doc__heading { font-size: .78em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-900); border-bottom: 2px solid var(--card-lime); padding-bottom: 2px; margin-top: 6px !important; }
.doc__pills { display: flex; flex-wrap: wrap; gap: 4px; }
.doc__pills b { font-size: .8em; padding: 2px 7px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }

/* CV */
.doc--cv { left: 0; top: 0; width: 60%; height: 74%; display: grid; grid-template-columns: 34% 1fr; }
.doc-cv__side { background: var(--card-dark); padding: 14px 10px; display: grid; gap: 6px; align-content: start; }
.doc-cv__photo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card-lime); color: var(--card-dark); margin: 0 auto 6px; }
.doc-cv__photo .icon { width: 26px; height: 26px; }
.doc-cv__main { padding: 14px 12px; display: grid; gap: 6px; align-content: start; }

/* Facture */
.doc--invoice { right: 0; top: 14%; width: 56%; padding: 14px; display: grid; gap: 10px; animation-delay: -2.5s; }
.doc-inv__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.doc-inv__logo { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 6px; border: 1.5px dashed #b9c6d6; color: var(--muted); font-size: .8em; font-weight: 700; }
.doc-inv__title { display: grid; text-align: right; }
.doc-inv__title strong { font-size: 1.15em; letter-spacing: .06em; color: var(--card-green); }
.doc-inv__title small { color: var(--muted); font-weight: 600; }
.doc-inv__to { display: grid; gap: 5px; }
.doc-inv__table { display: grid; grid-template-columns: 1.6fr .6fr 1fr; gap: 7px 8px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.doc-inv__th { font-size: .75em; font-weight: 800; color: var(--navy-900); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 2px; }
.doc-inv__total { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--card-dark); color: var(--white); font-weight: 800; }
.doc-inv__total .doc__bar { margin: 0; }

/* Carte de visite */
.doc--card {
  left: 8%; bottom: 0; width: 60%; padding: 16px 18px; display: grid; gap: 6px;
  background: var(--card-green); border-color: var(--card-green); color: var(--white); animation-delay: -4.5s;
}
.doc-card__corner { position: absolute; right: -26px; top: -26px; width: 80px; height: 80px; border-radius: 50%; background: var(--card-lime); }
.doc-card__company { font-size: 1.35em; font-weight: 800; letter-spacing: -0.01em; position: relative; }
.doc-card__name { color: #e3f5eb; font-weight: 600; margin-bottom: 4px !important; }
.doc-card__line { display: flex; align-items: center; gap: 8px; }
.doc-card__line .icon { width: 14px; height: 14px; color: var(--card-lime); }
.doc-card__line .doc__bar { flex: none; }

.doc--badge {
  right: 4%; top: 0; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  font-size: 1.05em; font-weight: 700; color: var(--card-dark); background: var(--card-lime); border-color: var(--card-lime);
  border-radius: 999px; animation-delay: -1s; overflow: visible;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ----- Category cards ----- */
.cat-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.cat-card {
  position: relative; display: flex; flex-direction: column; padding: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-300); }
.cat-card:focus-within { box-shadow: var(--focus); }
.cat-card__icon, .moment__icon, .goal__icon, .value__icon, .occasion__icon, .info-card__icon, .audience__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--green-100); color: var(--green-700); margin-bottom: 20px; flex: none;
}
.cat-card:nth-child(2) .cat-card__icon { background: var(--navy-100); color: var(--navy-800); }
.cat-card__icon .icon { width: 26px; height: 26px; }
.cat-card__title { font-size: 1.3rem; }
.cat-card__title a { color: inherit; text-decoration: none; }
.cat-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.cat-card__title a:focus-visible { box-shadow: none; }
.cat-card p { color: var(--muted); flex: 1; }
.cat-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; color: var(--green-700); }
.cat-card__more .icon { transition: transform .2s var(--ease); }
.cat-card:hover .cat-card__more .icon { transform: translateX(4px); }

/* ----- Service tiles (home overview) ----- */
.tile-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tile a {
  display: flex; gap: 16px; align-items: center; height: 100%; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.tile a:hover { border-color: var(--green-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.tile__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--navy-900); color: var(--green-300); flex: none; }
.tile__body { display: grid; gap: 2px; }
.tile__title { font-weight: 700; line-height: 1.35; color: var(--navy-900); }
.tile__cat { font-size: .85rem; color: var(--muted); }

/* ----- Steps ----- */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; } }
.step {
  position: relative; display: flex; gap: 18px; padding: 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .step { flex-direction: column; } }
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: var(--navy-900); color: var(--white); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--green-100);
}
.step__title { font-size: 1.12rem; }
.step p { color: var(--muted); }

/* ----- FAQ ----- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--navy-900); font-size: 1.05rem; border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron { color: var(--green-600); transition: transform .25s var(--ease); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 22px; color: var(--muted); }
.faq__answer ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.faq__answer li { margin-bottom: 4px; }

/* ----- Contact (home) ----- */
.contact { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: var(--navy-100); }
.contact__grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .contact__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.contact h2 { color: var(--white); }
.contact__aside > p { font-size: 1.1rem; color: #c9d6e6; }
.contact__tips { margin-top: 32px; padding: 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.contact__tips h3 { color: var(--white); font-size: 1.05rem; }
.contact__tips ul { display: grid; gap: 10px; }
.contact__tips li { display: flex; gap: 10px; align-items: flex-start; color: #d6e1ee; }
.contact__tips .icon { color: var(--green-300); margin-top: 3px; }
.contact__form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 24px 18px; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .contact__form { padding: 36px; } }
.contact__form-title { font-size: 1.4rem; margin-bottom: 16px; }

.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px;
  border-radius: var(--radius); text-decoration: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--white);
  transition: background .2s, border-color .2s;
}
.contact-card:hover { background: rgba(255, 255, 255, .12); color: var(--white); border-color: var(--green-400); }
.contact-card > span:nth-child(2) { display: grid; }
.contact-card strong { font-size: 1rem; }
.contact-card span span { font-size: .92rem; color: #c9d6e6; word-break: break-all; }
.contact-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy-700); color: var(--white); flex: none; }
.contact-card__icon--wa { background: var(--green-600); }

/* ----- Form ----- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__intro { font-size: .92rem; color: var(--muted); margin: 0; }
.form__notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: var(--warning-bg); border: 1px solid var(--warning-line); border-radius: var(--radius-sm);
  color: #5c4300; font-size: .95rem;
}
.form__notice .icon { margin-top: 3px; color: #8a6100; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 700; color: var(--navy-900); font-size: .98rem; }
.req { color: var(--danger); }
.optional { font-weight: 500; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #b9c6d6; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-700); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(19, 128, 75, .2);
}
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .18); }
.field__hint { margin: 0; font-size: .88rem; color: var(--muted); }
.field__error { margin: 0; font-size: .92rem; font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.field__error::before { content: '⚠ '; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select__chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--navy-700); }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__safety {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px;
  background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-sm);
  font-size: .92rem; color: var(--navy-800);
}
.form__safety .icon { color: var(--green-700); margin-top: 2px; }
.form__status:empty { display: none; }
.form__status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .98rem; }
.form__status.is-success { background: var(--green-100); color: var(--green-700); border: 1px solid var(--green-300); }
.form__status.is-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f5c2bd; }
.form__status.is-warning { background: var(--warning-bg); color: #5c4300; border: 1px solid var(--warning-line); }
.form__status a { color: inherit; font-weight: 700; }

/* ----- Page hero (service pages) ----- */
.page-hero { padding: 48px 0 64px; }
@media (min-width: 900px) { .page-hero { padding: 80px 0 96px; } }
.page-hero__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .page-hero__grid { grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; } }
.page-hero__content .lead { margin-bottom: 32px; }
.page-hero__toc { padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-hero__toc-title { font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.page-hero__toc ul { display: grid; gap: 2px; }
.page-hero__toc a {
  display: flex; gap: 12px; align-items: center; padding: 10px; min-height: 46px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--navy-900); font-weight: 600; font-size: .95rem; line-height: 1.35;
}
.page-hero__toc a:hover { background: var(--navy-50); color: var(--navy-900); }
.page-hero__toc .icon { color: var(--green-600); }

.page-hero--green { background: linear-gradient(180deg, var(--green-50), var(--white)); }
.page-hero--sky { background: linear-gradient(180deg, var(--navy-50), var(--white)); }
.page-hero--white { background: radial-gradient(800px 400px at 50% 0%, var(--green-50), var(--white) 70%); text-align: center; }
.page-hero--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #d6e1ee; }
.page-hero--navy h1 { color: var(--white); }
.page-hero--navy .lead { color: #c9d6e6; }
.page-hero--navy .eyebrow { background: rgba(60, 194, 127, .16); color: var(--green-300); }
.page-hero--navy .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.page-hero--navy .btn--ghost:hover { background: var(--white); color: var(--navy-900); }
.page-hero--navy .page-hero__toc { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.page-hero--navy .page-hero__toc-title { color: #a9bbd1; }
.page-hero--navy .page-hero__toc a { color: var(--white); }
.page-hero--navy .page-hero__toc a:hover { background: rgba(255, 255, 255, .08); }
.page-hero--navy .page-hero__toc .icon { color: var(--green-300); }
.page-hero--navy :focus-visible { box-shadow: 0 0 0 3px var(--navy-900), 0 0 0 6px var(--green-300); }

.about-hero { max-width: 900px; }
.about-hero .lead { margin-left: auto; margin-right: auto; }

/* ----- Service details ----- */
.service-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1080px) { .service-grid--three { grid-template-columns: repeat(3, 1fr); } }
.service {
  display: flex; flex-direction: column; gap: 16px; padding: 28px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: box-shadow .3s var(--ease), border-color .3s;
}
@media (min-width: 640px) { .service { padding: 32px; } }
.service:hover { box-shadow: var(--shadow); }
.service:target { border-color: var(--green-400); box-shadow: 0 0 0 4px var(--green-100), var(--shadow); }
.service__head { display: flex; justify-content: space-between; align-items: center; }
.service__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--navy-900); color: var(--green-300); }
.service__icon .icon { width: 26px; height: 26px; }
.service__num { font-size: 2rem; font-weight: 800; color: var(--navy-100); letter-spacing: -0.04em; }
.service__title { font-size: 1.3rem; margin: 0; }
.service__desc { color: var(--muted); margin: 0; }
.service__label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); margin-bottom: 6px; }
.service__benefit { padding: 16px 18px; border-radius: var(--radius); background: var(--green-50); border-left: 4px solid var(--green-600); }
.service__benefit p:last-child { color: var(--navy-800); font-weight: 600; }
.check-list { display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green-600); margin-top: 4px; }
.service__note {
  display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px;
  background: var(--navy-50); border-radius: var(--radius-sm); font-size: .93rem; color: var(--navy-800);
}
.service__note .icon { color: var(--navy-700); margin-top: 3px; }
.service .link-arrow { margin-top: auto; }

.callout {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 24px;
  border-radius: var(--radius-lg); background: var(--navy-900); color: #d6e1ee;
}
.callout > .icon { width: 30px; height: 30px; color: var(--green-300); margin-top: 2px; }
.callout h3 { color: var(--white); }

/* ----- Particuliers : moments ----- */
.moment-grid, .goal-grid, .info-grid, .value-grid, .occasion-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .moment-grid, .goal-grid, .info-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.moment { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; }
.moment p { color: var(--muted); }
.moment__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.moment__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border-radius: 999px; background: var(--green-50); border: 1px solid var(--green-100);
  font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--green-700); line-height: 1.3;
}
.moment__links a:hover { background: var(--green-100); }

/* ----- Entreprises ----- */
.goal { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius-lg); background: var(--navy-50); }
.goal__icon { margin-bottom: 0; background: var(--white); }
.goal p { color: var(--muted); }
.audience { margin-top: 48px; padding: 28px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
@media (min-width: 640px) { .audience { padding: 36px; } }
.audience__title { margin-bottom: 20px; }
.audience__grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .audience__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .audience__grid { grid-template-columns: repeat(4, 1fr); } }
.audience__grid li { display: flex; gap: 14px; align-items: flex-start; }
.audience__icon { width: 46px; height: 46px; border-radius: 13px; margin: 0; background: var(--navy-900); color: var(--green-300); }
.audience__grid strong { display: block; color: var(--navy-900); }
.audience__grid span:not(.audience__icon) { font-size: .95rem; color: var(--muted); }
.info-card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); border-top: 4px solid var(--green-600); background: var(--white); }
.info-card__icon { background: var(--navy-50); color: var(--navy-800); }
.info-card p { color: var(--muted); }

/* ----- Églises & associations ----- */
@media (min-width: 640px) { .occasion-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .occasion-grid { grid-template-columns: repeat(6, 1fr); } .occasion { grid-column: span 2; } .occasion:nth-child(4) { grid-column: 2 / span 2; } }
.occasion { padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); text-align: center; }
.occasion__icon { margin: 0 auto 18px; border-radius: 50%; width: 60px; height: 60px; }
.occasion p { color: var(--muted); }

/* ----- À propos ----- */
.about-story { display: grid; gap: 24px; }
@media (min-width: 900px) { .about-story { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.about-story__text p { font-size: 1.1rem; color: var(--muted); }
.about-story__text p:first-child { color: var(--navy-900); font-weight: 600; font-size: 1.2rem; }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.value:nth-child(even) .value__icon { background: var(--navy-100); color: var(--navy-800); }
.value p { color: var(--muted); }

/* ----- CTA band ----- */
.cta-band { padding: 0 0 72px; }
.section--soft + .cta-band { padding-top: 72px; background: linear-gradient(var(--navy-50) 50%, var(--white) 50%); }
@media (min-width: 900px) { .cta-band { padding-bottom: 104px; } }
.cta-band__box {
  position: relative; overflow: hidden; display: grid; gap: 28px; align-items: center;
  padding: 36px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #d6e1ee;
}
.cta-band__box::before {
  content: ''; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 194, 127, .35), transparent 70%); pointer-events: none;
}
.cta-band__box > * { position: relative; }
@media (min-width: 900px) { .cta-band__box { grid-template-columns: 1.3fr auto; padding: 56px; gap: 40px; } }
.cta-band__box h2 { color: var(--white); }
.cta-band__box p { font-size: 1.1rem; color: #c9d6e6; max-width: 560px; }
.cta-band__box .btn--whatsapp { background: transparent; color: var(--white); border-color: var(--green-400); }
.cta-band__box .btn--whatsapp:hover { background: rgba(60, 194, 127, .15); }
.cta-band__box :focus-visible { box-shadow: 0 0 0 3px var(--navy-900), 0 0 0 6px var(--green-300); }
.cta-band__box--split .btn-row { margin-top: 24px; }
.cta-band__box--split .contact-cards { margin-top: 0; min-width: min(100%, 320px); }
.cta-band__box--split { grid-template-columns: 1fr; }
@media (min-width: 900px) { .cta-band__box--split:has(.contact-cards) { grid-template-columns: 1.3fr 1fr; } }

/* ----- 404 ----- */
.notfound { text-align: center; min-height: 60vh; display: grid; align-items: center; }
.notfound .lead { margin-left: auto; margin-right: auto; }
.notfound .btn-row { justify-content: center; }

/* ----- Footer ----- */
.site-footer { background: var(--navy-950); color: #b8c7da; padding: 64px 0 32px; font-size: .97rem; }
.site-footer__grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 48px; } }
.site-footer .logo, .site-footer .logo:hover { color: var(--white); }
.site-footer .logo__mark { background: var(--white); color: var(--navy-900); }
.site-footer .logo__mark::after { border-color: var(--navy-950); }
.site-footer .logo__accent { color: var(--green-300); }
.site-footer__brand p { margin: 18px 0 24px; max-width: 340px; }
.site-footer__title { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer__list { display: grid; gap: 4px; }
.site-footer__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 0; color: #b8c7da; text-decoration: none; }
.site-footer__list a:hover { color: var(--white); text-decoration: underline; }
.footer__contact .icon { color: var(--green-300); }
.footer__contact span { word-break: break-word; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--navy-950), 0 0 0 6px var(--green-300); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem;
}
.site-footer__bottom p { margin: 0; }

/* ----- Floating WhatsApp ----- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-600); color: var(--white); box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), background .2s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); background: var(--green-700); color: var(--white); }
.wa-float:focus-visible { border-radius: 50%; }

/* ----- Reveal animations (only when JS is available) ----- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .cta-band, .site-footer__brand .btn { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Cartes colorées — trois teintes en alternance :
   vert vif, vert foncé et vert-jaune (lime). Modifiez les variables ici.
   ========================================================================== */
:root {
  --card-green: #13804b;
  --card-dark: #0b4f31;
  --card-lime: #d7ef6c;
}

:is(.cat-card, .tile > a, .step, .service, .moment, .goal, .info-card, .occasion, .value) {
  /* Vert vif (par défaut) */
  --c-bg: var(--card-green);
  --c-fg: #ffffff;
  --c-text: #eef9f3;
  --c-accent: #ffffff;
  --c-deco: #d7ef6c;
  --c-icon-bg: rgba(255, 255, 255, .16);
  --c-icon-fg: #ffffff;
  --c-inset: rgba(255, 255, 255, .13);
  --c-inset-line: #d7ef6c;
  background: var(--c-bg) !important;
  border-color: transparent !important;
  color: var(--c-text);
}
/* Vert foncé */
:is(.cat-grid, .tile-grid, .steps, .service-grid, .moment-grid, .goal-grid, .info-grid, .occasion-grid, .value-grid) > :nth-child(3n + 2),
.tile-grid > :nth-child(3n + 2) > a {
  --c-bg: var(--card-dark);
  --c-fg: #ffffff;
  --c-text: #dcefe3;
  --c-accent: #d7ef6c;
  --c-deco: #d7ef6c;
  --c-icon-bg: rgba(215, 239, 108, .16);
  --c-icon-fg: #d7ef6c;
  --c-inset: rgba(255, 255, 255, .08);
  --c-inset-line: #d7ef6c;
}
/* Vert-jaune */
:is(.cat-grid, .tile-grid, .steps, .service-grid, .moment-grid, .goal-grid, .info-grid, .occasion-grid, .value-grid) > :nth-child(3n),
.tile-grid > :nth-child(3n) > a {
  --c-bg: var(--card-lime);
  --c-fg: var(--navy-900);
  --c-text: #1d3a2b;
  --c-accent: #0b4f31;
  --c-deco: #0b4f31;
  --c-icon-bg: var(--navy-900);
  --c-icon-fg: #d7ef6c;
  --c-inset: rgba(255, 255, 255, .5);
  --c-inset-line: #0b4f31;
}

:is(.cat-card, .tile > a, .step, .service, .moment, .goal, .info-card, .occasion, .value) :is(h3, .tile__title, .service__title) { color: var(--c-fg); }
:is(.cat-card, .step, .moment, .goal, .info-card, .occasion, .value) p,
.service__desc, .tile__cat { color: var(--c-text) !important; }

:is(.cat-card__icon, .tile__icon, .service__icon, .moment__icon, .goal__icon, .info-card__icon, .occasion__icon, .value__icon) {
  background: var(--c-icon-bg) !important;
  color: var(--c-icon-fg) !important;
}
.cat-card__more, .service .link-arrow, .service__label { color: var(--c-accent) !important; }
.cat-card:hover, .tile > a:hover { border-color: transparent; box-shadow: var(--shadow-lg); }
.info-card { border-top: 0 !important; }

.step__num { background: var(--c-fg); color: var(--c-bg); box-shadow: 0 0 0 6px var(--c-icon-bg); }

.service__num { color: var(--c-deco); opacity: .45; }
.service__benefit { background: var(--c-inset); border-left-color: var(--c-inset-line); }
.service__benefit p:last-child { color: var(--c-fg); }
.service .check-list .icon { color: var(--c-deco); }
.service .check-list li { color: var(--c-text); }
.service__note { background: var(--c-inset); color: var(--c-fg); }
.service__note .icon { color: var(--c-deco); }
.service:target { box-shadow: 0 0 0 4px var(--card-lime), var(--shadow); }

.moment__links a { background: var(--c-inset); border-color: transparent; color: var(--c-fg); }
.moment__links a:hover { background: var(--c-icon-bg); color: var(--c-fg); }

/* Cartes sur fond coloré : anneau de focus visible */
:is(.cat-card, .tile > a, .service, .moment) :focus-visible,
.tile > a:focus-visible { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 6px var(--c-fg); }
.cat-card:focus-within { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--navy-900); }

/* FAQ et encadré « Pensé pour les petites structures » : teinte douce */
.faq__item { background: var(--green-50); border-color: var(--green-100); }
.faq__item[open] { background: #f4fbd9; border-color: var(--card-lime); }
.audience { background: #f4fbd9; border-color: var(--card-lime); }

/* ==========================================================================
   Nos réalisations — galerie défilante et aperçu agrandi
   ========================================================================== */
.section--works { background: #f6fbe6; }
.section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.section__head--split > div { max-width: 640px; }

.works-hero__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.works-hero__cats li { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--navy-800); }

.works-note {
  display: flex; gap: 12px; align-items: flex-start; max-width: 820px; margin: 32px 0 0; padding: 16px 18px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--navy-800); font-size: .95rem;
}
.works-note .icon { color: var(--green-700); margin-top: 3px; }

/* Filtres */
.gallery__filters {
  display: flex; gap: 8px; margin: 0 -16px 24px; padding: 4px 16px 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery__filters::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .gallery__filters { flex-wrap: wrap; overflow: visible; margin: 0 0 28px; padding: 0; } }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font: inherit; font-weight: 700; font-size: .93rem; color: var(--navy-900); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--green-600); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.chip__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: .8rem; }
.chip[aria-pressed="true"] .chip__count { background: var(--card-lime); color: var(--navy-900); }

/* Piste défilante */
.gallery__viewport { position: relative; }
.gallery__track {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -16px; padding: 8px 16px 20px; scroll-padding: 0 16px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { box-shadow: inset 0 0 0 3px var(--green-600); border-radius: var(--radius); }
@media (min-width: 640px) { .gallery__track { margin: 0 -24px; padding: 8px 24px 20px; scroll-padding: 0 24px; } }
.gallery__list { display: flex; gap: 18px; }
.gallery__list > li[hidden] { display: none; }

/* Carte verticale */
.work-card { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
@media (min-width: 1100px) { .work-card { flex-basis: calc((100% - 3 * 18px) / 4); } }
.work-card__inner {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: 28px; background: var(--c-bg); color: var(--c-text);
  box-shadow: 0 14px 30px -18px rgba(11, 42, 74, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card__inner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery__list > li { --c-bg: var(--card-green); --c-fg: #fff; --c-text: #eef9f3; --c-accent: #fff; --c-inset: rgba(255, 255, 255, .16); --c-btn-bg: #fff; --c-btn-fg: var(--card-dark); }
.gallery__list > li:nth-child(3n + 2) { --c-bg: var(--card-dark); --c-text: #dcefe3; --c-accent: var(--card-lime); --c-inset: rgba(255, 255, 255, .1); --c-btn-bg: var(--card-lime); --c-btn-fg: var(--card-dark); }
.gallery__list > li:nth-child(3n) { --c-bg: var(--card-lime); --c-fg: var(--navy-900); --c-text: #1d3a2b; --c-accent: var(--card-dark); --c-inset: rgba(255, 255, 255, .55); --c-btn-bg: var(--navy-900); --c-btn-fg: #fff; }

.work-card__preview {
  position: relative; aspect-ratio: 4 / 5; margin: 12px 12px 0; border-radius: 20px; overflow: hidden;
  background: var(--c-inset);
}
.work-card__img { position: absolute; display: block; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
/* single : document entier visible, cadré en haut */
.work-card__preview--single .work-card__img { inset: 18px 18px auto; width: calc(100% - 36px); height: auto; border-radius: 6px; }
/* website : ordinateur derrière, mobile devant */
.work-card__preview--website .work-card__img--1 { left: 12px; top: 22px; width: 125%; height: auto; border-radius: 8px; }
.work-card__preview--website .work-card__img--2 { right: 14px; bottom: -40px; width: 46%; height: auto; background: transparent; box-shadow: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
/* stack : recto et verso l’un sous l’autre */
.work-card__preview--stack { display: grid; align-content: center; gap: 14px; padding: 0 18px; }
.work-card__preview--stack .work-card__img { position: relative; width: 100%; height: auto; border-radius: 10px; }
.work-card__preview--stack .work-card__img--2 { width: 88%; margin-left: 12%; }
/* grid : 4 publications */
.work-card__preview--grid { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 8px; padding: 14px; }
.work-card__preview--grid .work-card__img { position: relative; width: 100%; height: auto; border-radius: 8px; }
/* fan : trois documents en éventail */
.work-card__preview--fan .work-card__img { width: 62%; height: auto; border-radius: 6px; top: 30px; }
.work-card__preview--fan .work-card__img--1 { left: 6%; transform: rotate(-6deg); }
.work-card__preview--fan .work-card__img--2 { left: 30%; top: 46px; transform: rotate(4deg); }
.work-card__preview--fan .work-card__img--3 { left: 12%; top: auto; bottom: 18px; width: 70%; transform: rotate(-1deg); }

.work-card__badge {
  position: absolute; top: 22px; left: 22px; z-index: 2; padding: 5px 11px; border-radius: 999px;
  background: rgba(6, 26, 48, .82); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .01em;
  backdrop-filter: blur(4px);
}
.work-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 18px 20px 22px; }
.work-card__type { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); }
.work-card__title { margin: 2px 0 0; font-size: 1.15rem; color: var(--c-fg); }
.work-card__subject { margin: 0; font-size: .93rem; color: var(--c-text); }
.work-card__count { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .85rem; font-weight: 700; color: var(--c-accent); }
.work-card__btn { margin-top: auto; align-self: flex-start; background: var(--c-btn-bg); color: var(--c-btn-fg); min-height: 46px; padding: 10px 18px; margin-top: 16px; }
.work-card__btn:hover { background: var(--c-btn-bg); color: var(--c-btn-fg); filter: brightness(1.05); }
.work-card__btn:focus-visible { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 6px var(--c-fg); }

/* Flèches et points */
.gallery__arrow {
  position: absolute; top: calc(50% - 40px); z-index: 3; display: none; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--navy-900); box-shadow: var(--shadow);
  transition: opacity .2s, transform .2s var(--ease), background .2s;
}
.gallery__arrow:hover:not([disabled]) { background: var(--navy-900); color: var(--white); }
.gallery__arrow[disabled] { opacity: 0; pointer-events: none; }
.gallery__arrow--prev { left: -18px; }
.gallery__arrow--prev .icon { transform: rotate(180deg); }
.gallery__arrow--next { right: -18px; }
@media (min-width: 768px) { .gallery__arrow { display: grid; } }
@media (min-width: 1260px) { .gallery__arrow--prev { left: -32px; } .gallery__arrow--next { right: -32px; } }
html:not(.js) .gallery__arrow, html:not(.js) .gallery__dots { display: none; }

.gallery__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.gallery__dot {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%;
}
.gallery__dot::before { content: ''; width: 9px; height: 9px; border-radius: 999px; background: #b9c6d6; transition: width .25s var(--ease), background .25s; }
.gallery__dot[aria-current="true"]::before { width: 26px; background: var(--green-600); }
.gallery__dot[aria-current="true"] { width: 40px; }

/* Aperçu agrandi (modal) */
.work-modal {
  width: min(1120px, 100%); max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; padding: 0; border: 0;
  background: var(--white); color: var(--ink);
}
@media (min-width: 900px) {
  .work-modal { margin: auto; height: min(92dvh, 860px); width: min(1120px, calc(100% - 48px)); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
}
.work-modal::backdrop { background: rgba(6, 26, 48, .72); backdrop-filter: blur(3px); }
.work-modal[open] { animation: modalIn .28s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
html.has-modal { overflow: hidden; }
.work-modal__inner { display: flex; flex-direction: column; height: 100%; }
@media (min-width: 900px) { .work-modal__inner { flex-direction: row; } }
.work-modal__stage { display: flex; flex-direction: column; min-height: 0; flex: 1 1 60%; background: var(--navy-50); }
.work-modal__figure { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: grid; justify-items: center; align-items: start; overscroll-behavior: contain; }
.work-modal__figure:focus-visible { box-shadow: inset 0 0 0 3px var(--green-600); }
.work-modal__figure img { width: 100%; max-width: 900px; height: auto; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.work-modal__figure.is-small img { max-width: 420px; }
.work-modal__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--white); }
.work-modal__nav[hidden] { display: none; }
.work-modal__caption { margin: 0; font-weight: 700; color: var(--navy-900); text-align: center; }
.work-modal__step {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--white); color: var(--navy-900); cursor: pointer;
}
.work-modal__step:first-child .icon { transform: rotate(180deg); }
.work-modal__step:hover:not([disabled]) { background: var(--navy-900); color: var(--white); }
.work-modal__step[disabled] { opacity: .35; cursor: default; }
.work-modal__thumbs { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; background: var(--white); scrollbar-width: thin; }
.work-modal__thumbs:empty { display: none; }
.work-modal__thumbs button {
  flex: none; width: 64px; height: 64px; padding: 3px; border-radius: 10px; border: 2px solid transparent; background: var(--navy-50); cursor: pointer;
}
.work-modal__thumbs button[aria-current="true"] { border-color: var(--green-600); }
.work-modal__thumbs img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

.work-modal__info { position: relative; flex: 0 0 auto; padding: 20px 20px 24px; overflow-y: auto; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .work-modal__info { flex: 0 0 360px; padding: 64px 32px 32px; border-top: 0; border-left: 1px solid var(--line); } }
.work-modal__close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy-900); cursor: pointer;
}
.work-modal__close:hover { background: var(--navy-900); color: var(--white); }
@media (max-width: 899px) {
  .work-modal__close { position: fixed; top: 12px; right: 12px; z-index: 2; box-shadow: var(--shadow); }
}
.work-modal__type { margin: 0 56px 4px 0; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.work-modal__title { font-size: 1.45rem; margin: 0 0 4px; }
.work-modal__subject { color: var(--muted); margin-bottom: 14px; }
.work-modal__badge { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: #f4fbd9; color: #2f3d14; font-size: .88rem; font-weight: 600; }
.work-modal__badge .icon { color: var(--card-dark); margin-top: 2px; }
.work-modal__badge[hidden] { display: none; }
.work-modal__desc { color: var(--muted); margin: 14px 0 20px; }
.work-modal__actions { display: grid; gap: 10px; }
.work-modal__actions .link-arrow { justify-self: start; }
@media (max-width: 899px) {
  .work-modal__inner { overflow-y: auto; overscroll-behavior: contain; }
  .work-modal__stage, .work-modal__info { flex: none; }
  .work-modal__figure { overflow: visible; padding: 72px 12px 12px; }
  .work-modal__nav { position: sticky; bottom: 0; z-index: 1; }
}


/* ==========================================================================
   Site une page — sections, onglets « Services », À propos
   ========================================================================== */
#accueil, #services, #realisations, #etapes, #a-propos, #faq, #contact { scroll-margin-top: var(--header-h); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #c9d6e6; }
.section--navy h2 { color: var(--white); }

/* Onglets */
.tabs__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 720px; margin: 0 auto 32px;
  padding: 8px; border-radius: 24px; background: var(--navy-50); border: 1px solid var(--line);
}
.tabs__tab {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; text-align: left;
  border: 0; border-radius: 18px; background: transparent; color: var(--navy-900); cursor: pointer; font: inherit;
  transition: background .2s, color .2s, box-shadow .2s;
}
.tabs__tab:hover { background: var(--white); }
.tabs__tab[aria-selected="true"] { background: var(--navy-900); color: var(--white); box-shadow: var(--shadow); }
.tabs__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--green-100); color: var(--green-700); }
.tabs__tab[aria-selected="true"] .tabs__icon { background: var(--card-lime); color: var(--navy-900); }
.tabs__text { display: grid; line-height: 1.25; }
.tabs__text strong { font-size: 1rem; }
.tabs__text small { font-size: .85rem; opacity: .75; }
@media (max-width: 479px) { .tabs__icon { display: none; } .tabs__tab { justify-content: center; text-align: center; } }
html:not(.js) .tabs__list { display: none; }
.tabs__panel-title { font-size: 1.6rem; margin-bottom: 16px; }
.js .tabs__panel-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html:not(.js) .tabs__panel + .tabs__panel { margin-top: 56px; }
.tabs__panel:focus-visible { box-shadow: none; outline: none; }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tabs__intro {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-bottom: 28px; padding: 20px 24px; border-radius: var(--radius-lg); background: #f6fbe6; border: 1px solid #e3f1b8;
}
.tabs__intro p { margin: 0; max-width: 760px; color: var(--navy-800); font-size: 1.05rem; }

@media (min-width: 1080px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service__title { font-size: 1.15rem; }
.service__more { border-radius: var(--radius); background: var(--c-inset); }
.service__more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 10px 14px;
  list-style: none; cursor: pointer; font-weight: 700; color: var(--c-fg); border-radius: var(--radius);
}
.service__more summary::-webkit-details-marker { display: none; }
.service__chevron { transition: transform .2s var(--ease); }
.service__more[open] .service__chevron { transform: rotate(180deg); }
.service__more .check-list, .service__more .service__note { margin: 0 14px 14px; }
.service__more .service__note { background: rgba(255, 255, 255, .14); }

.notes { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 820px) { .notes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--navy-50); border: 1px solid var(--line); }
.note > .icon { color: var(--green-700); margin-top: 2px; }
.note strong { display: block; color: var(--navy-900); margin-bottom: 2px; }
.note p { margin: 0; font-size: .95rem; color: var(--muted); }

/* À propos */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .about { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.about__intro p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }
@media (min-width: 560px) { .value-grid--two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .value-grid--two { grid-template-columns: 1fr 1fr; } }
.value-grid--two .value { padding: 24px; }
