/* ==========================================================================
   RivesEnRêves — feuille de style unique
   --------------------------------------------------------------------------
   1. Polices et variables (couleurs, univers)
   2. Base et typographie
   3. En-tête, menus, barre des univers, sous-navigation, fil d'Ariane
   4. Héros (accueil et pages)
   5. Sections, grilles et cartes
   6. Composants : réponse directe, étapes, chiffres, tableaux, FAQ, CTA
   7. Blog et références (filtres)
   8. Formulaire de contact
   9. Pied de page
   10. Animations (désactivées si l'utilisateur réduit les animations)
   ========================================================================== */

/* 1. Polices (auto-hébergées, licence SIL OFL — aucun appel à un service tiers) */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  /* Charte commune */
  /* Couleurs issues du logo RivesEnRêves */
  --logo-green: #90c03c;  /* vert anis des arbres et de « Rives en » */
  --logo-sky: #0093d3;    /* bleu des vagues et de « Rêves » */
  --logo-blue: #1878a8;   /* bleu soutenu des vagues */
  --logo-grey: #1e1e1e;   /* anthracite de la maison */

  --navy: #0b4467;        /* bleu profond (dérivé du bleu du logo) */
  --blue: #0074a9;        /* bleu du logo, assombri pour le texte */
  --blue-light: #e3f2fa;  /* reflet */
  --green: #90c03c;       /* vert du logo (décor, jamais pour du texte sur blanc) */
  --green-dark: #5c7a10;  /* vert lisible sur fond blanc */
  --sand: #f4f7e6;        /* vert très clair */
  --ink: #1f2a33;
  --muted: #4b5862;
  --line: #d8e3ea;
  --white: #fff;

  /* Accent par défaut (pages hors univers) */
  --accent: var(--blue);
  --accent-dark: #005a85;
  --accent-soft: #e6f0f4;

  --font-title: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 68, 103, .06), 0 8px 24px rgba(11, 68, 103, .08);
  --shadow-hover: 0 2px 4px rgba(11, 68, 103, .08), 0 16px 40px rgba(11, 68, 103, .14);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* Un accent de couleur par univers (même charte, teinte distincte) */
/* Teintes tirées du logo : vert (balades), bleu (plaisanciers), bleu profond (professionnels), anthracite (administrations) */
.u-balades        { --accent: #5c7a10; --accent-dark: #46600c; --accent-soft: #f2f6e0; }
.u-plaisanciers   { --accent: #0074a9; --accent-dark: #005a85; --accent-soft: #e1f2fa; }
.u-professionnels { --accent: #17406e; --accent-dark: #102f52; --accent-soft: #e6edf6; }
.u-administrations{ --accent: #3c4650; --accent-dark: #2a323a; --accent-soft: #edf0f2; }

/* 2. 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-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
img.is-placeholder { background: #7fa9bb; }
a { color: var(--accent-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f2b33d; outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 50;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.todo { background: #fff4cc; color: #6b4b00; padding: 0 .3em; border-radius: 4px; font-style: normal; font-size: .95em; }
.muted { color: var(--muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--accent-dark); }
.btn-outline:hover { color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.link-arrow { font-weight: 700; color: var(--accent-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(4px); }

/* 3. En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 3px solid var(--logo-green);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-title); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.brand-name { white-space: nowrap; }
.brand-name .b1 { color: var(--logo-green); }
.brand-name .b2 { color: var(--logo-grey); font-size: .72em; font-style: italic; font-weight: 400; margin: 0 .18em; }
.brand-name .b3 { color: var(--logo-sky); }
.brand-light { color: #fff; }
.brand-light .brand-name .b1 { color: var(--logo-green); }
.brand-light .brand-name .b2 { color: var(--logo-green); }
.brand-light .brand-name .b3 { color: #fff; }

.menu-toggle {
  display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem .9rem; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block; padding: .5rem .8rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .98rem; position: relative;
}
.main-nav a:hover { background: var(--blue-light); }
.main-nav li:nth-child(1) a { --dot: #90c03c; }
.main-nav li:nth-child(2) a { --dot: #0093d3; }
.main-nav li:nth-child(3) a { --dot: #17406e; }
.main-nav li:nth-child(4) a { --dot: #3c4650; }
.main-nav li:nth-child(-n+4) a::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); margin-right: .45rem; vertical-align: .1em;
}
.main-nav li.is-active a { background: var(--accent-soft); color: var(--accent-dark); }
.main-nav li:last-child a { background: var(--navy); color: #fff; margin-left: .25rem; }
.main-nav li:last-child a:hover { background: var(--blue); }

/* Barre des 4 univers : visible sur mobile uniquement (accès en un geste) */
.univers-bar { display: none; }

@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  .menu-toggle { display: inline-flex; }
  .brand-name { font-size: 1.25rem; }
  .brand img { width: 34px; height: 34px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hover); display: none; padding: .5rem var(--gutter) 1rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: .85rem .5rem; border-radius: 8px; font-size: 1.05rem; }
  .main-nav li:last-child a { margin: .5rem 0 0; text-align: center; }
  .univers-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line);
  }
  .univers-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 7px;
    text-decoration: none; color: var(--accent-dark); font-size: clamp(.66rem, 2.9vw, .8rem); font-weight: 700;
    border-bottom: 3px solid transparent; min-width: 0;
  }
  .univers-bar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .univers-bar .ico { width: 20px; height: 20px; }
  .univers-bar a.is-active { border-bottom-color: var(--accent); background: var(--accent-soft); }
}

