/* =================================================================
   vitrine-glace.fr (Givréa) — Violet profond & framboise + Space Grotesk / Figtree
   ================================================================= */

:root {
    --primary:       #5B21B6;
    --primary-dark:  #3C1470;
    --primary-soft:  rgba(91, 33, 182, .08);
    --primary-soft2: rgba(91, 33, 182, .15);
    --cta:           #F43F5E;
    --cta-dark:      #D02644;
    --text:          #1B1129;
    --text-soft:     #524B60;
    --text-muted:    #A39BAF;
    --bg-base:       #FFFFFF;
    --bg-alt:        #F6F3FB;
    --bg-dark:       #3C1470;
    --lisere:          #E9E5EF;
    --lisere-clair:    #F6F3FB;
    --score:          #F43F5E;
    --success:       #0F9D58;
    --error:         #C81E4A;

    --max-w:         1200px;
    --max-w-narrow:  760px;
    --gutter:        clamp(16px, 4vw, 32px);
    --radius:        12px;
    --radius-lg:     16px;
    --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
    --shadow-md:     0 8px 24px rgba(0,0,0,.08);
    --shadow-lg:     0 24px 48px rgba(91, 33, 182,.12);

    --font-display:    "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-sans:     "Figtree", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    --header-h:      72px;
}

/* ===== Reset minimal ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, picture, video { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .15s; }
a:hover { color: var(--cta); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 .6em;
    line-height: 1.2;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-top: 0; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { margin: 0 0 1em; color: var(--text-soft); }
strong { color: var(--text); font-weight: 700; }

/* ===== Layout ===== */
.enveloppe { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.enveloppe--narrow { max-width: var(--max-w-narrow); }
.centrage { text-align: center; }

/* ===== SEO-first DOM order : longform & form en haut du DOM, repositionnés visuellement via order ===== */
main { display: flex; flex-direction: column; }
main > *                                { order: 100; }
main > .gv-banner                         { order: 1; }
main > .gv-quote                         { order: 2; }
main > .gv-proof                        { order: 3; }
main > .partie__section              { order: 10; }
/* Pages ville : longform monté en DOM position 3, visuellement repositionné en 7 (après Métiers) */
main > .partie__section--gamme         { order: 10; }
main > .partie__section--solutions     { order: 11; }
main > .partie__section--zone          { order: 12; }
main > .partie__section--metiers       { order: 13; }
main > .partie__section--longform      { order: 20; }
main > #avis-clients                    { order: 30; }
main > .partie__section--faq           { order: 31; }
main > .gv-recall                     { order: 32; }
main > .partie__section--voisines      { order: 33; }
main > .partie__section--top-dept      { order: 34; }
main > .partie__section--top-france    { order: 35; }

/* ===== Header ===== */
.gv-masthead {
    position: sticky; top: 0; z-index: 1000;
    background: #fff;
    transition: box-shadow .2s;
}
.gv-masthead--scrolled { box-shadow: var(--shadow-sm); }
.gv-masthead__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}
.gv-masthead__brand {
    display: inline-flex; align-items: center;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
    line-height: 0;
}
.gv-masthead__brand img {
    display: block;
    height: 40px;
    width: auto;
    max-height: 40px;
}
@media (max-width: 600px) {
    .gv-masthead__brand img { height: 32px; max-height: 32px; }
}

