body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Hero Section */
.hero {
    background-color: #007bff;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Section Actions */
#actions {
    background-color: #f9f9f9;
    padding-top: 50px;
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    /* Slight lift effect on hover */
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

footer {
    background-color: #222;
    color: white;
    padding: 20px 0;
}

footer a {
    text-decoration: none;
    color: #bbb;
}

footer a:hover {
    color: white;
}

#navbar-img {
    max-height: 5em;
}

@media (max-width: 1000px) {
    #navbar-img {
        max-height: 3em;
    }
}

#navbar-img {
    max-height: 5em;
}

@media (max-width: 1000px) {
    #navbar-img {
        max-height: 3em;
    }
}

.modal#statusSuccessModal .modal-content,
.modal#statusErrorsModal .modal-content {
    border-radius: 30px;
}

.modal#statusSuccessModal .modal-content svg,
.modal#statusErrorsModal .modal-content svg {
    width: 100px;
    display: block;
    margin: 0 auto;
}

.modal#statusSuccessModal .modal-content .path,
.modal#statusErrorsModal .modal-content .path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
}

.modal#statusSuccessModal .modal-content .path.circle,
.modal#statusErrorsModal .modal-content .path.circle {
    -webkit-animation: dash 0.9s ease-in-out;
    animation: dash 0.9s ease-in-out;
}

.modal#statusSuccessModal .modal-content .path.line,
.modal#statusErrorsModal .modal-content .path.line {
    stroke-dashoffset: 1000;
    -webkit-animation: dash 0.95s 0.35s ease-in-out forwards;
    animation: dash 0.95s 0.35s ease-in-out forwards;
}

.modal#statusSuccessModal .modal-content .path.check,
.modal#statusErrorsModal .modal-content .path.check {
    stroke-dashoffset: -100;
    -webkit-animation: dash-check 0.95s 0.35s ease-in-out forwards;
    animation: dash-check 0.95s 0.35s ease-in-out forwards;
}

@-webkit-keyframes dash {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@-webkit-keyframes dash {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@-webkit-keyframes dash-check {
    0% {
        stroke-dashoffset: -100;
    }

    100% {
        stroke-dashoffset: 900;
    }
}

@keyframes dash-check {
    0% {
        stroke-dashoffset: -100;
    }

    100% {
        stroke-dashoffset: 900;
    }
}

.box00 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

#shakeup,
#shakeup2 {
    margin: 15px auto;
    text-align: center;
    background: #ff6600;
    color: #fff;
    font-size: 21px;
    line-height: 25px;
    padding: 10px 15px;
    width: 100%;
    border: none;
    text-decoration: blink;
}

blink {
    animation: blink-animation 1.5s steps(1, start) infinite;
    -webkit-animation: blink-animation 1.5s steps(10, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

#jour,
#heure,
#minute,
#seconde {
    color: black;
    font-weight: bold;
}

#rebours {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    transition: background-color 0.5s ease;
    /* Transition fluide */
}

.note-editor.note-airframe,
.note-editor.note-frame {
    border-radius: 0.375rem;
}

.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0, 50px);
}

.modal-dialog {
    position: fixed !important;
    bottom: 0 !important;
    right: 1.75rem !important;
}

.modal.show .modal-dialog {
    transform: none;
}

.bike {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f9fb;
    transition: opacity 0.75s, visibility 0.75s;
    z-index: 100;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.bike__body,
.bike__front,
.bike__handlebars,
.bike__pedals,
.bike__pedals-spin,
.bike__seat,
.bike__spokes,
.bike__spokes-spin,
.bike__tire {
    animation: bikeBody 3s ease-in-out infinite;
    stroke: var(--primary);
    transition: stroke var(--trans-dur);
}

.bike__front {
    animation: bikeFront;
}

.bike__handlebars {
    animation-name: bikeHandlebars;
}

.bike__pedals {
    animation-name: bikePedals;
}

.bike__pedals-spin {
    animation-name: bikezPedalSpin;
}

.bike__seat {
    animation-name: bikeSeat;
}

.bike__spokes,
.bike__tire {
    stroke: currentColor;
}

.bike__spokes {
    animation-name: bikeSpokes;
}

.bike__spokes-spin {
    animation-name: bikeSpokesSpin;
}

.bike__tire {
    animation-name: bikeTire;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(var(--hue), 90%, 10%);
        --fg: hsl(var(--hue), 90%, 90%);
    }
}

