/* CCCG SA : feuille de style unique. Bleu marine, blanc, noir. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #dce3ea;               /* fond général : gris-bleu doux */
  --surface: #cbd5df;          /* sections alternées */
  --surface-2: #bcc8d4;
  --card: #eef2f6;             /* cartes, champs, menus */
  --ink: #0d1218;
  --ink-soft: #222c37;
  --muted: #45505d;
  --line: #b4c1ce;
  --navy: #0f2a47;
  --navy-hover: #183b61;
  --navy-deep: #0a1d33;
  --accent: #1d4f84;           /* liens et détails */
  --on-navy: #f4f7fa;
  --on-navy-muted: #b5c3d3;
  --focus: #3b7ac2;
  --logo-mark: var(--navy);
  --logo-sa: var(--ink);
  --radius: 2px;
  --shadow: 0 1px 2px rgb(15 42 71 / .06), 0 12px 32px -12px rgb(15 42 71 / .18);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.022em; font-weight: 600; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: var(--on-navy); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--muted); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.surface { background: var(--surface); }
.eyebrow { display: inline-block; font-size: .95rem; font-weight: 500; color: var(--accent); margin-bottom: 16px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-hover); color: var(--on-navy); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--on-navy); color: var(--navy-deep); }
.btn-light:hover { background: #fff; color: var(--navy-deep); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; color: inherit; }
.logo { height: 30px; width: auto; display: block; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-list > li > a:not(.btn) {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  color: var(--ink-soft); text-decoration: none; font-size: .975rem; font-weight: 450;
  border-radius: var(--radius);
}
.nav-list > li > a:not(.btn):hover, .nav-list a[aria-current="page"]:not(.btn), .nav-list a.is-active { color: var(--ink); }
.nav-list > li > a[aria-current="page"]:not(.btn), .nav-list > li > a.is-active { box-shadow: inset 0 -2px 0 var(--navy); }
.nav-phone { display: none; } /* numéro visible seulement dans le menu mobile */
.nav-phone a { color: var(--muted) !important; font-variant-numeric: tabular-nums; }
.nav-list > li:last-child { margin-left: 8px; }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: -8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink-soft); text-decoration: none; font-size: .95rem; border-radius: var(--radius); }
.sub a .ico { color: var(--accent); width: 1.3em; height: 1.3em; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  /* Le flou de l'en-tête crée un bloc conteneur qui piégeait le menu : en-tête opaque sur mobile */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .logo { height: 26px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer;
  }
  .nav-toggle .ico { width: 22px; height: 22px; }
  .nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ico-close { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; height: calc(100dvh - var(--header-h)); z-index: 60;
    background: var(--bg); border-top: 1px solid var(--line); overflow-y: auto;
    padding: 16px var(--gutter) 32px; display: none;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border: 0; margin: 24px 0 0; }
  .nav-list > li > a:not(.btn) { padding: 16px 0; font-size: 1.15rem; width: 100%; box-shadow: none !important; }
  .nav-list .btn { width: 100%; justify-content: center; padding: 16px; font-size: 1.05rem; }
  .nav-phone { display: block; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0; background: transparent; }
  .sub a { padding: 12px 0; font-size: 1rem; }
  .sub a:hover { background: transparent; }
  body.nav-open { overflow: hidden; }
}