/* Nav */
.gv-navmain__list {
    display: flex; align-items: center; gap: 6px;
}
.gv-navmain__list > li > a {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.gv-navmain__list > li > a:hover { background: var(--primary-soft); color: var(--primary); }
.gv-navmain__list > li.gv-navmain__cta > a,
.gv-navmain__list > li.gv-navmain__cta > a:hover,
.gv-navmain__list > li.gv-navmain__cta > a:visited,
.gv-navmain__list > li.gv-navmain__cta > a:focus {
    padding: 10px 18px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    background: var(--cta) !important;
}
.gv-navmain__list > li.gv-navmain__cta > a:hover {
    background: var(--cta-dark) !important;
}
.gv-navmain__burger {
    display: none;
    width: 40px; height: 40px;
    padding: 0; border: 0; background: transparent;
    flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.gv-navmain__burger span {
    width: 22px; height: 2px; background: var(--text); border-radius: 1px;
    transition: transform .2s, opacity .2s;
}

/* ===== Buttons ===== */
.action {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
}
.action--cta {
    background: var(--cta);
    color: #fff;
    box-shadow: 0 4px 12px rgba(244, 63, 94, .25);
}
.action--cta:hover { background: var(--cta-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(244, 63, 94, .35); }
.action--ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.action--ghost:hover { background: var(--primary); color: #fff; }
.action--lg { padding: 16px 32px; font-size: 16px; }

/* ===== Hero ===== */
.gv-banner {
    background: linear-gradient(180deg, #EADDF8 0%, #F4EFFB 55%, #FFF 100%);
    padding: clamp(40px, 7vw, 80px) 0;
}
.gv-banner__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.gv-banner__copy { font-family: var(--font-sans); }
.gv-banner__eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
}
.gv-banner__h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    line-height: 1.18;
    margin: 0 0 16px;
    text-wrap: balance;
}
.gv-banner__city { color: var(--primary); display: block; font-style: italic; text-wrap: balance; }
.gv-banner__lead {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-soft);
    margin: 16px 0 24px;
    max-width: 56ch;
}
.gv-banner__chips {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 0 0 28px;
}
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
}
.badge__check { color: var(--success); font-weight: 700; }
.gv-banner__actions { margin: 0; }
.gv-banner__visual {
    position: relative;
}
.gv-banner__visual img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
}

/* ===== Hero floating tuile (style SaaS blanc compact, bottom-right) ===== */
.gv-banner__price-card {
    position: absolute;
    bottom: 16px; right: -16px;
    background: #ffffff;
    color: var(--text);
    border-radius: 14px;
    padding: 10px 18px 10px 10px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(15, 27, 45, .12), 0 2px 6px rgba(15, 27, 45, .06);
    z-index: 5;
    text-decoration: none;
    max-width: 270px;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: card-fade-in .7s ease both;
}
.gv-banner__price-card:hover {
    transform: translateY(-2px);
    color: var(--text);
    box-shadow: 0 18px 36px rgba(15, 27, 45, .16), 0 4px 10px rgba(15, 27, 45, .08);
}
.gv-banner__price-card__icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 26px;
    line-height: 1;
    color: #0D0A14;
    flex-shrink: 0;
    background: #EADDF8;
}
.gv-banner__price-card__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.gv-banner__price-card__sub {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-soft);
    line-height: 1.2;
    white-space: nowrap;
}
.gv-banner__price-card__title {
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}
.gv-banner__price-card__line3 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.2;
    white-space: nowrap;
    margin-top: 1px;
}

