/* ==========================================================================
   Circus Jeux – feuille de style principale
   --------------------------------------------------------------------------
   Palette : rouge profond (principal), bordeaux (complémentaire),
   or (titres, détails, séparateurs), blanc cassé (fonds), gris foncé (textes).
   Principes : aplats de couleur sans dégradé, boutons « pilule », photos aux
   coins arrondis, grands titres élégants, espaces généreux.
   ========================================================================== */

/* ----- Polices (hébergées sur le site, licence SIL OFL) ------------------ */
/* Cinzel : capitales classiques et élégantes, pour la phrase dorée de l'en-tête. */
@font-face {
    font-family: "Cinzel";
    src: url("../fonts/cinzel-latin-wght-normal.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

/* ----- Variables -------------------------------------------------------- */
:root {
    /* Couleurs */
    --rouge: #9b111e;          /* rouge profond : couleur principale */
    --rouge-fonce: #7a0c17;    /* survol des boutons rouges */
    --bordeaux: #561019;       /* bordeaux : couleur complémentaire */
    --or: #c9a34f;             /* or : détails et titres sur fond sombre */
    --or-clair: #e9d39a;       /* or clair : accents sur fond rouge ou sombre */
    --or-texte: #7a5c19;       /* or foncé : lisible sur fond clair */
    --blanc-casse: #f8f4ec;    /* fond principal */
    --sable: #efe6d6;          /* bandes alternées */
    --ivoire: #fffdf8;         /* champs et cartes claires */
    --gris-fonce: #26211f;     /* textes */
    --gris: #5f5652;           /* textes secondaires */
    --gris-bordure: #a39689;   /* contours des champs */
    --filet: #ddd0bc;          /* séparateurs fins */
    --noir: #000000;           /* fond identique à celui du logo */
    --erreur: #a1141d;

    /* Typographie */
    --police-titres: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Formes */
    --rayon-carte: 24px;
    --rayon-image: 20px;
    --rayon-champ: 8px;
    --rayon-pilule: 9999px;
    --ombre: 3px 3px 32px -10px rgba(38, 33, 31, 0.4);

    /* Mise en page */
    --largeur: 1200px;
    --marge: clamp(16px, 4vw, 40px);
    --section: clamp(64px, 9vw, 116px);
    --hauteur-entete: 76px;
}

@media (min-width: 1180px) {
    :root {
        --hauteur-entete: 112px;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hauteur-entete) + 24px);
}

body {
    margin: 0;
    background: var(--blanc-casse);
    color: var(--gris-fonce);
    font-family: var(--police-texte);
    font-size: 1.0625rem;
    line-height: 1.65;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 78px; /* place pour la barre d'actions sur mobile */
}

@media (min-width: 1180px) {
    body {
        padding-bottom: 0;
    }
}

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

img {
    height: auto;
}

picture {
    display: block;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 400;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--rouge);
    text-underline-offset: 3px;
}

address {
    font-style: normal;
}

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

::selection {
    background: var(--or-clair);
    color: var(--gris-fonce);
}

.icone {
    width: 22px;
    height: 22px;
    flex: none;
}

