/* ==========================================================================
   Scion Patrimoine — feuille de styles principale
   Palette : vert forêt profond, sève claire, or patiné, crème
   ========================================================================== */

:root {
  --forest-900: #04120C;
  --forest-800: #071B12;
  --forest-700: #0B2618;
  --forest-600: #113322;
  --sap: #74E0A0;
  --sap-soft: #A8EFC5;
  --gold: #C9A961;
  --gold-soft: #E3CB96;
  --cream: #EEF6F0;
  --sage: #93AC9C;
  --line: rgba(201, 169, 97, 0.22);
  --line-soft: rgba(147, 172, 156, 0.18);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --data: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --shell: 1200px;
  --gutter: 24px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--forest-900);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(116, 224, 160, 0.13), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(201, 169, 97, 0.10), transparent 60%),
    linear-gradient(180deg, var(--forest-800) 0%, var(--forest-900) 55%, #030D08 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sap); text-decoration: none; }
a:hover { color: var(--sap-soft); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--cream);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; color: rgba(238, 246, 240, 0.82); }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sap);
  color: var(--forest-900);
  padding: 12px 18px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------- Éléments type -- */
.eyebrow {
  font-family: var(--data);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.lede { font-size: 1.08rem; color: rgba(238, 246, 240, 0.76); max-width: 62ch; }

.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section--ruled { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------- Boutons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--primary { background: var(--sap); color: #052012; }
.btn--primary:hover { background: var(--sap-soft); color: #052012; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
.btn--wide { width: 100%; }

/* ---------------------------------------------------------- En-tête ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 18, 12, 0.72);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.3s var(--ease);
}
.site-header.is-stuck { background: rgba(4, 18, 12, 0.94); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  display: block;
}
.brand-tag {
  font-family: var(--data);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: rgba(238, 246, 240, 0.78);
  font-size: 0.92rem;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.28s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--cream); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.header-side { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-family: var(--data);
  font-size: 0.85rem;
  color: var(--gold-soft);
  white-space: nowrap;
}
.header-phone:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px; height: 1.6px;
  background: var(--cream);
  transform: translateX(-50%);
  transition: transform 0.28s var(--ease), opacity 0.2s linear;
}
.nav-toggle span { top: 50%; margin-top: -0.8px; }
.nav-toggle span::before { top: -6px; left: 0; transform: none; }
.nav-toggle span::after { top: 6px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------- Héros ---- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero-branch {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.hero h1 span { color: var(--gold-soft); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-note {
  font-family: var(--data);
  font-size: 0.76rem;
  color: var(--sage);
  letter-spacing: 0.04em;
}

/* Pile de cartes financières */
.card-stack { position: relative; padding: 10px 0 26px; }
.fin-card {
  background: linear-gradient(150deg, rgba(17, 51, 34, 0.94), rgba(7, 27, 18, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
}
.fin-card + .fin-card { margin-top: 16px; }
.fin-card--lead { transform: rotate(-1.1deg); }
.fin-card--mid { transform: rotate(0.7deg); margin-left: 6%; }
.fin-card--last { transform: rotate(-0.4deg); margin-right: 4%; }
.fin-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.fin-card-label {
  font-family: var(--data);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.fin-card-value {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--sap);
  line-height: 1;
}
.fin-card-value--gold { color: var(--gold-soft); }
.fin-card p { margin: 0; font-size: 0.88rem; color: rgba(238, 246, 240, 0.66); }

.meter { height: 7px; border-radius: 99px; background: rgba(147, 172, 156, 0.18); overflow: hidden; margin-top: 14px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sap), var(--gold)); }

/* --------------------------------------------------------- Indicateurs -- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.figure { background: var(--forest-900); padding: 30px 22px; text-align: center; }
.figure b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  color: var(--gold-soft);
  line-height: 1.1;
}
.figure span {
  font-family: var(--data);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ------------------------------------------------------------ Grilles --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.tile {
  background: rgba(11, 38, 24, 0.62);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--line); }
.tile figure { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--forest-700); }
.tile figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: saturate(0.82) contrast(1.04); }
.tile:hover figure img { transform: scale(1.05); }
.tile figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 18, 12, 0.1), rgba(4, 18, 12, 0.78));
}
.tile-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.tile-body p { font-size: 0.95rem; }
.tile-index {
  font-family: var(--data);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.tile-list { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-soft); }
.tile-list li {
  font-size: 0.88rem;
  color: rgba(238, 246, 240, 0.72);
  padding-left: 20px;
  position: relative;
  margin-bottom: 7px;
}
.tile-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 9px; height: 1px;
  background: var(--gold);
}

/* -------------------------------------------------------- La méthode ---- */
.method-band { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-soft); }
.method-band > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.4);
}
.method-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(4, 18, 12, 0.95) 20%, rgba(4, 18, 12, 0.7));
}
.method-inner { position: relative; z-index: 2; padding: clamp(34px, 5vw, 60px); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding: 0 22px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-node {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.step-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--sap);
  flex: none;
  box-shadow: 0 0 0 5px rgba(116, 224, 160, 0.14);
}
.step-rail { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); flex: 1; }
.step:last-child .step-rail { background: linear-gradient(90deg, var(--gold), transparent 80%); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; margin: 0; }
.step-when {
  font-family: var(--data);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

/* -------------------------------------------------------- Simulateur ---- */
.sim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  background: rgba(11, 38, 24, 0.6);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 44px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--data);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}
.field-hint { font-size: 0.78rem; color: rgba(147, 172, 156, 0.85); margin: 6px 0 0; }
.input-money { position: relative; display: flex; align-items: center; }
.input-money input { padding-right: 44px; }
.input-money::after {
  content: "€";
  position: absolute;
  right: 16px;
  color: var(--gold);
  font-family: var(--data);
  pointer-events: none;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: rgba(4, 18, 12, 0.75);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--data);
  font-size: 1rem;
  padding: 13px 16px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