@keyframes card-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1024px) {
    .gv-banner__price-card { right: -10px; bottom: 12px; max-width: 250px; }
}
@media (max-width: 768px) {
    .gv-banner__price-card { right: 10px; bottom: 10px; max-width: 240px; }
}
@media (max-width: 480px) {
    .gv-banner__price-card { padding: 8px 14px 8px 8px; gap: 10px; border-radius: 12px; right: 6px; bottom: 6px; }
    .gv-banner__price-card__icon { width: 36px; height: 36px; font-size: 22px; border-radius: 9px; }
    .gv-banner__price-card__title { font-size: 15px; }
    .gv-banner__price-card__sub { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .gv-banner__price-card { animation: none; }
}

/* ===== Trust bar — bandeau réassurance sous gv-banner ===== */
.gv-proof {
    background: #ffffff;
    border-top: 1px solid var(--lisere);
    border-bottom: 1px solid var(--lisere);
    padding: 16px 0;
}
.gv-proof__list {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 12px 36px;
    margin: 0; padding: 0;
}
.gv-proof__item {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.gv-proof__icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.gv-proof__text { line-height: 1.2; }
@media (max-width: 768px) {
    .gv-proof { padding: 14px 0; }
    .gv-proof__list { gap: 10px 20px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 var(--gutter); margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
    .gv-proof__list::-webkit-scrollbar { display: none; }
    .gv-proof__item { font-size: 13px; white-space: nowrap; flex-shrink: 0; }
    .gv-proof__icon { font-size: 18px; }
}

/* ===== Bloc "rappel technicien" ===== */
.gv-recall__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}
.gv-recall__visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(91, 33, 182, 0.10);
}
.gv-recall__title {
    font-family: var(--font-display);
    color: var(--primary-dark);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 16px;
    text-wrap: balance;
    line-height: 1.25;
}
.gv-recall__lead {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 24px;
    max-width: 50ch;
}
.gv-recall__actions { margin: 0; }

@media (max-width: 768px) {
    .gv-recall__grid { grid-template-columns: 1fr; gap: 24px; }
    .gv-recall__visual img { max-height: 280px; }
}

/* ===== Sticky CTA mobile ===== */
.gv-dock {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    z-index: 900;
    display: none;
    justify-content: center;
    pointer-events: none;
    transform: translateY(100px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}
.gv-dock--visible {
    transform: translateY(0);
    opacity: 1;
}
.gv-dock__btn {
    pointer-events: auto;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--cta);
    color: #fff !important;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(244, 63, 94, .4), 0 0 0 3px rgba(255, 255, 255, .9);
    min-width: 260px;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.gv-dock__btn:hover { background: var(--cta-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(244, 63, 94, .50), 0 0 0 3px rgba(255, 255, 255, .9); }
@media (max-width: 768px) {
    .gv-dock { display: flex; }
}

/* ===== Image expertise (insérée après H2#3 sur pages service+ville) ===== */
.gv-skill-img {
    margin: 24px 0 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 3 / 2;
}
.gv-skill-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Rating widget ===== */
.score {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin: 8px 0 20px;
    font-size: 15px;
    color: var(--text-soft);
}
a.score--link {
    text-decoration: none;
    transition: opacity .15s, transform .15s;
    cursor: pointer;
}
a.score--link:hover { opacity: 0.85; transform: translateY(-1px); }
a.score--link .score__count strong { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.score__stars {
    color: var(--score);
    font-size: 1.3rem;
    letter-spacing: 2px;
    line-height: 1;
}
.score__value strong { color: var(--text); font-size: 1.15rem; font-weight: 700; }
.score__count a { color: var(--text-soft); text-decoration: underline; text-decoration-style: dotted; }
.score__count a:hover { color: var(--primary); }

/* ===== Sections ===== */
.partie__section {
    padding: clamp(36px, 5vw, 64px) 0;
}
.partie__section--alt { background: var(--bg-alt); }
.partie__section--longform { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.gv-part__h2 { text-align: center; margin: 0 0 12px; }
.gv-part__lead { text-align: center; max-width: 60ch; margin: 0 auto 40px; color: var(--text-soft); }

/* ===== Cards ===== */
.tuiles { display: grid; gap: 24px; margin: 32px 0 0; }
.tuiles--2 { grid-template-columns: repeat(2, 1fr); }
.tuiles--3 { grid-template-columns: repeat(3, 1fr); }
.tuiles--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.tuile {
    background: #fff;
    border: 1px solid var(--lisere);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color .15s, box-shadow .2s, transform .1s;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
}
a.tuile:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.tuile__icon { font-size: 32px; line-height: 1; margin-bottom: 12px; display: inline-block; }
.tuile__title { font-family: var(--font-display); margin: 0 0 8px; font-size: 1.25rem; }
.tuile__desc { color: var(--text-soft); font-size: 15px; margin: 0 0 12px; }
.tuile__price { font-size: 14px; color: var(--text-muted); margin: auto 0 12px; }
.tuile__price strong { color: var(--text); font-size: 1rem; }
.tuile__link { color: var(--primary); font-weight: 700; font-size: 14px; margin-top: auto; }

/* Service tuile large (homepage) */
.tuile--service-lg { padding: 0; overflow: hidden; }
.tuile--service-lg .tuile__img { aspect-ratio: 3/2; overflow: hidden; background: var(--lisere-clair); }
.tuile--service-lg .tuile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tuile--service-lg:hover .tuile__img img { transform: scale(1.03); }
.tuile--service-lg .tuile__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

/* Product tuiles H2#2 */
.tuile--product { padding: 0; overflow: hidden; }
.tuile--product img { aspect-ratio: 4/3; object-fit: cover; }
.tuile--product h3, .tuile--product p { padding: 0 20px; }
.tuile--product h3 { padding-top: 16px; }
.tuile--product p:last-child { padding-bottom: 20px; }

/* Feature tuiles */
.tuiles--feat .tuile { text-align: center; align-items: center; }
.tuiles--feat .tuile__icon { font-size: 40px; }

/* Testimonial tuiles */
.tuiles--testimonials .tuile { background: var(--bg-alt); border: 0; }
.retour__stars { color: var(--score); font-size: 1.2rem; letter-spacing: 2px; margin: 0 0 12px; line-height: 1; }
.retour__text { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.55; margin: 0 0 16px; color: var(--text); border-left: 3px solid var(--primary); padding: 0 0 0 16px; }
.retour__author { font-size: 14px; color: var(--text-soft); margin: 0; }
.retour__author strong { color: var(--text); }

/* ===== Chips list (maillage villes) ===== */
.badges--cities {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 24px 0 0;
}
.badges--cities li { margin: 0; }
.badges--cities a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-soft);
    color: var(--primary);
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.badges--cities a:hover { background: var(--primary); color: #fff; }

/* ===== Dept tuiles grid ===== */
.secteurs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin: 32px 0 0;
}
.secteur-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 18px 14px;
    background: #fff;
    border: 1px solid var(--lisere);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color .15s, transform .1s;
    text-align: center;
}
.secteur-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.secteur-item__code {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
}
.secteur-item__name { font-weight: 700; color: var(--text); font-size: 14px; }
.secteur-item__count { color: var(--text-muted); font-size: 12px; }

/* ===== City grid (page département) ===== */
.localites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 24px 0 0;
}
.localite {
    display: flex; flex-direction: column;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--lisere);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, background .15s;
}
.localite:hover { border-color: var(--primary); background: var(--primary-soft); }
.localite__name { font-size: 15px; }
.localite__cp { color: var(--text-muted); font-size: 13px; }
.localite__pop { color: var(--text-muted); font-size: 12px; }

/* ===== Longform partie (H2#6) ===== */
.partie__section--longform p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 1.4em;
    color: var(--text-soft);
}
.partie__section--longform strong { color: var(--text); }
.partie__section--longform a { color: var(--primary); font-weight: 500; }

