/*
Theme Name: Eucalyptus
Theme URI: https://www.myvizion.re/gite/
Author: MyVizion
Description: Thème sur mesure du Gîte l'Eucalyptus, Le Guillaume, Saint-Paul, La Réunion. Palette forêt dérivée du logo, typographies Alpino et Author auto-hébergées.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: eucalyptus
*/

/* ==========================================================================
   1. Tokens
   Rayons : boutons = pilule, cartes/images = 18px, champs = 12px.
   Un seul accent : le vert eucalyptus. Le rouge du logo reste dans le logo.
   ========================================================================== */

:root {
  --paper: #f6f7f3;
  --paper-2: #edf0e8;
  --ink: #1c2a20;
  --ink-soft: #46564a;
  --accent: #2e6a45;
  --accent-deep: #245238;
  --forest: #16281e;
  --forest-2: #1d3527;
  --on-forest: #e9eee7;
  --on-forest-soft: #b7c4b4;
  --leaf: #9ab380;
  --line: rgba(28, 42, 32, 0.14);
  --line-soft: rgba(28, 42, 32, 0.08);
  --r-card: 18px;
  --r-field: 12px;
  --shadow-1: 0 1px 2px rgba(22, 40, 30, 0.06), 0 8px 28px rgba(22, 40, 30, 0.09);
  --shadow-2: 0 2px 6px rgba(22, 40, 30, 0.08), 0 18px 48px rgba(22, 40, 30, 0.16);
  --wrap: 1180px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section: clamp(4.5rem, 9vw, 7.5rem);
}

/* ==========================================================================
   2. Polices auto-hébergées (RGPD)
   ========================================================================== */

@font-face {
  font-family: "Alpino";
  src: url("fonts/alpino-variable.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Author";
  src: url("fonts/author-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Author", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 430;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: "Alpino", "Segoe UI", system-ui, sans-serif;
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.008em; line-height: 1.25; }

p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 65ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.section { padding-block: var(--section); }
.section-tint { background: var(--paper-2); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

::selection { background: var(--leaf); color: var(--forest); }

/* ==========================================================================
   4. Boutons (une intention = un libellé)
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: "Alpino", system-ui, sans-serif;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  padding: 0.85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 60ms ease-out, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(46, 106, 69, 0.28); }
.btn-solid:hover { background: var(--accent-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn-on-forest { background: var(--paper); color: var(--forest); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.btn-on-forest:hover { background: #fff; color: var(--forest); }

/* ==========================================================================
   5. En-tête capsule (verre)
   Le flou est porté par ::before : sur l'élément lui-même, backdrop-filter
   ferait de la capsule le containing block des descendants en position:fixed.
   ========================================================================== */

.site-header {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: min(var(--wrap), calc(100% - 24px));
  height: var(--header-h);
  border-radius: 999px;
  transition: box-shadow 240ms ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0.5)),
    rgba(246, 247, 243, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 30px rgba(22, 40, 30, 0.12);
}
.site-header.is-scrolled::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 14px 44px rgba(22, 40, 30, 0.2); }

.header-inner {
  height: 100%; display: flex; align-items: center; gap: 1.2rem;
  padding-inline: 1.4rem 0.55rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: "Alpino", system-ui, sans-serif; font-weight: 660; font-size: 1.08rem;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none; line-height: 1.05;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }

.main-nav { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; }
.main-nav a {
  font-weight: 500; font-size: 0.98rem; color: var(--ink); text-decoration: none;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  transition: background-color 140ms ease;
}
.main-nav a:hover { background: rgba(28, 42, 32, 0.07); }
.main-nav a[aria-current="page"] { background: rgba(28, 42, 32, 0.09); }

.header-cta { flex: none; }

.header-lang { flex: none; display: flex; align-items: center; }
.header-lang select,
.gt-wrap select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: 0.88rem; color: var(--ink);
  padding: 0.35rem 1.5rem 0.35rem 0.8rem; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231c2a20' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}

.burger {
  display: none; flex: none;
  width: 46px; height: 46px; margin-right: 0.35rem;
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative;
  transition: transform 220ms var(--ease-out), opacity 160ms ease;
}
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); background: #fff; }
body.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); background: #fff; }