/* Fil d'Ariane */
.crumbs { padding-top: 24px; font-size: .875rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Accueil : hero */
/* Photo en fond, texte par-dessus sur un aplat bleu marine qui se fond dans l'image */
.hero { position: relative; display: flex; align-items: center; isolation: isolate; min-height: min(calc(100dvh - var(--header-h)), 720px); background: var(--navy-deep); }
.hero-text { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding: clamp(56px, 8vw, 96px) var(--gutter); }
.hero-text > * { max-width: 560px; }
.hero .eyebrow { color: #a9c6e8; }
.hero h1 { max-width: 15ch; margin-bottom: 24px; color: #fff; }
.hero h1 span { color: var(--on-navy-muted); font-weight: 400; display: block; }
.hero .lead { margin-bottom: 36px; max-width: 46ch; color: #dbe4ee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-light { border-color: rgb(255 255 255 / .5); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / .08); }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--navy-deep); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 30%, rgb(10 29 51 / .75) 38%, rgb(10 29 51 / .2) 52%, rgb(10 29 51 / 0) 64%),
    linear-gradient(0deg, rgb(10 29 51 / .35), transparent 30%);
}
@media (min-width: 861px) {
  .hero-media img { left: auto; right: 0; width: 70%; }
}
@media (min-width: 861px) and (max-width: 1300px) {
  .hero .lead { max-width: 30ch; }
}
@media (max-width: 860px) {
  .hero { min-height: 560px; align-items: flex-end; }
  .hero-text { padding: 140px var(--gutter) 40px; }
  .hero-media::after { background: linear-gradient(0deg, rgb(10 29 51 / .95) 0%, rgb(10 29 51 / .8) 45%, rgb(10 29 51 / .3) 100%); }
}
@media (max-width: 600px) {
  .hero-text { padding-top: 160px; }
}

/* Bandeau de crédibilité */
.facts { background: var(--navy); border-top: 1px solid rgb(255 255 255 / .12); }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 2px; }
.fact + .fact { padding-left: 28px; border-left: 1px solid rgb(255 255 255 / .14); }
.fact strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; color: var(--on-navy); }
.fact span { color: var(--on-navy-muted); font-size: .925rem; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid rgb(255 255 255 / .14); }
}

/* Présentation + valeurs */
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.intro-grid .prose p { max-width: 62ch; color: var(--ink-soft); }
.values { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.value { padding: 24px 0 24px; border-bottom: 1px solid var(--line); }
.value:nth-child(odd) { padding-right: 20px; }
.value:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.value h3 { font-size: 1.15rem; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }
.values-caption { margin-top: 20px; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .values { grid-template-columns: 1fr; }
  .value:nth-child(odd), .value:nth-child(even) { padding: 20px 0; border-left: 0; }
}

/* Prestations : grille asymétrique */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); }
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; min-height: 240px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; overflow: hidden;
  transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .ico { width: 32px; height: 32px; color: var(--accent); margin-bottom: auto; }
