/* TEKR : palette et typographie reprises du flyer (encre marine, filets gris, touches de rouge). */

:root {
  --ink: #141b2b;
  --ink-2: #2f3a4d;
  --muted: #5a6578;
  --navy: #15354f;
  --navy-2: #1e4768;
  --line: #cdd1d5;
  --line-soft: #e3e6ea;
  --paper: #fff;
  --paper-2: #f4f5f7;
  --accent: #b0484f;
  --swiss: #d52b1e;
  --blue: #3d5aa8;
  --sketch: #1f2b40;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 27, 43, .05), 0 12px 32px rgba(20, 27, 43, .07);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--sans); text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 16px;
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::before, .eyebrow-center::after, .section-head .eyebrow::after {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}
.eyebrow-center { display: flex; justify-content: center; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 68px); }
.section-head h2, .contact-intro h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.35rem);
  text-transform: uppercase; letter-spacing: .03em;
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--navy); border-radius: var(--radius);
  font-family: var(--sans); font-size: .9rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--paper-2); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 6px 22px rgba(20, 27, 43, .05); }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 76px; }
.logo {
  margin-right: auto;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  letter-spacing: .26em; color: var(--navy); text-decoration: none;
}
.menu { display: flex; gap: clamp(18px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.menu a {
  position: relative; display: block; padding: 6px 0;
  font-family: var(--sans); font-size: .86rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2);
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu a:hover::after { transform: scaleX(1); }
.menu-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.burger, .burger::before, .burger::after {
  content: ""; display: block; width: 18px; height: 1.6px; border-radius: 2px;
  background: var(--navy); transition: transform .25s, background-color .2s;
}
.burger { position: relative; }
.burger::before, .burger::after { position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .btn-phone span { display: none; }
  .btn-phone { padding: 0 13px; }
}
/* Menu replié sous 980 px : entre 861 et 980 px, les liens et le bouton d'offre passaient sur deux lignes. */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 22px;
    background: #fff; border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 18px 30px rgba(20, 27, 43, .08);
  }
  .menu.is-open { display: flex; }
  .menu li { border-bottom: 1px solid var(--line-soft); }
  .menu a { padding: 15px 0; }
  .menu a::after { display: none; }
  .menu .menu-cta { display: block; border-bottom: 0; padding-top: 18px; }
  .menu-cta a { background: var(--navy); color: #fff; text-align: center; border-radius: var(--radius); }
}

/* Haut de page */
.hero { padding: clamp(4px, 1.5vw, 16px) 0 clamp(64px, 9vw, 104px); text-align: center; overflow: hidden; }
.villa-wrap { max-width: 1120px; margin: 0 auto; }
.villa { width: 100%; height: auto; overflow: visible; }
.hero-title {
  margin-top: clamp(4px, 1vw, 12px);
  font-size: clamp(1.75rem, 4.3vw, 3.45rem);
  letter-spacing: .02em; line-height: 1.08; text-transform: uppercase;
}
.hero-tagline {
  max-width: 620px; margin: 20px auto 0;
  font-family: var(--sans); font-size: clamp(.82rem, 1.25vw, .98rem);
  letter-spacing: .15em; line-height: 1.55; text-transform: uppercase; color: var(--ink-2);
}
.hero-tagline strong { color: var(--ink); }
.hero-tagline .sep { margin: 0 .75em; color: var(--muted); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px;
  margin: 30px 0 0; padding: 0; list-style: none;
  font-family: var(--sans); font-size: .93rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-2);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 10px; }