/* ==========================================================================
   6. Menu mobile plein écran (verre sombre)
   ========================================================================== */

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 40px) clamp(1.4rem, 6vw, 2.5rem) 2rem;
  visibility: hidden; opacity: 0;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}
.mobile-menu::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(18, 32, 24, 0.9);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}
body.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity 260ms ease; }

.mobile-menu nav { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-menu nav a {
  font-family: "Alpino", system-ui, sans-serif;
  font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 620; letter-spacing: -0.015em;
  color: #fff; text-decoration: none; padding: 0.45rem 0;
  opacity: 0; transform: translateY(18px);
}
body.menu-open .mobile-menu nav a { opacity: 1; transform: none; transition: opacity 380ms ease, transform 420ms var(--ease-out); }
body.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: 0.06s; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.11s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.16s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.21s; }
body.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.26s; }

.mobile-menu-foot {
  margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
  opacity: 0; transform: translateY(14px);
}
body.menu-open .mobile-menu-foot { opacity: 1; transform: none; transition: opacity 380ms ease 0.3s, transform 420ms var(--ease-out) 0.3s; }
.mobile-menu-foot .btn { width: 100%; max-width: 340px; padding-block: 1rem; }
.mobile-menu-foot .menu-tels { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
.mobile-menu-foot .menu-tels a { color: var(--on-forest); text-decoration: none; font-size: 1rem; }
.mobile-menu-foot .gt-wrap select { color: #fff; border-color: rgba(255, 255, 255, 0.35); background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E"); }
.mobile-menu-foot .gt-wrap select option { color: var(--ink); }

/* ==========================================================================
   7. Héros
   ========================================================================== */

.hero {
  position: relative; min-height: min(94svh, 880px);
  display: flex; align-items: flex-end;
  border-radius: 0 0 28px 28px; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  position: relative; width: 100%; height: 118%; top: -18%;
  object-fit: cover;
  animation: hero-fpv 28s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  will-change: transform;
}

/* Travelling avant façon drone FPV : on avance lentement dans la scène */
@keyframes hero-fpv {
  from { scale: 1; }
  to { scale: 1.16; }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14, 24, 18, 0.78) 0%, rgba(14, 24, 18, 0.32) 42%, rgba(14, 24, 18, 0.08) 70%),
    linear-gradient(100deg, rgba(14, 24, 18, 0.45) 0%, transparent 55%);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 30%;
  background: linear-gradient(to bottom, rgba(246, 247, 243, 0.16), transparent);
  z-index: 1; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1; width: 100%;
  padding-bottom: clamp(2.6rem, 6vw, 4.6rem);
}
.hero h1 { color: #fff; max-width: 24ch; font-size: clamp(2.3rem, 4.6vw, 3.55rem); margin-bottom: 0.45em; }
.hero .lede { color: rgba(255, 255, 255, 0.9); max-width: 44ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Bandeau de repères sous le héros */
.facts { border-bottom: 1px solid var(--line-soft); }
.facts-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(1.4rem, 3vw, 2rem);
}
.fact {
  padding-inline: clamp(0.9rem, 2.4vw, 1.8rem);
  border-left: 1px solid var(--line-soft);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong {
  display: block; font-family: "Alpino", system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 640; letter-spacing: -0.01em;
}
.fact span { color: var(--ink-soft); font-size: 0.98rem; }

/* ==========================================================================
   8. Sections de contenu
   ========================================================================== */

.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media img { border-radius: var(--r-card); box-shadow: var(--shadow-1); width: 100%; object-fit: cover; }
.split-media { position: relative; }
.split-caption { margin-top: 0.7rem; font-size: 0.92rem; color: var(--ink-soft); }

.badge-line { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; color: var(--ink); font-weight: 500; }
.badge-line svg { flex: none; width: 22px; height: 22px; }

.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.9rem, 2vw, 1.4rem); }
.tile { position: relative; border-radius: var(--r-card); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.tile:hover img { transform: scale(1.035); }
.tile-cap { margin-top: 0.65rem; }
.tile-cap h3 { margin-bottom: 0.15em; }
.tile-cap p { font-size: 0.95rem; margin: 0; }
.mosaic-item { display: flex; flex-direction: column; }
.mosaic-item.tile-w7 { grid-column: span 7; }
.mosaic-item.tile-w5 { grid-column: span 5; }
.mosaic-item.tile-w6 { grid-column: span 6; }
.mosaic-item .tile { flex: 1; }
.mosaic-item.tile-w7 .tile { aspect-ratio: 16 / 10; }
.mosaic-item.tile-w5 .tile { aspect-ratio: 4 / 3.3; }
.mosaic-item.tile-w6 .tile { aspect-ratio: 16 / 10; }

/* Bloc sombre tarifs : le seul bloc inversé de la page */
.band-forest {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(154, 179, 128, 0.14), transparent 60%),
    var(--forest);
  color: var(--on-forest);
  border-radius: 28px;
  overflow: hidden;
}
.band-forest .wrap { padding-block: clamp(3.4rem, 7vw, 5.5rem); }
.band-forest h2 { color: #fff; }
.band-forest p { color: var(--on-forest-soft); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.14); border-radius: var(--r-card); overflow: hidden; margin: 2.2rem 0 1.8rem; }
.tier { background: var(--forest-2); padding: 1.6rem 1.5rem; }
.tier strong { display: block; font-family: "Alpino", system-ui, sans-serif; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 640; color: #fff; letter-spacing: -0.01em; }
.tier em { font-style: normal; color: var(--leaf); font-size: 0.95rem; }
.tier span { display: block; color: var(--on-forest-soft); font-size: 0.95rem; margin-top: 0.3rem; }

.band-note { font-size: 0.95rem; }

.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.duo-media img { border-radius: var(--r-card); box-shadow: var(--shadow-1); width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.acts { display: flex; flex-direction: column; justify-content: center; }
.act { padding: 1.35rem 0; border-top: 1px solid var(--line); }
.act:last-child { border-bottom: 1px solid var(--line); }
.act h3 { margin-bottom: 0.25em; }
.act p { font-size: 0.98rem; margin: 0; }

.reach { text-align: center; }
.reach h2 { max-width: 22ch; margin-inline: auto; }
.reach .lede { margin-inline: auto; margin-bottom: 1.8em; }
.reach-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.reach-details { display: flex; gap: 2.2rem; justify-content: center; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.98rem; }
.reach-details a { color: var(--ink); text-decoration: none; }
.reach-details a:hover { color: var(--accent); }

/* ==========================================================================
   9. Pages intérieures
   ========================================================================== */

.page-hero { padding-top: calc(var(--header-h) + clamp(3.4rem, 8vw, 6rem)); padding-bottom: clamp(1.6rem, 4vw, 3rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 58ch; }

.prose h2 { margin-top: 1.6em; }
.prose ul { list-style: none; padding: 0; }
.prose li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; color: var(--ink-soft); }
.prose li::before {
  content: ""; position: absolute; left: 0; top: 0.98em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--leaf);
}

.equip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); }
.equip { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 1.7rem 1.8rem; box-shadow: var(--shadow-1); }
.equip h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8em; }
.equip h3 svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
.equip li { padding: 0.32rem 0 0.32rem 1.5rem; position: relative; color: var(--ink-soft); font-size: 0.98rem; }
.equip li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.plan-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 1.4rem; box-shadow: var(--shadow-1); }
.plan-card img { border-radius: 10px; width: 100%; }
.plan-card h3 { margin: 1rem 0 0.4rem; }
.plan-card a { font-weight: 500; }