.visuellement-cache {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lien-evitement {
    position: absolute;
    left: 16px;
    top: -120px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: var(--rayon-pilule);
    background: var(--gris-fonce);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.lien-evitement:focus {
    top: 12px;
}

.conteneur {
    width: min(100% - 2 * var(--marge), var(--largeur));
    margin-inline: auto;
}

.centre {
    text-align: center;
}

.suite {
    margin: clamp(40px, 5vw, 60px) 0 0;
}

/* ----- Typographie ------------------------------------------------------ */
.titre-1,
.titre-2,
.titre-3 {
    font-family: var(--police-titres);
    font-weight: 400;
    text-wrap: balance;
}

.titre-1 {
    font-size: clamp(2.5rem, 4.4vw + 1rem, 4.6rem);
    line-height: 1.03;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
}

.titre-2 {
    font-size: clamp(2rem, 2.5vw + 1.05rem, 3.3rem);
    line-height: 1.07;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.titre-3 {
    font-size: clamp(1.4rem, 0.8vw + 1.1rem, 1.75rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.titre-1 em,
.titre-2 em,
.titre-3 em {
    font-style: italic;
    color: var(--or-texte);
}

.chapo {
    font-size: clamp(1.08rem, 0.4vw + 1rem, 1.25rem);
    line-height: 1.6;
    color: var(--gris);
    max-width: 62ch;
}

.surtitre {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rouge);
}

.surtitre::before {
    content: "";
    width: 28px;
    height: 1.5px;
    background: var(--or);
}

.surtitre--or {
    color: var(--or);
}

.surtitre--clair {
    color: var(--blanc-casse);
}

.surtitre--clair::before {
    background: var(--or-clair);
}

/* ----- Boutons et liens ------------------------------------------------- */
.groupe-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 28px;
    border: 2px solid transparent;
    border-radius: var(--rayon-pilule);
    font-family: var(--police-texte);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bouton .icone {
    width: 20px;
    height: 20px;
}

.bouton:active {
    transform: translateY(1px);
}

.bouton--rouge {
    background: var(--rouge);
    color: #fff;
}

.bouton--rouge:hover {
    background: var(--rouge-fonce);
    color: #fff;
}

.bouton--contour {
    border-color: var(--rouge);
    background: transparent;
    color: var(--rouge);
}

.bouton--contour:hover {
    background: var(--rouge);
    color: #fff;
}

.bouton--or {
    background: var(--or);
    color: var(--gris-fonce);
}

.bouton--or:hover {
    background: var(--or-clair);
    color: var(--gris-fonce);
}

.bouton--clair {
    border-color: rgba(248, 244, 236, 0.75);
    background: transparent;
    color: var(--blanc-casse);
}

.bouton--clair:hover {
    background: var(--blanc-casse);
    color: var(--gris-fonce);
}

.bouton--petit {
    min-height: 42px;
    padding: 8px 18px;
    font-size: 0.9rem;
}

.bouton--large {
    width: 100%;
}

.bouton[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--rouge);
    text-decoration: none;
}

.lien-fleche .icone {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.lien-fleche:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.lien-fleche:hover .icone {
    transform: translateX(3px);
}

.lien-fleche--or {
    color: var(--or);
}

/* ----- En-tête ---------------------------------------------------------- */
.entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff; /* blanc pur : identique au fond du logo */
    border-bottom: 1px solid var(--filet);
}

.entete__barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--hauteur-entete);
}

.entete__nav {
    display: flex;
    align-items: center;
}

.nav {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Logo sur fond blanc : affiché tel quel, sur un en-tête du même blanc.
   Seules les marges blanches autour du dessin sortent du cadre. */
.entete__logo {
    --h: 60px;
    position: relative;
    display: block;
    flex: none;
    width: calc(var(--h) * 1.21);
    height: var(--h);
    overflow: hidden;
    background: #ffffff;
}

.entete__logo picture,
.entete__logo img {
    position: absolute;
    left: -12.5%;
    top: calc(var(--h) * -0.2336);
    width: 125%;
    max-width: none;
    height: auto;
}

.entete__logo picture img {
    position: static;
    width: 100%;
}

.nav__lien {
    position: relative;
    display: inline-block;
    padding-block: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gris-fonce);
    text-decoration: none;
    white-space: nowrap;
}

.nav__lien:hover {
    color: var(--rouge);
}

.nav__lien[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rouge);
    transform: translateX(-50%);
}

.entete__tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gris-fonce);
    text-decoration: none;
    white-space: nowrap;
}

.entete__tel .icone {
    width: 18px;
    height: 18px;
    color: var(--rouge);
}

.entete__tel:hover {
    color: var(--rouge);
}

@media (min-width: 1180px) {
    .entete__nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 24px;
        width: 100%;
    }

    .nav {
        display: flex;
        align-items: center;
        gap: clamp(18px, 2vw, 30px);
    }

    .nav--droite {
        justify-content: flex-end;
    }

    .entete__logo {
        --h: 92px;
    }

    .menu-mobile {
        display: none;
    }
}