/* Animation */
@keyframes bikeBody {
    from {
        stroke-dashoffset: 79;
    }

    33%,
    67% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -79;
    }
}

@keyframes bikeFront {
    from {
        stroke-dashoffset: 19;
    }

    33%,
    67% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -19;
    }
}

@keyframes bikeHandlebars {
    from {
        stroke-dashoffset: 10;
    }

    33%,
    67% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -10;
    }
}

@keyframes bikePedals {
    from {
        animation-timing-function: ease-in;
        stroke-dashoffset: -10;
    }

    33%,
    67% {
        animation-timing-function: ease-out;
        stroke-dashoffset: -21.991;
    }

    to {
        stroke-dashoffset: -25.133;
    }
}

@keyframes bikePedalsSpin {
    from {
        transform: rotate(0.1875turn);
    }

    to {
        transform: rotate(30.1875turn);
    }
}

@keyframes bikeSeat {
    from {
        stroke-dashoffset: 5;
    }

    33%,
    67% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 5;
    }
}

@keyframes bikeSpokes {
    from {
        animation-timing-function: ease-in;
        stroke-dashoffset: -31.416;
    }

    33%,
    67% {
        animation-timing-function: ease-out;
        stroke-dashoffset: -23.562;
    }

    to {
        stroke-dashoffset: -31.416;
    }
}

@keyframes bikeSpokesSpin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(3turn);
    }
}

@keyframes bikeTire {
    from {
        animation-timing-function: ease-in;
        stroke-dashoffset: 56.549;
        transform: rotate(0);
    }

    33% {
        stroke-dashoffset: 0;
        transform: rotate(0.33turn);
    }

    67% {
        animation-timing-function: ease-out;
        stroke-dashoffset: 0;
        transform: rotate(0.67turn);
    }

    to {
        stroke-dashoffset: -56.549;
        transform: rotate(1turn);
    }
}

.scrolled-100 {
    top: 0;
    width: 100%;
    border-radius: 0;
    transition: .3s all ease-in-out;
}

@media (min-width: 1000px) {
    .mode2 .scrolled-0 {
        top: 10px;
        width: 75%;
        border-radius: 9999px;
        transition: .3s all ease-in-out;
    }

    .mode3 .scrolled-0 {
        top: 10px;
        width: 75%;
        border-radius: 9999px;
        transition: .3s all ease-in-out;
    }
}

/* Comportement pour TOUS les écrans (desktop + mobile) */
.mode2 .scrolled-0,
.mode3 .scrolled-0 {
    top: 10px;
    width: 75%;
    border-radius: 9999px;
    transition: .3s all ease-in-out;
}

/* Adaptation spécifique pour petits écrans */
@media (max-width: 1000px) {

    .mode2 .scrolled-0,
    .mode3 .scrolled-0 {
        width: 90%;
        /* plus large sur mobile si besoin */
        left: 5%;
        right: 5%;
        border-radius: 39px;
    }

    #navbar-img {
        max-height: 2em !important;
    }
}

/* Style du bouton flottant */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0D6EFD;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
}

.floating-button:hover {
    background-color: #3659f4ff;
}

/* Fenêtre d'information "À propos" */
.about-container {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    width: 250px;
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.about-container.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.about-text h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.about-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

#mode-selector button.active-mode {
    background-color: #007bff;
    /* Bleu */
    color: white;
    border: 1px solid #0056b3;
}

@media (max-width: 768px) {
    .floating-button {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        font-size: 20px;
    }

    .about-container {
        right: 10px;
        left: 10px;
        bottom: 80px;
        width: auto;
        max-width: 90%;
        padding: 15px;
    }

    .about-text h3 {
        font-size: 16px;
    }

    .about-text p,
    #mode-selector button {
        font-size: 14px;
    }

    #mode-selector button {
        padding: 10px;
    }
}