.price-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); }
.price-tier { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 1.7rem 1.8rem; box-shadow: var(--shadow-1); }
.price-tier.is-featured { background: var(--forest); border-color: var(--forest); }
.price-tier.is-featured h3, .price-tier.is-featured strong { color: #fff; }
.price-tier.is-featured p, .price-tier.is-featured span { color: var(--on-forest-soft); }
.price-tier strong { font-family: "Alpino", system-ui, sans-serif; font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 640; letter-spacing: -0.01em; display: block; }
.price-tier em { font-style: normal; font-size: 0.95rem; color: var(--accent); }
.price-tier.is-featured em { color: var(--leaf); }
.price-tier span { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.35rem; }

.table-scroll { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); background: #fff; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
.table-scroll th, .table-scroll td { padding: 0.65rem 0.9rem; text-align: right; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.table-scroll thead th { background: var(--paper-2); font-family: "Alpino", system-ui, sans-serif; font-weight: 620; border-top: 0; }
.table-scroll th:first-child, .table-scroll td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.table-scroll td { color: var(--ink-soft); }
.table-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.8rem; }

.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); }
.extra { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.extra strong { font-family: "Alpino", system-ui, sans-serif; font-weight: 620; font-size: 1.15rem; }
.extra .extra-price { color: var(--accent); font-weight: 600; }
.extra p { font-size: 0.95rem; margin-top: 0.25rem; }

.gallery { columns: 3; column-gap: 1.1rem; }
.gallery figure { margin: 0 0 1.1rem; break-inside: avoid; border-radius: var(--r-card); overflow: hidden; position: relative; }
.gallery img { width: 100%; transition: transform 600ms var(--ease-out); }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 1.4rem 1rem 0.75rem; color: #fff; font-size: 0.9rem; background: linear-gradient(to top, rgba(14, 24, 18, 0.72), transparent); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-1); }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.75rem 0; border-top: 1px solid var(--line-soft); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 0.2rem; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.contact-list span { display: block; font-size: 0.9rem; color: var(--ink-soft); }

.formlayer-form-wrapper { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-1); }
.formlayer-form label { display: block; font-weight: 560; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--ink); }
.formlayer-form .required-indicator { color: var(--accent); margin-left: 2px; }
.formlayer-form input[type="text"],
.formlayer-form input[type="email"],
.formlayer-form input[type="tel"],
.formlayer-form input[type="number"],
.formlayer-form input[type="date"],
.formlayer-form select,
.formlayer-form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-field);
  padding: 0.75rem 0.95rem; margin-bottom: 1.05rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.formlayer-form textarea { min-height: 140px; resize: vertical; }
