/* ============================================================
   CodeNumX — Design System « Brique & Pastel »
   Toulouse, la Ville Rose : terracotta + bleu pastel + arches
   ============================================================ */

:root {
    /* Couleurs — charte historique CodeNumX (violet / magenta) */
    --creme: #F6F5FC;
    --creme-2: #E9E8F8;
    --blanc-chaud: #FFFFFF;
    --brique: #4E54C8;
    --brique-fonce: #393E9F;
    --brique-tinte: #D6D8FB;
    --pastel: #E5077E;
    --pastel-clair: #FBD3E9;
    --encre: #232050;
    --muted: #6B6A8A;

    /* Typographie */
    --font-display: 'Bricolage Grotesque', 'Tajawal', sans-serif;
    --font-body: 'Karla', 'Tajawal', sans-serif;

    /* Mise en forme */
    --radius: 18px;
    --radius-arche: 999px 999px 18px 18px;
    --bordure: 2px solid var(--encre);
    /* --ox inverse les ombres portées en RTL */
    --ox: 1;

    --transition: 0.2s ease;
}

html[dir="rtl"] {
    --ox: -1;
}

html[lang="ar"] {
    --font-display: 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--creme);
    color: var(--encre);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

p {
    margin: 0 0 1rem;
}

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

:focus-visible {
    outline: 3px solid var(--pastel);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -100px;
    z-index: 1000;
    background: var(--encre);
    color: var(--creme);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 1rem;
}

.conteneur {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
}

section {
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: var(--bordure);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-brique {
    background: var(--brique);
    color: #fff;
    box-shadow: calc(4px * var(--ox)) 4px 0 var(--encre);
}

.btn-pastel {
    background: var(--pastel);
    color: #fff;
    box-shadow: calc(4px * var(--ox)) 4px 0 var(--encre);
}

.btn-brique:hover,
.btn-pastel:hover {
    transform: translate(calc(-2px * var(--ox)), -2px);
    box-shadow: calc(6px * var(--ox)) 6px 0 var(--encre);
    color: #fff;
}

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

.btn-ghost:hover {
    background: var(--pastel-clair);
    color: var(--encre);
}

.btn-icone {
    background: none;
    border: 0;
    padding: 0.4rem;
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
}

/* ---------- Séparateurs en arcades ---------- */
.sep-arcades {
    height: 22px;
    background: radial-gradient(circle at 50% 0, var(--brique) 0 9px, transparent 10px);
    background-size: 26px 22px;
    background-repeat: repeat-x;
}

.sep-arcades--haut {
    background: radial-gradient(circle at 50% 100%, var(--encre) 0 9px, transparent 10px);
    background-size: 26px 22px;
    background-repeat: repeat-x;
}

/* ---------- Cadre en arche ---------- */
.arche-frame {
    display: block;
    width: min(440px, 100%);
    margin-inline: auto;
}

.arche-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    padding: 1.25rem;
    background: var(--creme-2);
    border: var(--bordure);
    border-radius: var(--radius-arche);
    box-shadow: calc(10px * var(--ox)) 10px 0 var(--brique);
}

.arche-frame--pastel img {
    box-shadow: calc(10px * var(--ox)) 10px 0 var(--pastel);
}

/* ---------- En-tête ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(246, 245, 252, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition);
}

.site-header.scrolled {
    border-bottom-color: var(--encre);
}

.site-header .barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.7rem;
}

.site-header .logo img {
    height: 46px;
    width: auto;
}

.nav-principale {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-principale a {
    display: block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: var(--encre);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition);
}

.nav-principale a:hover {
    background: var(--pastel-clair);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.burger {
    display: none;
}

/* Sélecteur de langue (details natif) */
.menu-deroulant {
    position: relative;
}

.menu-deroulant summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: var(--bordure);
    font-weight: 700;
    font-family: var(--font-display);
    background: var(--blanc-chaud);
}

.menu-deroulant summary::-webkit-details-marker {
    display: none;
}