/* Notification en haut */
.feature-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px) scale(0.8);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 20px 24px;
    border-radius: 30px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 480px;
    box-sizing: border-box;
    display: none;
    opacity: 0;
    z-index: 9999;
    text-align: center;
    font-size: 16px;
    animation: bubbleDrop 0.8s ease-out forwards;
    transition: all 0.5s ease;
}

/* Bouton de fermeture */
.feature-notification button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
}

/* Animation à l'ouverture */
@keyframes bubbleDrop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px) scale(0.8);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .feature-notification {
        font-size: 15px;
        padding: 16px 18px;
    }

    .feature-notification button {
        width: 100%;
        font-size: 16px;
    }
}

/* Animation shrink + move to corner */
@keyframes shrinkToCorner {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
        left: 50%;
        top: 20px;
    }

    100% {
        transform: translateX(0) translateY(300px) scale(0.3);
        opacity: 0;
        left: 20px;
        bottom: 80px;
        top: auto;
    }
}

/* Apparition du bouton : petit pop animé */
@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.reopen-notification-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #007bff;
    color: white;
    padding: 12px 14px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.4s ease-out forwards;
}

@keyframes riseUpAndShrink {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
        top: 20px;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px) scale(0.3);
        top: -100px;
        /* remonte au-dessus de l'écran */
    }
}

.feature-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0) scale(1);
    z-index: 9999;
}

.minimize {
    animation: riseUpAndShrink 0.5s forwards;
}

/* @keyframes riseUpAndShrink {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-100px) scale(0.3);
  }
}

@keyframes shrinkToCorner {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(80vh) scale(0.3);
  }
} */

.minimize-click {
    animation: riseUpAndShrink 0.5s forwards;
}

.minimize-auto {
    animation: shrinkToCorner 0.5s forwards;
}

/* @keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.reopen-notification-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #007bff;
  color: white;
  padding: 12px 14px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
} */

html,
body {
    /* height: 100%; */
    /* S'assure que le html prend 100% de la hauteur */
    overflow-x: hidden;
    /* EMPÊCHE TOUT DÉFILEMENT (SCROLLING) */
}

/* RÈGLE BODY EXISTANTE (légèrement ajustée pour la cohérence) */
body {
    /* 1. Assure que le body prend toute la hauteur de la vue (viewport) */
    min-height: 100vh;
    /* 2. Supprime les marges par défaut */
    margin: 0;
    /* 3. Active Flexbox en colonne */
    display: flex;
    flex-direction: column;
}