/* ===== FAQ ===== */
.qr { margin: 24px 0 0; border-top: 1px solid var(--lisere); }
.qr__item { border-bottom: 1px solid var(--lisere); padding: 0; }
.qr__q {
    padding: 18px 40px 18px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    cursor: pointer;
    position: relative;
    list-style: none;
    transition: color .15s;
}
.qr__q::-webkit-details-marker { display: none; }
.qr__q::after {
    content: '+';
    position: absolute;
    right: 8px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    font-weight: 400;
    transition: transform .2s, background .15s;
}
.qr__item[open] .qr__q::after { transform: translateY(-50%) rotate(45deg); background: var(--primary); color: #fff; }
.qr__q:hover { color: var(--primary); }
.qr__a { padding: 0 0 18px; color: var(--text-soft); font-size: 16px; line-height: 1.7; }

/* ===== Form lead ===== */
.gv-quote {
    background: #1B1129;
    background-image: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, .08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(244, 63, 94, .05) 0%, transparent 50%);
    padding: clamp(40px, 6vw, 64px) 0;
    position: relative;
}
.gv-quote::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--score) 20%, var(--score) 80%, transparent 100%);
    pointer-events: none;
}
.gv-quote .enveloppe { position: relative; }
.gv-quote .formulaire { border-top-color: var(--score); }
.gv-quote__inner { display: flex; justify-content: center; }
.formulaire {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary);
}
.formulaire__header { margin: 0 0 24px; }
.formulaire__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    color: var(--primary);
    margin: 0 0 14px;
    text-align: center;
}
.formulaire__progress {
    display: flex; align-items: center; gap: 12px;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}