textarea { font-family: var(--body); resize: vertical; min-height: 132px; line-height: 1.6; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--sap); background: rgba(4, 18, 12, 0.95); outline: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: rgba(147, 172, 156, 0.24); padding: 0; border: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--sap); cursor: pointer; border: 3px solid var(--forest-900); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--sap); cursor: pointer; border: 3px solid var(--forest-900); }

.sim-out { display: flex; flex-direction: column; gap: 18px; }
.sim-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: linear-gradient(150deg, rgba(17, 51, 34, 0.85), rgba(4, 18, 12, 0.9));
}
.sim-result-value {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--sap);
  line-height: 1;
  display: block;
  margin: 6px 0 4px;
}
.sim-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sim-split div {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.sim-split b { display: block; font-family: var(--data); font-size: 1.02rem; color: var(--gold-soft); }
.sim-split span { font-family: var(--data); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }
.sim-bars { display: flex; flex-direction: column; gap: 10px; }
.sim-bar-row { display: grid; grid-template-columns: 130px 1fr 66px; align-items: center; gap: 12px; font-size: 0.8rem; }
.sim-bar-row span:first-child { color: rgba(238, 246, 240, 0.78); }
.sim-bar-row span:last-child { font-family: var(--data); color: var(--gold-soft); text-align: right; }
.sim-track { height: 8px; border-radius: 99px; background: rgba(147, 172, 156, 0.16); overflow: hidden; }
.sim-track i { display: block; height: 100%; border-radius: 99px; transition: width 0.45s var(--ease); }
.sim-track i.fixed { background: linear-gradient(90deg, #3E7F5C, #5FA97D); }
.sim-track i.var { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.sim-track i.save { background: linear-gradient(90deg, var(--sap), var(--sap-soft)); }
.sim-alert { font-size: 0.85rem; color: var(--gold-soft); margin: 0; }

/* ------------------------------------------------------------ Tarifs ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: rgba(11, 38, 24, 0.55);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: var(--line); }
.plan--featured { border-color: var(--gold); background: linear-gradient(170deg, rgba(23, 62, 41, 0.85), rgba(7, 27, 18, 0.9)); }
.plan-flag {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--gold);
  color: #1E1503;
  font-family: var(--data);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
}
.plan h3 { margin-bottom: 4px; }
.plan-for { font-size: 0.86rem; color: var(--sage); margin-bottom: 20px; min-height: 44px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price b { font-family: var(--display); font-size: 2.6rem; font-weight: 500; color: var(--cream); line-height: 1; }
.plan-price span { font-family: var(--data); font-size: 0.82rem; color: var(--sage); }
.plan-terms { font-family: var(--data); font-size: 0.72rem; color: var(--gold); margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line-soft); }
.plan ul li { position: relative; padding-left: 26px; font-size: 0.92rem; margin-bottom: 11px; color: rgba(238, 246, 240, 0.8); }
.plan ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 4px;
  border-left: 1.6px solid var(--sap);
  border-bottom: 1.6px solid var(--sap);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

.price-note {
  margin-top: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.price-note p { margin: 0; font-size: 0.9rem; }
.price-note strong { color: var(--gold-soft); }

/* ------------------------------------------------------- Témoignages ---- */
.quote {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(11, 38, 24, 0.5);
  display: flex;
  flex-direction: column;
}
.quote blockquote { margin: 0 0 22px; font-family: var(--display); font-size: 1.08rem; line-height: 1.55; color: var(--cream); }
.quote blockquote::before { content: "“"; color: var(--gold); font-size: 2.2rem; line-height: 0; vertical-align: -0.28em; margin-right: 4px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.quote-name { font-size: 0.92rem; color: var(--cream); display: block; }
.quote-meta { font-family: var(--data); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }

/* --------------------------------------------------------------- FAQ ---- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.08rem;
  text-align: left;
  padding: 22px 4px;
  cursor: pointer;
}
.faq-q:hover { color: var(--gold-soft); }
.faq-sign { position: relative; width: 16px; height: 16px; flex: none; }
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-sign::before { top: 7.5px; left: 0; width: 16px; height: 1.4px; }
.faq-sign::after { left: 7.5px; top: 0; width: 1.4px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-sign::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.36s var(--ease); }
.faq-a p { padding: 0 4px 22px; margin: 0; font-size: 0.95rem; }

/* ----------------------------------------------------------- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
.form-card {
  background: rgba(11, 38, 24, 0.6);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 40px);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(238, 246, 240, 0.74);
  margin: 4px 0 22px;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--sap); flex: none; margin-top: 2px; }
.field-error { display: none; font-family: var(--data); font-size: 0.72rem; color: #F0A88A; margin-top: 6px; }
.is-invalid input, .is-invalid textarea, .is-invalid select { border-color: #C6704F; }
.is-invalid .field-error { display: block; }
.form-feedback {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sap);
  background: rgba(116, 224, 160, 0.1);
  font-size: 0.92rem;
  color: var(--sap-soft);
}
.form-feedback.is-shown { display: block; }

.contact-aside img { border-radius: var(--radius); margin-bottom: 26px; filter: saturate(0.7) brightness(0.85); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list li:last-child { border-bottom: none; }
.contact-list b {
  display: block;
  font-family: var(--data);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 5px;
}
.contact-list span, .contact-list a { font-size: 0.98rem; color: var(--cream); }
.contact-list a:hover { color: var(--gold-soft); }

/* ------------------------------------------------------------- Footer --- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 62px 0 34px; background: rgba(3, 12, 8, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 {
  font-family: var(--data);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(238, 246, 240, 0.74); font-size: 0.92rem; }
.footer-links a:hover { color: var(--cream); }
.footer-about p { font-size: 0.9rem; max-width: 42ch; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--sage);
}
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--sage); }

/* ------------------------------------------------------------ Cookies --- */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 120;
  background: rgba(6, 24, 16, 0.97);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95);
  display: none;
  gap: 26px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}
.cookie-bar.is-shown { display: flex; }
.cookie-bar p { margin: 0; font-size: 0.88rem; }
.cookie-bar h4 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 6px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 12px 20px; font-size: 0.86rem; }

.cookie-sheet {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(2, 9, 6, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.cookie-sheet.is-shown { display: flex; }
.cookie-sheet-inner {
  background: var(--forest-800);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
}
.pref-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pref-row p { margin: 4px 0 0; font-size: 0.84rem; }
.pref-row strong { font-size: 0.98rem; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0;
  background: rgba(147, 172, 156, 0.25);
  border-radius: 99px;
  transition: background-color 0.25s var(--ease);
  pointer-events: none;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform 0.25s var(--ease);
}
.switch input:checked + i { background: var(--sap); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: 0.55; }
.switch input:focus-visible + i { outline: 2px solid var(--sap); outline-offset: 3px; }

/* ------------------------------------------------------ Pages légales --- */
.legal-hero { padding: clamp(50px, 7vw, 86px) 0 30px; border-bottom: 1px solid var(--line-soft); }
.legal-body { padding: 54px 0 90px; }
.legal-wrap { max-width: 820px; }
.legal-wrap h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 46px; }
.legal-wrap h3 { font-size: 1.1rem; margin-top: 28px; }
.legal-wrap ul, .legal-wrap ol { padding-left: 20px; color: rgba(238, 246, 240, 0.82); }
.legal-wrap li { margin-bottom: 9px; }
.legal-wrap table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.9rem; }
.legal-wrap th, .legal-wrap td { border: 1px solid var(--line-soft); padding: 12px 14px; text-align: left; vertical-align: top; }
.legal-wrap th { font-family: var(--data); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.legal-updated { font-family: var(--data); font-size: 0.76rem; color: var(--sage); }
.legal-toc { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.legal-toc a {
  display: inline-block;
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 0.82rem;
  color: rgba(238, 246, 240, 0.8);
}
.legal-toc a:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ------------------------------------------------------- Haut de page --- */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(6, 24, 16, 0.9);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 70;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); }

/* ------------------------------------------------------- Apparitions ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- Adaptatif ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-stack { max-width: 520px; }
  .grid-3, .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .sim, .contact-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan--featured { order: -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(4, 18, 12, 0.985);
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 24px 26px;
    transform: translateY(-140%);
    transition: transform 0.36s var(--ease);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav a::after { display: none; }
  .header-phone { display: none; }
  .header-side .btn { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .plans, .steps, .sim-split, .field-row { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .step { padding: 0; }
  .figures { grid-template-columns: 1fr 1fr; }
  .fin-card--mid, .fin-card--last { margin: 16px 0 0; }
  .fin-card--lead, .fin-card--mid, .fin-card--last { transform: none; }
  .cookie-bar { flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; }
  .cookie-actions .btn { flex: 1; }
  .price-note { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .sim-bar-row { grid-template-columns: 92px 1fr 56px; font-size: 0.76rem; }
  .section { padding: 58px 0; }
}

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