/* =====================================================================
   Yachting Consulting Services — feuille de style principale
   Thème rouge & noir, moderne, responsive.
   ===================================================================== */

:root {
  --red: #e10600;
  --red-dark: #b00500;
  --red-soft: #ff2b22;
  --black: #0e0f11;
  --ink: #15171a;
  --ink-2: #22262b;
  --grey-900: #2b3036;
  --grey-700: #475059;
  --grey-500: #6b757e;
  --grey-300: #c7ced4;
  --grey-100: #eef1f4;
  --grey-50: #f7f9fb;
  --white: #ffffff;
  --sea: #143c52;
  --brand-blue: #143f6a;
  --brand-blue-dark: #0e2e4f;

  --ok: #1f9d57;
  --warn: #d98a00;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(15, 17, 20, .08), 0 1px 2px rgba(15, 17, 20, .06);
  --shadow: 0 10px 30px rgba(15, 17, 20, .12);
  --shadow-lg: 0 24px 60px rgba(15, 17, 20, .22);

  --maxw: 1200px;
  --header-h: 76px;

  --font: "Book Antiqua", "Palatino Linotype", Palatino, "URW Palladio L", Georgia, "Times New Roman", serif;
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--grey { background: var(--grey-50); }
.muted { color: var(--grey-500); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 2px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--grey-300); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--grey-100); }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--grey-100);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.2rem;
}
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand-logo { display: block; max-width: 100%; }
.brand-fullname {
  color: var(--ink); font-weight: 500; line-height: 1.05;
  font-size: 1.3rem; letter-spacing: -.01em;
}
.brand-fullname .bi { font-weight: 800; }
/* Marque : initiales Y·C·S en rouge, le reste garde la couleur du contexte */
.bi { color: var(--red); }
/* Mobile : on garde le nom (plus petit, peut passer sur 2 lignes) */
@media (max-width: 860px) {
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-fullname { font-size: 1rem; }
}
@media (max-width: 400px) {
  .brand-fullname { font-size: .88rem; }
}

/* « Yachting Consulting Services » dans le texte courant (fond clair) */
.ycs { color: var(--ink); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Onglets « Bateaux neufs » (par constructeur) */
.neuf-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.neuf-tab {
  font: inherit; font-weight: 700; cursor: pointer; padding: .55rem 1.1rem;
  border-radius: 999px; border: 2px solid var(--grey-300); background: #fff;
  color: var(--ink); transition: var(--transition); white-space: nowrap;
}
.neuf-tab:hover { border-color: var(--ink); }
.neuf-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.brand-name b { color: var(--red); }
.brand-tag { font-size: .68rem; color: var(--grey-500); letter-spacing: .03em; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .55rem .85rem; border-radius: 8px;
  font-weight: 600; color: var(--grey-900); transition: var(--transition);
}
.main-nav a:hover { background: var(--grey-100); color: var(--ink); }
.main-nav a.active { color: var(--red); }

/* Sous-menu déroulant (Nos occasions) */
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > a { display: inline-flex; align-items: center; gap: .25rem; }
.nav-chevron { transition: transform .2s ease; }
.main-nav .sub-menu {
  list-style: none; margin: 0; padding: .4rem; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: #fff; border: 1px solid var(--grey-100);
  border-radius: 10px; box-shadow: var(--shadow); display: none; z-index: 120;
}
.main-nav .has-sub:hover .sub-menu,
.main-nav .has-sub:focus-within .sub-menu { display: block; }
.main-nav .has-sub:hover .nav-chevron { transform: rotate(180deg); }
.main-nav .sub-menu a { white-space: nowrap; }

.header-search { position: relative; flex-shrink: 0; }
.header-search input {
  width: 200px; padding: .55rem .9rem .55rem 2.2rem;
  border: 1px solid var(--grey-300); border-radius: 999px;
  font: inherit; font-size: .9rem; background: var(--grey-50);
  transition: var(--transition);
}
.header-search input:focus { outline: none; border-color: var(--red); background: #fff; width: 230px; }
.header-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--grey-500); pointer-events: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--ink); }

