/* ==========================================================================
   www.sbpaysage-64.fr : feuille de style
   Direction visuelle : fond clair, indigo et corail, frise des années de
   lancement, fiches alternées gauche-droite. Aucun JavaScript.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("https://www.sbpaysage-64.fr/assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------- Variables */
:root {
  --paper:   #ffffff;
  --shell:   #f5f5fa;
  --ink:     #1b1b2b;
  --ink-2:   #4f5064;
  --ink-3:   #82849a;
  --line:    #e3e3ee;
  --line-2:  #c8c9dc;
  --indigo:  #3b32a6;
  --indigo-d:#2a2478;
  --indigo-l:#eeecfb;
  --coral:   #f4603f;
  --coral-l: #fdeeea;
  --mint:    #10916a;
  --mint-l:  #e7f6f0;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --col: 76rem;
  --read: 44rem;
  --r: 16px;
  --shadow: 0 1px 2px rgba(27,27,43,.05), 0 18px 36px -26px rgba(27,27,43,.5);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; -webkit-text-size-adjust: 100%; }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font);
  font-size: 1.04rem; line-height: 1.75; overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.16; letter-spacing: -.025em; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .55vw, 1.45rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.15em; }
strong, b { font-weight: 700; color: #10101c; }

.wrap { width: min(100% - 2.5rem, var(--col)); margin-inline: auto; }

.tagline { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--indigo); background: var(--indigo-l);
  border-radius: 999px; padding: .3rem .85rem; margin: 0 0 1rem; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--indigo); color: #fff; padding: .7rem 1.2rem; border-radius: 10px; }
.skip:focus { left: .75rem; top: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------- En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { font-weight: 800; letter-spacing: -.03em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .91rem; font-weight: 600; padding: .25rem 0; border-bottom: 2px solid transparent; display: block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--coral); }
.age { font-size: .72rem; font-weight: 800; color: #fff; background: var(--coral); border-radius: 999px; padding: .18rem .55rem; }
@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .age { margin-left: auto; }
}

/* ------------------------------------------------------ Ancres de section */
.anchors { position: sticky; top: 4rem; z-index: 40; background: rgba(245,245,250,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.anchors ul { display: flex; gap: .45rem; list-style: none; margin: 0; padding: .55rem 0; overflow-x: auto; scrollbar-width: none; }
.anchors ul::-webkit-scrollbar { display: none; }
.anchors a { white-space: nowrap; text-decoration: none; font-size: .84rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .32rem .8rem; }
.anchors a:hover { color: var(--indigo); border-color: var(--line-2); }

/* ----------------------------------------------------------- Fil d'Ariane */
.crumbs { font-size: .8rem; color: var(--ink-3); padding: 1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "•"; margin-right: .4rem; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--indigo); text-decoration: underline; }

/* ------------------------------------------------------------- Ouverture */
.hero { padding: 2.5rem 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 2.5rem; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.hero h1 { max-width: 18ch; }
.lede { font-size: 1.13rem; color: var(--ink-2); }
.hero figure { margin: 0; }
.hero figure img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 1.6rem; font-size: .88rem; color: var(--ink-2); }
.hero-meta img { width: 42px; height: 42px; border-radius: 50%; }
.hero-meta a { font-weight: 700; }

/* --------------------------------- Signature : frise des mises en service */
.timeline { border: 1px solid var(--line); border-radius: var(--r); background: var(--shell); padding: 1.35rem; margin: 2.5rem 0 0; }
.timeline h2 { font-size: 1.15rem; margin-bottom: .2rem; }
.timeline p.hint { font-size: .87rem; color: var(--ink-3); margin: 0 0 1.2rem; }
.tl-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 720px) { .tl-track { grid-template-columns: repeat(2, 1fr); } }
.tl-year { border-top: 3px solid var(--indigo); padding-top: .7rem; }
.tl-year b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; margin-bottom: .5rem; }
.tl-year ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.tl-year li { margin-bottom: .25rem; }
.tl-year a { color: var(--ink-2); text-decoration: none; }
.tl-year a:hover { color: var(--indigo); text-decoration: underline; }