.menu-deroulant .liste {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    background: var(--blanc-chaud);
    border: var(--bordure);
    border-radius: 14px;
    box-shadow: calc(5px * var(--ox)) 5px 0 var(--brique-tinte);
    padding: 0.4rem;
    margin: 0;
    list-style: none;
    z-index: 300;
}

.menu-deroulant .liste a {
    display: block;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--encre);
    font-weight: 600;
}

.menu-deroulant .liste a:hover {
    background: var(--pastel-clair);
}

/* ---------- Tiroir mobile ---------- */
.tiroir {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: var(--creme);
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
}

.tiroir.open {
    transform: translateY(0);
    visibility: visible;
}

.tiroir .tete {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tiroir ul {
    list-style: none;
    margin: auto 0;
    padding: 0;
    text-align: center;
}

.tiroir a {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 700;
    color: var(--encre);
    text-decoration: none;
    padding: 0.55rem;
}

.tiroir a:hover {
    color: var(--brique);
}

.tiroir .pied {
    text-align: center;
    padding-bottom: 1.5rem;
}

/* ---------- Titres de section ---------- */
.sec-tete {
    margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.sec-tete .kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brique);
    margin-bottom: 0.5rem;
}

.sec-tete .kicker::before {
    content: '';
    width: 26px;
    height: 13px;
    border: 2px solid var(--brique);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
}

.sec-tete h2 {
    font-size: clamp(1.8rem, 4.2vw, 2.7rem);
    max-width: 28ch;
}

.sec-tete--centre {
    text-align: center;
}

.sec-tete--centre h2 {
    margin-inline: auto;
}

.sec-tete--centre .kicker {
    justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero .grille {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.badge-ville {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--blanc-chaud);
    border: var(--bordure);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 1.25rem;
}

.badge-ville .point {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brique);
    animation: pulser 2s ease-in-out infinite;
}