.formulaire__progress-bar {
    flex: 1;
    height: 4px;
    background: var(--lisere);
    border-radius: 2px;
    overflow: hidden;
}
.formulaire__progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--cta));
    transition: width .3s;
}
.formulaire__legend { display: block; font-weight: 700; color: var(--text); margin: 0 0 16px; font-size: 1.05rem; }
.formulaire__step--hidden { display: none; }
.formulaire__group { margin: 0 0 20px; }
.formulaire__group--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formulaire__sublabel {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin: 0 0 10px;
}

/* Radio tuiles */
.formulaire__radios { display: grid; grid-template-columns: 1fr; gap: 8px; }
.option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid var(--lisere);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:hover { border-color: var(--primary); background: var(--primary-soft); }
.option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.option__icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.option__label { font-size: 15px; font-weight: 600; color: var(--text); }

/* Check tuiles */
.formulaire__checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.coche-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid var(--lisere);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color .15s, background .15s;
}
.coche-item input { position: absolute; opacity: 0; pointer-events: none; }
.coche-item:hover { border-color: var(--primary); background: var(--primary-soft); }
.coche-item:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

/* Inputs */
.formulaire__field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.formulaire__field--full { grid-column: 1 / -1; }
.formulaire__field > span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}
.formulaire__field input,
.formulaire__field textarea,
.formulaire__field select,
.formulaire__select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--lisere);
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.formulaire__field input:focus,
.formulaire__field textarea:focus,
.formulaire__field select:focus,
.formulaire__select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.formulaire__field textarea { resize: vertical; min-height: 84px; }

/* Select customisé : remplace l'apparence native macOS/Windows par une flèche custom alignée Givréa */
.formulaire__select,
.formulaire__field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23025EB7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    cursor: pointer;
}
.formulaire__select:invalid,
.formulaire__field select:invalid { color: var(--text-muted); }

.formulaire__legal {
    font-size: 12px;
    color: var(--text-muted);
    margin: 16px 0 0;
    line-height: 1.5;
}

.formulaire__actions {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    margin: 24px 0 0;
}
.formulaire__actions .action--ghost { background: transparent; border-width: 1.5px; }

/* Thanks */
.formulaire__thanks { text-align: center; padding: 24px 0; }
.formulaire__thanks h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); margin: 0 0 12px; }
.formulaire__thanks p { color: var(--text-soft); margin: 0; }

/* ===== Legal pages ===== */
.mentions { padding: 64px 0; }
.mentions__header { text-align: center; margin: 0 0 40px; }
.mentions__updated { color: var(--text-muted); font-size: 14px; }
.mentions section { margin: 0 0 32px; }
.mentions h2 { margin: 0 0 12px; color: var(--primary); font-size: 1.4rem; }
.sommaire-liste { display: flex; flex-direction: column; gap: 4px; }
.sommaire-liste a { display: inline-block; padding: 4px 0; }
.sommaire-liste--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; }
.sommaire-liste small { color: var(--text-muted); font-size: 13px; }