.formlayer-form input:focus, .formlayer-form textarea:focus, .formlayer-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 106, 69, 0.16);
}
.formlayer-form ::placeholder { color: rgba(70, 86, 74, 0.65); }
.formlayer-form .formlayer-submit-btn, .formlayer-form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Alpino", system-ui, sans-serif; font-weight: 600; font-size: 1rem;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 0.85rem 1.9rem; cursor: pointer;
  box-shadow: 0 6px 18px rgba(46, 106, 69, 0.28);
  transition: transform 60ms ease-out, background-color 160ms ease;
}
.formlayer-form .formlayer-submit-btn:hover, .formlayer-form button[type="submit"]:hover { background: var(--accent-deep); }
.formlayer-form .formlayer-submit-btn:active { transform: scale(0.97); }
.formlayer-form-status { border-radius: var(--r-field); }

/* ==========================================================================
   10. Pied de page
   ========================================================================== */

.site-footer { background: var(--forest); color: var(--on-forest); margin-top: var(--section); }
.footer-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; font-family: "Alpino", system-ui, sans-serif; font-weight: 660; font-size: 1.25rem; color: #fff; text-decoration: none; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-main p { color: var(--on-forest-soft); font-size: 0.98rem; margin-top: 1rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.9em; }
.site-footer li { padding: 0.28rem 0; }
.site-footer li a { color: var(--on-forest-soft); text-decoration: none; }
.site-footer li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--on-forest-soft); }
.footer-bottom a { color: var(--on-forest-soft); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   11. Barre de conversion mobile
   ========================================================================== */

.convert-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.7rem 0.7rem 1.2rem; border-radius: 999px;
  background: rgba(22, 40, 30, 0.94); color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(130%); opacity: 0;
  transition: transform 380ms var(--ease-out), opacity 300ms ease;
}
.convert-bar.is-visible { transform: none; opacity: 1; }
.convert-bar .cb-price { line-height: 1.25; }
.convert-bar .cb-price strong { font-family: "Alpino", system-ui, sans-serif; font-size: 1.05rem; font-weight: 640; display: block; }
.convert-bar .cb-price span { font-size: 0.8rem; color: var(--on-forest-soft); }
.convert-bar .btn { padding: 0.7rem 1.4rem; font-size: 0.95rem; }