/* Sous-navigation propre à chaque univers */
.subnav { background: var(--accent); color: #fff; }
.subnav .container { display: flex; align-items: center; gap: 1rem; min-height: 48px; }
.subnav-title { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.subnav-links { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 0; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a {
  color: #fff; text-decoration: none; white-space: nowrap; padding: .35rem .8rem; border-radius: 999px; font-size: .93rem; font-weight: 600; opacity: .9;
}
.subnav-links a:hover { background: rgba(255,255,255,.15); opacity: 1; }
.subnav-links a[aria-current="page"] { background: #fff; color: var(--accent-dark); opacity: 1; }
@media (max-width: 640px) { .subnav-title { display: none; } }

/* Fil d'Ariane */
.breadcrumb { font-size: .875rem; color: var(--muted); padding: .8rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 .5em; color: #9aa8b2; }
.breadcrumb a { color: var(--muted); }

/* 4. Héros */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #0b4467 0%, #005f8c 55%, #0a86c0 100%);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-media img.is-placeholder { opacity: .08; }
/* Avec une vraie photo : texte sur un dégradé à gauche, photo bien visible à droite */
.hero:has(.hero-media img:not(.is-placeholder))::after {
  background: linear-gradient(90deg, rgba(11,68,103,.92) 0%, rgba(11,68,103,.72) 42%, rgba(11,68,103,.15) 75%, rgba(11,68,103,.05) 100%),
              linear-gradient(180deg, rgba(11,68,103,0) 60%, rgba(11,68,103,.55) 100%);
}
.hero-media img:not(.is-placeholder) { opacity: 1; object-position: center 60%; }
@media (max-width: 760px) {
  .hero:has(.hero-media img:not(.is-placeholder))::after { background: linear-gradient(180deg, rgba(11,68,103,.55) 0%, rgba(11,68,103,.85) 100%); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,68,103,.35) 0%, rgba(11,68,103,.78) 100%);
}
.hero-inner { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(6rem, 10vw, 8rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 em { font-style: italic; color: #cfe27a; font-weight: 400; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero .eyebrow { color: #cfe27a; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 0; overflow: hidden; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.waves .w1 { fill: rgba(255,255,255,.18); animation: drift 18s linear infinite; }
.waves .w2 { fill: #fff; width: 100%; }

/* Héros des pages d'univers et de service */
.page-hero { background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%); padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero h1 { max-width: 20ch; }
.page-hero figure { margin: 0; }
.page-hero figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.page-hero .univers-tag {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.page-hero .univers-tag .ico { width: 16px; height: 16px; }

/* 5. Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-alt { background: var(--sand); }
.section-water { background: var(--blue-light); }
.section-accent { background: var(--accent-soft); }
.section-dark { background: var(--navy); color: #e9f0f5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #cfe27a; }
.section-dark .eyebrow { color: #cfe27a; }
.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split figure { margin: 0; }
.split figure img, .figure img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .link-arrow { margin-top: auto; padding-top: .75rem; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-media { margin: calc(-1 * clamp(1.25rem, 3vw, 1.75rem)) calc(-1 * clamp(1.25rem, 3vw, 1.75rem)) 1.25rem; }
.card-media img { border-radius: var(--radius) var(--radius) 0 0; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-highlight { border: 2px solid var(--accent); position: relative; }
.card-highlight .badge { position: absolute; top: -12px; left: 1.25rem; }
.badge { display: inline-block; background: var(--green-dark); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.badge-accent { background: var(--accent); }

/* Les 4 portes d'entrée de l'accueil */
.doors { display: grid; gap: clamp(1rem, 2vw, 1.5rem); margin-top: -4.5rem; position: relative; z-index: 2; }
@media (min-width: 640px) { .doors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .doors { grid-template-columns: repeat(4, 1fr); } }
.door {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-hover); border-top: 6px solid var(--accent);
  transition: transform .3s, box-shadow .3s;
}
.door:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11,68,103,.2); }
.door-media { position: relative; }
.door-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.door:hover .door-media img { transform: scale(1.04); }
.door-media .ico-wrap {
  position: absolute; left: 1rem; bottom: -22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.door-media .ico { width: 24px; height: 24px; }
.door-body { padding: 2rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.door-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.door h2 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); margin: .25rem 0 .5rem; }
.door p { color: var(--muted); font-size: .98rem; }
.door .btn { margin-top: auto; align-self: flex-start; }

/* 6. Composants */
/* Réponse directe (GEO) : 2-3 phrases en tête de page */
.answer {
  border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.08rem; margin: 0 0 1.5rem; max-width: 70ch;
}
.answer p:last-child { margin-bottom: 0; }
.answer strong:first-child { color: var(--accent-dark); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul li::marker { color: var(--accent); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005a85' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Déroulé en étapes */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 900px) { .steps.steps-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.steps li {
  counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.1rem 4rem; margin: 0; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-title); font-weight: 700; display: grid; place-items: center;
}
.steps-row li { padding: 3.6rem 1.1rem 1.1rem; }
.steps strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Chiffres clés */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.25rem .75rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); }
.stat-num { display: block; font-family: var(--font-title); font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); font-weight: 600; color: #cfe27a; line-height: 1.05; }
.stat-num-sm { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); padding: .4rem 0; }
.stat-label { display: block; font-size: .95rem; margin-top: .4rem; color: #d7e3ec; }

/* Preuves (références courtes adaptées à chaque public) */
.proofs { display: grid; gap: 1rem; }
@media (min-width: 760px) { .proofs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.proof { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 1.4rem; border-left: 4px solid var(--accent); box-shadow: var(--shadow); }
.proof strong { display: block; font-family: var(--font-title); font-size: 1.12rem; color: var(--navy); margin-bottom: .25rem; }
.proof p { margin: 0; font-size: .97rem; color: var(--muted); }

/* Tableaux */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .97rem; background: #fff; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--accent-soft); color: var(--navy); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
caption { caption-side: bottom; font-size: .85rem; color: var(--muted); padding: .6rem; text-align: left; }

/* Étude de cas */
.case { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); overflow: hidden; display: grid; }
@media (min-width: 900px) { .case { grid-template-columns: .9fr 1.1fr; } }
.case figure { margin: 0; }
.case figure img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.case-body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.case dl { display: grid; gap: .9rem; margin: 1.25rem 0 0; }
.case dt { font-weight: 700; color: var(--accent-dark); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.case dd { margin: .15rem 0 0; }

/* Citation */
.quote { font-family: var(--font-title); font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); font-style: italic; color: var(--navy); border-left: 4px solid var(--green); padding-left: 1.25rem; margin: 1.5rem 0; }
.quote cite { display: block; font-family: var(--font-text); font-style: normal; font-size: .95rem; color: var(--muted); margin-top: .5rem; }

/* Avis / témoignages (emplacements) */
.testimonial { background: #fff; border: 1px dashed #b9c7d0; border-radius: var(--radius); padding: 1.4rem; color: var(--muted); }
.testimonial p { font-style: italic; }

/* FAQ */
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(11,68,103,.04); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 3.2rem 1.1rem 1.25rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--font-text); font-size: 1.07rem; font-weight: 700; margin: 0; color: var(--navy); letter-spacing: 0; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.8rem; height: 1.8rem;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq-answer p { margin: 0; }

/* Appel à l'action */
.cta-band { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3rem); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.08);
}
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { max-width: 60ch; color: rgba(255,255,255,.92); }
.cta-band .btn { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--sand); border-color: var(--sand); }
.cta-band .btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* Encart « Vous n'êtes pas au bon endroit ? » */
.switcher { padding: clamp(2rem, 5vw, 3rem) 0; background: var(--sand); }
.switcher-title { font-size: 1.25rem; margin-bottom: 1rem; }
.switch-grid { display: grid; gap: .75rem; }
@media (min-width: 760px) { .switch-grid { grid-template-columns: repeat(3, 1fr); } }
.switch-card {
  display: flex; align-items: center; gap: .9rem; background: #fff; border-radius: var(--radius); padding: .9rem 1.1rem;
  text-decoration: none; color: var(--ink); border-left: 4px solid var(--accent); box-shadow: var(--shadow); transition: transform .2s;
}
.switch-card:hover { transform: translateY(-2px); }
.switch-card .ico { width: 28px; height: 28px; color: var(--accent); flex: none; }
.switch-card strong { display: block; color: var(--navy); }
.switch-card small { color: var(--accent-dark); font-weight: 700; }

/* 7. Blog et références */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filters button {
  font: inherit; font-weight: 700; font-size: .93rem; padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--accent); background: #fff; color: var(--accent-dark);
}
.filters button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.filters button:not(.u-balades):not(.u-plaisanciers):not(.u-professionnels):not(.u-administrations) { --accent: var(--navy); --accent-dark: var(--navy); }
[hidden] { display: none !important; }

