/* ============================================================
   Hydreau Services - Design system « Deep Water »
   Abysse #04121f · pétrole #0e3a55 · turquoise #14b8a6 · aqua #5eead4 · cuivre #d08a4e
   Sora (titres) · Inter (texte) · Instrument Serif (accents)
   ============================================================ */

:root {
  --c-ink: #04121f;
  --c-ink-2: #071c2e;
  --c-navy: #0a2540;
  --c-petrol: #0e3a55;
  --c-teal: #14b8a6;
  --c-teal-d: #0f766e;
  --c-aqua: #5eead4;
  --c-cyan: #22d3ee;
  --c-copper: #d08a4e;
  --c-copper-l: #e7a86f;
  --c-copper-d: #a85f2b;
  --c-bg: #f5f9fb;
  --c-bg-alt: #eaf2f5;
  --c-surface: #ffffff;
  --c-text: #0b1f2e;
  --c-muted: #4a6172;
  --c-border: #d6e3e9;
  --c-inv: #e8f4f7;
  --c-inv-muted: rgba(232, 244, 247, .74);

  --f-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --grad-water: linear-gradient(120deg, #5eead4 0%, #22d3ee 45%, #14b8a6 100%);
  --grad-copper: linear-gradient(135deg, #f2c08e 0%, #d99558 50%, #c07436 100%);
  --grad-deep: linear-gradient(160deg, #0e3a55 0%, #071c2e 55%, #04121f 100%);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --sh-sm: 0 2px 10px rgba(4, 18, 31, .06);
  --sh-md: 0 16px 40px -14px rgba(4, 18, 31, .2);
  --sh-lg: 0 34px 80px -28px rgba(4, 18, 31, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .2s ease;
  --t-base: .45s var(--ease);
  --maxw: 1240px;
  --header-h: 78px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.72; color: var(--c-text);
  background: var(--c-bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-teal-d); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-petrol); }
main :is(p, dd, td, .check-list li, .accordion-content li) a:not(.btn):not(.card-link) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(15, 118, 110, .4);
}
main :is(p, dd, td, li) a:not(.btn):hover { text-decoration-color: currentColor; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-aqua); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(94, 234, 212, .45); color: var(--c-ink); }
address { font-style: normal; }

/* Listes de contenu sans classe (rédactionnel) */
main :not(nav) > ul:not([class]), main :not(nav) > ol:not([class]) { padding-left: 1.25rem; margin-block: .6rem 1rem; }
main :not(nav) > ul:not([class]) { list-style: disc; }
main :not(nav) > ol:not([class]) { list-style: decimal; }
main :not(nav) > :is(ul, ol):not([class]) > li { margin-bottom: .35rem; color: var(--c-muted); }
main :not(nav) > :is(ul, ol):not([class]) > li::marker { color: var(--c-teal); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display); color: var(--c-text); font-weight: 600;
  line-height: 1.14; letter-spacing: -.025em; text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 4.1rem); letter-spacing: -.038em; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.85rem); letter-spacing: -.032em; }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.36rem); letter-spacing: -.015em; line-height: 1.28; }
h4 { font-size: 1.05rem; }
:is(h1, h2, h3) em, .serif-em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; }
p { color: var(--c-muted); margin-bottom: 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--c-text); font-weight: 600; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.26rem); line-height: 1.62; max-width: 62ch; }
.subtitle { font-size: 1.08rem; max-width: 64ch; margin-inline: auto; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem;
  font-family: var(--f-body); font-size: .76rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--c-teal-d);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-copper); flex: none; }
