/* Polices de la charte (memes fichiers que le site de l'agence) */
@font-face {
    font-family: "Hitmarker Text";
    src: url("../fonts/HitmarkerText-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Departure Mono";
    src: url("../fonts/DepartureMono-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Remise a zero de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* La photo du lieu (Plan02) reste en fond sur toutes les pages, bien assombrie */
body {
    background-color: #0A0A0C;
    color: #E8E8E8;
    font-family: "Departure Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

a {
    color: #E23A2D;
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .01em;
    font-weight: 700;
}

.conteneur {
    width: min(1100px, 92vw);
    margin-inline: auto;
}

.conteneur p {
    margin-bottom: 30px;
}

/* Lien "aller au contenu" pour l'accessibilite */
.lien-evitement {
    position: absolute;
    left: -9999px;
}

.lien-evitement:focus {
    left: 8px;
    top: 8px;
    background: #E23A2D;
    color: #fff;
    padding: .5rem;
    z-index: 100;
}

/* ===== En-tete / navigation ===== */
.entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 12, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.entete__barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: .06em;
    color: #E8E8E8;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.logo:hover {
    color: #E23A2D;
    text-decoration: none;
}

.logo__icone {
    width: 34px;
    height: 34px;
    display: block;
    border-radius: 4px;
}

/* Logo "LAST SIGNAL" du header (wordmark recadre, taille normale) */
.logo__img {
    height: 38px;
    width: auto;
    display: block;
}

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

.nav a {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    text-transform: uppercase;
    color: #E8E8E8;
    font-size: .95rem;
    letter-spacing: .03em;
}

.nav a:hover {
    color: #E23A2D;
    text-decoration: none;
}

/* Lien de la page courante en rouge (comme la maquette) */
.nav a.actif {
    color: #E23A2D;
}

.nav__cta {
    border: 1px solid #E23A2D;
    color: #E23A2D;
    padding: .4rem .9rem;
    border-radius: 6px;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.nav__cta:hover {
    background: #C8922F;
    border-color: #C8922F;
    color: #fff;
}

.burger {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    width: 42px;
    height: 42px;
    padding: 10px;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #E8E8E8;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.burger span + span {
    margin-top: 6px;
}

/* Les 3 barres se transforment en croix quand le menu est ouvert */
.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
/* Hero des pages internes : on laisse voir le fond Plan02 du body, juste assombri */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 10, 12, .35), rgba(10, 10, 12, .8));
}

.hero--court {
    padding: 3.5rem 0 2rem;
}

.hero__kicker {
    font-family: "Departure Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    color: #E23A2D;
    letter-spacing: .18em;
    font-size: .8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero__titre {
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    color: #fff;
}

.hero__titre .sig {
    color: #E23A2D;
}

.hero__slogan {
    font-family: "Departure Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    color: #E8E8E8;
    margin-top: 1rem;
    font-size: 1.05rem;
    letter-spacing: .04em;
}

.hero__texte {
    max-width: 62ch;
    margin: 1.4rem auto 0;
    color: #9A9A9A;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.4rem;
}

/* Hero de l'accueil : la video (animatique) en fond, en plein ecran 16/9 */
.hero--accueil,
.bande-image {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero--accueil {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 540px;
    padding: 0;
    display: flex;
    align-items: center;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Voile par-dessus la video : leger en haut, plus sombre en bas pour
   faire la transition vers la photo qui arrive juste apres */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(10, 10, 12, .25) 0%,
        rgba(10, 10, 12, .4) 55%,
        rgba(10, 10, 12, .92) 100%);
}

.hero--accueil .hero__contenu,
.bande-image__contenu {
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

.hero--accueil .hero__contenu {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.hero__logo {
    display: block;
    width: min(620px, 82vw);
    margin: 0 auto 1rem;
}

/* Titre lisible par les lecteurs d'ecran mais cache visuellement */
.visuallyhidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Bande photo revelee au scroll (transition video -> photo) ===== */
.bande-image {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* L'image est sur sa propre couche pour pouvoir zoomer doucement a l'arrivee */
.bande-image__media {
    position: absolute;
    inset: 0;
    background: url("../img/image_fond.png") center / cover no-repeat;
    transform: scale(1.12);
    transition: transform 1.6s ease;
}

.bande-image.visible .bande-image__media {
    transform: scale(1);
}

/* Le voile sombre s'eclaircit quand la bande entre a l'ecran */
.bande-image__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, .92);
    transition: background 1.2s ease;
}

.bande-image.visible .bande-image__overlay {
    background: rgba(10, 10, 12, .15);
}

.bande-image__contenu {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.bande-image__txt {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    margin-top: .6rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

/* ===== Boutons ===== */
.bouton {
    display: inline-block;
    background: #C8922F;
    color: #fff;
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 1rem 2.2rem;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    font-size: 1.1rem;
}

.bouton:hover {
    background: #dca63f;
    text-decoration: none;
}

.bouton--fantome {
    background: transparent;
    color: #E8E8E8;
    border: 1px solid rgba(255,255,255,.10);
}

.bouton--fantome:hover {
    border-color: #E23A2D;
    color: #E23A2D;
    background: transparent;
}

.bouton--petit {
    padding: .45rem 1rem;
    font-size: .85rem;
}

.bouton--danger {
    background: #e0533e;
    color: #fff;
}

.bouton--danger:hover {
    background: #ff6a52;
}

/* ===== Blocs de contenu ===== */
.bloc {
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255,255,255,.10);
}

.bloc h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    margin-bottom: 1.6rem;
    color: #fff;
}

.bloc--etroit {
    max-width: 560px;
    margin-inline: auto;
}

.bloc--cta {
    text-align: center;
}

.texte-large {
    max-width: 70ch;
    color: #9A9A9A;
    font-size: 1.05rem;
}

/* Message radio (transmission coupee) sur les pages narratives */
.transmission {
    font-family: "Departure Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    color: #E23A2D;
    background: #0c0c0e;
    border: 1px solid rgba(255,255,255,.10);
    border-left: 3px solid #E23A2D;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    margin: 1.4rem 0;
    max-width: 60ch;
    letter-spacing: .04em;
}

/* Prix calcule en direct sur la page reservation */
.prix-live {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    color: #C8922F;
    font-size: 1.2rem;
    min-height: 1.4rem;
}

/* Listes des regles */
.liste-regles {
    list-style: none;
    display: grid;
    gap: .6rem;
    max-width: 70ch;
}

.liste-regles li {
    position: relative;
    padding-left: 1.4rem;
    color: #9A9A9A;
}

.liste-regles li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #E23A2D;
}

/* Compte a rebours du hero d'accueil */
.hero__compte {
    margin-top: 1.4rem;
    font-family: "Departure Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    color: #C8922F;
    letter-spacing: .08em;
    font-size: .95rem;
}

/* Note moyenne des avis (accueil) */
.note-moyenne {
    color: #C8922F;
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
}

.note-moyenne .note {
    font-size: 1.3rem;
    letter-spacing: .1em;
}

/* Statistiques animees (accueil) */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    text-align: center;
}

.stat__num {
    display: block;
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    font-size: 3rem;
    color: #E23A2D;
    line-height: 1;
}

.stat__txt {
    color: #9A9A9A;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .85rem;
}

/* Carte OpenStreetMap (page Le lieu) */
.carte-map {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    overflow: hidden;
}

.carte-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

/* Billet imprimable */
.billet {
    background: #141416;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    padding: 1.8rem;
}

.billet__marque {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #E23A2D;
}

.billet__titre {
    font-size: 1.6rem;
    color: #fff;
    margin: .2rem 0 .6rem;
}

.billet__ligne {
    border-top: 1px solid rgba(255,255,255,.10);
    margin-top: 1rem;
    padding-top: 1rem;
}

.billet__ligne h2 {
    font-size: 1.1rem;
    color: #C8922F;
    margin-bottom: .4rem;
}

.billet__pied {
    margin-top: 1.2rem;
    color: #9A9A9A;
    font-size: .9rem;
}

/* Impression du billet : noir sur blanc, sans le reste du site */
@media print {
    .entete,
    .pied,
    .no-print,
    .flash {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .billet {
        background: #fff;
        border: 1px solid #000;
    }

    .billet__marque,
    .billet__titre,
    .billet__ligne h2 {
        color: #000;
    }

    .billet__pied {
        color: #333;
    }
}

/* ===== Cartes ===== */
.cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.carte {
    background: #141416;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    padding: 1.4rem;
}

/* petit effet quand on passe la souris sur une carte */
.carte:hover {
    border-color: #E23A2D;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.carte h3 {
    margin-bottom: .5rem;
    color: #fff;
    font-size: 1.1rem;
}

.carte p {
    color: #9A9A9A;
}

.carte__num {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    color: #E23A2D;
    font-size: 2.2rem;
    display: block;
    line-height: 1;
}

.carte__auteur {
    margin-top: .6rem;
    color: #E23A2D;
    font-size: .9rem;
}

.carte--avis .note {
    color: #C8922F;
    letter-spacing: .1em;
    margin-bottom: .4rem;
}

/* ===== Classement des equipes ===== */
.classement {
    list-style: none;
    display: grid;
    gap: .5rem;
    max-width: 520px;
}

.classement li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: #141416;
    border: 1px solid rgba(255,255,255,.10);
    padding: .7rem 1rem;
    border-radius: 6px;
}

.classement__pts {
    color: #E23A2D;
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
}

/* ===== Tarifs ===== */
.infos-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.tarif {
    text-align: center;
}

.tarif__prix {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    font-size: 2rem;
    color: #E8E8E8;
    margin: .5rem 0;
}

.tarif__prix span {
    font-size: .9rem;
    color: #9A9A9A;
    font-family: "Departure Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

.tarif--phare {
    border-color: #C8922F;
}

.tarif__badge {
    display: inline-block;
    background: #C8922F;
    color: #0A0A0A;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 999px;
    margin-bottom: .5rem;
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
}

/* ===== Formulaires ===== */
.form {
    display: grid;
    gap: 1rem;
    background: #141416;
    border: 1px solid rgba(255,255,255,.10);
    padding: 1.6rem;
    border-radius: 6px;
}

.form label {
    display: grid;
    gap: .35rem;
    font-size: .9rem;
}

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

.form input,
.form select,
.form textarea {
    width: 100%;
    background: #0A0A0C;
    border: 1px solid rgba(255,255,255,.10);
    color: #E8E8E8;
    padding: .65rem .8rem;
    border-radius: 6px;
    font: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 2px solid #E23A2D;
    outline-offset: 1px;
    border-color: #E23A2D;
}

.indice {
    color: #9A9A9A;
}

.form__lien {
    text-align: center;
    margin-top: 1rem;
    color: #9A9A9A;
}

.form-inline {
    display: flex;
    gap: .5rem;
    margin-top: .7rem;
    flex-wrap: wrap;
}

/* ===== Messages (flash, erreurs) et encarts ===== */
.flash {
    background: rgba(226, 58, 45, .12);
    border: 1px solid #E23A2D;
    padding: .8rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.erreurs {
    background: rgba(224, 83, 62, .12);
    border: 1px solid #e0533e;
    padding: .7rem 1rem .7rem 2.2rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.erreurs li {
    color: #ffb3a6;
}

.encart,
.encart-mini {
    background: #141416;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

/* ===== Profil / score ===== */
.profil-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.carte--score {
    text-align: center;
}

.score-grand {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    font-size: 3rem;
    color: #E23A2D;
    line-height: 1;
}

.score-grand span {
    font-size: 1rem;
    color: #9A9A9A;
    font-family: "Departure Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

.partage {
    margin-top: 1rem;
    color: #9A9A9A;
}

.partage a {
    margin-left: .5rem;
}

/* ===== Tableaux du back-office ===== */
.tableau-scroll {
    overflow-x: auto;
}

.tableau {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.tableau th,
.tableau td {
    text-align: left;
    padding: .6rem .7rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
    white-space: nowrap;
}

.tableau th {
    color: #E23A2D;
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    font-size: .85rem;
    text-transform: uppercase;
}

/* ===== Pied de page ===== */
.pied {
    border-top: 1px solid rgba(255,255,255,.10);
    margin-top: 3rem;
    padding: 2.5rem 0;
    color: #9A9A9A;
    background: rgba(10, 10, 12, .6);
}

.pied__grille {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}

.pied__logo-img {
    width: 150px;
    height: auto;
    margin-bottom: .6rem;
}

.pied__reseaux-titre {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: .9rem;
}

.pied__logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    letter-spacing: .06em;
    color: #E8E8E8;
    margin-bottom: .3rem;
    text-transform: uppercase;
}

.pied__reseaux {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

/* Icones reseaux sociaux : ronds rouges */
.reseau {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: background .15s ease;
     transform: scale(1.0);
     transition: all .35s ease;
}

.reseau:hover {
    width: 60px;
    transform: scale(1.05);
    transition: all .35s ease;
}

.pied nav {
    display: grid;
    gap: .4rem;
}

.pied nav a {
    color: #9A9A9A;
}

.pied nav a:hover {
    color: #E23A2D;
}

.pied__copy {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,.10);
    padding-top: 1rem;
    font-size: .85rem;
}

/* ===== Pages de texte (mentions, etc.) ===== */
.texte-page h2 {
    margin-top: 1.6rem;
    font-size: 1.2rem;
    color: #fff;
}

.texte-page p {
    color: #9A9A9A;
    margin-top: .4rem;
    max-width: 72ch;
}

.note-info {
    color: #9A9A9A;
    font-size: .9rem;
    margin-top: .6rem;
}

/* ===== Apparition au scroll =====
   Le JS ajoute la classe .areveler (etat de depart) puis .visible.
   Les cartes d'une meme rangee arrivent en cascade grace au delai. */
.areveler {
    opacity: 0;
    transform: translateY(28px) scale(.99);
    transition: opacity .7s ease, transform .7s ease;
}

.areveler.visible {
    opacity: 1;
    transform: none;
}

.cartes .carte:nth-child(2) {
    transition-delay: .1s;
}

.cartes .carte:nth-child(3) {
    transition-delay: .2s;
}

.cartes .carte:nth-child(4) {
    transition-delay: .3s;
}

/* Si l'utilisateur prefere moins d'animations, on coupe tout */
@media (prefers-reduced-motion: reduce) {
    .areveler {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero__video {
        display: none;
    }

    .bande-image__media {
        transform: none;
    }

    .bande-image__overlay {
        background: rgba(10, 10, 12, .2);
    }
}

/* ===== Pages d'erreur (404 / 500) ===== */
.erreur {
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
    background: radial-gradient(700px 420px at 50% 0%, rgba(226, 58, 45, .10), transparent 60%);
}

.erreur__radar {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    border-radius: 6px;
}

.erreur__code {
    font-family: "Hitmarker Text", Impact, "Arial Narrow Bold", system-ui, sans-serif;
    color: #E23A2D;
    font-size: clamp(5rem, 22vw, 12rem);
    line-height: .9;
    letter-spacing: .04em;
}

.erreur__msg {
    color: #E8E8E8;
    margin: .4rem 0 1.6rem;
}

.erreur__terminal {
    display: inline-block;
    text-align: left;
    background: #0c0c0e;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.8rem;
    font-family: "Departure Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    color: #86d39a;
    font-size: .9rem;
}

.erreur__terminal p {
    margin: .15rem 0;
}

.curseur {
    color: #E23A2D;
    animation: clignote 1s steps(2) infinite;
}

@keyframes clignote {
    50% {
        opacity: 0;
    }
}

/* ===== Responsive (telephone / tablette) ===== */
@media (max-width: 760px) {
    .burger {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: #141416;
        border-bottom: 1px solid rgba(255,255,255,.10);
        padding: 1rem;
        gap: .9rem;
        /* menu ferme : invisible et legerement remonte */
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease;
    }

    .nav--ouvert {
        /* menu ouvert : il apparait en glissant vers le bas */
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .form__ligne {
        grid-template-columns: 1fr;
    }

    .pied__grille {
        grid-template-columns: 1fr;
    }

    /* Sur mobile, on enleve la pleine largeur 100vw qui cause un debordement a droite */
    .hero--accueil,
    .bande-image {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .hero__logo {
        width: 100%;
    }

    .bande-image {
        min-height: 60vh;
    }
}

/* ===== Finitions visuelles ===== */
.bouton {
    transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
}

.bouton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.bouton:active {
    transform: translateY(0);
}

.carte {
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.carte:hover {
    transform: translateY(-3px);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

/* Lignes alternees + survol dans les tableaux (lisibilite du back-office) */
.tableau tr:nth-child(even) td {
    background: rgba(255, 255, 255, .03);
}

.tableau tr:hover td {
    background: rgba(226, 58, 45, .07);
}

/* Un peu d'air entre les mini-formulaires du back-office */
.encart .form-inline {
    margin-top: .6rem;
}

/* Champs de formulaire : petit halo au focus */
.form input,
.form select,
.form textarea {
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    box-shadow: 0 0 0 3px rgba(226, 58, 45, .15);
}

/* Liens du contenu : transition douce */
.texte-page a,
.texte-large a {
    transition: color .15s ease;
}

/* Si l'utilisateur prefere moins d'animations, on coupe les effets de survol */
@media (prefers-reduced-motion: reduce) {
    .bouton:hover,
    .carte:hover {
        transform: none;
    }
}
