
/* =========================================================
 *   WAZUR STUDIO — FEUILLE DE STYLE COMPLÈTE
 *   1. Variables
 *   2. Base
 *   3. Header
 *   4. Boutons
 *   5. Sections
 *   6. Comparateur avant / après
 *   7. Formulaire
 *   8. Footer
 *   9. Responsive
 *   ========================================================= */


/* =========================================================
 *   1. VARIABLES
 *   ========================================================= */

:root {
    --marine: #0a2438;
    --azur: #1273d9;
    --azur-fonce: #0d5aad;
    --brume: #eef4f8;
    --soleil: #f4b942;
    --texte: #31485c;
    --ligne: #d5e1ea;
    --erreur: #b3261e;
    --ok: #17724a;

    --titre: "Bricolage Grotesque", "Avenir Next",
    "Segoe UI", system-ui, sans-serif;

    --corps: system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;

    --w: 1120px;
    --r: 6px;
}


/* =========================================================
 *   2. BASE
 *   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 1.0625rem/1.65 var(--corps);
    color: var(--texte);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    font-family: var(--titre);
    color: var(--marine);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2.3rem, 5.6vw, 4.2rem);
    font-weight: 700;
    max-width: 14ch;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
    max-width: 62ch;
}

a {
    color: var(--azur);
}

:focus-visible {
    outline: 3px solid var(--azur);
    outline-offset: 3px;
}

.container {
    width: min(100% - 2.5rem, var(--w));
    margin-inline: auto;
}

.lead {
    font-size: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}


/* =========================================================
 *   3. HEADER ET NAVIGATION
 *   ========================================================= */

.skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--marine);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 100;
}

.skip:focus {
    left: 0;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ligne);
}

.header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font: 700 1.25rem var(--titre);
    color: var(--marine);
    text-decoration: none;
}

.logo::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        var(--azur) 50%,
                                var(--soleil) 50%
    );
}

/* Navigation */

.nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav a {
    color: var(--marine);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;
}

.nav a:hover,
.nav a[aria-current] {
    color: var(--azur);
}

/* Menu mobile */

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    top: 16px;
    height: 2px;
    background: var(--marine);
    box-shadow: 0 6px 0 var(--marine);
}

.burger::after {
    top: 28px;
    box-shadow: none;
}


/* =========================================================
 *   4. BOUTONS
 *   ========================================================= */

.btn {
    display: inline-block;
    background: var(--azur);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--azur);
    border-radius: var(--r);
    font: 600 1rem var(--corps);
    text-decoration: none;
    cursor: pointer;
    transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn:hover {
    background: var(--azur-fonce);
    border-color: var(--azur-fonce);
}

.btn--ghost {
    background: transparent;
    color: var(--azur);
}

.btn--ghost:hover {
    color: #fff;
}

.btn--sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.92rem;
}

.btn--sun {
    background: var(--soleil);
    border-color: var(--soleil);
    color: var(--marine);
}

.btn--sun:hover {
    background: #ffd06e;
    border-color: #ffd06e;
}

.nav a.btn {
    color: #fff;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}


/* =========================================================
 *   5. SECTIONS ET MISE EN PAGE
 *   ========================================================= */

/* Section principale */

.hero {
    padding:
    clamp(2.5rem, 6vw, 4.5rem)
    0
    clamp(3rem, 6vw, 5rem);
}

.hero__top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem 4rem;
    align-items: end;
    margin-bottom: 2.5rem;
}

.hero__top h1 {
    margin: 0;
}

/* Sections générales */

.section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--brume {
    background: var(--brume);
}

.page-head {
    background: var(--brume);
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.page-head h1 {
    max-width: 18ch;
}

/* Disposition en deux colonnes */

.split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem 4rem;
    align-items: start;
}

/* Trois colonnes */

.cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cols > * {
    border-top: 3px solid var(--azur);
    padding-top: 1rem;
}

/* Liste de services */

.rows > article {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--ligne);
}

.rows > article:last-child {
    border-bottom: 1px solid var(--ligne);
}

.rows h3,
.rows p {
    margin: 0;
}

/* Étapes */

.steps {
    list-style: none;
    counter-reset: s;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.steps li {
    counter-increment: s;
    border-left: 1px solid var(--ligne);
    padding-left: 1.25rem;
}

.steps li::before {
    content: counter(s);
    display: block;
    font: 700 2.4rem/1 var(--titre);
    color: var(--azur);
    margin-bottom: 0.5rem;
}

/* Questions fréquentes */

details {
    border-top: 1px solid var(--ligne);
    padding: 1rem 0;
}

details:last-of-type {
    border-bottom: 1px solid var(--ligne);
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--marine);
}

details p {
    margin: 0.7rem 0 0;
}

/* Appel à l'action */

.cta {
    background: var(--marine);
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta h2 {
    color: #fff;
}

.cta p {
    color: #c5d3df;
}

.cta :focus-visible,
.footer :focus-visible {
    outline-color: var(--soleil);
}


/* =========================================================
 *   6. COMPARATEUR PHOTO AVANT / APRÈS
 *   FILTRE SOMBRE SUPPRIMÉ
 *   ========================================================= */

.ba {
    --pos: 50%;

    position: relative;
    aspect-ratio: 21 / 9;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--marine);
    user-select: none;
}

/* Calques des photos */

.ba__layer {
    position: absolute;
    inset: 0;
}

.ba__layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Conserve les couleurs originales */
    filter: none;
    opacity: 1;
}

/* Photo après : révélée par le curseur */

.ba__layer--after {
    clip-path: inset(0 0 0 var(--pos));
}