/* ===== Footer ===== */
.gv-baseboard {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, .85);
    padding: 64px 0 0;
}
.gv-baseboard__grid {
    display: grid;
    grid-template-columns: 1.2fr 2.4fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.gv-baseboard__brand { display: inline-flex; align-items: center; margin-bottom: 16px; line-height: 0; }
.gv-baseboard__brand img {
    display: block;
    height: 36px;
    width: auto;
    max-height: 36px;
}
.gv-baseboard__baseline { color: rgba(255,255,255,.85) !important; font-size: 14px; line-height: 1.5; margin: 0 0 16px; max-width: 32ch; }
.gv-baseboard__contact { color: rgba(255,255,255,.85); }
.gv-baseboard__contact a { color: rgba(255,255,255,.95) !important; text-decoration: underline; }
.gv-baseboard__contact a:hover { color: #fff !important; }
.gv-baseboard__title { color: #fff !important; font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 16px; font-weight: 700; }
.gv-baseboard__list { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; margin: 0; }
.gv-baseboard__list a { color: rgba(255,255,255,.85) !important; text-decoration: none; font-size: 14px; transition: color .15s; }
.gv-baseboard__list a:hover { color: #fff !important; }
.gv-baseboard__list--cities { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.gv-baseboard__list--cities a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
    .gv-baseboard__list--cities { grid-template-columns: 1fr; gap: 8px 0; }
    .gv-baseboard__list--cities a { white-space: normal; }
}
.gv-baseboard__bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    font-size: 13px;
}
.gv-baseboard__bottom p { color: #ffffff !important; margin: 0; }

/* ===== Exit popup ===== */
.gv-leavebox {
    position: fixed; inset: 0; z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.gv-leavebox--visible { display: flex; }
.gv-leavebox__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
}
.gv-leavebox__content {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0,0,0,.3);
    border-top: 4px solid var(--cta);
}
.gv-leavebox__close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px;
    border: 0; background: var(--lisere);
    border-radius: 50%;
    font-size: 22px; line-height: 1;
    color: var(--text-soft);
}
.gv-leavebox__close:hover { background: var(--cta); color: #fff; }
.gv-leavebox__title { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); margin: 0 0 12px; }
.gv-leavebox__text { color: var(--text-soft); margin: 0 0 24px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .gv-baseboard__grid { grid-template-columns: 1fr 1fr; }
    .tuiles--3 { grid-template-columns: repeat(2, 1fr); }
    .tuiles--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .gv-banner__grid { grid-template-columns: 1fr; gap: 24px; }
    .gv-banner__visual { order: -1; max-width: 480px; margin: 0 auto; }
    .tuiles--2, .tuiles--3, .tuiles--4 { grid-template-columns: 1fr; }
    .formulaire__group--row { grid-template-columns: 1fr; }
    .formulaire__checks { grid-template-columns: 1fr; }
    .gv-baseboard__grid { grid-template-columns: 1fr; gap: 32px; }
    .baseboard__list--localites { grid-template-columns: repeat(2, 1fr); }

    .gv-navmain__burger { display: flex; }
    .gv-navmain__list {
        display: none;
        position: absolute;
        top: var(--header-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        padding: 16px var(--gutter);
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--lisere);
    }
    .gv-navmain--open .gv-navmain__list { display: flex; }
    .gv-navmain__list > li > a { padding: 14px 0; border-radius: 0; }
    .gv-navmain__cta { padding-top: 12px; }
    .gv-navmain__cta a { width: 100%; }

    .formulaire__actions { flex-wrap: wrap; }
    .formulaire__actions .action { flex: 1; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.4rem; }
    .gv-banner { padding: 32px 0; }
    .badge { font-size: 13px; padding: 6px 12px; }
}

/* Verrou de police du hero : évite le décalage si la police met du temps à charger */
.gv-banner__h1, .gv-banner__eyebrow {
    font-family: var(--font-display);
}

/* Accessibility */
.action:focus-visible,
a:focus-visible,
input:focus-visible,
button:focus-visible,
.option:focus-within,
.coche-item:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print */
@media print {
    .gv-masthead, .gv-baseboard, .gv-leavebox, .gv-quote, .gv-navmain { display: none !important; }
    body { color: #000; background: #fff; }
}