.post-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.post-card a {
  display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); padding: 1.5rem;
  text-decoration: none; color: inherit; border-top: 5px solid var(--accent); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.post-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-card h3 { margin: .6rem 0 .5rem; }
.post-card p { color: var(--muted); font-size: .97rem; }
.post-card .link-arrow { margin-top: auto; }
.post-date { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.tag { align-self: flex-start; background: var(--accent-soft); color: var(--accent-dark); font-size: .78rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

.ref-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
.ref-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ref-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ref-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.ref-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.ref-body p { color: var(--muted); }
.ref-body .link-arrow { margin-top: auto; }

.article-meta { color: var(--muted); font-size: .93rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .65rem 0; margin: 1rem 0 1.75rem; }
.toc { background: var(--sand); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 0 0 2rem; }
.toc strong { display: block; margin-bottom: .4rem; color: var(--navy); }
.toc ol { margin: 0; }

/* 8. Formulaire */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr .9fr; align-items: start; } }
.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: var(--shadow-hover); border-top: 6px solid var(--accent); transition: border-color .3s; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--navy); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1.5px solid #b9c7d0; border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.profile-choices { display: grid; gap: .6rem; }
@media (min-width: 640px) { .profile-choices { grid-template-columns: 1fr 1fr; } }
.profile-choice { position: relative; }
.profile-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.profile-choice label {
  display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 12px;
  cursor: pointer; font-weight: 600; color: var(--ink); margin: 0; transition: border-color .2s, background .2s;
}
.profile-choice label .ico { width: 24px; height: 24px; color: var(--accent); flex: none; }
.profile-choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.profile-choice input:focus-visible + label { outline: 3px solid #f2b33d; outline-offset: 2px; }
.profile-fields { background: var(--accent-soft); border-radius: 12px; padding: 1rem 1rem .1rem; margin-bottom: 1.1rem; }
.profile-fields-title { font-weight: 700; color: var(--accent-dark); margin-bottom: .75rem; font-size: .95rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 1rem 1.1rem; margin-top: 1rem; font-weight: 600; }
.form-status.is-success { background: #e6f4ea; color: #1e5631; border: 1px solid #a8d5b5; }
.form-status.is-error { background: #fdecea; color: #8a1c13; border: 1px solid #f1b0aa; }
.form-legal { font-size: .85rem; color: var(--muted); margin-top: 1.25rem; }
.contact-aside .card + .card { margin-top: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; }
.contact-list .ico { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: .2rem; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--blue-light); }

/* 9. Pied de page */
.site-footer { background: var(--navy); color: #c9d7e2; position: relative; margin-top: 0; padding-top: 3.5rem; }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 40px; fill: #fff; transform: scaleY(-1); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-about p { margin-top: 1rem; font-size: .97rem; max-width: 40ch; }
.footer-title { font-family: var(--font-text); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #e9f0f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact li { margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem var(--gutter); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.site-footer .btn-light { color: var(--navy); }

/* Icônes génériques */
.ico { width: 24px; height: 24px; }
.ico-circle { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.ico-circle .ico { width: 28px; height: 28px; }

/* 10. Animations */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

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

/* Impression */
@media print {
  .site-header, .subnav, .switcher, .site-footer, .cta-band, .univers-bar { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Titre de niveau h2/h3 affiché à la taille d'un h3 */
.h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); }

/* Logo officiel (image complète déposée dans assets/img/logo-officiel.*) */
.brand img.brand-logo-full { width: auto; height: 50px; }
.site-footer .brand img.brand-logo-full { height: 52px; background: #fff; border-radius: 10px; padding: 4px 8px; }
@media (max-width: 1023px) { .brand img.brand-logo-full { height: 38px; } }

/* Bandeau de la version d'aperçu (GitHub Pages uniquement) */
.apercu-bandeau { background: #fff4cc; color: #5c4400; text-align: center; font-size: .88rem; padding: .45rem var(--gutter); border-bottom: 1px solid #f0d98a; }

/* Portrait du fondateur : aligné en haut et visible pendant la lecture */
#joel-le-mercier .split { align-items: start; }
@media (min-width: 900px) { #joel-le-mercier figure { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Vidéo verticale (format téléphone) */
.video-split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .video-split { grid-template-columns: 1fr 360px; } }
.video-frame { margin: 0 auto; width: 100%; max-width: 360px; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 480 / 864; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); background: var(--navy); object-fit: cover; }

/* Mention « Image d'illustration » sur les photos qui ne montrent pas une opération de RivesEnRêves */
.illus-wrap { position: relative; }
.illus-badge { position: absolute; left: .6rem; bottom: .6rem; background: rgba(11,68,103,.82); color: #fff; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; pointer-events: none; }

/* Vidéo à la place de la photo en haut de page (cadrage horizontal) */
.page-hero .hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 55%; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); background: var(--navy); }
