:root, [data-theme="light"] {
  --ground: #eef4e4;
  --ground-alt: #fdf3d2;
  --paper: #fffcf2;
  --citron: #f7c81e;
  --citron-deep: #e0ad00;
  --rhone: #1846a8;
  --rhone-deep: #0f3380;
  --on-rhone: #fffcf2;
  --tigre: #e85d12;
  --maille: #2f8a57;
  --ink: #16202e;
  --ink-muted: #4a5568;
  --line: #c9d4bd;
  --line-strong: #6b7a62;
  --focus: #1846a8;
  --shadow-card: 0 2px 0 #c9d4bd;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 72px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}


.ml-root { background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 27px; }
.ml-root *, .ml-root *::before, .ml-root *::after { box-sizing: border-box; }

/* Boutons */
.ml-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 2px solid transparent; font-family: var(--font-body); font-size: 17px; line-height: 20px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ml-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ml-btn--primary { background: var(--citron); color: var(--ink); }
.ml-btn--primary:hover { background: var(--citron-deep); }
.ml-btn--secondary { background: var(--rhone); color: var(--on-rhone); }
.ml-btn--secondary:hover { background: var(--rhone-deep); }
.ml-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.ml-btn--ghost:hover { background: var(--paper); }
.ml-on-rhone .ml-btn:focus-visible { outline-color: var(--citron); }
.ml-on-rhone .ml-btn--ghost { color: var(--on-rhone); border-color: var(--on-rhone); }
.ml-on-rhone .ml-btn--ghost:hover { background: var(--rhone-deep); }

/* Étiquettes */
.ml-label { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.ml-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.ml-badge--saison { background: var(--tigre); color: var(--ink); }
.ml-badge--citron { background: var(--citron); color: var(--ink); }
.ml-cote { font-family: var(--font-mono); font-size: 15px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Bandeau */
.ml-hero { position: relative; overflow: hidden; background: var(--rhone); color: var(--on-rhone); padding: var(--space-6) var(--space-4); }
.ml-hero::before { content: ""; position: absolute; inset: 0 0 0 55%; background-image: radial-gradient(var(--citron) 1.6px, transparent 1.7px); background-size: 16px 16px; opacity: .55; }
.ml-hero__inner { position: relative; max-width: 620px; display: grid; gap: var(--space-3); }
.ml-hero h1 { margin: 0; font-family: var(--font-display); font-size: 48px; line-height: 50px; font-weight: 800; letter-spacing: -1px; text-wrap: balance; }
.ml-hero h1 mark { background: var(--citron); color: var(--ink); padding: 0 .12em; border-radius: var(--radius-sm); }
.ml-hero p { margin: 0; font-size: 19px; line-height: 29px; font-weight: 500; }
.ml-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-2); }

/* Carte offre */
.ml-offer { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.ml-offer__head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-2); }
.ml-offer h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 700; }
.ml-offer p { margin: 0; }
.ml-offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.ml-offer li { display: flex; gap: var(--space-2); }
.ml-offer li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--maille); }
.ml-offer__price { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding-top: var(--space-3); border-top: 2px solid var(--citron); }
.ml-offer__price small { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.ml-offer__price strong { font-family: var(--font-display); font-size: 20px; }

/* Estimation */
.ml-estimate { display: grid; gap: var(--space-4); padding: var(--space-4); background: var(--ground-alt); border-radius: var(--radius-md); }
.ml-estimate h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 700; }
.ml-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; margin: 0; padding: 0; }
.ml-choice { position: relative; }
.ml-choice input { position: absolute; opacity: 0; }
.ml-choice span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--paper); border: 2px solid var(--line-strong); font-weight: 700; cursor: pointer; }
.ml-choice input:checked + span { background: var(--citron); border-color: var(--ink); }
.ml-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.ml-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); }
.ml-field { display: grid; gap: var(--space-1); }
.ml-field label { font-size: 14px; line-height: 20px; font-weight: 700; }
.ml-field input { min-height: 48px; padding: 0 var(--space-3); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: 17px; }
.ml-field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ml-help { color: var(--ink-muted); font-size: 14px; line-height: 20px; margin: 0; }

/* Bande marques */
.ml-brands { display: grid; gap: var(--space-3); padding: var(--space-4); background: var(--paper); border-radius: var(--radius-md); border: 1px solid var(--line); }
.ml-brands__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); }
.ml-brands__group { display: grid; gap: var(--space-2); }
.ml-brands__name { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }

/* ===== Site ===== */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--rhone); }
a:hover { color: var(--rhone-deep); }
.ml-root .ml-btn { color: var(--ink); }
.ml-root .ml-btn--secondary, .ml-root .ml-on-rhone .ml-btn--ghost { color: var(--on-rhone); }
.ml-root .ml-btn--ghost { color: var(--ink); }
.ml-on-rhone .ml-btn--ghost { color: var(--on-rhone) !important; }
.ml-root .ml-btn--primary { color: var(--ink) !important; }
.ml-root .ml-btn--secondary { color: var(--on-rhone) !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ml-on-rhone :focus-visible { outline-color: var(--citron); }
.evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--citron); color: var(--ink); padding: 8px 16px; border-radius: 6px; }
.evitement:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.pile { display: grid; gap: 16px; align-content: start; }
.sec { padding: 72px max(16px, 4vw); }
.sec--serre { padding-top: 48px; padding-bottom: 48px; }
.sec--papier { background: var(--paper); }
.sec--creme { background: var(--ground-alt); }
.sec--citron { background: var(--citron); }
.sec--rhone { background: var(--rhone); color: var(--on-rhone); }
.kicker { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-muted); }
.sec--rhone .kicker, .sec--citron .kicker { color: inherit; }
.t1 { margin: 0; font-family: var(--font-display); font-size: clamp(36px, 5vw, 54px); line-height: 1.04; font-weight: 800; letter-spacing: -1.2px; text-wrap: balance; }
.t2 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; text-wrap: balance; }
.t3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 700; }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; font-weight: 500; max-width: 640px; }
.texte { max-width: 760px; }
.texte p, .texte ul, .texte ol { margin: 0 0 16px; }
.texte h2 { margin: 40px 0 12px; font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 800; }
.texte h3 { margin: 28px 0 8px; font-family: var(--font-display); font-size: 20px; line-height: 26px; }
.texte li { margin-bottom: 6px; }
.muted { color: var(--ink-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.coche { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-weight: 700; }
.coche li { display: flex; gap: 10px; }
.coche li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%232f8a57' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ml-on-rhone .coche li::before, .sec--rhone .coche li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23f7c81e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.coche--fin { font-weight: 500; }
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.deux { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.deux > * { flex: 1 1 420px; min-width: 0; }
.deux--haut { align-items: start; }
.illus { margin: 0; max-width: 580px; }
.illus figcaption { margin-top: 8px; }

/* En-tête */
.tete { position: sticky; top: 0; z-index: 50; background: var(--rhone); color: var(--on-rhone); padding: 0 max(16px, 4vw); }
.tete__in { max-width: 1200px; margin: 0 auto; min-height: 72px; display: flex; align-items: center; gap: 16px 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: var(--on-rhone); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--on-rhone); }
.nav { display: flex; align-items: center; gap: 4px 8px; flex: 1 1 auto; }
.nav__groupe { position: relative; }
.nav__titre, .nav__simple { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; background: none; border: 0; border-radius: 6px; color: var(--on-rhone); font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer; }
.nav__titre::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.nav__titre:hover, .nav__simple:hover { background: var(--rhone-deep); color: var(--on-rhone); }
.nav__sous { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 var(--rhone-deep); }
.nav__sous a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.nav__sous a:hover { background: var(--citron); color: var(--ink); }
.nav__groupe:hover .nav__sous, .nav__groupe:focus-within .nav__sous, .nav__titre[aria-expanded="true"] + .nav__sous { display: block; }
.tete__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.tete__tel { color: var(--on-rhone); text-decoration: none; white-space: nowrap; }
.tete__tel:hover { color: var(--citron); }
.menu-btn { display: none; }
@media (max-width: 1023px) {
  .tete__in { min-height: 64px; flex-wrap: wrap; }
  .logo { font-size: 19px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px; border: 2px solid var(--on-rhone); border-radius: 999px; background: none; color: var(--on-rhone); font: 700 15px var(--font-body); cursor: pointer; }
  .menu-btn__icone { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .tete__actions { display: none; }
  .nav { display: none; order: 3; flex: 1 0 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .tete.ouvert .nav { display: flex; }
  .nav__titre, .nav__simple { width: 100%; justify-content: space-between; font-size: 17px; }
  .nav__sous { position: static; display: none; min-width: 0; margin: 4px 0 8px; box-shadow: none; }
  .nav__groupe:hover .nav__sous, .nav__groupe:focus-within .nav__sous { display: none; }
  .nav__titre[aria-expanded="true"] + .nav__sous { display: block; }
}

/* Bandeau d'accueil */
.bandeau { position: relative; overflow: hidden; background: var(--rhone); color: var(--on-rhone); padding: 48px max(16px, 4vw) 112px; }
.bandeau::before { content: ""; position: absolute; inset: 0 0 0 58%; background-image: radial-gradient(#f7c81e 1.7px, transparent 1.8px); background-size: 16px 16px; opacity: .45; }
.bandeau .wrap { position: relative; }
.bandeau h1 mark { background: var(--citron); color: var(--ink); padding: 0 .12em; border-radius: 6px; }
.bandeau--page { padding-bottom: 64px; }
.ariane { font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; }
.ariane a { color: inherit; }
.bandeau .ariane, .bandeau .ariane a { color: var(--on-rhone); opacity: .9; }
.chevauche { position: relative; margin-top: -64px; padding: 0 max(16px, 4vw); }

/* Cartes */
.carte { display: grid; gap: 10px; align-content: start; padding: 12px 12px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.carte:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 5px 0 #c9d4bd; }
.carte--citron { background: var(--citron); border-color: var(--citron-deep); box-shadow: 0 2px 0 #e0ad00; }
a.carte--citron:hover { box-shadow: 0 5px 0 #e0ad00; }
.carte > h3, .carte > p { margin-left: 12px; margin-right: 12px; }
.carte > h3 { margin-top: 6px; margin-bottom: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; }
.carte > p { margin-top: 0; margin-bottom: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.carte--citron > p { color: var(--ink); }
.carte__lien { margin: 4px 12px 0; font-weight: 700; color: var(--rhone); }
.ml-offer { position: relative; }
.ml-offer a.couvre { position: absolute; inset: 0; border-radius: 14px; }
.ml-offer h3 a { color: inherit; text-decoration: none; }

/* Étapes */
.etapes { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: e; }
.etapes li { display: grid; gap: 10px; align-content: start; counter-increment: e; }
.etapes li::before { content: counter(e); width: 48px; height: 48px; border-radius: 999px; background: var(--rhone); color: var(--on-rhone); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.etapes h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; }
.etapes p { margin: 0; }
.picto { display: grid; gap: 10px; align-content: start; }
.picto h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; }
.picto p { margin: 0; }

/* Bande citron */
.bande { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.bande__txt { display: grid; gap: 8px; flex: 1 1 520px; min-width: 0; }
.bande__txt h2 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 32px); line-height: 1.12; font-weight: 800; }
.bande__txt p { margin: 0; max-width: 620px; }
.bande__fin { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.bande__fin > div { width: 200px; }

/* Encadré */
.encadre { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--ground-alt); border: 1px solid var(--line); border-radius: 14px; }
.encadre--papier { background: var(--paper); }
.encadre p { margin: 0; }

/* Tableau */
.tableau { overflow-x: auto; max-width: 100%; }
.tableau table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; font-variant-numeric: tabular-nums; }
.tableau th { background: var(--rhone); color: var(--on-rhone); text-align: left; padding: 14px 18px; }
.tableau td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 16px; max-width: 900px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; }
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 26px; cursor: pointer; }
.faq details > div { margin-top: 12px; }
.faq details p { margin: 0 0 10px; }
.faq details p:last-child { margin-bottom: 0; }

/* Zones */
.communes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.communes li { padding: 6px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px; }

/* Formulaires */
.form { display: grid; gap: 18px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.form .ml-field input, .form .ml-field textarea, .form .ml-field select { width: 100%; min-width: 0; box-sizing: border-box; }
.form textarea { padding: 12px 16px; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--paper); font: 17px/1.5 var(--font-body); color: var(--ink); resize: vertical; }
.ml-field input[type="file"] { padding: 10px; font-family: var(--font-body); font-size: 15px; }
.ml-field input:not([inputmode="numeric"]) { font-family: var(--font-body); }
.case { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; }
.case input { width: 20px; height: 20px; flex: none; accent-color: var(--rhone); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__retour { margin: 0; padding: 14px 18px; border-radius: 8px; font-weight: 700; }
.form__retour[hidden] { display: none; }
.form__retour.ok { background: #dff0e4; color: #1d5c39; }
.form__retour.ko { background: #fde3d6; color: #8a2f05; }
.estime { display: flex; flex-wrap: wrap; align-items: end; gap: 20px 32px; max-width: 1200px; margin: 0 auto; padding: 24px; background: var(--ground-alt); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 #0f3380; color: var(--ink); }
.estime h2 { flex: 1 0 100%; margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 800; }
.estime fieldset { flex: 1 1 420px; }
.estime .ml-fields { flex: 0 1 320px; }
.estime .case { flex: 1 1 240px; align-self: center; }
.estime .ml-btn { margin-left: auto; }
.estime .ml-help { flex: 1 1 100%; }
.devis { display: flex; flex-wrap: wrap; gap: 40px; }
.devis > .pile { flex: 1 1 340px; min-width: 0; }
.devis > .form { flex: 2 1 520px; min-width: 0; }

/* Pied de page */
.pied { background: var(--rhone); color: var(--on-rhone); padding: 56px max(16px, 4vw) 32px; font-size: 15px; line-height: 23px; }
.pied a { color: var(--on-rhone); }
.pied a:hover { color: var(--citron); }
.pied__in { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.pied__col { flex: 1 1 200px; display: grid; gap: 8px; align-content: start; }
.pied__col:first-child { flex-basis: 300px; }
.pied__col p { margin: 0; }
.pied__nom { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.pied__bas { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 252, 242, .3); font-size: 14px; }
.barre { display: none; }
@media (max-width: 767px) {
  .sec { padding-top: 48px; padding-bottom: 48px; }
  .bandeau { padding-top: 28px; padding-bottom: 88px; }
  .bandeau::before { inset: 0 0 0 70%; }
  .barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--rhone); border-top: 2px solid var(--citron); }
  .pied { padding-bottom: 104px; }
  .estime .ml-btn { margin-left: 0; }
  .deux { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.carte { transition: none; } }
[hidden] { display: none !important; }
@media (max-width: 767px) {
  .grille > a.carte { grid-template-columns: 112px 1fr; align-items: center; column-gap: 4px; padding: 10px; }
  .grille > a.carte > svg { grid-row: span 2; }
  .grille > a.carte > h3, .grille > a.carte > p { margin-left: 8px; margin-right: 4px; }
  .grille > a.carte > h3 { font-size: 18px; line-height: 23px; align-self: end; }
  .grille > a.carte > p { font-size: 14px; line-height: 20px; align-self: start; }
}

.carte--volet { padding: 24px; gap: 8px; border-top: 6px solid var(--rhone); }
.carte--volet > h3, .carte--volet > p, .carte--volet .carte__lien { margin-left: 0; margin-right: 0; }
.carte--volet .carte__lien::after { content: " →"; }
@media (max-width: 767px) { .grille > a.carte--volet { display: grid; grid-template-columns: 1fr; padding: 18px; } .grille > a.carte--volet > h3 { align-self: auto; } }




/* ---------- 0.4 : logo ---------- */
.logo { gap: 10px; font-size: 20px; white-space: normal; flex: 0 1 auto; min-width: 0; }
.logo__marque { flex: none; width: 44px; height: 44px; }
.logo__txt { display: grid; gap: 3px; min-width: 0; }
.logo__nom { font-family: var(--font-display); font-weight: 800; font-size: 1em; line-height: 1.05; letter-spacing: -.4px; white-space: nowrap; }
.logo__base { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 700; font-size: 10.5px; line-height: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--citron); white-space: nowrap; }
.logo__ville { padding: 1px 5px; border-radius: 4px; background: var(--citron); color: var(--ink); letter-spacing: 1.4px; }
.logo--pied { color: var(--on-rhone); margin-bottom: 6px; }
.tete__appel { display: none; }

/* ---------- 0.4 : en-tête mobile ---------- */
@media (max-width: 1023px) {
  .tete__in { flex-wrap: wrap; gap: 0 8px; }
  .logo { font-size: 18px; }
  .logo__marque { width: 40px; height: 40px; }
  .tete__appel { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-left: auto; border-radius: 999px; background: var(--citron); color: var(--ink); }
  .menu-btn { margin-left: 0; flex: none; padding: 0; width: 44px; justify-content: center; }
  .menu-btn__txt { display: none; }
  .tete.ouvert .menu-btn__icone { background: transparent; box-shadow: none; position: relative; }
  .tete.ouvert .menu-btn__icone::before, .tete.ouvert .menu-btn__icone::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 2px; background: currentColor; transform: rotate(45deg); }
  .tete.ouvert .menu-btn__icone::after { transform: rotate(-45deg); }
  .tete.ouvert .nav { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .tete.ouvert .nav::after { content: ""; display: block; min-height: 72px; }
}
@media (max-width: 400px) { .logo { font-size: 16px; gap: 8px; } .logo__marque { width: 36px; height: 36px; } .logo__base { font-size: 9.5px; letter-spacing: 1px; } }
@media (max-width: 350px) { .logo__base { display: none; } }
body.menu-ouvert { overflow: hidden; }

/* ---------- 0.4 : marques ---------- */
.marques { display: flex; flex-wrap: wrap; gap: 12px; }
.marque { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; height: 68px; padding: 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.marque img { display: block; width: auto; max-width: 150px; height: auto; max-height: 36px; }
@media (max-width: 767px) { .marques { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .marque { min-width: 0; height: 60px; padding: 0 12px; } .marque img { max-width: 100%; max-height: 30px; } }

/* ---------- 0.4 : formulaire en étapes ---------- */
.wz { display: grid; gap: 18px; align-content: start; padding: 24px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--rhone-deep); }
.wz__tete { display: grid; gap: 10px; }
.wz__titre { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 29px; font-weight: 800; letter-spacing: -.3px; }
.wz__sous { margin: -4px 0 0; color: var(--ink-muted); font-size: 15px; line-height: 21px; }
.wz__progres { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.wz__barre { flex: 1; height: 8px; border-radius: 99px; background: var(--ground); overflow: hidden; }
.wz__barre span { display: block; height: 100%; width: 0; background: var(--maille); border-radius: 99px; transition: width .3s ease; }
.wz__compte { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--ink-muted); white-space: nowrap; }
.wz__retour { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px 0 6px; border: 0; border-radius: 99px; background: var(--ground); color: var(--ink); font: 700 14px var(--font-body); cursor: pointer; }
.wz__retour::before { content: "‹"; font-size: 20px; line-height: 1; }
.wz__recap { display: flex; flex-wrap: wrap; gap: 6px; }
.wz__puce { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 0; border-radius: 99px; background: var(--ground); color: var(--ink); font: 700 13px var(--font-body); cursor: pointer; }
.wz__puce::after { content: "✎"; font-size: 11px; opacity: .6; }
.wz__etape { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 12px; animation: wz-entre .25s ease; }
@keyframes wz-entre { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wz__q { padding: 0; font-family: var(--font-display); font-size: 21px; line-height: 26px; font-weight: 800; }
.wz__aide { margin: -6px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.wz__tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.wz__tuiles--chiffres { grid-template-columns: repeat(5, 1fr); }
.wz__tuiles--texte { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.wz__tuile { position: relative; cursor: pointer; }
.wz__tuile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wz__tuile-in { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 64px; height: 100%; padding: 14px 8px; box-sizing: border-box; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--paper); font-weight: 700; font-size: 16px; line-height: 20px; text-align: center; transition: border-color .12s, background .12s, transform .12s; }
.wz__ic { width: 40px; height: 40px; }
.wz__tuile:hover .wz__tuile-in { border-color: var(--ink); transform: translateY(-2px); }
.wz__tuile input:focus-visible + .wz__tuile-in { outline: 3px solid var(--rhone); outline-offset: 2px; }
.wz__tuile input:checked + .wz__tuile-in { border-color: var(--ink); background: var(--citron); }
.wz__champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wz .ml-field input, .wz .ml-field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.wz textarea { padding: 12px 16px; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--paper); font: 17px/1.5 var(--font-body); color: var(--ink); resize: vertical; }
.wz .ml-field input[aria-invalid="true"] { border-color: var(--tigre); }
.wz__erreur { margin: 4px 0 0; color: #b23c00; font-size: 14px; font-weight: 700; }
.wz__zone { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--ground-alt); font-size: 14px; line-height: 20px; }
.wz__plus { border-top: 1px solid var(--line); padding-top: 10px; }
.wz__plus summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--rhone); }
.wz__plus[open] summary { margin-bottom: 12px; }
.wz__plus > .ml-field { margin-top: 12px; }
.wz__envoi { width: 100%; min-height: 56px; font-size: 18px; }
.wz__mention { margin: -4px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); text-align: center; }
.wz__fin { display: grid; gap: 8px; padding: 8px 0; outline: none; }
.wz__fin::before { content: "✓"; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 99px; background: var(--maille); color: #fff; font-size: 26px; font-weight: 800; }
.wz__fin p { margin: 0; }
.wz.fini .wz__progres, .wz.fini .wz__recap, .wz.fini .wz__sous { display: none; }
.wz__chargement .wz__envoi { opacity: .7; }
.devis > .wz { flex: 2 1 480px; min-width: 0; }

/* Accueil : formulaire dans le bandeau */
.bandeau .wrap.deux { align-items: center; }
.bandeau__form { width: 100%; max-width: 500px; justify-self: end; position: relative; z-index: 1; }
.bandeau { padding-bottom: 64px; }
@media (max-width: 767px) {
  .bandeau { padding-bottom: 40px; }
  .bandeau__form { max-width: none; }
  .wz { padding: 18px; border-radius: 16px; }
  .wz__titre { font-size: 21px; line-height: 26px; }
  .wz__tuiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wz__tuiles--chiffres { grid-template-columns: repeat(5, 1fr); }
  .wz__tuile-in { min-height: 56px; padding: 10px 6px; font-size: 15px; }
  .wz__ic { width: 34px; height: 34px; }
}

/* Fenêtre de devis */
.modale { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: transparent; overflow: visible; }
.modale::backdrop { background: rgba(15, 51, 128, .55); backdrop-filter: blur(2px); }
.modale__corps { max-height: inherit; overflow-y: auto; border-radius: 20px; }
.modale .wz { box-shadow: none; }
.modale__fermer { position: absolute; top: -14px; right: -10px; z-index: 2; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 99px; background: var(--citron); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 767px) {
  .modale { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .modale__corps { border-radius: 20px 20px 0 0; }
  .modale .wz { border-width: 2px 0 0; border-radius: 20px 20px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .modale__fermer { top: 10px; right: 12px; }
  .modale .wz__tete { padding-right: 48px; }
}
.wz__tuiles--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) {
  .wz__tuiles--3 { grid-template-columns: repeat(3, 1fr); }
  .wz__tuiles--3 .wz__tuile-in { font-size: 14px; padding: 10px 4px; }
  .bandeau .wrap.deux > .pile { display: contents; }
  .bandeau .wrap.deux > .pile > .ml-badge { order: 1; }
  .bandeau .wrap.deux > .pile > h1 { order: 2; }
  .bandeau .wrap.deux > .bandeau__form { order: 3; }
  .bandeau .wrap.deux > .pile > .lead { order: 4; }
  .bandeau .wrap.deux > .pile > .coche { order: 5; }
  .bandeau .wrap.deux { gap: 18px; }
}
@media (max-width: 767px) {
  .bandeau .wrap.deux > .pile > * { flex: 1 0 100%; margin: 0; }
  .bandeau .wrap.deux > .pile > .ml-badge { flex: 0 0 auto; }
  .bandeau .wrap.deux > .bandeau__form { flex: 1 0 100%; }
}
.marque { min-width: 180px; height: 72px; }
.marque img { max-width: 172px; max-height: 42px; }
.marque img[alt="Simu"] { max-height: 26px; }
.marque img[alt="Somfy"] { max-height: 34px; }
.nav__devis { display: none; }
@media (max-width: 1023px) {
  .tete.ouvert .nav { min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); box-sizing: border-box; }
  .nav__devis { display: inline-flex; margin-top: 12px; }
}
@media (max-width: 767px) { .marque { min-width: 0; height: 64px; } .marque img { max-width: 100%; max-height: 34px; } .marque img[alt="Simu"] { max-height: 22px; } }

/* ---------- 0.4.1 : photos de chantiers ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.photo { margin: 0; display: grid; gap: 10px; align-content: start; }
.photo img { display: block; width: 100%; height: 280px; object-fit: cover; border: 2px solid var(--ink); border-radius: 14px; background: var(--ground); }
.photo figcaption { font-size: 15px; line-height: 21px; color: var(--ink-muted); }
@media (max-width: 767px) { .photos { grid-template-columns: 1fr 1fr; gap: 12px; } .photo img { height: 180px; border-radius: 10px; } .photo figcaption { font-size: 13px; line-height: 18px; } }