/* Photo avant : aucune désaturation ni assombrissement */

.scene {
    background: linear-gradient(
        180deg,
        #9cc4ee 0 46%,
        #ead9b8 46% 100%
    );
}

.scene--before {
    filter: none !important;
}

/* Libellés Avant et Après */

.ba__label {
    position: absolute;
    top: 1rem;
    padding: 0.2rem 0.7rem;
    border-radius: var(--r);
    background: rgba(10, 36, 56, 0.8);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
}

.ba__label--l {
    left: 1rem;
}

.ba__label--r {
    right: 1rem;
}

/* Ligne verticale du curseur */

.ba__bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    background: var(--soleil);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;
}

/* Bouton rond au centre */

.ba__bar::after {
    content: "↔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--soleil);
    color: var(--marine);
    display: grid;
    place-items: center;
    font-weight: 700;
}

/* Curseur interactif */

.ba input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
}

.ba:focus-within {
    outline: 3px solid var(--azur);
    outline-offset: 3px;
}

/* Texte sous le comparateur */

figcaption {
    font-size: 0.88rem;
    margin-top: 0.6rem;
}


/* =========================================================
 *   7. FORMULAIRE
 *   ========================================================= */

.split--form {
    grid-template-columns: 2fr 1fr;
}

.form {
    display: grid;
    gap: 1.1rem;
}

.field label {
    display: block;
    font-weight: 600;
    color: var(--marine);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #9db3c4;
    border-radius: var(--r);
    font: inherit;
    color: var(--marine);
    background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--azur);
    box-shadow: 0 0 0 3px rgba(18, 115, 217, 0.2);
}

.field.invalid input,
.field.invalid textarea {
    border-color: var(--erreur);
}

.field--check label {
    display: flex;
    gap: 0.6rem;
    font-weight: 400;
}

.field--check input {
    width: auto;
    margin-top: 0.35rem;
}

.error {
    color: var(--erreur);
    font-size: 0.88rem;
    margin: 0.3rem 0 0;
    min-height: 1.2em;
}

.form__status {
    font-weight: 600;
    margin: 0;
}

.form__status.ok {
    color: var(--ok);
}

.form__status.ko {
    color: var(--erreur);
}

/* Champ anti-spam */

.honey {
    position: absolute;
    left: -9999px;
}

/* Informations complémentaires du formulaire */

.aside {
    border-left: 3px solid var(--soleil);
    padding-left: 1.25rem;
}


/* =========================================================
 *   8. PIED DE PAGE
 *   ========================================================= */

.footer {
    background: #071a29;
    color: #c5d3df;
    padding: 2.5rem 0;
    font-size: 0.95rem;
}

.footer__in {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    justify-content: space-between;
}

.footer strong {
    color: #fff;
    font-family: var(--titre);
    font-size: 1.1rem;
}

.footer a {
    color: #fff;
    margin-right: 1.2rem;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 0.3rem 0 0;
}

.footer__legal {
    width: 100%;
    max-width: none;
    font-size: 0.85rem;
    opacity: 0.75;
}


/* =========================================================
 *   9. RESPONSIVE — TABLETTES ET MOBILES
 *   ========================================================= */

@media (max-width: 860px) {

    /* Bouton du menu mobile */

    .burger {
        display: block;
    }

    /* Navigation mobile */

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
        background: #fff;
        border-bottom: 1px solid var(--ligne);
    }

    .nav.is-open {
        display: flex;
    }

    /* Sections en une colonne */

    .hero__top,
    .split,
    .split--form,
    .cols,
    .steps,
    .rows > article {
        grid-template-columns: 1fr;
    }

    /* Comparateur adapté aux petits écrans */

    .ba {
        aspect-ratio: 4 / 3;
    }

    /* Titres adaptés aux petits écrans */

    h1 {
        max-width: 100%;
    }
}


/* =========================================================
 *   PETITS MOBILES
 *   ========================================================= */

@media (max-width: 480px) {

    body {
        font-size: 1rem;
    }

    .container {
        width: min(100% - 2rem, var(--w));
    }

    .hero {
        padding-top: 2rem;
    }

    .hero__top {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .actions .btn {
        text-align: center;
    }

    .ba {
        aspect-ratio: 3 / 4;
    }

    .ba__label {
        top: 0.6rem;
        font-size: 0.78rem;
    }

    .ba__label--l {
        left: 0.6rem;
    }

    .ba__label--r {
        right: 0.6rem;
    }

    .ba__bar::after {
        width: 38px;
        height: 38px;
    }

    .footer__in {
        flex-direction: column;
        gap: 1.2rem;
    }

    .footer a {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}


/* =========================================================
 *   10. PAGE TARIFS
 *   ========================================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--ligne);
    border-top: 4px solid var(--azur);
    border-radius: var(--r);
    background: #fff;
}

.pricing-card--featured {
    border-top-color: var(--soleil);
    background: var(--brume);
}

.pricing-card h2 {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
}

.pricing-card p {
    margin-bottom: 1rem;
}

.pricing-card ul {
    padding-left: 1.2rem;
    margin: 0 0 1.5rem;
}

.pricing-card li {
    margin: 0.45rem 0;
}

.pricing-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.pricing-note {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--soleil);
    background: var(--brume);
}

.pricing-faq {
    max-width: 850px;
}

@media (max-width: 800px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}


/* Tarifs */
.pricing-price { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; margin: .7rem 0; }
.pricing-price span { font-size: .95rem; font-weight: 500; }
.pricing-detail { font-weight: 600; }
.pricing-badge { display: inline-block; padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; margin: 0 0 .5rem; background: #f4b942; color: #172033; }