.tile h3 { margin: 24px 0 0; font-size: 1.3rem; }
.tile p { margin: 0; color: var(--muted); font-size: .975rem; }
.tile-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .925rem; font-weight: 500; color: var(--accent); }
.tile-more .ico { width: 16px; height: 16px; margin: 0; color: currentColor; transition: transform .25s var(--ease); }
.tile:hover .tile-more .ico { transform: translateX(4px); }
.tile-feature { grid-row: span 2; color: var(--on-navy); border: 0; background: var(--navy-deep); justify-content: flex-end; min-height: 500px; }
.tile-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .8s var(--ease), opacity .4s; }
.tile-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 29 51 / .15) 20%, rgb(10 29 51 / .92) 78%); }
.tile-feature > *:not(img) { position: relative; z-index: 1; }
.tile-feature:hover { color: var(--on-navy); }
.tile-feature:hover img { transform: scale(1.03); }
.tile-feature h3 { color: var(--on-navy); font-size: 1.65rem; }
.tile-feature p { color: var(--on-navy-muted); max-width: 40ch; }
.tile-feature .ico, .tile-feature .tile-more { color: var(--on-navy); }
.tile-feature .badge { align-self: flex-start; margin-bottom: auto; font-size: .8rem; letter-spacing: .04em; padding: 6px 10px; border: 1px solid rgb(255 255 255 / .35); border-radius: var(--radius); color: var(--on-navy); }
.tile-navy { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.tile-navy:hover { color: var(--on-navy); border-color: var(--navy-hover); background: var(--navy-hover); }
.tile-navy h3 { color: var(--on-navy); }
.tile-navy p { color: var(--on-navy-muted); }
.tile-navy .ico, .tile-navy .tile-more { color: var(--on-navy); }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-feature { grid-column: span 2; grid-row: auto; min-height: 380px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile-feature { grid-column: auto; min-height: 340px; }
  .tile { min-height: 0; }
}

/* Direction (accueil) */
.director { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.director-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.director-media img { width: 100%; height: 100%; object-fit: cover; }
.director-quote { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.35; letter-spacing: -.015em; font-weight: 450; margin: 0 0 32px; color: var(--ink); max-width: 30ch; }
.person { display: flex; flex-direction: column; gap: 2px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 520px; }
.person strong { font-size: 1.1rem; font-weight: 600; }
.person span { color: var(--muted); font-size: .95rem; }
.director .btn { margin-top: 32px; }
@media (max-width: 860px) {
  .director { grid-template-columns: 1fr; }
  .director-media { aspect-ratio: 16 / 10; }
}

/* Pour qui */
.audience { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.audience li { list-style: none; padding: 28px 24px 0 0; }
.audience li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.audience strong { display: block; font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.audience span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .audience { grid-auto-flow: row; grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .audience li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) {
  .audience { grid-template-columns: 1fr; }
  .audience li, .audience li + li { padding: 20px 0 0; border-left: 0; }
}

/* Bandeau contact */
.cta-band { background: var(--navy); color: var(--on-navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; padding-block: clamp(48px, 6vw, 80px); flex-wrap: wrap; }
.cta-band h2 { color: var(--on-navy); margin-bottom: 10px; }
.cta-band p { color: var(--on-navy-muted); max-width: 52ch; margin: 0; }
.cta-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cta-phone:hover { color: #fff; text-decoration: underline; }

/* Pied de page */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: .95rem; --logo-mark: #f4f7fa; --logo-sa: #f4f7fa; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.logo-footer { height: 28px; margin-bottom: 20px; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-navy); font-weight: 500; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-asr { font-size: .875rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); padding-block: 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Pages intérieures : en-tête */
.page-head { padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-head h1 { margin-bottom: 20px; max-width: 18ch; }
.page-head .lead { margin: 0; }
.page-head-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
.page-head-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 20px; }
@media (max-width: 860px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .page-head-media { aspect-ratio: 16 / 9; }
}

/* Pages prestations : contenu + encadré */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.service-body > p { color: var(--ink-soft); max-width: 65ch; }
.service-body h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); margin-top: 8px; }
.checks { list-style: none; padding: 0; margin: 28px 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.checks .ico { color: var(--accent); width: 20px; height: 20px; margin-top: 4px; }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }
.note { padding: 24px 28px; background: var(--surface); border-left: 3px solid var(--navy); margin: 0 0 40px; max-width: 65ch; }
.note p { margin: 0; color: var(--ink-soft); }
.note p + p { margin-top: 8px; }
.note strong { color: var(--ink); }

.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.aside-card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.aside-card p { color: var(--muted); font-size: .95rem; }
.aside-card .contact-lines { display: grid; gap: 10px; margin: 20px 0 24px; }
.aside-card .contact-lines a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.aside-card .contact-lines a:hover { color: var(--accent); }
.aside-card .contact-lines .ico { color: var(--accent); }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.aside-links li:last-child a { border-bottom: 0; padding-bottom: 0; }
.aside-links a:hover { color: var(--ink); }
.aside-links .ico { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 960px) {
  .service-layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) { .aside { grid-template-columns: 1fr; } }

/* Page prestations (liste) */
.service-rows { display: grid; grid-auto-rows: 1fr; border-top: 2px solid var(--ink); } /* lignes de même hauteur */
.service-row { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.service-row:hover { color: var(--ink); background: var(--surface); box-shadow: -16px 0 0 var(--surface), 16px 0 0 var(--surface); }
.service-row .ico { width: 32px; height: 32px; color: var(--accent); }
.service-row h2 { font-size: 1.35rem; margin: 0; }
.service-row p { margin: 0; color: var(--muted); }
.service-row .go { width: 20px; height: 20px; color: var(--ink); transition: transform .25s var(--ease); }
.service-row:hover .go { transform: translateX(4px); }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 40px 1fr auto; row-gap: 6px; }
  .service-row p { grid-column: 2 / 3; }
  .service-row .go { grid-row: 1; grid-column: 3; }
}

/* Le cabinet */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split .prose p { color: var(--ink-soft); max-width: 62ch; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.creds li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.creds .k { color: var(--muted); font-size: .925rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .creds li { grid-template-columns: 1fr; gap: 2px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 28px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.contact-item .ico-box { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface); border-radius: var(--radius); color: var(--accent); }
.contact-item .ico-box .ico { width: 22px; height: 22px; }
.contact-item h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin: 0 0 4px; }
.contact-item p { margin: 0; font-size: 1.1rem; }
.contact-item a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: var(--accent); text-decoration: underline; }
.contact-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); margin-top: 8px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-photo-caption { font-size: .875rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { padding: clamp(24px, 4vw, 40px); background: var(--surface); border-radius: var(--radius); }
.form-card h2 { font-size: 1.5rem; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .925rem; font-weight: 500; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card);
  border: 1px solid #a9b7c6; border-radius: var(--radius); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: .875rem; margin: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .925rem; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.alert { padding: 16px 20px; border-radius: var(--radius); margin: 24px 0 0; display: flex; gap: 12px; align-items: flex-start; }
.alert .ico { width: 22px; height: 22px; margin-top: 2px; }
.alert p { margin: 0; }
.alert-ok { background: #e7f3ec; color: #14532d; }
.alert-err { background: #fdecea; color: #8a1c12; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.map { margin-top: 0; aspect-ratio: 21 / 9; background: var(--surface-2); border-top: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35); }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* Textes légaux */
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal p, .legal li { color: var(--ink-soft); }

/* Apparition au défilement (désactivée si mouvement réduit) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero-text > * { animation: rise .8s var(--ease) both; }
  .hero-text > *:nth-child(2) { animation-delay: .06s; }
  .hero-text > *:nth-child(3) { animation-delay: .12s; }
  .hero-text > *:nth-child(4) { animation-delay: .18s; }
  .hero-media img { animation: settle 1.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ===== Ajustements mobile ===== */
.mobile-bar { display: none; }

@media (max-width: 820px) {
  /* Barre d'action fixe en bas d'écran */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgb(15 42 71 / .25);
  }
  .mobile-bar .btn { justify-content: center; padding: 13px 12px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.nav-open .mobile-bar { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding-block: 56px; }
  .section-tight { padding-block: 40px; }
  .page-head { padding-block: 24px 40px; }
  .section-head { margin-bottom: 32px; }

  /* Accueil */
  .hero h1 { margin-bottom: 16px; }
  .hero .lead { margin-bottom: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .tile { padding: 24px; }
  .tile h3 { margin-top: 16px; }
  .tile-feature { min-height: 320px; }
  .director-quote { font-size: 1.3rem; }
  .director .btn { width: 100%; justify-content: center; }

  /* Bandeau contact */
  .cta-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 20px; }
  .cta-actions .btn { justify-content: center; }
  .cta-phone { justify-content: center; }

  /* Pages intérieures */
  .page-head-icon { width: 36px; height: 36px; margin-bottom: 14px; }
  .page-head-media { aspect-ratio: 3 / 2; }
  .checks li { padding: 14px 0; }
  .note { padding: 20px; }
  .aside-card { padding: 22px; }
  .service-row { padding: 24px 0; }
  .service-row:hover { background: transparent; box-shadow: none; }

  /* Pied de page : cibles tactiles plus grandes */
  .footer-grid { padding-block: 48px 32px; }
  .footer-links { gap: 2px; }
  .footer-links a, .footer-contact a { padding-block: 8px; }
}

/* Contact : sur mobile, le formulaire passe avant la photo */
@media (max-width: 900px) {
  .contact-grid { gap: 32px; }
  .contact-info { display: contents; }
  .contact-info > .contact-item { order: 1; }
  .form-card { order: 2; }
  .contact-info > figure { order: 3; }
  .contact-grid > * { min-width: 0; }
}
@media (max-width: 600px) {
  .form-card { margin-inline: calc(var(--gutter) * -1); padding: 28px var(--gutter); }
  .field input, .field select, .field textarea { font-size: 16px; } /* évite le zoom automatique sur iPhone */
  .form-actions .btn { width: 100%; justify-content: center; }
  .contact-item p { font-size: 1.05rem; }
}


/* Navigation : deux onglets déroulants pour les prestations */
.nav-group {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: none; border: 0; border-radius: var(--radius); cursor: pointer;
  font: inherit; font-size: .975rem; font-weight: 450; color: var(--ink-soft);
}
.nav-group:hover, .has-sub:hover .nav-group, .has-sub:focus-within .nav-group, .nav-group.is-active { color: var(--ink); }
.nav-group.is-active { box-shadow: inset 0 -2px 0 var(--navy); }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.has-sub:hover .chev, .nav-group[aria-expanded="true"] .chev { transform: translateY(1px) rotate(-135deg); }
.has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 820px) {
  .nav-group { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 1.15rem; box-shadow: none !important; cursor: default; }
  .nav-group .chev { display: none; }
}
@media (min-width: 821px) {
  .sub { min-width: max-content; }
  .sub a { white-space: nowrap; padding-right: 20px; }
}

/* Blocs propres à chaque prestation */
.service-body > h2 { margin-top: 56px; }
.service-body > h2:first-child, .service-body > .seal + h2 { margin-top: 0; }
.service-body h3 { font-size: 1.08rem; margin-bottom: .4em; }

/* Audit : sceau d'agrément */
.seal { display: flex; gap: 24px; align-items: center; background: var(--navy); color: var(--on-navy-muted); padding: 28px; margin-bottom: 56px; }
.seal p { margin: 0; max-width: 60ch; }
.seal .seal-title { color: var(--on-navy); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.seal-mark { flex: none; width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--on-navy-muted); display: grid; place-items: center; box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 6px var(--on-navy-muted); }
.seal-mark span { color: var(--on-navy); font-weight: 600; letter-spacing: .12em; font-size: 1rem; }
@media (max-width: 560px) { .seal { flex-direction: column; align-items: flex-start; padding: 24px; } .seal-mark { width: 72px; height: 72px; } }


/* Audit : comparaison des contrôles */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.compare-col { background: var(--card); padding: 28px; border-top: 3px solid var(--navy); }
.compare-col + .compare-col { border-top-color: var(--accent); }
.compare-when { color: var(--ink-soft); font-size: .98rem; }
.compare ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: .98rem; }
.compare li + li { margin-top: 6px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* Comptabilité : deux formules */
.formulas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.formula { padding: 28px; background: var(--card); }
.formula p { margin: 0; color: var(--ink-soft); }
.formula:first-child { background: var(--navy); }
.formula:first-child h3 { color: var(--on-navy); }
.formula:first-child p { color: var(--on-navy-muted); }
.formula .formula-tag { display: inline-block; font-size: .85rem; font-weight: 500; color: var(--accent); border: 1px solid var(--line); padding: 2px 10px; margin-bottom: 16px; }
.formula:first-child .formula-tag { color: var(--on-navy); border-color: var(--on-navy-muted); }
@media (max-width: 700px) { .formulas { grid-template-columns: 1fr; } }

/* Comptabilité : l'année comptable, façon grand livre */
.ledger { margin: 28px 0 32px; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); background: var(--card); }
.ledger-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 18px 24px; }
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-row p { margin: 0; }
.ledger-when { font-weight: 600; color: var(--navy); }
.ledger-what { color: var(--ink-soft); }
@media (max-width: 600px) { .ledger-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; } }

/* Salaires : fiche de salaire */
.payslip-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; align-items: start; }
.payslip-grid p { color: var(--ink-soft); }
.payslip { margin: 0; background: var(--card); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.payslip figcaption { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: var(--on-navy); padding: 14px 20px; font-weight: 600; }
.payslip-ex { font-size: .8rem; font-weight: 500; color: var(--on-navy-muted); border: 1px solid var(--on-navy-muted); padding: 1px 8px; }
.payslip table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.payslip th, .payslip td { padding: 10px 20px; text-align: left; font-weight: 400; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.payslip td { text-align: right; white-space: nowrap; padding-left: 8px; }
.payslip td:nth-child(2) { color: var(--muted); font-size: .85rem; }
.payslip .payslip-gross th, .payslip .payslip-gross td { color: var(--ink); font-weight: 500; }
.payslip tfoot th, .payslip tfoot td { color: var(--ink); font-weight: 600; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
.payslip .payslip-note { font-size: .82rem; color: var(--muted); margin: 0; padding: 12px 20px 16px; }
@media (max-width: 860px) { .payslip-grid { grid-template-columns: 1fr; } .payslip { max-width: 420px; } }
@media (max-width: 400px) { .payslip th, .payslip td { padding-inline: 12px; } }

/* Salaires : rythme */
.rhythm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.rhythm-col { border-top: 3px solid var(--navy); padding-top: 18px; }
.rhythm-col:nth-child(2) { border-top-color: var(--accent); }
.rhythm-col:nth-child(3) { border-top-color: var(--muted); }
.rhythm ul { list-style: none; padding: 0; margin: 0; }
.rhythm li { padding: 8px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .98rem; }
@media (max-width: 760px) { .rhythm { grid-template-columns: 1fr; gap: 28px; } }

/* Fiscalité : profils */
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.profile { background: var(--card); padding: 28px 24px; }
.profile .profile-num { font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--accent); margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.profile ul { list-style: none; padding: 0; margin: 0; }
.profile li { padding: 7px 0; color: var(--ink-soft); font-size: .97rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .profiles { grid-template-columns: 1fr; } }

/* Fiscalité : échéances */
.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 32px; }
.date { background: var(--navy); color: var(--on-navy-muted); padding: 24px; }
.date p { margin: 0; font-size: .95rem; }
.date .date-big { color: var(--on-navy); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 12px; }
@media (max-width: 760px) { .dates { grid-template-columns: 1fr; } }

/* Juridique : cycle de vie */
.lifecycle { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lifecycle li { background: var(--card); display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.lifecycle p { margin: 0; padding: 0 18px 20px; color: var(--ink-soft); font-size: .95rem; }
.lifecycle .lifecycle-step { background: var(--navy); color: var(--on-navy); font-weight: 600; font-size: 1rem; padding: 12px 30px 12px 18px; margin-bottom: 16px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.lifecycle li:nth-child(2) .lifecycle-step { background: var(--navy-hover); }
.lifecycle li:nth-child(3) .lifecycle-step { background: var(--accent); }
.lifecycle li:nth-child(4) .lifecycle-step { background: var(--ink-soft); }
@media (max-width: 760px) {
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle .lifecycle-step { clip-path: none; }
}

/* Juridique : tableau SA / Sàrl */
.table-wrap { overflow-x: auto; margin: 24px 0 32px; }
.vs { width: 100%; border-collapse: collapse; background: var(--card); font-size: .97rem; }
.vs th, .vs td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.vs thead th, .vs thead td { background: var(--navy); color: var(--on-navy); font-weight: 600; }
.vs tbody th { font-weight: 500; color: var(--ink); width: 34%; }
.vs tbody td { color: var(--ink-soft); }
.vs tbody tr:last-child td { text-align: center; }
@media (max-width: 560px) { .vs { font-size: .9rem; } .vs th, .vs td { padding: 12px; } }