/* Styles Spécifiques au Header */
.avva-header {
    background-color: transparent;
    z-index: 100;
    /* Fond bleu */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.avva-top-bar {
    /* background-color: rgba(0, 0, 0, 0.1); */
    /* Légèrement plus sombre */
    color: var(--avva-blanc);
    padding: 5px 0;
}

.avva-top-bar a,
.avva-top-bar span {
    color: var(--avva-blanc);
    margin-right: 15px;
}

.avva-top-bar .date-time {
    font-weight: 500;
}

.avva-main-nav .nav-link {
    color: var(--avva-blanc) !important;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.avva-main-nav .nav-link:hover {
    color: var(--avva-bleu) !important;
    background-color: var(--avva-jaune);
    border-radius: 5px;
}

.search-input {
    border: none;
    border-radius: 0 20px 20px 0;
    padding: 5px 15px;
    font-size: 0.9rem;
    color: var(--avva-bleu);
}

.search-btn {
    background-color: var(--avva-bleu);
    color: var(--avva-jaune);
    border: none;
    border-radius: 20px 0 0 20px;
    padding: 5px 10px;
}

.search-btn:hover {
    background-color: var(--avva-jaune);
    color: var(--avva-bleu);
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

.status-online {
    background-color: green;
}

/* Style pour souligner le titre en DEUX TRAITS */
.avva-title-double-underline {
    /* Base de l'élément pour le positionnement */
    position: relative;
    display: inline-block;
    /* Permet au bloc de s'adapter à la largeur du texte */
    padding-bottom: 12px;
    /* Espace sous le texte pour les deux lignes */

    /* Couleur du texte */
    color: var(--avva-bleu);
}

/* Pseudo-élément pour la première ligne (le trait jaune) */
.avva-title-double-underline::before {
    content: '';
    position: absolute;
    bottom: 5px;
    /* Position de la première ligne */
    left: 50%;
    /* Commence au milieu */
    transform: translateX(-50%);
    /* Rentre l'élément au centre */

    /* Ajustez la largeur (ex: 80% de la largeur du texte, ou fixe) */
    width: 100%;
    height: 3px;
    background-color: yellow;
}

/* Pseudo-élément pour la deuxième ligne (le trait rouge, plus court) */
.avva-title-double-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    /* Position de la première ligne */
    left: 50%;
    /* Commence au milieu */
    transform: translateX(-50%);
    /* Rentre l'élément au centre */

    /* Ajustez la largeur (ex: 80% de la largeur du texte, ou fixe) */
    width: 100%;
    height: 3px;
    background-color: yellow;
}

/* Styles pour le Pied de Page (Footer) */
.avva-footer {
    /* Le conteneur principal DOIT avoir la perspective */
    position: relative;
    background-color: var(--avva-bleu);
    /* Fond bleu du club */
    color: var(--avva-blanc);
    /* Texte blanc */
    padding-top: 0;
    /* On gère le padding dans l'élément perspective */
    overflow: hidden;
    /* Cache ce qui dépasse */
}

/* CLASSE CRÉANT LA PERSPECTIVE */
.avva-footer-perspective {
    /* C'est l'élément que l'on incline */
    padding-top: 10px;
    padding-bottom: 10px;

    /* L'EFFET 3D EST ICI */
    transform: perspective(1000px) rotateX(5deg);
    transform-origin: center top;

    /* Pour un meilleur rendu */
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    /* Pour s'assurer qu'il est au-dessus du reste */
}

/* OPTIONNEL: Pseudo-élément pour renforcer l'ombre de perspective */
.avva-footer-perspective::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    /* Une légère ombre en haut */
    z-index: 11;
}

/* Titres des colonnes du footer */
.avva-footer h5 {
    color: var(--avva-rouge);
    /* Titres en rouge */
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

/* Style des liens dans le footer */
.avva-footer a {
    color: var(--avva-blanc);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.avva-footer a:hover {
    color: var(--avva-jaune);
    /* Survol en jaune */
}

/* Style de la ligne des mentions et crédits */
.avva-credits {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

/* Icônes de réseaux sociaux */
.social-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.social-icon:hover {
    color: var(--avva-jaune);
}

/* Styles pour le Fond Principal Couvrant l'Écran */
#main-content-bg {
    position: relative;
    /* Important pour que le fond couvre tout sans la classe container */
    padding: 0 !important;
    margin: 0 !important;
    /* Définit une hauteur minimale pour que l'image de fond soit visible */
    min-height: 84vh;
    width: 100%;
}

/* Pseudo-élément pour les deux images de fond superposées */

#main-content-bg-logo {
    position: relative;
    /* Important pour que le fond couvre tout sans la classe container */
    padding: 0 !important;
    margin: 0 !important;
    /* Définit une hauteur minimale pour que l'image de fond soit visible */
    min-height: 80vh;
    width: 100%;
}

/* --- KEYFRAMES DÉDIÉES AU CHARGEMENT (Rotation TRES rapide et petit) --- */
@keyframes logo-tourne-petit {
    0% {
        transform: rotate(0deg);
        background-size: 10%;
        /* Taille initiale très petite */
    }

    100% {
        transform: rotate(360deg);
        background-size: 10%;
        /* Maintient la petite taille */
    }
}

/* --- KEYFRAMES D'AGRANDISSEMENT FINAL (Une seule exécution, pour le zoom) --- */
@keyframes logo-agrandissement-final {
    0% {
        transform: rotate(0deg);
        background-size: 10%;
        /* Petite taille de départ */
    }

    100% {
        transform: rotate(360deg);
        background-size: 33%;
        /* Taille finale (Desktop) */
    }
}

/* Pseudo-élément pour les deux images de fond superposées */

/* --- CLASSE LORSQUE LE CHARGEMENT EST TERMINÉ (L'agrandissement se produit) --- */
#main-content-bg-logo.logo-chargement-termine::before {
    background-position: center 90%;

    /* L'animation d'agrandissement est jouée UNE SEULE fois */
    animation: logo-agrandissement-final 1.5s ease-out forwards;

    background-size: 33%;
}

@media (max-width: 768px) {

    /* Style par défaut Mobile (chargement) */
    #main-content-bg-logo::before {
        background-position: center 58%;
        background-size: 30%;
        /* Taille plus grande pour mobile pendant le chargement */
    }

    /* Keyframes d'agrandissement pour mobile */
    @keyframes logo-agrandissement-final {
        0% {
            transform: rotate(0deg);
            background-size: 30%;
            /* Taille de départ mobile */
        }

        100% {
            transform: rotate(0deg);
            background-size: 50%;
            /* Taille finale mobile */
        }
    }

    /* État Final Mobile (après chargement) */
    #main-content-bg-logo.logo-chargement-termine::before {
        background-position: center 58%;
        /* Applique l'agrandissement mobile */
        animation: logo-agrandissement-final 1.5s ease-out forwards;
        background-size: 50%;
        /* Taille finale fixe */
        transform: rotate(0deg);
    }
}