/* -------------------------------------------------------------- Boutons */
.btn {
  --bg: var(--coral); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; line-height: 1.3; text-decoration: none; cursor: pointer;
  text-align: center; padding: .8rem 1.5rem; border: 1px solid transparent; border-radius: 999px;
  color: var(--fg); background: var(--bg); transition: background .12s linear, transform .1s ease;
}
.btn:hover { background: #d94e2f; color: #fff; transform: translateY(-1px); }
.btn-indigo { --bg: var(--indigo); }
.btn-indigo:hover { background: var(--indigo-d); }
.btn-line { --bg: #fff; --fg: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--shell); color: var(--indigo); }
.btn-sm { padding: .45rem .95rem; font-size: .82rem; }
.btn-wide { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* -------------------------------------------------- Tableau comparatif */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 2rem 0; background: #fff; box-shadow: var(--shadow); }
.compare table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 46rem; }
.compare th, .compare td { padding: .78rem .9rem; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.compare thead th { background: var(--indigo); color: #fff; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; border-top: 0; }
.compare tbody tr:nth-child(even) td { background: #fbfbfe; }
.compare .rk { font-weight: 800; color: var(--coral); width: 2.2rem; }
.compare .nm a { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.compare .nm a:hover { color: var(--indigo); }
.compare .yr { color: var(--ink-3); }

/* --------------------------------------------------- Fiches alternées */
.list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.item .head { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.item .num { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--indigo-l); color: var(--indigo); font-weight: 800; display: grid; place-items: center; flex: none; }
.item h3 { margin: 0; font-size: 1.3rem; }
.item .since { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.item .new { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); background: var(--mint-l); border-radius: 999px; padding: .2rem .6rem; }
.item .head .btn { margin-left: auto; }
@media (max-width: 640px) { .item .head .btn { margin-left: 0; width: 100%; } }
.item .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: 1.3rem; align-items: start; }
@media (max-width: 860px) { .item .cols { grid-template-columns: 1fr; } }
.item:nth-child(even) .cols { direction: rtl; }
.item:nth-child(even) .cols > * { direction: ltr; }
.item figure { margin: 0; }
.item figure img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.item figcaption { font-size: .8rem; color: var(--ink-3); padding-top: .45rem; }
.item .cols p:last-child { margin-bottom: 0; }
.pills { list-style: none; padding: 0; margin: 0 0 1.1em; display: flex; flex-wrap: wrap; gap: .4rem; }
.pills li { background: var(--indigo-l); color: var(--indigo-d); border-radius: 999px; padding: .22rem .7rem; font-size: .81rem; font-weight: 600; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
@media (max-width: 720px) { .specs { grid-template-columns: 1fr 1fr; } }
.specs div { padding: .75rem .95rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs dt { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .15rem; }
.specs dd { margin: 0; font-size: .9rem; font-weight: 600; }
.item .foot { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: 1rem 1.3rem; background: var(--shell); }
.item .foot p { margin: 0; font-size: .84rem; color: var(--ink-3); }
.item .foot .btn { margin-left: auto; }
@media (max-width: 640px) { .item .foot .btn { margin-left: 0; width: 100%; } }

/* ------------------------------------------------------------- Article */
.prose { max-width: var(--read); margin: 0 auto; padding: 3rem 0 4rem; }
.prose section { scroll-margin-top: 8rem; }
.prose section + section { margin-top: 3rem; }
.prose h2 { position: relative; padding-top: 1.5rem; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 3rem; height: 4px; border-radius: 999px; background: var(--coral); }
.prose h3 { margin-top: 2rem; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.3em; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: .15rem; top: .7em; width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--indigo); }
.prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose ol li { margin-bottom: .5em; }
.prose ol li::marker { font-weight: 800; color: var(--indigo); }

figure { margin: 1.8rem 0; }
figure img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
figcaption { font-size: .83rem; color: var(--ink-3); padding-top: .5rem; }

/* ------------------------------------------------------------- Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 1.7rem; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { text-align: left; font-weight: 700; padding: .85rem 1rem .3rem; }
th, td { padding: .7rem 1rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--shell); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); border-top: 0; }
tbody th { font-weight: 700; }

/* ------------------------------------------------------------- Encadrés */
.box { border: 1px solid var(--line); border-left: 4px solid var(--indigo); background: var(--indigo-l); border-radius: 10px; padding: 1.05rem 1.25rem; margin: 0 0 1.6rem; }
.box p:last-child { margin-bottom: 0; }
.box .tagline { background: #fff; }
.box-coral { border-left-color: var(--coral); background: var(--coral-l); }
.box-coral .tagline { color: var(--coral); }
.box-mint { border-left-color: var(--mint); background: var(--mint-l); }
.box-mint .tagline { color: var(--mint); }

/* ------------------------------------------------------------------ FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .6rem; background: #fff; }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; list-style: none; display: flex; gap: .7rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--coral); font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.1rem 1rem; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Équipe */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 1.5rem 0; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }
.member { border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; background: #fff; text-align: center; }
.member img { width: 5.2rem; height: 5.2rem; border-radius: 50%; margin: 0 auto .8rem; }
.member h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.member .role { font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: .55rem; }
.member p { font-size: .88rem; color: var(--ink-2); margin: 0; }

/* ----------------------------------------------------- Barre CTA mobile */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: .5rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line-2); }
.sticky-cta .btn { flex: 1 1 0; min-width: 0; font-size: .85rem; padding: .75rem .5rem; }
@media (max-width: 780px) { .sticky-cta { display: flex; } body { padding-bottom: 4.4rem; } }

/* ---------------------------------------------------------- Pied de page */
.site-footer { background: var(--ink); color: #b4b6c8; padding: 3rem 0; font-size: .92rem; }
.site-footer strong, .site-footer b { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #ccced9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #33344a; font-size: .82rem; color: #8f91a6; }
.site-footer .legal strong { color: #ff9d87; }

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