@media (max-width: 980px) {
  .header-search input { width: 150px; }
  .header-search input:focus { width: 170px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  /* Menu déroulant dans le flux (se replie totalement, sans recouvrir le header) */
  .main-nav {
    order: 4; width: 100%; margin: 0;
    display: none;
  }
  .main-nav.open { display: block; max-height: 70vh; overflow: auto; }
  .main-nav ul { flex-direction: column; padding: .2rem 0 .3rem; gap: .1rem; border-top: 1px solid var(--grey-100); }
  .main-nav a { padding: .85rem .4rem; }
  /* sous-menu déplié et indenté sur mobile */
  .main-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; min-width: 0; padding: 0 0 .3rem .9rem; background: transparent; }
  .main-nav .sub-menu a { padding: .6rem .4rem; font-weight: 500; }
  .main-nav .nav-chevron { display: none; }
  .header-search { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding: .7rem 0; gap: .7rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--black) 0%, var(--ink) 45%, var(--sea) 130%);
  /* Photo d'accueil — modifiable depuis l'admin (surchargée en JS depuis site.json) */
  --hero-photo: url("../img/photos/home-hero.jpg") center/cover no-repeat;
}
/* Photo en fond, floutée + assombrie pour la lisibilité du texte */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, rgba(14,15,17,.92) 0%, rgba(14,15,17,.66) 38%, rgba(14,15,17,.34) 68%, rgba(14,15,17,.14) 100%),
    var(--hero-photo);
  filter: none;
  transform: none;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; z-index: 0;
  width: 60%; height: 140%;
  background: radial-gradient(circle at center, rgba(225,6,0,.3), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(3.5rem, 9vw, 7rem) 0; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.hero .eyebrow { font-size: 1.1rem; letter-spacing: .1em; }
/* Accroche « Voile et Moteur » : initiales V/M rouges, reste clair (le noir serait illisible sur fond sombre) */
.hero .hero-eyebrow { text-transform: none; color: #eef1f4; font-weight: 700; }
/* Initiales rouge vif sur le fond sombre du hero (V, M, A, Z) */
.hero .bi { color: var(--red-soft); }
.hero p { font-size: 1.15rem; color: #d7dde2; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-search {
  margin-top: 2rem; display: flex; gap: .5rem; max-width: 560px;
  background: #fff; padding: .4rem; border-radius: 999px; box-shadow: var(--shadow-lg);
}
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem 1rem; font: inherit; color: var(--ink); }
.hero-search input:focus { outline: none; }

.stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2.6rem; }
.stat strong { display: block; font-size: 1.2rem; color: #fff; }
.stat { max-width: 230px; }
.stat span { font-size: .85rem; color: #aeb7bf; letter-spacing: .03em; }

@media (max-width: 540px) {
  .hero-search { flex-direction: column; border-radius: 18px; padding: .6rem; gap: .5rem; }
  .hero-search input { width: 100%; padding: .75rem .9rem; }
  .hero-search .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stats { gap: 1.4rem 2.2rem; }
}

/* ---------- Services ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
/* Grille à nombre de colonnes fixe (4 -> 2 -> 1) pour un alignement régulier */
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .cards--4 { grid-template-columns: 1fr; } }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .cards--3 { grid-template-columns: 1fr; } }
.service-card {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before { content:""; position:absolute; left:0; top:0; height:4px; width:100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: .4rem; }

/* ---------- Featured / boat grid ---------- */
.boat-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.boat-card {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column;
}
.boat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--grey-300); }
.boat-media { position: relative; aspect-ratio: 3 / 2; background: var(--grey-100); overflow: hidden; }
.boat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.boat-card:hover .boat-media img { transform: scale(1.05); }
.boat-badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.badge {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; color: #fff; background: var(--ink);
}
.badge--neuf { background: var(--red); }
.badge--occasion { background: var(--ink); }
.badge--type { background: rgba(255,255,255,.92); color: var(--ink); }
.badge--sold { background: var(--grey-700); }
.badge--available { background: var(--ok); }
.badge--prochainement { background: var(--brand-blue); }
.badge--compromis { background: var(--warn); }
/* Bandeau de statut — style unifié pour les 3 statuts (couleur seule diffère) */
.boat-sold-flag {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14,15,17,.45);
}
.boat-sold-flag span {
  background: var(--red); color:#fff; font-weight: 800; letter-spacing: .1em; font-size: .92rem;
  text-transform: uppercase; padding: .5rem 1.3rem; border-radius: 6px;
  transform: rotate(-5deg); box-shadow: var(--shadow); text-align: center;
}
.boat-sold-flag.is-sold span { background: var(--red); }
.boat-sold-flag.is-compromis span { background: var(--warn); }
.boat-sold-flag.is-prochainement span { background: var(--brand-blue); }
.boat-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.boat-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 .2rem; }
.boat-sub { font-size: .85rem; color: var(--grey-500); margin-bottom: .7rem; }
.boat-specs { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .82rem; color: var(--grey-700); margin-bottom: .9rem; }
.boat-specs span { display: inline-flex; align-items: center; gap: .3rem; }
.boat-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.boat-price { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.boat-price small { font-size: .72rem; color: var(--grey-500); font-weight: 600; display:block; }
.price-request { color: var(--red); font-size: 1rem; }

/* ---------- Filters (bateaux) ---------- */
.listing-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1rem);
}
.filters h3 { font-size: 1rem; display: flex; align-items: center; justify-content: space-between; }
.filter-group { padding: 1rem 0; border-top: 1px solid var(--grey-100); }
.filter-group:first-of-type { border-top: 0; padding-top: .4rem; }
.filter-group > label, .filter-legend { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey-700); display: block; margin-bottom: .6rem; }
.check { display: flex; align-items: center; gap: .55rem; padding: .25rem 0; font-size: .92rem; cursor: pointer; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }
.filters select, .filters input[type=text] {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm); font: inherit; background: #fff;
}
.range-row { display: flex; gap: .5rem; }
.range-row input { width: 100%; padding: .5rem .6rem; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); font: inherit; }