@media (min-width: 1180px) and (max-width: 1359px) {
    .entete__tel-texte {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

/* Phrase dorée entre le logo et le bouton Menu (téléphones et tablettes). */
.entete__accroche {
    flex: 1;
    margin: 0;
    padding-left: 0.16em; /* équilibre l'espacement ajouté après la dernière lettre */
    font-family: "Cinzel", var(--police-titres);
    font-size: clamp(0.95rem, 3.9vw, 1.45rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    text-wrap: balance;
    color: #a07a26; /* doré lisible sur blanc */
    background: linear-gradient(180deg, #cfa64a 0%, #ad8128 52%, #83601a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 1180px) {
    .entete__accroche {
        display: none;
    }
}

/* Menu mobile (élément natif <details> : fonctionne sans JavaScript) */
.menu-mobile > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 18px;
    border: 2px solid var(--gris-fonce);
    border-radius: var(--rayon-pilule);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

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

.menu-mobile > summary .icone {
    width: 20px;
    height: 20px;
}

.menu-mobile .icone--fermer,
.menu-mobile[open] .icone--ouvrir {
    display: none;
}

.menu-mobile[open] .icone--fermer {
    display: block;
}

.menu-mobile[open] > summary {
    background: var(--gris-fonce);
    color: var(--blanc-casse);
}

.menu-mobile__panneau {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - var(--hauteur-entete));
    overflow-y: auto;
    padding: 8px var(--marge) 28px;
    background: var(--blanc-casse);
    border-bottom: 1px solid var(--filet);
    box-shadow: 0 30px 40px -30px rgba(38, 33, 31, 0.45);
}

.menu-mobile__liens {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.menu-mobile__liens a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--filet);
    font-family: var(--police-titres);
    font-size: 1.7rem;
    line-height: 1.2;
    color: var(--gris-fonce);
    text-decoration: none;
}

.menu-mobile__liens a[aria-current="page"] {
    color: var(--rouge);
}

.menu-mobile__actions {
    display: grid;
    gap: 12px;
}

/* ----- Barre d'actions mobile ------------------------------------------- */
.barre-actions {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px var(--marge) calc(10px + env(safe-area-inset-bottom));
    background: rgba(248, 244, 236, 0.97);
    border-top: 1px solid var(--filet);
}

.barre-actions .bouton {
    min-height: 48px;
    padding: 10px 8px;
    font-size: 0.92rem;
    white-space: nowrap;
}

.barre-actions .bouton .icone {
    width: 18px;
    height: 18px;
}

@media (min-width: 1180px) {
    .barre-actions {
        display: none;
    }
}

/* ----- Sections --------------------------------------------------------- */
.section {
    padding-block: var(--section);
}

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

.section--bordeaux {
    background: var(--bordeaux);
    color: #f3e9dc;
}

.section--bordeaux .titre-2,
.section--bordeaux .titre-3 {
    color: var(--blanc-casse);
}

.section--bordeaux .titre-2 em,
.section--bordeaux .titre-3 em {
    color: var(--or);
}

.section--bordeaux .chapo {
    color: #eadbc8;
}

.section--bordeaux .surtitre {
    color: var(--or);
}

.titre-section {
    max-width: 780px;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.titre-section--centre {
    margin-inline: auto;
    text-align: center;
}

.titre-section--centre .chapo {
    margin-inline: auto;
}

.titre-section--centre .surtitre::after {
    content: "";
    width: 28px;
    height: 1.5px;
    background: var(--or);
}

.partage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 96px);
    align-items: center;
}

.partage__aside {
    background: var(--sable);
    border-radius: var(--rayon-carte);
    padding: clamp(28px, 3.5vw, 44px);
}

.puces {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.puce {
    padding: 9px 18px;
    border: 1.5px solid var(--filet);
    border-radius: var(--rayon-pilule);
    background: var(--ivoire);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.faits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
}

.faits li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.faits li::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--or);
    transform: rotate(45deg);
}

.note-zone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 40px 0 0;
    font-weight: 600;
}

.note-zone .icone {
    color: var(--rouge);
}

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

/* ----- Bannière d'accueil ----------------------------------------------- */
.hero {
    background: var(--noir);
    overflow: hidden;
}

.hero__grille {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    min-height: min(84vh, 760px);
    padding-block: 48px;
}