/* ==========================================================================
   12. Révélations au défilement
   ========================================================================== */

.rv { opacity: 0; transform: translateY(26px); }
.rv.in { opacity: 1; transform: none; transition: opacity 640ms ease, transform 720ms var(--ease-out); }
.rv-d1.in { transition-delay: 0.08s; }
.rv-d2.in { transition-delay: 0.16s; }
.rv-d3.in { transition-delay: 0.24s; }

/* ==========================================================================
   13. Adaptations
   ========================================================================== */

@media (max-width: 1023px) {
  .main-nav, .header-cta, .header-lang { display: none; }
  .burger { display: inline-flex; }
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

@media (max-width: 860px) {
  .split, .duo, .contact-grid { grid-template-columns: 1fr; }
  .duo-media { order: -1; }
  .duo-media img { min-height: 0; aspect-ratio: 4 / 3; }
  .equip-grid, .plans, .price-tiers, .extras { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .facts-row { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }

  .mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem; margin-inline: calc(-1 * clamp(1.1rem, 4vw, 2rem)); padding-inline: clamp(1.1rem, 4vw, 2rem); padding-bottom: 0.5rem; scrollbar-width: none; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic-item { flex: 0 0 82%; scroll-snap-align: center; }
  .mosaic-item .tile { aspect-ratio: 4 / 3 !important; }

  .convert-bar { display: flex; }

  .hero { border-radius: 0 0 20px 20px; }
}

@media (max-width: 520px) {
  .gallery { columns: 1; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   14. Préférences utilisateur
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
  .hero-media img { animation: none; scale: 1; height: 100%; top: 0; transform: none !important; }
  .tile img, .gallery img { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: rgba(246, 247, 243, 0.98); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mobile-menu::before { background: rgba(18, 32, 24, 0.99); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .site-header::before { background: #fff; border-color: var(--ink); }
  .mobile-menu::before { background: var(--forest); }
  :root { --line: rgba(28, 42, 32, 0.4); --ink-soft: #2c3a30; }
}

@media print {
  .site-header, .mobile-menu, .convert-bar, .site-footer { display: none; }
}

/* ==========================================================================
   15. Polish v1.0.3 : passe design (bureau, mobile, interactions)
   ========================================================================== */

/* Boutons : boîte de ligne compacte, capsule concentrique */
.btn { line-height: 1.2; }
.header-cta.btn { padding: 0.6rem 1.3rem; font-size: 0.95rem; box-shadow: 0 4px 14px rgba(46, 106, 69, 0.24); }
.header-inner { padding-inline: 1.4rem 0.75rem; }
.btn-ghost:hover { background: rgba(28, 42, 32, 0.05); border-color: rgba(28, 42, 32, 0.45); }
.btn-on-forest { box-shadow: 0 6px 18px rgba(9, 20, 14, 0.35); }

/* Grands chiffres : interligne serré */
.fact strong, .tier strong, .price-tier strong, .extra strong,
.convert-bar .cb-price strong { line-height: 1.12; }
.fact strong, .tier strong, .price-tier strong { margin-bottom: 0.2rem; }

/* Transitions unifiées et détails typographiques */
a { transition: color 160ms ease; }
a, button { -webkit-tap-highlight-color: transparent; }
.tile img { transition: transform 600ms var(--ease-out); }
p { text-wrap: pretty; }
.section-lead { margin-bottom: 2.2rem; }
.card-title { font-size: 1.4rem; }

/* Focus clavier visible sur les fonds sombres */
.band-forest :focus-visible, .site-footer :focus-visible,
.mobile-menu :focus-visible, .convert-bar :focus-visible,
.hero :focus-visible, .price-tier.is-featured :focus-visible { outline-color: var(--on-forest); }

/* Nav bureau : page active nettement marquée */
.main-nav a[aria-current="page"] { background: rgba(46, 106, 69, 0.12); color: var(--accent-deep); font-weight: 560; }

/* Héros : scrim progressif, ancrage sombre en haut, zoom contenu */
.hero-media::after {
  background:
    linear-gradient(to top,
      rgba(14, 24, 18, 0.82) 0%,
      rgba(14, 24, 18, 0.55) 20%,
      rgba(14, 24, 18, 0.30) 42%,
      rgba(14, 24, 18, 0.12) 62%,
      rgba(14, 24, 18, 0.03) 78%,
      transparent 90%),
    linear-gradient(100deg, rgba(14, 24, 18, 0.42) 0%, rgba(14, 24, 18, 0.18) 35%, transparent 60%);
}
.hero::before { height: 22%; background: linear-gradient(to bottom, rgba(14, 24, 18, 0.38), rgba(14, 24, 18, 0.12) 55%, transparent); }
.hero-media img { height: 112%; top: -12%; }
@keyframes hero-fpv { from { scale: 1; } to { scale: 1.08; } }

/* Capsule header : s'éteint sous le menu ouvert, croix et marque lisibles */
.site-header { transition: none; }
.site-header::before { transition: box-shadow 240ms ease, opacity 240ms ease; }
body.menu-open .site-header::before { opacity: 0; }
body.menu-open .brand { color: #fff; }

/* Menu mobile : sortie animée, page active, pied structuré, safe-area */
.mobile-menu { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
.mobile-menu nav a { transition: opacity 160ms ease, transform 200ms ease; }
.mobile-menu-foot { transition: opacity 160ms ease, transform 200ms ease; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.mobile-menu nav a[aria-current="page"] { color: var(--leaf); }
.mobile-menu nav a[aria-current="page"]::after {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--leaf); margin-left: 0.6rem; vertical-align: middle;
}
.mobile-menu nav a:active { opacity: 0.6; }
.mobile-menu-foot .menu-tels a {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.35rem 0.6rem; font-weight: 500; transition: color 160ms ease;
}
.mobile-menu-foot .menu-tels a span { font-size: 0.82rem; color: var(--on-forest-soft); font-weight: 430; }
.mobile-menu-foot .menu-tels a:active { opacity: 0.6; }
.mobile-menu-foot .gt-wrap select { min-height: 44px; padding: 0.55rem 1.9rem 0.55rem 1.1rem; font-size: 0.95rem; }
@media (max-height: 480px) {
  .mobile-menu { padding-top: calc(var(--header-h) + 20px); }
  .mobile-menu nav a { font-size: 1.4rem; padding: 0.3rem 0; }
  .mobile-menu-foot { gap: 0.7rem; }
}

/* Sélecteur de langue : survol */
.header-lang select, .gt-wrap select { transition: border-color 160ms ease; }
.gt-wrap select:hover { border-color: var(--ink); }
.mobile-menu-foot .gt-wrap select:hover { border-color: #fff; }

/* Mosaïque : tuiles élevées, cliquables vers la galerie */
.tile { box-shadow: var(--shadow-1); transition: box-shadow 300ms ease; display: block; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(28, 42, 32, 0.08); pointer-events: none; }
.tile:hover { box-shadow: var(--shadow-2); }
a.tile:focus-visible { outline-offset: 3px; }

/* Bande tarifs sombre : équilibre et profondeur */
.band-forest .wrap { padding-inline: clamp(2rem, 5vw, 4.5rem); }
.band-forest { box-shadow: 0 24px 60px rgba(22, 40, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08); }

/* Table des tarifs : survol de ligne, listes en colonnes propres */
.table-scroll tbody tr { transition: background-color 120ms ease; }
.table-scroll tbody tr:hover { background: rgba(46, 106, 69, 0.06); }
.table-hint { display: none; font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 0.6rem; }
.prose li { break-inside: avoid; }

/* Galerie : focus clavier visible */
.gallery a { display: block; }
.gallery a:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: calc(var(--r-card) - 4px); }
.gallery a:focus-visible img { transform: scale(1.03); }

/* Formulaire : reprise du design system sur le CSS du plugin */
.formlayer-form-wrapper .formlayer-form .formlayer-label { display: block; font-weight: 560; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--ink); }
.formlayer-form-wrapper .formlayer-form input[type="text"],
.formlayer-form-wrapper .formlayer-form input[type="email"],
.formlayer-form-wrapper .formlayer-form input[type="tel"],
.formlayer-form-wrapper .formlayer-form textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-field); padding: 0.75rem 0.95rem;
  margin-bottom: 0; height: auto; box-shadow: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.formlayer-form-wrapper .formlayer-field-wrap { margin-bottom: 1.05rem; }
.formlayer-form-wrapper .formlayer-form input:focus,
.formlayer-form-wrapper .formlayer-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 106, 69, 0.16); transform: none;
}
.formlayer-form-wrapper .formlayer-form .required-indicator { color: var(--accent); margin-left: 2px; }
.formlayer-form-wrapper ::placeholder { color: rgba(70, 86, 74, 0.85); }
.formlayer-form-wrapper .formlayer-submit-btn,
.formlayer-form-wrapper .formlayer-submit-btn.btn-md {
  height: auto; padding: 0.85rem 1.9rem;
  font-family: "Alpino", system-ui, sans-serif; font-weight: 600; font-size: 1rem;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(46, 106, 69, 0.28);
  transition: transform 60ms ease-out, background-color 160ms ease;
}
.formlayer-form-wrapper .formlayer-submit-btn:hover { background: var(--accent-deep); transform: none; box-shadow: 0 6px 18px rgba(46, 106, 69, 0.28); }
.formlayer-form-wrapper .formlayer-submit-btn:active { transform: scale(0.97); }
.formlayer-form-wrapper .formlayer-success-message {
  background: rgba(46, 106, 69, 0.08); color: var(--accent-deep);
  border: 1px solid rgba(46, 106, 69, 0.35); border-radius: var(--r-field);
  padding: 1rem 1.2rem; box-shadow: none; font-size: 1rem; animation: none;
}
.formlayer-form-wrapper .formlayer-error-message { border-radius: var(--r-field); border-left-width: 1px; padding: 1rem 1.2rem; box-shadow: none; font-size: 0.95rem; animation: none; }
@media (min-width: 1024px) {
  .formlayer-form .formlayer-form-fields-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.1rem; }
  .formlayer-form .formlayer-field-wrap, .formlayer-form .formlayer-submit-wrap { grid-column: 1 / -1; }
  .formlayer-form .formlayer-field-wrap:nth-child(1),
  .formlayer-form .formlayer-field-wrap:nth-child(2) { grid-column: auto; }
}
@media (max-width: 767px) {
  .formlayer-form .formlayer-submit-btn, .formlayer-form button[type="submit"] { width: 100%; padding-block: 1rem; }
}

/* Barre de conversion : jamais focalisable quand cachée, safe-area */
.convert-bar {
  visibility: hidden;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transition: transform 380ms var(--ease-out), opacity 300ms ease, visibility 0s linear 380ms;
}
.convert-bar.is-visible { visibility: visible; transition: transform 380ms var(--ease-out), opacity 300ms ease; }

/* Pages intérieures : dégagement sous la capsule flottante */
.page-hero { padding-top: calc(var(--header-h) + 14px + clamp(3.4rem, 8vw, 6rem)); }

/* Mobile : héros recadré, repères filetés, carrousel avec points, table guidée */
.mosaic-dots { display: none; }
@media (max-width: 860px) {
  .hero { min-height: min(78svh, 640px); }
  .hero-media img { object-position: 46% 60%; }
  .facts-row { row-gap: 0; }
  .fact:nth-child(-n+2) { padding-bottom: 1.1rem; }
  .fact:nth-child(n+3) { padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
  .mosaic-item { flex: 0 0 78%; }
  .mosaic-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.1rem; }
  .mosaic-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color 200ms ease, transform 200ms ease; }
  .mosaic-dots span.on { background: var(--accent); transform: scale(1.2); }
}
@media (max-width: 767px) {
  .table-scroll th:first-child, .table-scroll td:first-child {
    position: sticky; left: 0; z-index: 1; background: #fff;
    box-shadow: inset -1px 0 0 var(--line-soft), 6px 0 12px -8px rgba(22, 40, 30, 0.18);
  }
  .table-scroll thead th:first-child { background: var(--paper-2); z-index: 2; }
  .table-hint { display: block; }
}

/* Préférences utilisateur : les surcharges du polish les respectent aussi */
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; scale: 1; height: 100%; top: 0; transform: none !important; }
  .tile img, .gallery img { transition: none; }
}