body {
    font-family: Impact;
    letter-spacing: 0.1em;
    color: #144d67;
}

@media (min-width: 800px) {

    .asbbs78 {
        border-radius: 20px;
        border: 9vw solid rgb(255, 255, 255, 0.5);
        border-top: 2vw solid white;
        border-bottom: 5vw solid rgb(255, 255, 255, 0.5)
    }

    .footer-social-grid a:not(:last-child)::after {
        margin-left: 27px;
    }

    body.home .trans img {
        border-top: 60px solid transparent;
    }

    .hide-desktop {
        display: none;
    }
}

@media (max-width: 799px) {
    .hide-mobile {
        display: none;
    }

    body {
        margin: 0;
        padding: 10px 0;
        position: relative;
        min-height: 100vh;
    }

    body::before {
        content: "";
        position: fixed;
        /* Reste en place lors du scroll */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        /* Place l'image derrière le contenu */

        background-image: url('bg-mobile.png');
        background-size: 100vh auto;
        background-repeat: no-repeat;

        opacity: 0.3;
        /* Ton réglage d'opacité */
    }

    .hide-mobile {
        display: none;
    }

    .degrade1 .row {
        padding-right: 9vw;
        padding-left: 9vw;
    }
}


a {
    color: #f29d2a;
    text-decoration: dashed;
}

a:hover {
    text-decoration: none;
}

.orange,
.orange a,
.blue a:hover {
    color: #f29d2a !important;
}

.blue,
.blue a,
.btn-warning,
.btn-warning:hover,
.orange a:hover,
.btn-link:hover {
    color: #144d67 !important;
}

.bluelight,
.bluelight a {
    color: #349aca !important;
    /*#aad5e9*/
}

h1 .bluelight,
h1 .bluelight a {
    color: #aad5e9 !important;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.justify-content-right {
    justify-content: right;
}

.container img {
    max-width: 100%;
    /*max-height: 100%;*/
    z-index: 1;
}

#haWidget {
    z-index: 20 !important;
    position: relative;
}

.blanc {
    background: white;
    z-index: 2;
}

.blanc .row {
    background: white;
    z-index: 2;
}

.degrade .row {
    background: linear-gradient(to bottom,
            white 0%,
            transparent 100%);
    z-index: 2;
}

.degrade1 .row {
    background: linear-gradient(to bottom,
            white 0%,
            transparent 100%);
    z-index: 2;
    padding-bottom: 10px;
}

.trans .row {
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 100%)
}

.degrade2 .row {
    background: linear-gradient(to bottom,
            white 80%,
            transparent 100%);
    z-index: 2;
}

.card {
    margin: 0;
}

b,
.card-header {
    color: #aad5e9;
    text-align: center;
    background-color: white;
    border-bottom: 1px solid #144d67;
}

p,
.card-footer {
    color: #144d67;
    text-align: justify;
    background-color: white;
}

footer p {
    border-top: 1px solid #144d67;
}

.card-footer p {
    border: none;
}

.card-body h2 {
    text-align: center;
    color: #f29d2a;
    font-weight: normal;
    font-size: 1.4em;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}

i::before {
    font-size: 500%;
    color: #aad5e9;
}

.bi-car-front-fill::before {
    color: #f29d2a !important;
}

.card {
    padding: 20px;
}

h1 {
    font-family: Impact;
    color: #aad5e9;
    text-shadow: 1px 1px #144d67;
}

h2 {
    letter-spacing: 0.1em;
    font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial #144d67", "sans serif";
    font-size: 24px;
    font-style: normal;
    font-variant: normal;
    line-height: 50.4px;
}

.legal-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    max-height: 70vh;
    overflow-y: auto;
}

h2 {
    color: #f29d2a;
    margin-top: 25px;
    border-bottom: 1px solid #aad5e9;
    padding-bottom: 10px;
}

h3 {
    color: #aad5e9;
    margin-top: 20px;
}

/* Style global pour les textes de contenu pour éviter les conflits Impact */
.content-text p,
.content-text li {
    color: #333;
    font-family: sans-serif;
    letter-spacing: normal;
    text-transform: none;
}

h3 {
    font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial #144d67", "sans serif";
    font-size: 14px;
    font-style: normal;
    font-variant: normal;
    line-height: 15.4px;
}

p {
    font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial #144d67", "sans serif";
    font-size: 14px;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 20px;
}

blockquote {
    font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial #144d67", "sans serif";
    font-size: 21px;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 30px;
}

pre {
    font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial #144d67", "sans serif";
    font-size: 13px;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 18.5714px;
}


.qrcode {
    background: white;
    opacity: 1;
    margin-bottom: 0;
}

.qrcode img {
    max-width: 30%;
    float: left;
    margin-top: -20%;
    position: fixed;
    z-index: 0;
    top: 50%;
}

iframe {
    z-index: 20;
}

/* Styles du Footer */
footer {
    z-index: 2;
    position: absolute;
    margin: 0 auto;
    width: 100%;
    background: transparent;
    /*padding-top: 10px;*/
}