.hero__panneau {
    max-width: 660px;
    padding: clamp(28px, 3.6vw, 52px);
    border-radius: var(--rayon-carte);
    background: var(--blanc-casse);
    color: var(--gris-fonce);
}

.hero__titre {
    font-size: clamp(2.4rem, 3.6vw + 1rem, 4.3rem);
}

.hero__texte {
    color: var(--gris);
    font-size: clamp(1.05rem, 0.3vw + 1rem, 1.18rem);
    margin-bottom: 28px;
}

.hero__zone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--filet);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gris);
}

.hero__zone .icone {
    color: var(--or-texte);
}

/* Photo du stand : affichée en entière, coins arrondis et fin cadre doré. */
.hero__photo img {
    width: 100%;
    border-radius: var(--rayon-image);
    outline: 1px solid rgba(201, 163, 79, 0.55);
    outline-offset: 8px;
}

@media (max-width: 1023px) {
    .hero__grille {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-block: 0 var(--marge);
        gap: 0;
    }

    .hero__photo {
        order: -1;
        padding-block: calc(var(--marge) + 8px) calc(var(--marge) + 12px);
    }

    .hero__panneau {
        max-width: none;
    }
}

/* ----- En-tête des pages intérieures ------------------------------------ */
.entete-page {
    padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px);
    border-bottom: 1px solid var(--filet);
}

.entete-page .titre-1 {
    max-width: 18ch;
}

.fil-ariane ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gris);
}

.fil-ariane li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--or-texte);
}

.fil-ariane a {
    color: var(--gris);
    text-decoration: none;
}

.fil-ariane a:hover {
    color: var(--rouge);
    text-decoration: underline;
}

.fil-ariane [aria-current="page"] {
    color: var(--rouge);
}

/* ----- Cartes machines -------------------------------------------------- */
.grille-machines {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(40px, 4vw, 60px) clamp(20px, 2.6vw, 32px);
}

@media (max-width: 1023px) {
    .grille-machines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .grille-machines {
        grid-template-columns: 1fr;
    }
}

.carte-machine {
    display: flex;
    flex-direction: column;
}

/* La photo est toujours affichée en entier : aucun recadrage. */
.carte-machine__media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--rayon-image);
    background: var(--sable);
}

.section--sable .carte-machine__media {
    background: var(--blanc-casse);
}

/* Photos carrées : fond du cadre assorti à la photo (la photo n'est pas modifiée). */
.carte-machine__media--sombre,
.section--sable .carte-machine__media--sombre {
    background: #120a0b;
}

.carte-machine__media--blanc,
.section--sable .carte-machine__media--blanc {
    background: #ffffff;
}

.carte-machine__media picture,
.carte-machine__media img {
    width: 100%;
    height: 100%;
}

.carte-machine__media img {
    object-fit: contain;
}

.carte-machine__numero {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: var(--rayon-pilule);
    background: var(--or);
    color: var(--gris-fonce);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.carte-machine__zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(248, 244, 236, 0.94);
    color: var(--gris-fonce);
    box-shadow: var(--ombre);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.carte-machine__zoom:hover {
    background: var(--rouge);
    color: #fff;
}

.carte-machine__corps {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px 4px 0;
}

.carte-machine__categorie {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--or-texte);
}

.carte-machine__nom {
    font-family: var(--police-titres);
    font-size: clamp(1.5rem, 0.8vw + 1.15rem, 1.85rem);
    line-height: 1.12;
}

.carte-machine__description {
    margin: 0;
    color: var(--gris);
}

.carte-machine__configs {
    margin-top: 4px;
}

.carte-machine__configs-titre {
    margin: 0 0 10px;
    font-weight: 700;
}

.carte-machine__configs ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carte-machine__configs li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 10px 10px 10px 16px;
    border: 1.5px solid var(--filet);
    border-radius: 18px;
    background: var(--ivoire);
}

.carte-machine__config-nom {
    font-weight: 700;
}

.carte-machine__actions {
    margin-top: auto;
    padding-top: 10px;
}