.gradient-text {
  background: linear-gradient(120deg, #0e7490, #14b8a6 55%, #c07436);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:is(.section-dark, .hero, .page-hero, .cta-band) .gradient-text { background-image: var(--grad-water); }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container-narrow { max-width: 880px; }
.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(2rem, 4.5vw, 3.25rem); }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-ink); color: var(--c-inv); isolation: isolate; }
.section-dark::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 8% 0%, rgba(20, 184, 166, .18), transparent 60%),
    radial-gradient(50% 60% at 96% 100%, rgba(208, 138, 78, .12), transparent 60%);
}
.section-dark :is(h1, h2, h3, h4, strong) { color: #fff; }
.section-dark :is(p, .lead, .subtitle) { color: var(--c-inv-muted); }
.section-dark .eyebrow { color: var(--c-aqua); }
.section-header { max-width: 800px; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.section-header .subtitle, .section-header h2 + p { margin-top: 1rem; }
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-2 { column-gap: clamp(2rem, 5vw, 4.5rem); }
}
.align-center { align-items: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 1.55rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: .97rem; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform var(--t-base), box-shadow var(--t-base), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn svg { flex: none; }
.btn-primary { background: var(--grad-copper); color: #1b0f05; box-shadow: 0 12px 30px -12px rgba(208, 138, 78, .75); }
.btn-primary:hover { color: #1b0f05; transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(208, 138, 78, .85); }
.btn-dark { background: var(--grad-deep); color: #fff; }
.btn-dark:hover { color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--c-text); border-color: rgba(11, 31, 46, .18); background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--c-text); border-color: var(--c-teal); transform: translateY(-2px); }
.btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .04); }
.btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
:is(.page-hero, .hero, .section-dark, .cta-band, .site-footer, .drawer) .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
:is(.page-hero, .hero, .section-dark, .cta-band, .site-footer, .drawer) .btn-ghost:hover { color: #fff; border-color: var(--c-aqua); background: rgba(255, 255, 255, .12); }
:is(.section, .section-alt):not(.section-dark) .btn-outline:not(.cta-band .btn-outline) { color: var(--c-text); border-color: rgba(11, 31, 46, .25); }
.btn-lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .88rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.5rem, 3vw, 2.2rem); }
:is(.section-header, .text-center, .cta-band) .hero-cta { justify-content: center; }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Cartes ---------- */
.card {
  position: relative; display: block; height: 100%; padding: clamp(1.4rem, 2.6vw, 2rem);
  border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm); color: inherit; overflow: hidden; isolation: isolate;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(20, 184, 166, .13), transparent 45%);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(20, 184, 166, .38); }
.card:hover::after { opacity: 1; }
.card :is(h3, h4) { margin-bottom: .55rem; }
.card p { font-size: .98rem; line-height: 1.65; }
.card-num {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
  font-family: var(--f-display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; color: var(--c-copper-d);
}
.card-num::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.card-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem; border-radius: 16px;
  background: rgba(20, 184, 166, .1); color: var(--c-teal-d); border: 1px solid rgba(20, 184, 166, .22);
}
.card-link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem;
  font-weight: 600; font-size: .93rem; color: var(--c-teal-d); text-decoration: none;
}
.card-link::after { content: '→'; transition: transform var(--t-fast); }
a.card { text-decoration: none; }
:is(a.card, .card):hover .card-link::after { transform: translateX(4px); }
a.card-link-block { display: flex; flex-direction: column; }
a.card-link-block h3 { color: var(--c-text); }
a.card-link-block .card-link { margin-top: auto; padding-top: 1.1rem; }
.section-alt .card { background: #fff; }
.section-dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section-dark .card p { color: var(--c-inv-muted); }
.section-dark .card-link { color: var(--c-aqua); }
.section-dark .card-num { color: var(--c-copper-l); }

/* ---------- Médias ---------- */
.media-card { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--c-ink); box-shadow: var(--sh-lg); isolation: isolate; }
.media-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1.25rem 1rem;
  font-size: .88rem; line-height: 1.45; color: rgba(255, 255, 255, .92);
  background: linear-gradient(to top, rgba(4, 18, 31, .88), transparent);
}
a.media-link { display: block; height: 100%; color: inherit; text-decoration: none; border-radius: var(--r-lg); }
:is(a.media-link:hover, .media-card:hover) img { transform: scale(1.045); }
.full-bleed-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.full-bleed-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Listes ---------- */
.check-list { display: grid; gap: .55rem; margin-top: 1.2rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--c-text); line-height: 1.6; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: rgba(20, 184, 166, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.section-dark .check-list li { color: var(--c-inv); }
.section-dark .check-list li::before {
  background: rgba(94, 234, 212, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pill-list li {
  padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--c-border); background: rgba(255, 255, 255, .8);
  font-size: .9rem; font-weight: 500; color: var(--c-text); line-height: 1.3; transition: border-color var(--t-fast), transform var(--t-fast);
}
.pill-list li:hover { border-color: var(--c-teal); transform: translateY(-1px); }
.section-dark .pill-list li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: var(--c-inv); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: clamp(1.4rem, 3vw, 2rem); }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 22px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; }
.timeline::before { background: var(--c-border); }
.timeline::after { background: linear-gradient(to bottom, var(--c-teal), var(--c-copper)); transform-origin: top; transform: scaleY(var(--tl, 1)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); align-items: start; }
.timeline-item h3 { margin-bottom: .35rem; padding-top: .5rem; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: #fff; background: var(--grad-deep);
  box-shadow: 0 0 0 6px var(--c-bg), 0 10px 22px -8px rgba(4, 18, 31, .45);
}
.section-alt .step-num { box-shadow: 0 0 0 6px var(--c-bg-alt), 0 10px 22px -8px rgba(4, 18, 31, .45); }
.card .step-num { margin-bottom: 1rem; box-shadow: 0 10px 22px -8px rgba(4, 18, 31, .45); }
.section-dark .step-num { background: var(--grad-water); color: var(--c-ink); box-shadow: 0 0 0 6px var(--c-ink); }
.section-dark .timeline::before { background: rgba(255, 255, 255, .12); }