/*
@media (max-width: 800px) {
    footer {
       margin-top: 100%;
    }
}*/

footer p,
footer .footer-btn-container {
    text-align: center;
}

.footer-btn-container .btn-link {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.footer-social-grid {
    display: inline-block;
}

.footer-social-grid a:not(:last-child)::after {
    content: " - ";
    color: #333;
}

@media (max-width: 767.98px) {
    iframe {
        display: none;
    }

    .footer-btn-container .btn-link {
        display: block;
        width: 100%;
        margin: 5px 0;
        padding: 10px;
        background: #aad5e9;
        border: 1px solid rgba(170, 213, 233, 0.8);
    }

    .footer-btn-container .separator {
        display: none !important;
    }

    .footer-social-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .footer-social-grid a::after {
        content: "" !important;
    }

    .footer-social-grid .btn-link {
        margin: 0;
        background: rgba(242, 157, 42, 0.4) !important;
        border: 1px solid rgba(242, 157, 42, 0.6);
        color: #144d67 !important;
    }

    .footer-social-grid .btn-link:active {
        background: rgba(242, 157, 42, 0.6) !important;
    }

    .hide-mobile {
        display: none;
    }
}

/* Styles Tournois et Podium */
.tournoi-card {
    position: relative;
    overflow: hidden;
}

.tournoi-card .card-body {
    padding: 0;
}

.tournoi-full img,
.tournoi-finished img {
    filter: grayscale(100%);
    opacity: 0.5;
}

.overlay-complet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    color: #f29d2a;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 5px solid #f29d2a;
    padding: 10px 20px;
    z-index: 10;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.overlay-podium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 15;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    font-family: sans-serif;
}

.podium-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
}

.podium-item {
    margin: 5px 0;
    font-weight: bold;
    text-shadow: 1px 1px 2px white;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 10px;
    display: inline-block;
    border-radius: 5px;
}

.podium-1 {
    color: #f29d2a !important;
    font-size: 1.4rem;
    border: 2px solid #f29d2a;
}

.podium-2 {
    color: #144d67 !important;
    font-size: 1.2rem;
    border: 1px solid #144d67;
}

.podium-3 {
    color: #349aca !important;
    font-size: 1.1rem;
    border: 1px solid #349aca;
}

.trophy-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.trophy-icon::before {
    color: #ffc107 !important;
}

/* --- Styles unifiés pour les blocs de contenu --- */
.main-content-block {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    /*margin-top: 20px;*/
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.my-50 {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

.overflow-hidden {
    overflow: hidden !important;
}



.impact-title {
    font-family: Impact;
    color: #aad5e9;
    text-align: center;
    text-shadow: 1px 1px black;
}

.text-shadow-heavy {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
}

.modal-body-custom {
    font-family: sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}



.text-orange {
    color: #f29d2a !important;
}

.font-impact {
    font-family: Impact !important;
}

.font-sans {
    font-family: sans-serif !important;
}

/* --- Bandeau blanc supérieur (Desktop) --- */
@media (min-width: 800px) {
    .top-white-band {
        height: 59px;
        background: white;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2;
    }

    body.with-white-band {
        padding-top: 59px;
        overflow-x: hidden;
    }
}

/* --- Iframe de fond --- */
#fb-background-video {
    border: none;
    overflow: hidden;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
    min-width: 100vw;
}

/* --- Administration --- */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-orange {
    background-color: #f29d2a;
    border-color: #f29d2a;
    color: white;
}

.btn-orange:hover {
    background-color: #d4861b;
    color: white;
}

.btn-orange-heavy {
    background-color: #f29d2a !important;
    border-color: #f29d2a !important;
    color: white !important;
}


.thumb-img {
    max-height: 50px;
    width: auto;
}

.ql-container {
    height: 200px;
}

/* --- Taille des icônes admin --- */
.admin-title i,
.admin-nav i,
.btn i,
.table i,
.badge i,
.message-header i,
.admin-title i::before,
.admin-nav i::before,
.btn i::before,
.table i::before,
.badge i::before,
.message-header i::before {
    font-size: 1rem !important;
    width: auto !important;
    height: auto !important;
    vertical-align: middle;
}



/* --- Administration des messages --- */
.message-card {
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-header {
    background-color: #aad5e9;
    color: #333;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    padding: 10px 15px;
}

.message-body {
    background-color: white;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    white-space: pre-wrap;
    font-family: monospace;
}

.btn-delete {
    color: #dc3545;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.btn-delete:hover {
    color: #a71d2a;
}

.admin-title {
    font-family: Impact !important;
    color: #f29d2a !important;
    text-align: center;
}

.admin-title a {
    color: inherit !important;
    text-decoration: none !important;
}


/* --- Styles globaux de contenu --- */
.content-text p,
.content-text li {
    color: #333;
    font-family: sans-serif;
    letter-spacing: normal;
    text-transform: none;
}

h2.section-title {
    color: #f29d2a;
    margin-top: 25px;
    border-bottom: 1px solid #aad5e9;
    padding-bottom: 10px;
}

h3.section-subtitle {
    color: #aad5e9;
    margin-top: 20px;
}