/* ==========================================================================
   OVI Couverture — feuille de styles
   Couleurs : principale #252A30 · CTA #F5C518 · fond clair #F7F8FA · texte #333840
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600.woff2") format("woff2"); }

:root {
    --c-primary: #252A30;
    --c-primary-2: #2F353D;
    --c-cta: #F5C518;
    --c-cta-hover: #E2B30C;
    --c-bg: #FFFFFF;
    --c-bg-alt: #F7F8FA;
    --c-text: #333840;
    --c-muted: #5B6270;
    --c-on-dark: #FFFFFF;
    --c-on-dark-muted: #C9CED6;
    --c-border: #DDE1E6;
    --c-input: #A9AFB8;
    --c-error: #B42318;
    --c-error-bg: #FDECEA;
    --c-cta-soft: #FEF6D6;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(37, 42, 48, .06), 0 8px 24px rgba(37, 42, 48, .08);
    --header-h: 64px;
    --container: 1160px;
    --gutter: 16px;
    --font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

h1, h2, h3 { color: var(--c-primary); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); letter-spacing: -.005em; }
h3 { font-size: 1.1rem; }
h1, h2 { text-wrap: balance; }
.nowrap { white-space: nowrap; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .section-contact :focus-visible, .site-footer :focus-visible { outline-color: var(--c-cta); }
.hero .quote-form :focus-visible, .section-contact .quote-form :focus-visible { outline-color: var(--c-primary); }

.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-link {
    position: absolute; left: 8px; top: -100px; z-index: 200;
    background: var(--c-cta); color: var(--c-primary); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 8px; }

main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }

.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
    border-radius: var(--radius-sm); border: 2px solid transparent;
    text-decoration: none; cursor: pointer; text-align: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-cta { background: var(--c-cta); color: var(--c-primary); }
.btn-cta:hover { background: var(--c-cta-hover); }
.btn-dark { background: var(--c-primary); color: var(--c-on-dark); }
.btn-dark:hover { background: #3A414A; }
.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-bg-alt); }
.btn-sm { min-height: 42px; padding: 8px 14px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }

.link-button {
    background: none; border: 0; padding: 0; font: inherit; color: inherit;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-primary); min-width: 0; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: transparent; color: var(--c-primary);
    border: 1px solid var(--c-border); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }
.nav-toggle-open, .nav-toggle-close { display: inline-flex; }
.nav-toggle[aria-expanded="false"] .nav-toggle-close { display: none; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--c-primary); font-weight: 500; }
.main-nav a:hover { text-decoration: underline; }

/* Menu mobile : panneau sous le bandeau */
@media (max-width: 1023.98px) {
    .main-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--c-bg);
        border-bottom: 1px solid var(--c-border);
        box-shadow: 0 12px 24px rgba(37, 42, 48, .12);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { padding: 8px var(--gutter) 16px; }
    .main-nav li + li { border-top: 1px solid var(--c-border); }
    .main-nav a { display: block; padding: 14px 4px; font-size: 1.05rem; }
}
@media (max-width: 374.98px) {
    .brand-name { display: none; }
}
@media (max-width: 419.98px) {
    .brand { gap: 8px; }
    .brand img { width: 36px; height: 36px; }
    .brand-name { font-size: .95rem; }
    .header-inner { gap: 8px; }
    .header-actions .btn-sm { padding: 8px 12px; font-size: .9rem; }
}
@media (min-width: 1024px) {
    :root { --header-h: 72px; }
    .nav-toggle { display: none; }
    .main-nav { margin-left: auto; }
    .brand { margin-right: 0; }
    .main-nav ul { display: flex; gap: 28px; }
    .header-actions { margin-left: 28px; }
    .brand img { width: 44px; height: 44px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-head p { color: var(--c-muted); margin: 0; }
.section-head-left { text-align: left; margin-left: 0; }
.section-cta { margin: 32px 0 0; text-align: center; }
.note { margin: 12px 0 0; font-size: .85rem; color: var(--c-muted); text-align: center; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-cta); margin: 0 0 8px; }

@media (min-width: 900px) {
    .section { padding: 80px 0; }
}

.card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); }