@keyframes pulser {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.hero h1 {
    font-size: clamp(2.3rem, 5.5vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.hero h1 .accent {
    color: var(--brique);
    background: linear-gradient(135deg, var(--brique), var(--pastel));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .surtitre {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brique);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.hero p.lead {
    color: var(--muted);
    max-width: 54ch;
    margin-bottom: 1.75rem;
}

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* ---------- Cartes (services & co) ---------- */
.grille-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.carte {
    background: var(--blanc-chaud);
    border: var(--bordure);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: calc(6px * var(--ox)) 6px 0 var(--brique-tinte);
    transition: transform var(--transition), box-shadow var(--transition);
}

.carte:hover {
    transform: translate(calc(-3px * var(--ox)), -3px);
    box-shadow: calc(9px * var(--ox)) 9px 0 var(--brique);
}

.carte h3 {
    font-size: 1.3rem;
    margin-top: 1.1rem;
}

.carte p {
    color: var(--muted);
    margin-bottom: 0;
}

/* Pastille en mini-arche */
.pastille {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: var(--bordure);
    border-radius: 999px 999px 8px 8px;
    background: var(--pastel-clair);
    color: var(--pastel);
    font-size: 1.35rem;
}

.grille-cartes > :nth-child(even) .pastille {
    background: var(--brique-tinte);
    color: var(--brique-fonce);
}

/* ---------- À propos / Pourquoi nous ---------- */
.deux-colonnes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.liste-coches {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.25rem;
}

.liste-coches li {
    position: relative;
    padding-inline-start: 1.9rem;
    font-weight: 600;
}

.liste-coches li::before {
    content: '\2713';
    position: absolute;
    inset-inline-start: 0;
    top: 0.1em;
    width: 1.3rem;
    height: 1.3rem;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--brique);
    border-radius: 999px 999px 4px 4px;
}

.signature img {
    max-width: 150px;
}

.atouts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.atout {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.atout .pastille {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
}

.atout:nth-child(even) .pastille {
    background: var(--brique-tinte);
    color: var(--brique-fonce);
}

.atout h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.atout p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Projets ---------- */
.carte-projet {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.carte-projet .visuel {
    border-bottom: var(--bordure);
    background: var(--creme-2);
    overflow: hidden;
}

.carte-projet .visuel img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: border-radius 0.35s ease, transform 0.35s ease;
}

.carte-projet:hover .visuel img {
    border-radius: var(--radius-arche);
    transform: scale(0.94);
}

.carte-projet .corps {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.carte-projet .categorie {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pastel);
    margin-bottom: 0.35rem;
}

.carte-projet h3 {
    margin-top: 0;
}

.carte-projet .lien {
    margin-top: auto;
    padding-top: 0.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--brique);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.carte-projet .lien:hover {
    text-decoration: underline;
}

/* ---------- Bande compteurs (bleu pastel) ---------- */
.compteurs {
    background: var(--pastel);
    border-block: var(--bordure);
    color: var(--creme);
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.compteurs .grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.compteurs h2 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: #fff;
}

.compteurs h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin: 0;
    color: var(--pastel-clair);
}

.compteurs i {
    font-size: 1.5rem;
    color: var(--brique-tinte);
    margin-bottom: 0.5rem;
}

/* ---------- Tarifs ---------- */
.carte-tarif {
    display: flex;
    flex-direction: column;
    position: relative;
}

.carte-tarif .prix {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--brique);
    margin: 0.25rem 0 0.5rem;
}

.carte-tarif ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    flex-grow: 1;
}

.carte-tarif li {
    padding: 0.45rem 0;
    padding-inline-start: 1.8rem;
    position: relative;
    border-bottom: 1px dashed var(--creme-2);
}

.carte-tarif li.oui::before,
.carte-tarif li.non::before {
    position: absolute;
    inset-inline-start: 0;
    font-weight: 800;
}

.carte-tarif li.oui::before {
    content: '\2713';
    color: var(--brique);
}

.carte-tarif li.non {
    color: var(--muted);
    text-decoration: line-through;
}

.carte-tarif li.non::before {
    content: '\00d7';
    color: var(--muted);
}

.carte-tarif--vedette {
    background: var(--brique);
    color: #fff;
    box-shadow: calc(8px * var(--ox)) 8px 0 var(--encre);
}

.carte-tarif--vedette p,
.carte-tarif--vedette li,
.carte-tarif--vedette .prix {
    color: #fff;
}

.carte-tarif--vedette li.non {
    color: var(--brique-tinte);
}

.carte-tarif--vedette li {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.carte-tarif--vedette .btn-brique {
    background: var(--creme);
    color: var(--encre);
}

.carte-tarif--vedette .btn-brique:hover {
    color: var(--encre);
}

.ruban {
    position: absolute;
    top: -1rem;
    inset-inline-end: 1.25rem;
    background: var(--pastel);
    color: #fff;
    border: var(--bordure);
    border-radius: 999px;
    padding: 0.2rem 0.9rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---------- Témoignages (polaroids) ---------- */
.defileur-zone {
    position: relative;
}

.defileur {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(400px, 86%);
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1.25rem 0.5rem 1.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--brique) var(--creme-2);
}

.defileur > * {
    scroll-snap-align: start;
}

.defileur-boutons {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.defileur-boutons button {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: var(--bordure);
    background: var(--blanc-chaud);
    cursor: pointer;
    font-size: 1rem;
    color: var(--encre);
    transition: background var(--transition);
}

.defileur-boutons button:hover {
    background: var(--brique-tinte);
}

.polaroid {
    background: #fff;
    border: var(--bordure);
    border-radius: 8px;
    padding: 1.4rem;
    box-shadow: calc(6px * var(--ox)) 6px 0 rgba(35, 32, 80, 0.14);
    transform: rotate(-1.3deg);
}

.defileur > :nth-child(even) .polaroid,
.polaroid:nth-child(even) {
    transform: rotate(1.3deg);
}

.polaroid .tete {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.polaroid .tete img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: var(--bordure);
    border-radius: 999px 999px 8px 8px;
}

.polaroid h3 {
    font-size: 1.05rem;
    margin: 0;
}

.polaroid h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--muted);
    margin: 0;
    font-size: 0.85rem;
}

.polaroid .etoiles {
    color: var(--brique);
    font-size: 0.85rem;
}

.polaroid blockquote {
    margin: 0;
    font-style: italic;
    color: var(--encre);
}

/* ---------- Dialog (avis) ---------- */
dialog.boite {
    border: var(--bordure);
    border-radius: var(--radius);
    background: var(--blanc-chaud);
    color: var(--encre);
    padding: 2rem;
    width: min(520px, calc(100% - 2rem));
    box-shadow: calc(10px * var(--ox)) 10px 0 var(--brique);
}

dialog.boite::backdrop {
    background: rgba(35, 32, 80, 0.55);
}

dialog.boite .tete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

dialog.boite .actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ---------- Formulaires ---------- */
.champ {
    margin-bottom: 1rem;
}

.champ label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.champ input,
.champ select,
.champ textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: var(--bordure);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--encre);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
    outline: none;
    border-color: var(--pastel);
    box-shadow: 0 0 0 4px var(--pastel-clair);
}