/* ---------- En bref (réponse directe, AEO) ---------- */
.tldr {
  position: relative; padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.3rem); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(20, 184, 166, .07), rgba(208, 138, 78, .06)), #fff;
  border: 1px solid var(--c-border); box-shadow: var(--sh-md); overflow: hidden;
}
.tldr::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--c-teal), var(--c-copper)); }
.tldr-label {
  display: inline-flex; align-items: center; margin-bottom: .75rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--c-ink); color: var(--c-aqua); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.tldr p { font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.7; color: var(--c-text); }
.page-hero + .section-tight:has(.tldr) { margin-top: clamp(-5rem, -7vw, -2.5rem); padding-top: 0; z-index: 3; }

/* ---------- Encadrés ---------- */
.callout { position: relative; margin-block: 1.5rem; padding: 1.25rem 1.4rem; border-radius: var(--r-md); background: rgba(20, 184, 166, .07); border: 1px solid rgba(20, 184, 166, .24); }
.callout strong { display: block; margin-bottom: .35rem; font-family: var(--f-display); font-weight: 600; }
.callout p { font-size: .97rem; color: var(--c-text); }
.callout-lab { background: linear-gradient(135deg, rgba(208, 138, 78, .1), rgba(20, 184, 166, .06)); border-color: rgba(208, 138, 78, .32); }
.callout-lab strong::before { content: ''; display: inline-block; width: .6rem; height: .6rem; margin-right: .55rem; border-radius: 50%; background: var(--c-copper); vertical-align: .08em; }
.section-dark .callout { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.section-dark .callout p { color: var(--c-inv); }

/* ---------- Tableaux ---------- */
.table-wrap { margin-block: 1.5rem; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--c-border); background: #fff; box-shadow: var(--sh-sm); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.data-table :is(th, td) { padding: .95rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); line-height: 1.55; }
.data-table thead th { background: var(--c-ink); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .86rem; letter-spacing: .02em; }
.data-table tbody tr:nth-child(even) { background: rgba(234, 242, 245, .55); }
.data-table tbody tr:last-child :is(td, th) { border-bottom: 0; }
.data-table td { color: var(--c-muted); }
.data-table :is(td:first-child, tbody th) { color: var(--c-text); font-weight: 600; }

/* ---------- Accordéon (FAQ) ---------- */
.accordion { display: grid; gap: .75rem; }
.accordion + h2, .accordion + .section-header { margin-top: 3rem; }
.accordion-item { border-radius: var(--r-md); background: #fff; border: 1px solid var(--c-border); transition: border-color var(--t-fast), box-shadow var(--t-base); }
.accordion-item.active { border-color: rgba(20, 184, 166, .45); box-shadow: var(--sh-md); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem;
  text-align: left; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; line-height: 1.4; color: var(--c-text);
}
.accordion-trigger::after {
  content: ''; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(20, 184, 166, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--t-base), background-color var(--t-fast);
}
.accordion-item.active .accordion-trigger::after { transform: rotate(45deg); background-color: rgba(208, 138, 78, .2); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.accordion-content > * { padding-inline: 1.35rem; }
.accordion-content > :last-child { padding-bottom: 1.25rem; margin-bottom: 0; }
.accordion-content p { font-size: .98rem; }
.no-js .accordion-content { max-height: none; }
.section-dark .accordion-item { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section-dark .accordion-trigger { color: #fff; }

/* ---------- Page hero (intérieur) ---------- */
.page-hero {
  position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, 84svh, 880px);
  padding-block: calc(var(--header-h) + 2.5rem) clamp(5rem, 10vw, 8rem);
  color: #fff; background: var(--c-ink); overflow: hidden; isolation: isolate;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transform-origin: 62% 40%; will-change: transform; }
.page-hero-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 18, 31, .93) 0%, rgba(4, 18, 31, .74) 40%, rgba(4, 18, 31, .28) 78%, rgba(4, 18, 31, .4) 100%),
    linear-gradient(0deg, rgba(4, 18, 31, .96) 0%, rgba(4, 18, 31, 0) 48%),
    radial-gradient(55% 60% at 88% 18%, rgba(20, 184, 166, .24), transparent 70%);
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: rgba(232, 244, 247, .88); margin-top: 1.25rem; }
.page-hero .eyebrow { color: var(--c-aqua); }
.page-hero p:not(.lead) { color: rgba(232, 244, 247, .8); }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: 1.6rem; }
.hero-points li {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem .45rem .5rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px);
  font-size: .9rem; color: #fff; line-height: 1.3;
}
.hero-points li::before {
  content: ''; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304121f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(120deg, #5eead4, #14b8a6);
}
.page-hero-404 { min-height: 100svh; align-items: center; }

/* Fil d'Ariane */
.breadcrumb { margin-bottom: clamp(1.4rem, 4vw, 2.4rem); font-size: .84rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .55rem; color: rgba(232, 244, 247, .62); }
.breadcrumb li + li::before { content: ''; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.breadcrumb a { color: rgba(232, 244, 247, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
  padding: clamp(2.6rem, 6vw, 4.6rem) clamp(1.4rem, 5vw, 4rem); border-radius: var(--r-xl);
  background: var(--c-ink); box-shadow: var(--sh-lg);
}
.cta-band::before {
  content: ''; position: absolute; inset: -45%; z-index: -2; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(20, 184, 166, .45), rgba(34, 211, 238, .12), rgba(208, 138, 78, .38), transparent);
  filter: blur(60px); animation: spin-slow 22s linear infinite;
}
.cta-band::after {
  content: ''; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90% 130% at 50% 0%, rgba(14, 58, 85, .78), rgba(4, 18, 31, .96) 72%);
}
.cta-band h2 { color: #fff; max-width: 26ch; margin-inline: auto; }
.cta-band p { color: var(--c-inv-muted); max-width: 60ch; margin: 1rem auto 0; }
@keyframes spin-slow { to { transform: rotate(1turn); } }

.related-more { margin-top: 1.8rem; text-align: center; color: var(--c-muted); font-size: .98rem; }

/* ---------- Sommaire, glossaire, stats ---------- */
.toc { margin-block: 1.5rem 2.5rem; padding: 1.5rem 1.75rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--sh-sm); }
.toc :is(h2, h3, p) { margin-bottom: .8rem; font-size: .76rem; font-family: var(--f-body); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-copper-d); }
.toc ol { display: grid; gap: .5rem 2rem; counter-reset: toc; }
@media (min-width: 720px) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toc li { counter-increment: toc; display: flex; gap: .7rem; line-height: 1.45; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-display); font-size: .8rem; color: var(--c-teal-d); padding-top: .15rem; }
.toc a { color: var(--c-text); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--c-teal-d); }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.glossary { display: grid; gap: .9rem; }
@media (min-width: 900px) { .container:not(.container-narrow) > .glossary, .glossary.glossary-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.glossary-item { padding: 1.3rem 1.4rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--c-border); transition: border-color var(--t-fast), box-shadow var(--t-base); }
.glossary-item:target { border-color: var(--c-copper); box-shadow: 0 0 0 4px rgba(208, 138, 78, .2); }
.glossary dt { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; color: var(--c-text); margin-bottom: .4rem; }
.glossary dd { color: var(--c-muted); font-size: .97rem; line-height: 1.66; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; }
.stat-num {
  display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1;
  letter-spacing: -.045em; background: var(--grad-water); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; margin-top: .55rem; font-size: .92rem; color: var(--c-inv-muted); line-height: 1.45; }