.hero-trust li:not(:first-child)::before {
  content: ""; width: 12px; height: 6px; margin: -4px 2px 0;
  border: solid var(--navy); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.hero-trust .ch-flag { width: 19px; height: 19px; }

/* Drapeau suisse : carré, croix blanche aux proportions officielles */
.ch-flag { flex: none; width: 1em; height: 1em; }
.ch-flag rect { fill: var(--swiss); }
.ch-flag path { fill: #fff; }

@media (max-width: 640px) {
  .villa-wrap { margin: 0 calc(-1 * var(--gutter)); overflow: hidden; }
  .villa { width: 136%; max-width: none; margin-left: -18%; }
  .villa .hs-label { display: none; }
  .hero-trust { display: grid; justify-content: center; justify-items: start; gap: 10px; }
}

/* Villa : style du croquis */
.villa .pf { fill: #fff; }
.villa .l, .villa .l2, .villa .d, .villa .r, .villa .h, .villa .c, .villa .g,
.villa .t, .villa .t2, .villa .t3, .villa .wv { fill: none; stroke: var(--sketch); stroke-linecap: round; stroke-linejoin: round; }
.villa .l { stroke-width: 1.15; }
.villa .l2 { stroke-width: .7; opacity: .5; }
.villa .d { stroke-width: .8; opacity: .85; }
.villa .r { stroke-width: .6; opacity: .35; }
.villa .h { stroke-width: .5; opacity: .3; }
.villa .hd { opacity: .5; }
.villa .c { stroke-width: .55; opacity: .45; }
.villa .g { stroke: #8fa3bf; stroke-width: .7; opacity: .6; }
.villa .t { stroke-width: .95; opacity: .8; }
.villa .t2 { stroke-width: 1; opacity: .9; }
.villa .t3 { stroke-width: .6; opacity: .45; }
.villa .wv, .villa .wvh { stroke: var(--blue); }
.villa .wv { stroke-width: .8; opacity: .6; }
.villa .glass { fill: #e6edf6; }
.villa .water { fill: #dde8f6; }
.villa .shade { fill: #f2f4f7; }
.villa .shade-d { fill: #e9ecf1; }
.villa .dev { fill: #fff; stroke: var(--navy); stroke-width: 1.2; }
.villa .dev-acc { fill: var(--accent); }
/* Ombres portées (un seul soleil, devant à gauche) : teinte très pâle, hachures légères */
.villa .shadow { fill: #eef1f5; }
.villa .shadow-d { fill: #e1e6ed; }
.villa .sl { fill: none; stroke: var(--sketch); stroke-width: 1.5; stroke-linecap: round; opacity: .13; }
/* Voiture : même main que la villa (trait fin, carrosserie blanche, rouge sur les seuls détails) */
.villa .k, .villa .k2, .villa .k3 { fill: none; stroke: var(--sketch); stroke-linecap: round; stroke-linejoin: round; }
.villa .k { stroke-width: .95; }
.villa .k2 { stroke-width: .6; opacity: .85; }
.villa .k3 { stroke-width: .42; opacity: .6; }
.villa .car-shade { fill: #f3f5f8; }
.villa .car-dark { fill: #e6eaf0; }
.villa .car-glass { fill: #dfe8f3; }
/* lame latérale : le seul aplat sombre, c'est la signature de la voiture */
.villa .car-blade { fill: #24344b; }
.villa .car-intake { fill: #66758c; }
.villa .car-sill { fill: #9aa6b8; }
.villa .car-vent { fill: #c9d2de; }
.villa .car-trim { fill: #e1e6ed; }
.villa .car-lamp { fill: #f0f4f9; }
.villa .car-tyre { fill: #b7c1cf; }
.villa .car-well { fill: #8f9cb0; }
.villa .car-cal { fill: var(--accent); }
.villa .flag-red { fill: var(--swiss); }
.villa .flag-cross { fill: #fff; }
.villa .flag-h { fill: none; stroke: #8f1a12; stroke-width: .6; opacity: .3; }
.villa .flag-fold { fill: none; stroke: #8f1a12; stroke-width: .7; opacity: .35; stroke-linecap: round; }
.villa .pole-cap { fill: #fff; stroke: var(--sketch); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .villa .flag-wave {
    transform-box: fill-box; transform-origin: 100% 0;
    animation: flag-wave 3.2s ease-in-out 2s infinite alternate;
  }
}
@keyframes flag-wave { from { transform: skewY(-2.5deg) scaleX(.97); } to { transform: skewY(2deg) scaleX(1); } }

/* Pastilles cliquables */
.villa .hotspot { cursor: pointer; }
.villa .hs-lead { fill: none; stroke: var(--navy); stroke-width: .9; stroke-dasharray: 3 3; opacity: .75; }
.villa .hs-dot { fill: var(--accent); }
.villa .hs-badge { fill: #fff; stroke: var(--navy); stroke-width: 1.3; transition: fill .2s; }
.villa .hs-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.villa .hs-icon { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.villa .hs-dots { stroke-width: 2.6; }
.villa .hs-label {
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; fill: var(--navy); opacity: 0; transition: opacity .2s;
  paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round;
}
.villa .hotspot:hover .hs-badge, .villa .hotspot:focus-visible .hs-badge { fill: var(--navy); }
.villa .hotspot:hover .hs-icon, .villa .hotspot:focus-visible .hs-icon { stroke: #fff; }
.villa .hotspot:hover .hs-label, .villa .hotspot:focus-visible .hs-label { opacity: 1; }
.villa .hotspot:focus { outline: none; }

/* Animation : le croquis se dessine, puis les pastilles apparaissent */
@media (prefers-reduced-motion: no-preference) {
  .js .villa .s {
    stroke-dasharray: 1 1; stroke-dashoffset: 1;
    animation: villa-draw var(--t, 1.1s) cubic-bezier(.45, .05, .2, 1) var(--d, 0s) forwards;
  }
  .js .villa .f { opacity: 0; animation: villa-fade .9s ease var(--d, 0s) forwards; }
  .js .villa .hotspot { opacity: 0; animation: villa-pop .6s cubic-bezier(.2, .8, .2, 1.15) var(--d) forwards; }
  .js .villa .hs-ring { animation: villa-pulse 2.8s ease-out calc(var(--d) + .8s) infinite; }
}
@keyframes villa-draw { to { stroke-dashoffset: 0; } }
@keyframes villa-fade { to { opacity: 1; } }
@keyframes villa-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes villa-pulse { 0% { opacity: .75; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.9); } }

/* Pictogrammes */
.ico { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .thin { stroke-width: 1.1; opacity: .75; }
.ico .dash { stroke-dasharray: 2.5 3; }
.ico .paper { fill: #fff; }
.ico .acc { fill: var(--accent); stroke: none; }
.ico .acc-s { stroke: var(--accent); }
.flag-ico .flag-cloth { fill: var(--swiss); stroke-width: 1.3; }
.flag-ico .flag-cross { fill: #fff; stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .flag-ico .flag-cloth, .js .reveal .flag-ico .flag-cross { fill-opacity: 0; transition: fill-opacity .9s ease .8s; }
  .js .reveal.is-visible .flag-ico .flag-cloth, .js .reveal.is-visible .flag-ico .flag-cross { fill-opacity: 1; }
}

/* Solutions */
/* 5 expertises : 3 + 2 centrées sur grand écran, 2 + 2 + 1 sur tablette, 1 colonne sur mobile */
.services { display: grid; grid-template-columns: repeat(6, 1fr); row-gap: clamp(44px, 5vw, 64px); }
.service { grid-column: span 2; padding: 6px clamp(14px, 2.4vw, 34px) 10px; text-align: center; border-left: 1px solid var(--line); }
.service:nth-child(3n+1) { border-left: 0; }
.service:nth-child(4) { grid-column: 2 / span 2; }
.service .ico { width: 88px; height: 88px; margin: 0 auto 24px; }
.service h3 {
  display: flex; align-items: center; justify-content: center; min-height: 2.6em;
  font-family: var(--sans); font-size: 1.12rem; font-weight: 700;
  letter-spacing: .07em; line-height: 1.25; text-transform: uppercase;
}
.service-lead { margin: 10px 0 14px; font-size: 1.06rem; line-height: 1.4; }
.service-text { margin: 0; font-size: .97rem; color: var(--muted); }

@media (max-width: 980px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .service:nth-child(n) { grid-column: span 2; border-left: 1px solid var(--line); }
  .service:nth-child(odd) { border-left: 0; }
  .service:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; row-gap: 0; }
  .service:nth-child(n) { grid-column: auto; border-left: 0; border-top: 1px solid var(--line); padding: 36px 4px; }
  .service:first-child { border-top: 0; padding-top: 0; }
  .service h3 { min-height: 0; }
}

/* Pourquoi TEKR */
.why { position: relative; overflow: hidden; background: var(--paper-2); }
.why::after {
  content: ""; position: absolute; right: -140px; bottom: -170px; width: 560px; height: 560px;
  background: url("../img/reseau.svg") no-repeat center / contain; opacity: .5; pointer-events: none;
}
.why .wrap { position: relative; z-index: 1; }
.statement {
  max-width: 900px; margin: 0 auto; text-align: center;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem); line-height: 1.5; color: var(--ink);
}
.statement strong { font-weight: 700; }
.values {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px);
  margin: clamp(44px, 6vw, 72px) 0 0; padding: 0; list-style: none;
}
.value { padding: 28px 24px 26px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.value .ico { width: 44px; height: 44px; margin-bottom: 18px; }
.value h3 { font-family: var(--sans); font-size: .98rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.value p { margin: 8px 0 0; font-size: .97rem; color: var(--muted); }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* Démarche */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps::before {
  content: ""; position: absolute; top: 23px; left: 12.5%; right: 12.5%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step { position: relative; padding: 0 8px; text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--navy); border-radius: 50%;
  font-weight: 600; color: var(--navy);
}
.step h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.step p { margin: 8px auto 0; max-width: 240px; font-size: .97rem; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Références */
.references { background: var(--paper-2); }
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.ref { padding: 30px 18px 26px; text-align: center; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); }
/* Même hauteur de zone pour toutes les marques : les noms restent alignés. Chaque logo règle sa hauteur (--h) pour un poids visuel égal. */
.ref-mark { display: flex; align-items: center; justify-content: center; height: 84px; margin-bottom: 22px; }
.ref-mark img { width: auto; height: var(--h, 56px); max-width: 100%; object-fit: contain; }
.ref h3 { font-family: var(--sans); font-size: .86rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
/* Le nom de la commune ne se coupe pas à ses traits d'union : la ligne passe après « Commune de ». */
.ref .nowrap { white-space: nowrap; }
.ref p { margin: 8px 0 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 1180px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .refs { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* Contact */
.contact { border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.contact-intro p { color: var(--ink-2); }
.contact-direct { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.contact-direct a { display: inline-flex; align-items: center; gap: 14px; font-size: 1.3rem; color: var(--navy); text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact-direct svg {
  width: 42px; height: 42px; padding: 10px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round;
}
.form { padding: clamp(22px, 3vw, 38px); background: #fff; border: 1px solid var(--line-soft); border-radius: 6px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0 0 18px; }
fieldset.field { padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label, .form legend {
  padding: 0; font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.form legend { margin-bottom: 9px; }
.req { color: var(--accent); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; padding: 11px 12px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21, 53, 79, .12); }
.form textarea { min-height: 112px; resize: vertical; }
.form ::placeholder { color: #8a93a2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; padding: 8px 15px;
  font-family: var(--sans); font-size: .95rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chip span:hover { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 2px 0 20px; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.form-note a { color: var(--navy); }
.btn-submit { width: 100%; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 14px 0 0; font-family: var(--sans); font-size: .98rem; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1f6b47; }
.form-status.is-error { color: var(--accent); }
.form-status a { color: inherit; font-weight: 700; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Pied de page : le bandeau du flyer */
.footer-band { background: var(--navy); color: #fff; }
.footer-band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 20px;
  padding-top: 22px; padding-bottom: 22px;
  font-size: 1.1rem; letter-spacing: .04em;
}
.footer-band a { color: #fff; text-decoration: none; }
.footer-band a:hover { text-decoration: underline; text-underline-offset: 5px; }
.fb-brand { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; letter-spacing: .14em; }
.fb-brand .ch-flag { width: 1.05em; height: 1.05em; }
.fb-sep { opacity: .45; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 18px; padding-bottom: 30px;
  font-family: var(--sans); font-size: .9rem; color: var(--muted);
}
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--muted); }

/* Apparition au défilement */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .ico.draw .drawn { transition: stroke-dashoffset 1.5s cubic-bezier(.45, .05, .2, 1) calc(var(--i, 0) * 110ms + .2s); }
  .js .reveal.is-visible .ico.draw .drawn { stroke-dashoffset: 0 !important; }
}

/* Page mentions légales */
.legal { max-width: 780px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 28px; }
.legal .legal-part { font-size: clamp(1.5rem, 2.8vw, 2rem); text-transform: uppercase; letter-spacing: .03em; margin: 64px 0 20px; padding-top: 40px; border-top: 1px solid var(--line-soft); }
.legal h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 30px 0 8px; color: var(--navy); }
.legal p { margin: 0 0 12px; }
.legal a { color: var(--navy); }
.todo { background: #fff3c4; padding: 0 .25em; border-radius: 2px; }