/* ---------- Premier écran ---------- */
.hero { background: var(--c-primary); color: var(--c-on-dark); padding: 20px 0 40px; }
.hero h1 { color: var(--c-on-dark); margin-bottom: .35em; }
.hero-lead { color: var(--c-on-dark-muted); margin: 0; font-size: .98rem; }
/* Badge avis Google : centre sous l'introduction sur mobile, sous la note sur ordinateur */
.hero-badge { display: flex; justify-content: center; margin: 14px 0 0; }
.hero-badge img { width: 180px; height: auto; border-radius: var(--radius-sm); }
.hero-badge-desktop { display: none; }
@media (min-width: 960px) {
    .hero-badge-mobile { display: none; }
    .hero-badge-desktop { display: flex; justify-content: flex-start; margin-top: 16px; }
}
.hero-grid { display: grid; gap: 20px; grid-template-areas: "head" "form" "details"; }
.hero-head { grid-area: head; }
.hero-form { grid-area: form; scroll-margin-top: calc(var(--header-h) + 8px); }
.hero-details { grid-area: details; color: var(--c-on-dark-muted); }
.hero-details strong { color: var(--c-on-dark); font-weight: 500; }
.hero-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--c-on-dark); font-weight: 500; }

.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--c-cta); margin-top: 3px; }

@media (min-width: 960px) {
    .hero { padding: 56px 0 64px; }
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
        grid-template-areas: "head form" "details form";
        grid-template-rows: auto 1fr;
        column-gap: 56px; row-gap: 20px;
    }
    .hero-lead { font-size: 1.1rem; }
    .hero-details { font-size: 1.02rem; }
}

/* ---------- Formulaire ---------- */
.quote-form {
    background: var(--c-bg); color: var(--c-text);
    border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow);
}
.form-title { font-size: 1.2rem; margin: 0 0 4px; color: var(--c-primary); }
.form-required-note { font-size: .82rem; color: var(--c-muted); margin: 0 0 14px; }
.field { margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; color: var(--c-primary); }
.req { color: var(--c-error); }
.optional { font-weight: 400; color: var(--c-muted); font-size: .88em; }

.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
    width: 100%; min-height: 48px;
    padding: 11px 12px;
    font: inherit; font-size: 1rem; color: var(--c-text);
    background: #fff; border: 1.5px solid var(--c-input); border-radius: var(--radius-sm);
    appearance: none;
}
.field textarea { min-height: 88px; resize: vertical; }
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23252A30' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(245, 197, 24, .7);
}
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field ::placeholder { color: #7A818C; }

.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--c-error); font-size: .86rem; font-weight: 500; margin: 6px 0 0; }
.field-error[hidden] { display: none; }
.field-error .icon { margin-top: 1px; }

.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; align-items: start; padding: 12px; background: var(--c-bg-alt); border-radius: var(--radius-sm); }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-primary); }
.field-check label { font-weight: 400; font-size: .86rem; color: var(--c-text); margin: 0; line-height: 1.45; }
.field-check .field-error { grid-column: 2; }
.field-check label a { color: var(--c-primary); font-weight: 500; }

.form-alert {
    display: flex; gap: 8px; align-items: flex-start;
    padding: 12px; margin-bottom: 14px;
    border-radius: var(--radius-sm); background: var(--c-error-bg); color: var(--c-error);
    font-weight: 500; font-size: .92rem;
}
.form-alert[hidden] { display: none; }
.form-alert:focus { outline: 2px solid var(--c-error); outline-offset: 2px; }

.form-privacy { font-size: .78rem; color: var(--c-muted); margin: 12px 0 0; line-height: 1.5; }
.form-privacy a { color: var(--c-primary); }