.champ ::placeholder {
    color: var(--muted);
}

/* ---------- FAQ (details natifs) ---------- */
.faq-liste {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: var(--bordure);
    border-radius: 14px;
    background: var(--blanc-chaud);
    box-shadow: calc(4px * var(--ox)) 4px 0 var(--brique-tinte);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.3rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brique);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item .reponse {
    padding: 0 1.3rem 1.2rem;
    color: var(--muted);
}

/* ---------- Contact (carte postale) ---------- */
.carte-postale {
    background: var(--blanc-chaud);
    border: var(--bordure);
    border-radius: var(--radius);
    box-shadow: calc(8px * var(--ox)) 8px 0 var(--brique-tinte);
    display: grid;
    grid-template-columns: 5fr 7fr;
    overflow: hidden;
}

.carte-postale .cp-infos {
    border-inline-end: 2px dashed var(--encre);
    padding: 2.25rem;
    position: relative;
}

.carte-postale .cp-form {
    padding: 2.25rem;
}

.timbre {
    position: absolute;
    top: 1.25rem;
    inset-inline-end: 1.25rem;
    width: 64px;
    height: 78px;
    background: var(--brique-tinte);
    border: 2px dashed var(--brique-fonce);
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--brique-fonce);
    text-align: center;
    line-height: 1.2;
    transform: rotate(4deg);
    font-size: 0.85rem;
}

.cp-infos ul {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
    display: grid;
    gap: 1.5rem;
}

.cp-infos li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.cp-infos .pastille {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.cp-infos li:nth-child(even) .pastille {
    background: var(--brique-tinte);
    color: var(--brique-fonce);
}

.cp-infos h4 {
    margin: 0;
    font-size: 1rem;
}

.cp-infos h5 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

/* ---------- Alertes ---------- */
.alerte {
    border: var(--bordure);
    border-radius: 14px;
    padding: 1rem 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alerte-succes {
    background: #E5F2E0;
    border-color: #3E6B2F;
    color: #2C4A21;
}

.alerte-erreur {
    background: #F9E3DC;
    border-color: var(--brique-fonce);
    color: var(--brique-fonce);
}

.alerte ul {
    margin: 0;
    padding-inline-start: 1.2rem;
}

/* ---------- Carte (map) ---------- */
.map {
    padding-block: 0;
}

.map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    border-top: var(--bordure);
    filter: saturate(0.9);
}

/* ---------- Pied de page ---------- */
.site-footer {
    background: var(--encre);
    color: var(--creme);
    padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}

.site-footer .grille {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.site-footer h3 {
    color: var(--brique-tinte);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.site-footer .logo img {
    height: 52px;
    width: auto;
    margin-bottom: 1rem;
}

.site-footer p {
    color: rgba(246, 245, 252, 0.75);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.site-footer a {
    color: rgba(246, 245, 252, 0.85);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brique-tinte);
    text-decoration: underline;
}

.reseaux {
    display: flex;
    gap: 0.6rem;
    margin-block: 1rem;
}

.reseaux a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(246, 245, 252, 0.4);
    border-radius: 999px 999px 8px 8px;
    transition: background var(--transition), border-color var(--transition);
}

.reseaux a:hover {
    background: var(--brique);
    border-color: var(--creme);
    color: #fff;
    text-decoration: none;
}

.form-newsletter {
    display: flex;
    border: 2px solid rgba(246, 245, 252, 0.4);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(246, 245, 252, 0.08);
}

.form-newsletter input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--creme);
    padding: 0.7rem 1.1rem;
    font-family: var(--font-body);
}

