/* ==========================================================================
   Géoclimair — feuille de style
   Bleu nuit pour les blocs forts, vert « Géo » du logo pour les actions, bleu « air » pour le froid.
   1. Polices  2. Variables  3. Base  4. Boutons  5. Bandeau, en-tête & menu  6. Sections
   7. Formulaire  8. Pied de page  9. Pages simples  10. Animations  11. Responsive  12. Mouvement réduit
   ========================================================================== */

/* 1. Polices (hébergées sur le site) --------------------------------------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* 2. Variables ------------------------------------------------------------ */
:root {
  --navy: #0d3446;
  --navy-2: #124359;
  --navy-3: #0a2733;
  --ink: #10303d;
  --text: #2f444d;
  --mute: #566a72;
  --line: #d5e0e5;
  --field: #a9bcc4;
  --paper: #f2f5f6;
  --white: #ffffff;

  --lime: #c2d30f;        /* « Géo » du logo */
  --lime-hover: #d3e23a;
  --teal: #6cc3be;        /* « clim » */
  --blue: #0eb1df;        /* « air » */
  --blue-light: #8ed6f2;  /* cercle du logo */
  --blue-dark: #0a7ea4;
  --on-navy: #cfdee4;
  --on-navy-mute: #a3bac3;
  --error: #c0392b;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Barlow Semi Condensed", "Barlow", "Arial Narrow", sans-serif;
  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 6.5rem);
  --header-h: 84px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.09rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-dark); }
p, h1, h2, h3, h4, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-title); font-weight: 700; line-height: 1.05; letter-spacing: -0.005em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: 0.75rem 1rem; background: var(--lime); color: var(--navy); font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 1rem; }
.icon { flex: none; width: 1.2em; height: 1.2em; }
.section-title { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); }
.section-intro { max-width: 46rem; margin-top: 1rem; font-size: 1.15rem; color: var(--mute); }
.todo { padding: 0.05em 0.45em; border: 1px dashed currentColor; color: #b45309; font-size: 0.9em; }

/* 4. Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.45rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn .icon:last-child { transition: transform 0.3s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--primary { background: var(--lime); color: var(--navy); }
.btn--primary:hover { background: var(--lime-hover); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--outline-light .icon, .btn--outline .icon { width: 1.1em; height: 1.1em; }
.btn--outline-light:hover .icon:last-child, .btn--outline:hover .icon:last-child { transform: none; }
.btn--small { padding: 0.65rem 1.1rem; font-size: 1rem; }
.site-header__cta { white-space: nowrap; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* 5. Bandeau, en-tête & menu --------------------------------------------- */
.topbar { background: var(--navy-3); color: var(--on-navy-mute); font-size: 0.93rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar p, .topbar a { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar .icon { width: 1.05em; height: 1.05em; color: var(--lime); }
.topbar__links { gap: 1.75rem !important; }
.topbar a { color: var(--white); font-weight: 500; text-decoration: none; }
.topbar a:hover { color: var(--lime); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(13, 52, 70, 0.1); }
.site-header__inner { display: flex; align-items: center; gap: 2.25rem; height: 100%; }
.brand { margin-right: auto; }
.brand img { width: auto; height: 56px; }
.nav__list { display: flex; gap: 2rem; }
.nav__link {
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--blue-dark); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.25rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 22px; height: 12px; }
.menu-toggle__icon i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { top: 5px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--menu-top, var(--header-h));
  z-index: 45;
  overflow-y: auto;
  background: var(--white);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu__nav { display: flex; flex-direction: column; gap: 2rem; padding-block: 1rem 2rem; }
.menu__list li { border-bottom: 1px solid var(--line); }
.menu__list a { display: block; padding: 1rem 0; font-family: var(--font-title); font-size: 1.75rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.menu__foot { display: grid; gap: 0.75rem; }

/* 6. Sections ------------------------------------------------------------- */

/* Accueil : bloc bleu nuit + photo pleine hauteur */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); min-height: clamp(520px, 76vh, 700px); background: var(--navy); }
.hero__panel {
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) clamp(2.5rem, 6vw, 5.5rem);
  color: var(--on-navy);
}
.hero__content { max-width: 620px; }
.hero__kicker { font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; color: var(--lime); }
.hero__title { margin-top: 1rem; font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.2rem); line-height: 1; color: var(--white); }
.hero__swoosh { width: min(100%, 360px); height: auto; margin-top: 1rem; overflow: visible; }
.hero__swoosh path { fill: none; stroke: var(--blue-light); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__lead { max-width: 34rem; margin-top: 1.25rem; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; }
.hero__lead strong { color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.hero__media { position: relative; overflow: hidden; background: var(--navy-2); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; scale: calc(1.03 + var(--p, 0) * 0.06); }

/* Marques agréées */
.brands { padding-block: 2.75rem; border-bottom: 1px solid var(--line); }
.brands__inner { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr); align-items: center; gap: 2rem 3rem; }
.brands__title { font-size: 1.6rem; }
.brands__text p { margin-top: 0.35rem; font-size: 1rem; color: var(--mute); }
.brands__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
.brands__item { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 0.5rem 1.25rem; border-left: 1px solid var(--line); }
.brands__item img { width: auto; max-width: 100%; height: 30px; }
.brands__item--thermor img { height: 36px; }
.brands__item--mitsubishi img { height: 60px; }
.brands__item--samsung img { height: 24px; }

/* Prestations : bloc bleu nuit */
.services { padding-block: var(--section-y); background: var(--navy); color: var(--on-navy); }
.services .section-title { color: var(--white); }
.services .section-intro { color: var(--on-navy-mute); }
.services .section-intro strong { color: var(--white); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.services__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.services__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2.75rem; }
.service { padding-top: 1.1rem; border-top: 3px solid var(--lime); }
.service:nth-child(2) { border-color: var(--teal); }
.service:nth-child(3) { border-color: var(--blue); }
.service:nth-child(4) { border-color: var(--blue-light); }
.service__title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.45rem; color: var(--white); }
.service__title .icon { width: 1.05em; height: 1.05em; color: var(--lime); }
.service__text { margin-top: 0.6rem; font-size: 1.02rem; line-height: 1.6; color: var(--on-navy); }