/* STYLE POUR L'ICÔNE DE PORTE SUR LE FOOTER (DANS LE MAIN) */
#door-on-footer-area {
    /* ANCRAGE AU BAS DU CONTENEUR PARENT (#main-content-bg-logo) */
    position: absolute;
    bottom: -9px;

    /* CENTRAGE HORIZONTAL PARFAIT */
    left: 50%;
    transform: translateX(-50%);

    /* Assurer que la porte est au-dessus du logo de fond */
    z-index: 1000;

    /* Marges/Alignements simplifiés ou retirés */
    margin: 0;

    /* Le reste de vos styles d-flex justify-content-center align-items-center est géré par la flexbox interne */
    display: flex;
    /* Maintenir la flexbox pour aligner l'icône et le bouton */
    align-items: center;
    /* Centrage vertical des enfants */
    justify-content: center;
    width: auto;
    /* Laisser la largeur s'adapter au contenu */
}

#door-on-footer-area i {
    font-size: 2rem;
    color: var(--avva-noir);
    /* Pour la rendre bien visible */
    /* Ajout d'une petite ombre pour la détacher du fond */
    text-shadow: 0 0 5px var(--avva-bleu);
}

/* Styles pour l'effet de zoom au survol sur les boutons de navigation */
.navbar-nav .btn {
    /* 1. Ajout de la transition pour un effet fluide */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* 2. S'assurer que les transformations 3D peuvent être utilisées */
    will-change: transform;
}