.listing-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.listing-count { font-weight: 700; }
.listing-toolbar .spacer { margin-left: auto; }
.sort-select { padding: .5rem .7rem; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); font: inherit; background:#fff; }
.search-inline { position: relative; flex: 1; min-width: 220px; }
.search-inline input { width: 100%; padding: .6rem .9rem .6rem 2.2rem; border: 1px solid var(--grey-300); border-radius: 999px; font: inherit; }
.search-inline svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--grey-500); }

.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--grey-100); border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; }
.chip button { background: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--grey-700); }

.filters-toggle { display: none; }
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
}

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--grey-500); }
.empty-state svg { color: var(--grey-300); margin-bottom: 1rem; }

/* ---------- Boat detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--grey-100); aspect-ratio: 3/2; box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.gallery-thumbs button { width: 86px; aspect-ratio: 3/2; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--grey-100); }
.gallery-thumbs button.active { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-panel { background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1rem); }
.detail-price { font-size: 2rem; font-weight: 800; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--grey-100); }
.spec-table th { color: var(--grey-500); font-weight: 600; width: 45%; }
.spec-table td { font-weight: 700; }
.equip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.equip-list li { display: flex; gap: .55rem; align-items: flex-start; }
.equip-list svg { color: var(--ok); flex-shrink: 0; margin-top: .15rem; }

.breadcrumb { font-size: .85rem; color: var(--grey-500); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--red); }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-panel { position: static; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm); font: inherit; background: #fff; transition: var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,6,0,.12); }
.field textarea { min-height: 140px; resize: vertical; }
.field .req { color: var(--red); }
.info-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.8rem; }
.info-card h3 { color: #fff; }
.info-row { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.info-row:last-child { border-bottom: 0; }
.info-row svg { color: var(--red-soft); flex-shrink: 0; margin-top: .15rem; }
.info-row a:hover { color: var(--red-soft); }
.form-note { font-size: .82rem; color: var(--grey-500); }
.form-status { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; display:none; }
.form-status.ok { display:block; background: #e7f6ee; color: #176c3c; }
.form-status.err { display:block; background: #fdeceb; color: var(--red-dark); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Legal / content pages ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--red); text-decoration: underline; }
.page-hero { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #c7ced4; margin: .5rem 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: .3rem 0 0; color: #ffd9d7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #b8c0c8; padding: 3.2rem 0 1.6rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer a { color: #b8c0c8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: .8rem; max-width: 36ch; color: #97a1aa; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; color: #7e8891; }
.footer-bottom a:hover { color: #fff; }
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-links a { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: var(--transition); }
.social-links a:hover { background: var(--red); color: #fff; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.2rem 1.4rem;
  display: none; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  max-width: 760px; margin-inline: auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .9rem; color: #d7dde2; flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--red-soft); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 300; }
.skip-link:focus { left: .5rem; top: .5rem; }
.tag-line { display:flex; align-items:center; gap:.5rem; color: var(--grey-700); font-weight:600; }
.divider { height:1px; background: var(--grey-100); border:0; margin: 2rem 0; }
.split { display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; align-items:center; }
@media (max-width: 800px){
  .split { grid-template-columns: 1fr; }
  /* image illustrative au-dessus du texte sur mobile (plus cohérent) */
  .split--media-first .img-frame { order: -1; margin-bottom: .6rem; }
  .split--media-first .img-frame img { width: 100%; max-height: 240px; object-fit: cover; }
}
.img-frame { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); }
.callout { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; border-left: 5px solid var(--red); }
.callout strong { display:block; font-size: 1.1rem; margin-bottom: .4rem; }
.callout p { margin: 0; color: #c7ced4; }

/* ---------- Questionnaire « aide au choix » ---------- */
.quiz-overlay {
  position: fixed; inset: 0; z-index: 500; display: none;
  background: rgba(14,15,17,.6); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 1.2rem;
}
.quiz-overlay.show { display: flex; }
.quiz {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: min(100%, 560px); max-height: 92vh; overflow: auto; position: relative;
}
.quiz-head { padding: 1.6rem 1.6rem 0; }
.quiz-head .eyebrow { margin-bottom: .3rem; }
.quiz-head h2 { font-size: 1.5rem; margin: 0; }
.quiz-progress { display: flex; gap: .4rem; margin: 1rem 1.6rem 0; }
.quiz-progress i { height: 5px; border-radius: 999px; flex: 1; background: var(--grey-100); }
.quiz-progress i.on { background: var(--red); }
.quiz-body { padding: 1.2rem 1.6rem; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: quizfade .25s ease; }
@keyframes quizfade { from { opacity: 0; transform: translateY(6px);} to { opacity:1; transform:none; } }
.quiz-q { font-weight: 800; font-size: 1.15rem; margin: 0 0 1rem; }
.quiz-options { display: grid; gap: .7rem; }
.quiz-options.cols-2 { grid-template-columns: 1fr 1fr; }
.quiz-opt {
  display: flex; flex-direction: column; gap: .25rem; align-items: flex-start;
  text-align: left; padding: 1rem 1.1rem; border: 2px solid var(--grey-300);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer; font: inherit;
  transition: var(--transition);
}
.quiz-opt:hover { border-color: var(--ink); }
.quiz-opt.selected { border-color: var(--red); background: #fff5f4; }
.quiz-opt strong { font-size: 1rem; }
.quiz-opt span { font-size: .82rem; color: var(--grey-500); }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.6rem 1.6rem; }
.quiz-close { position: absolute; top: .7rem; right: .7rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--grey-100); cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--grey-700); }
.quiz-close:hover { background: var(--grey-300); }
.quiz-range { display: flex; gap: .6rem; align-items: center; }
.quiz-range input { width: 100%; padding: .7rem .8rem; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); font: inherit; }
.quiz-help { background: none; border: 0; color: var(--grey-500); cursor: pointer; font: inherit; text-decoration: underline; }
@media (max-width: 460px){ .quiz-options.cols-2 { grid-template-columns: 1fr; } }