/* ---------- Widget devis (iframe plateforme du groupe) ---------- */
.devis-embed { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--c-border); box-shadow: var(--sh-lg); }
.devis-embed iframe { display: block; width: 100%; min-height: 1180px; border: 0; }
@media (max-width: 640px) { .devis-embed iframe { min-height: 1480px; } }
.embed-loader { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 1rem; background: #fff; transition: opacity .4s ease, visibility .4s; }
.embed-loader.hidden { opacity: 0; visibility: hidden; }
.embed-loader .spin { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--c-border); border-top-color: var(--c-teal); animation: spin-slow .9s linear infinite; }

/* ---------- Pages légales ---------- */
.legal-content h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 2.4rem 0 .8rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 1rem; }
.legal-content dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem 1.5rem; margin: 1rem 0; }
@media (min-width: 720px) { .legal-content dl { grid-template-columns: 220px minmax(0, 1fr); } }
.legal-content dt { font-weight: 600; color: var(--c-text); }
.legal-content dd { color: var(--c-muted); margin-bottom: .5rem; }

/* ---------- Animations d'apparition ---------- */
.cinematic-ready .reveal { opacity: 0; transform: translate3d(0, 36px, 0); }
html.cinematic-ready:not(.gsap-on) .reveal { animation: failsafe-reveal .6s ease 3.5s forwards; }
@keyframes failsafe-reveal { to { opacity: 1; transform: none; } }

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