.navbar-nav .btn:hover {
    /* 3. L'effet de zoom (ex: 5% plus grand) */
    transform: scale(1.05);
    /* 4. Optionnel : Ajout d'une ombre pour un effet de "pop-out" */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Amélioration visuelle pour les boutons du main (pour les rendre plus proéminents) */
.navbar-nav .btn {
    background-color: var(--avva-bleu);
    color: var(--avva-jaune);
    border-color: var(--avva-bleu) !important;
}

.navbar-nav .btn:hover {
    background-color: var(--avva-jaune);
    color: var(--avva-bleu);
    border-color: var(--avva-bleu) !important;
}

main .avva-title {
    /* 1. Ajout de la transition pour un effet fluide */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* 2. S'assurer que les transformations 3D peuvent être utilisées */
    will-change: transform;
}

main .avva-title:hover {
    /* 3. L'effet de zoom (ex: 5% plus grand) */
    transform: scale(1.05);
}

/* --- NOUVEAUX STYLES POUR LE BADGE "EN CONSTRUCTION" --- */

.construction-badge-container {
    /* Suppression des styles de positionnement absolu */
    position: static;
    /* Rendre l'élément statique */
    left: auto;
    top: auto;
    transform: none;
    z-index: auto;
    /* Centrage si nécessaire (la flexbox parent s'en charge déjà) */
    text-align: center;
}

.construction-badge {
    /* Couleurs de chantier : Jaune vif et Noir */
    background-color: orange;
    /* Utilisation de votre variable jaune */
    color: var(--avva-noir);

    /* Style du badge */
    font-weight: 900;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;

    /* Effet d'alerte */
    border: 3px solid var(--avva-noir);
}

/* --- NOUVEAUX STYLES POUR LE ZOOM CONTINU DU LOGO --- */

/* 1. Définition de l'animation de zoom */
@keyframes logo-double-battement-avva39 {
    /* Période 1 : 0% -> 33.33% (1 seconde sur 3) - Les deux battements */

    /* Battement 1 */
    0% {
        transform: scale(1);
    }

    4.16% {
        /* 0.125s (1/8 de la seconde de battement) */
        transform: scale(1.05);
        /* Zoom maximal (le "battement") */
    }

    8.33% {
        /* 0.25s (1/4 de la seconde de battement) */
        transform: scale(1);
        /* Retour à la normale */
    }

    /* Battement 2 */
    16.66% {
        /* 0.5s (2/4 de la seconde de battement) */
        transform: scale(1.05);
        /* Deuxième zoom maximal */
    }

    25% {
        /* 0.75s (3/4 de la seconde de battement) */
        transform: scale(1);
        /* Retour à la normale */
    }

    /* Fin des battements à 33.33% (1 seconde) */

    /* Période 2 : 33.33% -> 100% (2 secondes sur 3) - Le repos */
    100% {
        transform: scale(1);
        /* Reste à la taille normale pour le reste du cycle */
    }
}

/* 2. Application de l'animation en continu sur le logo (le pseudo-élément ::before du main) */
#main-content-bg-logo.battement-actif::before {
    /* Définit l'animation :
            - logo-zoom-in-out-continuous : le nom de l'animation
            - 60s : La durée d'un cycle complet (zoom et dézoom). C'est votre "toutes les minutes".
            - ease-in-out : Rend l'effet plus doux.
            - infinite : Répète l'animation sans fin ! (Ceci remplace la boucle JavaScript)
            */
    animation: logo-double-battement-avva39 4.6s infinite;

    /* Assurez-vous que le transform est prêt à être animé (déjà présent dans votre code, mais important) */
    will-change: transform;
}

.icone-velo {
    display: inline-block;
    /* Nécessaire pour appliquer la transformation */
    transform: scaleX(-1);
}

/* Style du Bouton Plein Écran (Positionné Absolument à Droite) */
#fullscreen-button {
    /* Positionnement du bouton plein écran par rapport à #door-on-footer-area */
    position: relative;
    left: 5px;
    /* Décalage de 15px du bord droit */

    /* Assure que le bouton reste aligné verticalement avec la porte */
    /* top: 50%;
            transform: translateY(-50%); */
    /* Décommenter si l'alignement flexbox ne suffit pas */

    color: var(--avva-jaune);
    /* Couleur du bouton/icône */
    font-size: 1.5rem;
    /* Taille de l'icône */
    padding: 5px !important;
    z-index: 2;
    /* S'assure qu'il est au-dessus du footer */

    /* Optionnel : transition pour l'effet de zoom */
    transition: transform 0.3s ease;
}

/* Pour le desktop, on peut rétablir une position spécifique si nécessaire */
@media (min-width: 768px) {

    /* Vous pouvez décaler la porte un peu à gauche du centre si nécessaire pour le design */
    #door-on-footer-area {
        margin-left: 20.9%;
        /* Rétablit le style original si vous y tenez */
    }

    /* Bouton Plein Écran : Positionnement Desktop */
    #fullscreen-button {
        left: 440%;
        /* Rétablit la position originale pour l'alignement */
    }
}

@media (max-width: 768px) {
    #door-on-footer-area {
        position: relative;
        bottom: -10px;
        left: 0;
        transform: translateX(0);
    }
}

/* Effet de survol sur le bouton plein écran */
#fullscreen-button:hover {
    color: var(--avva-rouge);
    /* Changement de couleur au survol */
    transform: scale(1.1);
    /* Petit zoom */
}

.avva-accueil {
    margin-right: 20% !important;
}

@media (max-width: 768px) {
    .avva-accueil {
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .avva-credits-avva {
        margin-right: 0;
    }

    .avva-credits-logo {
        margin-right: 0;
    }
}