.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* CAPTCHA image */
.captcha-title { font-weight: 500; font-size: .92rem; color: var(--c-primary); margin: 0 0 8px; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 10px; }
.captcha-refresh[hidden] { display: none; }
.captcha-img { width: 180px; height: 60px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.field input.captcha-input { max-width: 220px; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Avis ---------- */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.review { padding: 22px; }
.review figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
.review blockquote { margin: 12px 0 16px; flex: 1; }
.review blockquote p { margin: 0; }
.review figcaption { font-weight: 600; color: var(--c-primary); font-size: .95rem; }

.stars { display: inline-flex; gap: 2px; }
.star { width: 18px; height: 18px; fill: #D3D7DD; }
.star.is-on { fill: var(--c-cta); }
.review .star.is-on { fill: #E0AD00; }

/* ---------- Prestations ---------- */
.services { display: grid; gap: 20px; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
    /* 3 colonnes, derniere rangee centree quand elle est incomplete */
    .services { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
    .services > .service { flex: 0 0 calc((100% - 48px) / 3); }
}
.service { overflow: hidden; display: flex; flex-direction: column; }
.service-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-body { padding: 20px 22px 22px; }
.service-body > p { color: var(--c-muted); }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; }
.service-list li { padding-left: 14px; border-left: 3px solid var(--c-cta); }
.service-item-title { display: block; font-weight: 600; color: var(--c-primary); }

/* ---------- Confiance ---------- */
.trust-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-item h3 { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.trust-item p { margin: 0; color: var(--c-muted); }
.trust-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--c-cta-soft); color: var(--c-primary); flex-shrink: 0;
}
.trust-grid .section-cta { text-align: left; }
.partner-card {
    margin-top: 24px; padding: 16px 18px;
    background: var(--c-bg-alt); border-left: 4px solid var(--c-cta); border-radius: var(--radius-sm);
    font-size: .94rem;
}
.partner-card p { margin: 0; }
.partner-card-title { font-weight: 600; color: var(--c-primary); margin-bottom: 4px !important; }
.trust-photo { margin: 0; }
.trust-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.trust-photo figcaption { font-size: .82rem; color: var(--c-muted); margin-top: 8px; }

/* ---------- Zones ---------- */
.zones { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.zones li {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 999px;
    font-weight: 500; color: var(--c-primary);
}
.zones li:first-child { background: var(--c-primary); color: var(--c-on-dark); border-color: var(--c-primary); }
.zones .icon { color: #B38A00; }
.zones li:first-child .icon { color: var(--c-cta); }
.zones-note { text-align: center; color: var(--c-muted); margin: 20px auto 0; max-width: 640px; }

/* ---------- Contact ---------- */
.section-contact { background: var(--c-primary); color: var(--c-on-dark-muted); }
.section-contact h2 { color: var(--c-on-dark); }
.contact-grid { display: grid; gap: 28px; }
.contact-lead { font-size: 1.05rem; }
@media (min-width: 960px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); gap: 56px; align-items: start; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); }
.faq-item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 20px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.faq-item summary::after {
    content: ""; flex-shrink: 0; width: 22px; height: 22px;
    background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252A30' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.faq-item[open] summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252A30' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p { margin: 0; }

/* ---------- Pages légales et confirmation ---------- */
.legal h1 { margin-bottom: .2em; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal-updated { color: var(--c-muted); font-size: .9rem; }
.credits { font-size: .9rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--c-border); }
.legal thead th { background: var(--c-bg-alt); font-weight: 600; color: var(--c-primary); }
.legal tbody th { font-weight: 600; color: var(--c-primary); width: 40%; }

.confirm { min-height: 50vh; display: flex; align-items: center; }
.confirm-box { text-align: center; padding: 36px 24px; background: var(--c-bg-alt); border-radius: var(--radius); }
.confirm-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%; background: var(--c-cta); color: var(--c-primary); margin-bottom: 16px;
}
.confirm-icon .icon { width: 32px; height: 32px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--c-primary); color: var(--c-on-dark-muted); padding: 36px 0 28px; font-size: .95rem; }
.footer-inner { display: grid; gap: 20px; }
.footer-name { color: var(--c-on-dark); font-weight: 600; margin: 0 0 4px; }
.footer-brand p:last-child { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a, .footer-links .link-button { color: var(--c-on-dark); display: inline-block; padding: 6px 0; }
.footer-copy { margin: 0; font-size: .85rem; }
@media (min-width: 900px) {
    .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
    .footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }
}

/* ---------- Bandeau de consentement ---------- */
.consent {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150;
    max-width: 640px; margin: 0 auto;
    background: var(--c-bg); color: var(--c-text);
    border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(37, 42, 48, .25);
}
.consent[hidden] { display: none; }
.consent-inner { padding: 18px 20px; font-size: .9rem; }
.consent-title { font-weight: 600; color: var(--c-primary); margin: 0 0 6px; font-size: 1rem; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.consent-actions .btn { flex: 1 1 140px; }

@media print {
    .site-header, .consent, .section-cta, .quote-form { display: none !important; }
}