/* ----- Prestations ------------------------------------------------------ */
.grille-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 900px) {
    .grille-services--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service {
    padding: clamp(24px, 2.6vw, 32px);
    border-radius: var(--rayon-carte);
    background: var(--sable);
}

.section--sable .service {
    background: var(--blanc-casse);
}

.service__icone {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border: 1.5px solid var(--or);
    border-radius: 50%;
    color: var(--rouge);
}

.service__titre {
    margin-bottom: 8px;
    font-family: var(--police-texte);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.service p {
    margin: 0;
    color: var(--gris);
}

/* ----- Étapes ----------------------------------------------------------- */
.etapes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: etape;
}

.etape {
    position: relative;
    padding-top: 76px;
}

.etape::before {
    counter-increment: etape;
    content: counter(etape);
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--rouge);
    color: #fff;
    font-family: var(--police-titres);
    font-size: 1.5rem;
    line-height: 54px;
    text-align: center;
}

.etape::after {
    content: "";
    position: absolute;
    top: 27px;
    left: 70px;
    right: -14px;
    height: 1.5px;
    background: var(--or);
}

.etape:last-child::after {
    display: none;
}

.etape__titre {
    margin-bottom: 8px;
    font-family: var(--police-texte);
    font-size: 1.125rem;
    font-weight: 700;
}

.etape p {
    margin: 0;
    color: var(--gris);
}

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

    .etape {
        padding: 6px 0 0 76px;
        min-height: 54px;
    }

    .etape::after {
        display: none;
    }
}

/* ----- Types d'événements ----------------------------------------------- */
.grille-evenements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 0 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.evenement {
    padding: 22px 0;
    border-top: 1px solid var(--or);
}

.evenement__titre {
    margin-bottom: 6px;
    font-family: var(--police-titres);
    font-size: 1.45rem;
    line-height: 1.2;
}

.evenement p {
    margin: 0;
    color: var(--gris);
}

/* ----- Atouts ----------------------------------------------------------- */
.avantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 44px 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.avantage {
    padding-top: 24px;
    border-top: 1px solid var(--or);
}

.avantage__numero {
    display: block;
    margin-bottom: 14px;
    font-family: var(--police-titres);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--or-texte);
}