.schematic { padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; background: var(--navy-2); }
.schematic__svg { width: 100%; height: auto; overflow: visible; }
.schematic text { font-family: var(--font); font-size: 15.5px; font-weight: 600; fill: #e8f1f4; }
.schematic__pipe { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.schematic__pipe--hot { stroke: var(--lime); }
.schematic__pipe--cold { stroke: var(--blue); }
.schematic__flow { fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 0.5 17.5; opacity: 0; transition: opacity 0.8s; }
.schematic.is-complete .schematic__flow { opacity: 1; animation: flow 1.4s linear infinite; animation-play-state: paused; }
.schematic.is-complete.is-visible .schematic__flow { animation-play-state: running; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.schematic__part circle, .schematic__part path { fill: var(--navy-2); stroke: #e8f1f4; stroke-width: 2; stroke-linejoin: round; }
.schematic__heat path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schematic__heat--out path { stroke: var(--lime); }
.schematic__heat--out text { fill: var(--lime); }
.schematic__heat--in path { stroke: var(--blue); }
.schematic__heat--in text { fill: var(--blue-light); }
.schematic__caption { margin-top: 0.75rem; text-align: center; font-size: 0.95rem; color: var(--on-navy-mute); }

/* Qui suis-je */
.about { padding-block: var(--section-y); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.about__photo { position: relative; isolation: isolate; padding: 0 1.25rem 1.25rem 0; }
.about__photo::before { content: ""; position: absolute; z-index: -1; inset: 1.25rem 0 0 1.25rem; background: var(--lime); }
.about__frame img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.about__photo figcaption { position: absolute; left: 0.75rem; bottom: 2rem; padding: 0.2rem 0.5rem; background: rgba(13, 52, 70, 0.85); color: var(--white); font-size: 0.82rem; }
.about__text p { max-width: 36rem; margin-top: 1rem; }
.about__text .section-title { margin-bottom: 0.5rem; }
.years { max-width: 28rem; margin-top: 2.25rem; }
.years__figure { display: flex; align-items: baseline; gap: 0.6rem; font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.years__figure strong { font-size: clamp(3.4rem, 2.6rem + 2.4vw, 4.6rem); font-weight: 700; line-height: 1; color: var(--navy); }
.years__figure strong span { color: var(--blue); }
.ruler { position: relative; height: 18px; margin-top: 0.75rem; }
.ruler__ticks {
  position: absolute;
  inset: 5px 0 0;
  border-right: 1px solid #a9bcc4;
  background:
    repeating-linear-gradient(90deg, #a9bcc4 0 1px, transparent 1px 25%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, #cfdbe0 0 1px, transparent 1px 5%) 0 0 / 100% 50% no-repeat;
}
.ruler__fill { position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--lime), var(--teal), var(--blue)); transform: scaleX(var(--p, 1)); transform-origin: left; }

/* Rendez-vous : panneau bleu nuit + formulaire blanc */
.contact { padding-block: var(--section-y); background: var(--paper); }
.contact__box { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); overflow: hidden; border-radius: 6px; box-shadow: 0 24px 60px rgba(13, 52, 70, 0.14); }
.contact__info { padding: clamp(2rem, 4vw, 3rem); background: var(--navy); color: var(--on-navy); }
.contact__info .section-title { color: var(--white); }
.contact__lead { margin-top: 1rem; }
.contact__phone { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem; font-family: var(--font-title); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.3rem); font-weight: 700; color: var(--lime); text-decoration: none; }
.contact__phone:hover { color: var(--lime-hover); }
.contact__list { display: grid; gap: 0.9rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.contact__list a, .contact__list > li > span { display: inline-flex; align-items: flex-start; gap: 0.65rem; color: var(--white); text-decoration: none; }
.contact__list a:hover { color: var(--lime); }
.contact__list .icon { margin-top: 0.2rem; color: var(--lime); }
.contact__review { display: grid; justify-items: start; gap: 0.8rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.contact__review p { max-width: 24rem; }
.contact__review .btn .icon { color: var(--lime); }

/* 7. Formulaire ----------------------------------------------------------- */
.form { padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); }
.form__status { margin-bottom: 1.5rem; padding: 0.9rem 1.1rem; border-left: 4px solid; background: var(--paper); font-weight: 600; color: var(--ink); }
.form__status.is-success { border-color: var(--lime); background: #f6f9e3; }
.form__next { display: grid; justify-items: start; gap: 0.85rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid rgba(13, 52, 70, 0.14); font-weight: 400; color: var(--text); }
.form__status.is-error { border-color: var(--error); background: #fdecea; color: #8e2a1f; }
.form__group { min-width: 0; margin: 0 0 1.4rem; padding: 0; border: 0; }
.form__label { display: block; margin-bottom: 0.45rem; padding: 0; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.choice:hover span { border-color: var(--navy); }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { margin-bottom: 1.2rem; }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1.05rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(14, 177, 223, 0.22); }
.field ::placeholder { color: #8296a0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin-top: 0.4rem; font-size: 0.92rem; font-weight: 600; color: var(--error); }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.7rem; margin: 0.25rem 0 1.5rem; font-size: 0.95rem; color: var(--mute); }
.consent input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--navy); cursor: pointer; }
.consent .field__error { grid-column: 2; }
.btn--submit { width: 100%; padding-block: 1rem; font-size: 1.1rem; }

/* Choix du type de demande : cartes avec pictogramme */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tile__box { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 0.7rem; height: 100%; padding: 0.8rem 0.9rem; border: 1.5px solid var(--field); border-radius: var(--radius); background: var(--white); transition: background-color 0.2s, border-color 0.2s; }
.tile__box .icon { grid-row: span 2; width: 1.6rem; height: 1.6rem; color: var(--blue-dark); transition: color 0.2s; }
.tile__label { font-weight: 600; line-height: 1.2; color: var(--ink); transition: color 0.2s; }
.tile__hint { font-size: 0.86rem; line-height: 1.25; color: var(--mute); transition: color 0.2s; }
.tile:hover .tile__box { border-color: var(--navy); }
.tile input:checked + .tile__box { border-color: var(--navy); background: var(--navy); }
.tile input:checked + .tile__box .tile__label { color: var(--white); }
.tile input:checked + .tile__box .tile__hint { color: var(--on-navy-mute); }
.tile input:checked + .tile__box .icon { color: var(--lime); }
.tile input:focus-visible + .tile__box { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Liste déroulante */
.select { position: relative; }
.select select { display: block; width: 100%; padding: 0.75rem 2.6rem 0.75rem 0.9rem; border: 1.5px solid var(--field); border-radius: var(--radius); background: var(--white); font-size: 1.05rem; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.select select:has(option[value=""]:checked) { color: #8296a0; }
.select::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.45rem; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); rotate: 45deg; pointer-events: none; }
.select select:focus { outline: none; border-color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(14, 177, 223, 0.22); }
.field [aria-invalid="true"] + .select::after, .select select[aria-invalid="true"] { border-color: var(--error); }

/* Volet « Mise en service » : s'ouvre sous les cartes quand ce choix est fait */
.extra { margin-bottom: 1.4rem; }
.extra__inner { min-height: 0; margin: -4px; padding: 4px; }
.extra__card { padding: clamp(1.1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: 6px; background: var(--paper); }
.extra__title { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1.1rem; font-size: 1.35rem; }
.extra__title .icon { width: 1.05em; height: 1.05em; color: var(--blue-dark); }
.extra .field:last-of-type { margin-bottom: 1rem; }
.extra .consent { margin-bottom: 0; }
.extra__hint { margin: -0.6rem 0 1.1rem; font-size: 0.95rem; color: var(--mute); }
.extra[data-extra="device"] .extra__card { border-top-color: var(--blue); }
[data-zone-hint][hidden], [data-device-other][hidden], [data-device-meaning][hidden], [data-device-sets][hidden], [data-device-pick][hidden], [data-device-leds][hidden], [data-device-code-field][hidden], [data-photo-add][hidden] { display: none; }
/* Photos du formulaire (dépannage, SAV) : miniatures à retirer, et bouton « Ajouter une photo » (le champ fichier est posé dessus, invisible). */
.photos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.7rem; }
.photos:empty { display: none; }
.photos__item { position: relative; width: 88px; height: 88px; overflow: hidden; border: 1.5px solid var(--field); border-radius: var(--radius); background: var(--paper); }
.photos__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photos__remove { position: absolute; top: 4px; right: 4px; width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%; background: rgba(13, 52, 70, 0.88); color: var(--white); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.photos__remove:hover { background: var(--navy); }
.photos__add { position: relative; overflow: hidden; cursor: pointer; }
.photos__input { position: absolute; inset: 0; width: 100%; height: 100%; font-size: 0; opacity: 0; cursor: pointer; }
html:not(.js) .photos__input { position: static; width: auto; height: auto; font-size: 1rem; opacity: 1; }
/* Sans JavaScript : pas de boutons (un code, des voyants…), il reste le champ « code » et la durée de la panne. */
html:not(.js) [data-device-js] { display: none; }
/* Boutons à toucher : l'appareil, puis le code affiché (comme les choix « Particulier / Professionnel », mais cliquables un par un). */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 2.6rem;
  padding: 0.5rem 0.95rem;
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.extra[data-extra="device"] .form__group { margin-bottom: 1.1rem; }
.device__hint { margin: 0.2rem 0 1rem; font-size: 0.95rem; line-height: 1.5; color: var(--mute); }
.form__group > .device__hint:last-child, .field > .device__hint:last-child { margin-bottom: 0; }
.zone { margin: 0.2rem 0 0; padding: 0.6rem 0.85rem; border-left: 4px solid var(--field); border-radius: 0 6px 6px 0; background: var(--white); color: var(--navy); }
.zone--in { border-left-color: var(--lime); }
.zone--out { border-left-color: #f4b740; }
.device__meaning { margin: 0.7rem 0 0; padding: 0.75rem 0.95rem; border-left: 4px solid var(--blue); border-radius: 0 6px 6px 0; background: var(--white); font-size: 0.95rem; line-height: 1.5; color: var(--navy); }

/* Page « carte de visite » (/carte) : gros boutons empilés, pensés pour le téléphone. */
.card-page__wrap { max-width: 34rem; }
.card-actions { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.card-actions .btn { width: 100%; justify-content: flex-start; gap: 0.8rem; padding-block: 1rem; font-size: 1.1rem; text-align: left; }
.card-actions .card-actions__call { justify-content: center; font-size: 1.3rem; }
.card-actions__hint { margin: 0.45rem 0 0; font-size: 0.95rem; color: var(--mute); }
.card-steps { margin: 1.25rem 0 0; }
.card-steps dt { margin-top: 1rem; font-weight: 700; color: var(--navy); }
.card-steps dd { margin: 0.2rem 0 0; }
.page-hero__back { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Barre d'appel : sur téléphone, « Appeler » et « Prendre rendez-vous » restent à portée de pouce (masquée quand le formulaire est à l'écran). */
.callbar { display: none; }
.field .stepper { display: flex; }
.field .stepper__input { flex: 1; width: auto; min-width: 0; padding: 0.6rem 0.25rem; border: 0; border-inline: 1.5px solid var(--field); border-radius: 0; font-size: 1.6rem; }
.field .stepper__input:focus { border-color: var(--field); box-shadow: inset 0 0 0 3px rgba(14, 177, 223, 0.35); }
html:not(.js) .stepper__btn { display: none; }

/* 8. Pied de page --------------------------------------------------------- */
.site-footer { padding-top: clamp(3rem, 6vw, 4.5rem); background: var(--navy-3); color: var(--on-navy-mute); font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.site-footer__brand img { width: auto; height: 76px; padding: 0.6rem 0.9rem; border-radius: var(--radius); background: var(--white); }
.site-footer__brand p { margin-top: 1rem; }
.site-footer strong { color: var(--white); }
.site-footer__title { margin-bottom: 0.9rem; font-size: 1.2rem; color: var(--white); }
.site-footer__links { display: grid; gap: 0.55rem; }
.site-footer a, .site-footer__links > li > span { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer .icon { color: var(--lime); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-block: 1.25rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.92rem; }

/* 9. Pages simples (mentions légales, 404) ------------------------------- */
.page-simple main { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y); }
.legal__body { max-width: 46rem; margin-top: 2rem; }
.legal__body section { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.legal__body h2 { margin-bottom: 0.75rem; font-size: 1.5rem; }
.legal__body p + p { margin-top: 0.75rem; }
.notfound p { margin-block: 1rem 2rem; color: var(--mute); }

/* 9b. Pages de contenu (contrats d'entretien, tarifs) ---------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon--down { rotate: 90deg; }
.page-block { padding-block: var(--section-y); }
.page-block--paper { background: var(--paper); }
.eyebrow { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-dark); }

/* Bandeau de page : bleu nuit, filet aux trois couleurs du logo */
.page-hero { position: relative; padding-block: clamp(3rem, 7vw, 5rem) clamp(3.5rem, 7vw, 5.5rem); background: var(--navy); color: var(--on-navy); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--lime) 0 33.34%, var(--teal) 33.34% 66.67%, var(--blue) 66.67%); }
.page-hero__kicker { font-weight: 600; letter-spacing: 0.02em; color: var(--lime); }
.page-hero__title { max-width: 18ch; margin-top: 0.85rem; font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4rem); line-height: 1; color: var(--white); }
.page-hero__lead { max-width: 40rem; margin-top: 1.25rem; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; }
.page-hero__lead strong { color: var(--white); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* Contrats : « c'est quoi ? » */
.intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(1.5rem, 5vw, 4.5rem); }
.intro__text p { max-width: 38rem; }
.intro__text p + p { margin-top: 1rem; }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.perk { padding-top: 1.1rem; border-top: 3px solid var(--lime); }
.perk:nth-child(2) { border-color: var(--teal); }
.perk:nth-child(3) { border-color: var(--blue); }
.perk__title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.45rem; }
.perk__title .icon { width: 1.05em; height: 1.05em; color: var(--blue-dark); }
.perk p { margin-top: 0.6rem; }

/* Un contrat : présentation, prix, contenu */
.contract__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.contract__head .section-title { margin-top: 0.5rem; }
.contract__lead { max-width: 38rem; margin-top: 1rem; font-size: 1.12rem; }
.contract__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
.contract__file { font-size: 0.95rem; color: var(--mute); }
.price-card { padding: clamp(1.5rem, 3vw, 2rem); border-radius: 6px; background: var(--navy); color: var(--on-navy); box-shadow: 0 24px 60px rgba(13, 52, 70, 0.14); }
.price-card__label { font-weight: 600; color: var(--on-navy-mute); }
.price-card__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.65rem; font-family: var(--font-title); }
.price-card__amount strong { font-size: clamp(3.2rem, 2.5rem + 2.2vw, 4.4rem); font-weight: 700; line-height: 1; color: var(--lime); }
.price-card__amount span { font-size: 1.3rem; font-weight: 600; color: var(--white); }
.price-card__list { display: grid; gap: 0.65rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.price-card__list li, .checklist li, .option__points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; }
.price-card__list .icon { margin-top: 0.22rem; color: var(--lime); }

.options__title { font-size: 1.6rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.option { display: flex; flex-direction: column; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: 6px; background: var(--white); }
.option:nth-child(2) { border-top-color: var(--teal); }
.option:nth-child(3) { border-top-color: var(--blue); }
.option__num { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.option__name { margin-top: 0.25rem; font-size: 1.6rem; }
.option__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; margin-top: 0.5rem; font-family: var(--font-title); }
.option__price strong { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--navy); }
.option__price span { font-weight: 600; color: var(--mute); }
.option__lead { margin-top: 1rem; font-weight: 600; color: var(--ink); }
.option__points { display: grid; gap: 0.6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.option__lead + .option__points { margin-top: 0.6rem; }
.option .icon, .checklist .icon { margin-top: 0.25rem; color: var(--blue-dark); }

.contract__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.panel { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: 6px; background: var(--white); }
.panel--teal { border-top-color: var(--teal); }
.panel__title { font-size: 1.5rem; }
.panel__title--sub { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1.3rem; }
.panel__sub { margin-top: 0.4rem; color: var(--mute); }
.panel__note { margin-top: 0.9rem; font-size: 0.95rem; color: var(--mute); }
.panel__text { margin-top: 0.6rem; }
.checklist { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.checklist--roomy { gap: 1rem; margin-top: 1.5rem; }
.rates { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 1rem; }
.rates th, .rates td { padding: 0.65rem 0.4rem; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.rates thead th { padding-top: 0; font-size: 0.85rem; font-weight: 600; line-height: 1.25; vertical-align: bottom; color: var(--mute); }
.rates tbody th { padding-left: 0; text-align: left; font-weight: 500; color: var(--text); }
.rates td:nth-of-type(1) { font-weight: 700; color: var(--ink); }
.rates thead th:first-child { text-align: left; padding-left: 0; }
.rates td:last-child, .rates thead th:last-child { padding-right: 0; }

/* Conditions repliables (sans JavaScript) */
.fold { margin-top: clamp(2rem, 4vw, 2.75rem); border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.fold summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: ""; flex: none; width: 0.65rem; height: 0.65rem; margin-bottom: 0.25rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; transition: rotate 0.3s var(--ease), margin 0.3s var(--ease); }
.fold[open] summary::after { margin-bottom: -0.2rem; rotate: 225deg; }
.fold summary:hover { color: var(--blue-dark); }
.terms { display: grid; gap: 0.85rem; padding: 0 1.4rem; }
.terms li { max-width: 60rem; }
.fold__note { margin: 1.25rem 1.4rem 1.4rem; font-size: 0.95rem; color: var(--mute); }
.fold--mini { margin-top: 0.25rem; margin-bottom: 1.1rem; }
.fold--mini summary { padding: 0.8rem 1rem; font-size: 1.1rem; }
.fold--mini .checklist { gap: 0.6rem; margin: 0; padding: 0 1rem 1rem; font-size: 0.95rem; }

/* Comment souscrire : bloc bleu nuit */
.signup { padding-block: var(--section-y); background: var(--navy); color: var(--on-navy); }
.signup .section-title { color: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2rem, 4vw, 3rem); counter-reset: step; }
.step { padding-top: 1.1rem; border-top: 3px solid var(--lime); counter-increment: step; }
.step:nth-child(2) { border-color: var(--teal); }
.step:nth-child(3) { border-color: var(--blue); }
.step::before { content: counter(step); display: block; margin-bottom: 0.4rem; font-family: var(--font-title); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--lime); }
.step__title { font-size: 1.45rem; color: var(--white); }
.step p { margin-top: 0.5rem; }
.signup__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: clamp(2rem, 4vw, 3rem); }

/* Tarifs : grille en deux colonnes, exemples sur bloc bleu nuit, conditions */
.tariffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.25rem, 3vw, 2rem); }
.tariffs__col { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.tariff { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: 6px; background: var(--white); }
.tariffs__col:nth-child(1) .tariff:nth-child(2) { border-top-color: var(--teal); }
.tariffs__col:nth-child(2) .tariff:nth-child(1) { border-top-color: var(--blue); }
.tariffs__col:nth-child(2) .tariff:nth-child(2) { border-top-color: var(--blue-light); }
.tariff__title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.5rem; }
.tariff__title .icon { width: 1.05em; height: 1.05em; color: var(--blue-dark); }
.tariff__sub { margin-top: 0.25rem; color: var(--mute); }
.price-list { width: 100%; margin-top: 0.75rem; border-collapse: collapse; }
.price-list th, .price-list td { padding: 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-list tr:last-child th, .price-list tr:last-child td { border-bottom: 0; padding-bottom: 0.2rem; }
.price-list th { padding-right: 1rem; text-align: left; font-weight: 500; color: var(--text); }
.price-list td { text-align: right; white-space: nowrap; font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.price-list .price-list__quote { font-family: var(--font); font-size: 1.02rem; font-weight: 600; color: var(--blue-dark); }
.tariffs__note { margin-top: 1.5rem; font-size: 0.95rem; color: var(--mute); }

.examples { padding-block: var(--section-y); background: var(--navy); color: var(--on-navy); }
.examples .section-title { color: var(--white); }
.example-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.example { padding-top: 1.1rem; border-top: 3px solid var(--lime); }
.example:nth-child(2) { border-color: var(--teal); }
.example:nth-child(3) { border-color: var(--blue); }
.example__title { font-size: 1.45rem; color: var(--white); }
.example__detail { margin-top: 0.4rem; color: var(--on-navy-mute); }
.example__price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 1rem; font-family: var(--font-title); }
.example__price strong { font-size: clamp(2.8rem, 2.3rem + 1.6vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--lime); }
.example__price span { font-size: 1.2rem; font-weight: 600; color: var(--white); }
.example__sum { margin-top: 0.35rem; font-size: 0.98rem; color: var(--on-navy-mute); }
.examples__note { margin-top: 2rem; font-size: 0.95rem; color: var(--on-navy-mute); }

.conditions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.cta-card { display: grid; justify-items: start; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 6px; background: var(--navy); color: var(--on-navy); box-shadow: 0 24px 60px rgba(13, 52, 70, 0.14); }
.cta-card__title { font-size: 1.7rem; color: var(--white); }
.cta-card .contact__phone { margin-top: 0.5rem; }
.cta-card__cross { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.98rem; }
.cta-card__cross a { color: var(--white); }
.cta-card__cross a:hover { color: var(--lime); }
.cta-card--wide { max-width: 46rem; }
.service__link { display: inline-block; margin-top: 0.85rem; font-weight: 600; color: var(--lime); text-decoration: none; }
.service__link:hover { color: var(--lime-hover); text-decoration: underline; text-underline-offset: 0.2em; }
.service__link .icon { display: inline-block; width: 1.05em; height: 1.05em; margin-left: 0.4rem; vertical-align: -0.15em; transition: transform 0.3s var(--ease); }
.service__link:hover .icon { transform: translateX(3px); }

/* Page Dépannage : bandeau de sécurité, vérifications, situations courantes */
.alert { background: #fff4e5; border-bottom: 1px solid #efd2a6; color: #5c3600; }
.alert__inner { display: flex; align-items: flex-start; gap: 0.9rem; padding-block: 1.1rem; }
.alert .icon { width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; color: #b45309; }
.alert strong { color: #5c3600; }
.fixes { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.fixes__intro .panel { margin-top: 2rem; }
.fix-list { counter-reset: fix; }
.fix { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 1.1rem; padding-block: 1.4rem; border-top: 1px solid var(--line); counter-increment: fix; }
.fix:first-child { padding-top: 1.6rem; border-top: 3px solid var(--lime); }
.fix::before { content: counter(fix); font-family: var(--font-title); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--blue-dark); }
.fix__title { font-size: 1.45rem; }
.fix__body p { margin-top: 0.45rem; }
.fix__body .fix__tip { font-size: 0.98rem; color: var(--mute); }
.symptoms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.symptom { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: 6px; background: var(--white); }
.symptom:nth-child(3n + 2) { border-top-color: var(--teal); }
.symptom:nth-child(3n) { border-top-color: var(--blue); }
.symptom__title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.4rem; }
.symptom__title .icon { width: 1.05em; height: 1.05em; color: var(--blue-dark); }
.symptom__label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.symptom__row--call { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.signup__note { max-width: 44rem; margin-top: 2rem; }
.signup__note a { color: var(--white); }
.signup__note a:hover { color: var(--lime); }

/* Page Questions fréquentes */
.faq__nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.faq__nav a { padding: 0.55rem 0.95rem; border: 1.5px solid var(--field); border-radius: var(--radius); font-weight: 500; color: var(--ink); text-decoration: none; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.faq__nav a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.faq { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.faq__group { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: start; gap: 1rem clamp(1.5rem, 4vw, 3.5rem); }
.faq__title { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0.25rem; font-family: var(--font-title); font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: var(--ink); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 0.65rem; height: 0.65rem; margin-bottom: 0.25rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; transition: rotate 0.3s var(--ease), margin 0.3s var(--ease); }
.faq__item[open] summary::after { margin-bottom: -0.2rem; rotate: 225deg; }
.faq__item summary:hover { color: var(--blue-dark); }
.faq__answer { max-width: 44rem; padding: 0 0.25rem 1.4rem; }
.faq__answer p + p { margin-top: 0.75rem; }
.faq__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; }
.faq__link { font-weight: 600; text-decoration: none; }
.faq__link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.faq__link .icon { display: inline-block; width: 1.05em; height: 1.05em; margin-left: 0.4rem; vertical-align: -0.15em; transition: transform 0.3s var(--ease); }
.faq__link:hover .icon { transform: translateX(3px); }
.fix__body .faq__link { margin-top: 0.1rem; }

/* Page Codes d'erreur */
.symptoms--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.symptoms--pairs .symptom:nth-child(n) { border-top-color: var(--lime); }
.symptoms--pairs .symptom:nth-child(2), .symptoms--pairs .symptom:nth-child(3) { border-top-color: var(--teal); }
.codes { margin-top: clamp(2rem, 4vw, 3rem); }
.codes__note { margin-bottom: 0.75rem; color: var(--mute); }
.code-table { width: 100%; border-collapse: collapse; }
.code-table th, .code-table td { padding: 0.65rem 0; border-top: 1px solid var(--line); vertical-align: baseline; text-align: left; }
.code-table th { width: 36%; padding-right: 1rem; font-family: var(--font-title); font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.code-table td { color: var(--text); }
.codes__other { margin-top: clamp(2rem, 4vw, 3rem); }

/* Calculateur du contrat climatisation et boutons « Je choisis cette formule » */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); margin-top: clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; border-radius: 6px; background: var(--white); box-shadow: 0 24px 60px rgba(13, 52, 70, 0.14); }
.calc__form { padding: clamp(1.4rem, 3vw, 2rem); }
.calc__stepper { margin-top: 1.5rem; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--field); border-radius: var(--radius); }
.stepper__btn { width: 3.2rem; border: 0; background: var(--paper); font-size: 1.6rem; line-height: 1; color: var(--navy); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.stepper__btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.stepper__btn:disabled { opacity: 0.4; cursor: default; }
.stepper__input { width: 4.5rem; padding: 0.6rem 0.25rem; border: 0; border-inline: 1.5px solid var(--field); border-radius: 0; background: var(--white); text-align: center; font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--ink); appearance: textfield; -moz-appearance: textfield; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.stepper__input:focus { outline: none; box-shadow: inset 0 0 0 3px rgba(14, 177, 223, 0.35); }
.calc__table { width: 100%; max-width: 26rem; margin-top: 1.5rem; border-collapse: collapse; }
.calc__table th, .calc__table td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.calc__table th { text-align: left; font-weight: 500; color: var(--text); }
.calc__table td { text-align: right; font-family: var(--font-title); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.calc__result { display: grid; align-content: center; justify-items: start; gap: 0.85rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--navy); color: var(--on-navy); }
.calc__label { font-weight: 600; color: var(--on-navy-mute); }
.calc__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.65rem; font-family: var(--font-title); }
.calc__amount strong { font-size: clamp(3.2rem, 2.5rem + 2.2vw, 4.4rem); font-weight: 700; line-height: 1; color: var(--lime); }
.calc__amount span { font-size: 1.3rem; font-weight: 600; color: var(--white); }
.calc__result .panel__note { margin-top: 0.4rem; color: var(--on-navy-mute); }
.option__cta { margin-top: auto; padding-top: 1.5rem; }

/* 10. Animations ------------------------------------------------------------
   Les états de départ ne s'appliquent que si JavaScript est actif (classe .js). */

/* Accueil : texte, photo qui s'ouvre, trait du logo qui se dessine */
.js .hero__content > * { opacity: 0; translate: 0 16px; }
.js .hero__media { clip-path: inset(0 0 0 100%); }
.js .hero__swoosh path { stroke-dashoffset: 1; }
.is-ready .hero__content > * { opacity: 1; translate: 0 0; transition: opacity 0.7s, translate 0.8s var(--ease); }
.is-ready .hero__content > :nth-child(2) { transition-delay: 0.08s; }
.is-ready .hero__content > :nth-child(4) { transition-delay: 0.2s; }
.is-ready .hero__content > :nth-child(5) { transition-delay: 0.3s; }
.is-ready .hero__media { clip-path: inset(0); transition: clip-path 1.2s var(--ease) 0.15s; }
.is-ready .hero__swoosh path { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) 0.55s; }

/* Apparitions au défilement */
.js [data-reveal=""] { opacity: 0; translate: 0 18px; transition: opacity 0.7s, translate 0.8s var(--ease); }
.js [data-reveal=""].is-in { opacity: 1; translate: 0 0; }
.js [data-reveal="stagger"] > * { opacity: 0; translate: 0 16px; transition: opacity 0.6s calc(var(--i, 0) * 0.08s), translate 0.7s var(--ease) calc(var(--i, 0) * 0.08s); }
.js [data-reveal="stagger"].is-in > * { opacity: 1; translate: 0 0; }

/* Schéma : éléments qui apparaissent au fil du tracé */
.js .schematic [data-at] { opacity: 0; translate: 0 6px; transition: opacity 0.5s, translate 0.6s var(--ease); }
.js .schematic [data-at].is-on { opacity: 1; translate: 0 0; }

/* Calculateur : avec JavaScript, le sélecteur remplace le tableau ; sans JavaScript, le tableau reste. */
.js .calc__table { display: none; }
html:not(.js) .calc__stepper { display: none; }

/* Formulaire : le volet « Mise en service » est fermé, et « Société » masqué, tant que le choix n'est pas fait (sans JavaScript, tout reste visible). */
@keyframes reveal { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.js .extra { display: grid; grid-template-rows: 0fr; margin-bottom: 0; opacity: 0; transition: grid-template-rows 0.45s var(--ease), margin 0.45s var(--ease), opacity 0.3s; }
.js .extra .extra__inner { overflow: hidden; }
.js .extra.is-open { grid-template-rows: 1fr; margin-bottom: 1.4rem; opacity: 1; }
.js .field--pro:not(.is-open) { display: none; }
.js .field--pro.is-open { animation: reveal 0.35s var(--ease); }

/* 11. Responsive ---------------------------------------------------------- */
@media (max-width: 1200px) {
  .site-header__inner { gap: 1.5rem; }
  .nav__list { gap: 1.4rem; }
}

@media (max-width: 1080px) {
  .brands__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .topbar { display: none; }
  .brand img { height: 46px; }
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__media { order: -1; height: clamp(220px, 46vw, 340px); }
  .hero__panel { padding-inline: var(--gutter); }
  .services__grid, .about__grid, .contact__box { grid-template-columns: minmax(0, 1fr); }
  .about__photo { order: 2; }
  .intro, .contract__head, .conditions { grid-template-columns: minmax(0, 1fr); }
  .perks, .options, .steps, .example-list { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .contract__body, .tariffs { grid-template-columns: minmax(0, 1fr); }
  .tariffs__col:nth-child(2) .tariff:nth-child(1) { border-top-color: var(--blue); }
  .fixes, .duo, .calc, .faq__group { grid-template-columns: minmax(0, 1fr); }
  .symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .symptom:nth-child(n) { border-top-color: var(--lime); }
  .symptom:nth-child(4n + 2), .symptom:nth-child(4n + 3) { border-top-color: var(--teal); }

  /* Barre d'appel (téléphone) : fixée en bas ; le bas de page lui laisse sa place. */
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: flex;
    gap: 0.6rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(13, 52, 70, 0.12);
    transition: translate 0.3s var(--ease), visibility 0s;
  }
  .callbar.is-hidden { translate: 0 110%; visibility: hidden; transition: translate 0.3s var(--ease), visibility 0s 0.3s; }
  .callbar .btn { flex: 1 1 0; padding-inline: 0.75rem; white-space: nowrap; }
  .callbar__call { flex: 0 1 42%; }
}

@media (max-width: 640px) {
  .brands__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands__item { border-left: 0; border-top: 1px solid var(--line); }
  .brands__item:nth-child(even) { border-left: 1px solid var(--line); }
  .services__list { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__box { grid-template-columns: minmax(0, 1fr); row-gap: 0.2rem; padding: 0.75rem 0.8rem; }
  .tile__box .icon { grid-row: auto; margin-bottom: 0.25rem; }
  .tile:last-child:nth-child(odd) { grid-column: span 2; }
  .symptoms, .symptoms--pairs { grid-template-columns: minmax(0, 1fr); }
  .code-table th, .code-table td { display: block; width: auto; }
  .code-table th { padding: 0.65rem 0 0; border-top: 1px solid var(--line); }
  .code-table td { padding: 0.2rem 0 0.65rem; border-top: 0; }
  .hero__actions .btn, .page-hero__actions .btn, .signup__actions .btn, .contract__actions .btn { flex: 1 1 100%; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .rates { font-size: 0.92rem; }
  .rates th, .rates td { padding-inline: 0.25rem; }
  .price-list td { font-size: 1.2rem; }
}

@media (max-width: 340px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile:last-child:nth-child(odd) { grid-column: auto; }
}

/* 12. Mouvement réduit ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