.form-newsletter input::placeholder {
    color: rgba(246, 245, 252, 0.55);
}

.form-newsletter input:focus {
    outline: none;
}

.form-newsletter button {
    border: 0;
    background: var(--brique);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    padding: 0.7rem 1.3rem;
    cursor: pointer;
}

.form-newsletter button:hover {
    background: var(--brique-fonce);
}

.copyright {
    border-top: 1px solid rgba(246, 245, 252, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.copyright p {
    margin: 0;
    font-size: 0.95rem;
}

/* ---------- Flottants ---------- */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 32px;
    inset-inline-end: 32px;
    background: #25D366;
    color: #fff;
    border: var(--bordure);
    border-radius: 999px 999px 12px 12px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    z-index: 150;
    box-shadow: calc(4px * var(--ox)) 4px 0 var(--encre);
    transition: transform var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    color: #fff;
}

.scroll-top {
    position: fixed;
    bottom: 102px;
    inset-inline-end: 32px;
    width: 48px;
    height: 48px;
    border: var(--bordure);
    border-radius: 999px 999px 10px 10px;
    background: var(--pastel);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* ---------- Bandeau cookies ---------- */
.cookie-consent {
    position: fixed;
    bottom: 1rem;
    inset-inline: 1rem;
    margin-inline: auto;
    max-width: 680px;
    background: var(--blanc-chaud);
    border: var(--bordure);
    border-radius: var(--radius);
    box-shadow: calc(6px * var(--ox)) 6px 0 var(--encre);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 500;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.4s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent p {
    margin: 0;
    font-size: 0.95rem;
}

/* ---------- Recherche ---------- */
.search-popup {
    position: fixed;
    inset: 0;
    z-index: 450;
    background: rgba(35, 32, 80, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.search-popup.open {
    opacity: 1;
    visibility: visible;
}

.search-popup form {
    display: flex;
    width: min(560px, calc(100% - 2rem));
    background: var(--blanc-chaud);
    border: var(--bordure);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: calc(8px * var(--ox)) 8px 0 var(--brique);
}

.search-popup input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.search-popup input:focus {
    outline: none;
}

.search-popup button {
    border: 0;
    background: var(--brique);
    color: #fff;
    padding-inline: 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
}

.flash {
    color: var(--brique) !important;
    transition: color 0.3s ease;
}

/* ---------- Apparition au défilement ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Page devis ---------- */
.page-devis {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-devis main {
    flex: 1;
    display: grid;
    place-items: center;
    padding-block: 3rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .nav-principale {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .hero .grille,
    .deux-colonnes,
    .carte-postale {
        grid-template-columns: 1fr;
    }

    .carte-postale .cp-infos {
        border-inline-end: 0;
        border-bottom: 2px dashed var(--encre);
    }

    .deux-colonnes .visuel-arche {
        order: -1;
    }

    .site-footer .grille {
        grid-template-columns: 1fr 1fr;
    }

    .arche-frame {
        width: min(360px, 100%);
    }
}

@media (max-width: 575px) {
    body {
        font-size: 1rem;
    }

    .liste-coches,
    .atouts,
    .site-footer .grille {
        grid-template-columns: 1fr;
    }

    .hero .actions .btn {
        width: 100%;
        justify-content: center;
    }

    .defileur {
        grid-auto-columns: 92%;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 20px;
        inset-inline-end: 20px;
    }

    .scroll-top {
        bottom: 84px;
        inset-inline-end: 20px;
    }

    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }

    .map iframe {
        height: 300px;
    }

    dialog.boite {
        padding: 1.4rem;
    }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