.avantage__titre {
    margin-bottom: 8px;
    font-family: var(--police-texte);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.avantage p {
    margin: 0;
    color: var(--gris);
}

/* ----- Histoire --------------------------------------------------------- */
.histoire {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

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

.photo-archive {
    margin: 0;
}

.photo-archive__lien {
    display: block;
    border-radius: var(--rayon-image);
}

.photo-archive img {
    width: 100%;
    border-radius: var(--rayon-image);
}

.photo-archive figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-family: var(--police-titres);
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.4;
    color: var(--gris);
}

.photo-archive figcaption::before {
    content: "";
    width: 28px;
    height: 1.5px;
    flex: none;
    background: var(--or);
}

.section--bordeaux .photo-archive figcaption {
    color: var(--or-clair);
}

.recit {
    max-width: 720px;
    margin-inline: auto;
}

.recit h2 {
    margin: 56px 0 16px;
    font-family: var(--police-titres);
    font-size: clamp(1.7rem, 1.2vw + 1.2rem, 2.3rem);
    line-height: 1.15;
}

.recit h2:first-child {
    margin-top: 0;
}

.recit--apres-photo {
    margin-top: clamp(48px, 7vw, 88px);
}

.citation p {
    margin: 0;
}

.recit p {
    font-size: 1.1rem;
    line-height: 1.75;
}

.citation {
    margin: 56px 0;
    padding: 8px 0 8px 28px;
    border-left: 2px solid var(--or);
    font-family: var(--police-titres);
    font-style: italic;
    font-size: clamp(1.45rem, 1vw + 1.1rem, 2rem);
    line-height: 1.35;
    color: var(--bordeaux);
}

.frise {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.frise__etape {
    padding: 28px;
    border-radius: var(--rayon-carte);
    background: var(--blanc-casse);
}

.frise__annee {
    display: block;
    margin-bottom: 10px;
    font-family: var(--police-titres);
    font-size: 2rem;
    line-height: 1.1;
    color: var(--rouge);
}

.frise__etape p {
    margin: 0;
    color: var(--gris);
}

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

/* ----- Bandeau de demande de devis -------------------------------------- */
.bandeau-devis {
    padding-block: clamp(56px, 7vw, 100px);
    background: var(--rouge);
    color: #fff;
}

.bandeau-devis__grille {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto;
    gap: 32px 56px;
    align-items: center;
}

.bandeau-devis__titre {
    margin-bottom: 14px;
    font-family: var(--police-titres);
    font-size: clamp(2rem, 2.4vw + 1rem, 3.2rem);
    line-height: 1.06;
}

.bandeau-devis__titre em {
    font-style: italic;
    color: var(--or-clair);
}

.bandeau-devis p {
    max-width: 56ch;
    margin: 0;
    color: #f6e7e2;
}

.bandeau-devis__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 899px) {
    .bandeau-devis__grille {
        grid-template-columns: 1fr;
    }

    .bandeau-devis__actions {
        flex-flow: row wrap;
    }
}

/* ----- Contact et formulaire -------------------------------------------- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.carte-contact {
    position: sticky;
    top: calc(var(--hauteur-entete) + 28px);
    padding: clamp(26px, 3vw, 36px);
    border-radius: var(--rayon-carte);
    background: var(--sable);
}

.carte-contact__ligne {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.carte-contact__ligne .icone {
    margin-top: 2px;
    color: var(--rouge);
}

.carte-contact__boutons {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.carte-contact__boutons .bouton {
    justify-content: flex-start;
    word-break: break-word;
}

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

    .carte-contact {
        position: static;
        order: -1;
    }
}

.formulaire fieldset {
    margin: 0 0 40px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.formulaire legend {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--filet);
    font-family: var(--police-titres);
    font-size: 1.6rem;
    line-height: 1.2;
}

.formulaire__obligatoire {
    margin-bottom: 28px;
    color: var(--gris);
    font-size: 0.95rem;
}

.obligatoire {
    color: var(--rouge);
    font-weight: 700;
}

.grille-champs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}

@media (max-width: 639px) {
    .grille-champs {
        grid-template-columns: 1fr;
    }
}

.champ {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.champ--large {
    grid-column: 1 / -1;
}

.champ label {
    font-weight: 700;
    font-size: 0.97rem;
}

.champ__aide {
    margin: 0;
    color: var(--gris);
    font-size: 0.92rem;
}

.champ input,
.champ select,
.champ textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1.5px solid var(--gris-bordure);
    border-radius: var(--rayon-champ);
    background: var(--ivoire);
    color: var(--gris-fonce);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.champ textarea {
    min-height: 150px;
    resize: vertical;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
    outline: none;
    border-color: var(--rouge);
    box-shadow: 0 0 0 3px rgba(155, 17, 30, 0.16);
}

.champ--court {
    max-width: 260px;
    margin-top: 22px;
}

.champ--erreur input,
.champ--erreur select,
.champ--erreur textarea {
    border-color: var(--erreur);
}

.champ__erreur {
    margin: 0;
    color: var(--erreur);
    font-size: 0.92rem;
    font-weight: 600;
}

.choix-machines {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 10px;
    margin-top: 14px;
}

.choix,
.consentement {
    position: relative;
}

.choix input,
.consentement input {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
}

.choix label {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--filet);
    border-radius: 14px;
    background: var(--ivoire);
    font-weight: 600;
    font-size: 0.97rem;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.choix label::before,
.consentement label::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--gris-bordure);
    border-radius: 6px;
    background: #fff center / 14px 14px no-repeat;
}

.choix input:checked + label {
    border-color: var(--rouge);
    background: #fbf0ef;
}

.choix input:checked + label::before,
.consentement input:checked + label::before {
    border-color: var(--rouge);
    background-color: var(--rouge);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.choix input:focus-visible + label,
.consentement input:focus-visible + label {
    outline: 3px solid var(--or);
    outline-offset: 2px;
}

.consentement {
    margin: 8px 0 28px;
}

.consentement label {
    display: flex;
    gap: 14px;
    font-size: 0.97rem;
    line-height: 1.5;
    cursor: pointer;
}

.consentement--erreur label::before {
    border-color: var(--erreur);
}

.champ-piege {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.formulaire__mention {
    margin-top: 18px;
    color: var(--gris);
    font-size: 0.9rem;
}

.alerte {
    margin-bottom: 36px;
    padding: 20px 22px;
    border: 1.5px solid;
    border-radius: 16px;
}

.alerte--erreur {
    border-color: #e5b3b0;
    background: #fbedec;
    color: #6e0f17;
}

.alerte__titre {
    margin-bottom: 6px;
    font-family: var(--police-texte);
    font-size: 1.05rem;
    font-weight: 700;
}

.alerte p:last-child,
.alerte ul:last-child {
    margin-bottom: 0;
}

.alerte ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.alerte a {
    color: inherit;
    font-weight: 600;
}

/* ----- Confirmation ----------------------------------------------------- */
.confirmation {
    max-width: 760px;
    text-align: center;
}

.confirmation__icone {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 28px;
    border: 1.5px solid var(--or);
    border-radius: 50%;
    color: var(--rouge);
}

.confirmation__icone .icone {
    width: 34px;
    height: 34px;
}

.confirmation .chapo {
    margin-inline: auto;
}

.confirmation .groupe-boutons {
    justify-content: center;
    margin-top: 32px;
}

/* ----- Pages de texte (mentions, confidentialité) ----------------------- */
.prose {
    max-width: 780px;
}

.prose h2 {
    margin: 52px 0 14px;
    font-family: var(--police-titres);
    font-size: clamp(1.55rem, 1vw + 1.1rem, 2rem);
    line-height: 1.2;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul {
    padding-left: 22px;
}

.prose li {
    margin-bottom: 6px;
}

/* ----- Pied de page ----------------------------------------------------- */
.pied {
    padding-top: 72px;
    background: var(--noir);
    color: #d9cfc2;
    font-size: 0.98rem;
}

.pied__grille {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.25fr 1.15fr;
    gap: 40px;
}

.pied__logo {
    display: block;
    width: 200px;
    margin: -28px 0 4px -26px;
}

.pied__titre {
    margin-bottom: 18px;
    font-family: var(--police-texte);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--or);
}

.pied__liste {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pied a {
    color: #f3e9dc;
    text-decoration: none;
}

.pied a:hover {
    color: var(--or-clair);
    text-decoration: underline;
}

.pied__adresse {
    margin-bottom: 16px;
    line-height: 1.6;
}

.pied__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pied__contacts .icone {
    width: 18px;
    height: 18px;
    color: var(--or);
}

.pied .bouton--or {
    margin-top: 8px;
    color: var(--gris-fonce);
}

.pied .bouton--or:hover {
    color: var(--gris-fonce);
    text-decoration: none;
}

.pied__bas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 56px;
    padding-block: 24px;
    border-top: 1px solid rgba(201, 163, 79, 0.35);
    font-size: 0.88rem;
}

.pied__bas p {
    margin: 0;
}

.pied__liens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

/* ----- Visionneuse de photos -------------------------------------------- */
.visionneuse {
    max-width: min(96vw, 1200px);
    max-height: 96vh;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.visionneuse::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.visionneuse__figure {
    margin: 0;
}

.visionneuse__figure img {
    width: auto;
    max-width: 100%;
    max-height: 84vh;
    margin-inline: auto;
    border-radius: 12px;
}

.visionneuse__figure figcaption {
    margin-top: 14px;
    font-family: var(--police-titres);
    font-size: 1.2rem;
    text-align: center;
    color: #fff;
}

.visionneuse__fermer {
    position: fixed;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--blanc-casse);
    color: var(--gris-fonce);
    cursor: pointer;
}

/* ----- Apparition discrète au défilement -------------------------------- */
.apparait {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.apparait--attente {
    opacity: 0;
    transform: translateY(18px);
}

.apparait--attente.est-visible {
    opacity: 1;
    transform: none;
}

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

    .apparait,
    .apparait--attente {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bouton,
    .lien-fleche .icone {
        transition: none;
    }
}

/* ----- Impression ------------------------------------------------------- */
@media print {
    .entete,
    .barre-actions,
    .bandeau-devis,
    .menu-mobile,
    .visionneuse {
        display: none !important;
    }

    body {
        padding: 0;
        background: #fff;
    }
}
