@charset "utf-8";

/* ---------------------------------------------------------
   FONTS
--------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Rubik+Glitch&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Rubik:wght@300;400;700&family=Rubik+Glitch&display=swap');

/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */

html, body {
    margin: 0;
    overflow-x: hidden;
    padding: 0;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    padding-right: 0 !important;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

div {
    display: block;
}

.site-complet{
    min-height: 100vh;
    position: relative; 
}

/* BOUTON INSCRIPTIONS */
.btn-inscriptions {
    position: fixed;
    left: 40px;
    top: 40px;
    padding: 12px 26px;
    background-color: #4CAF50;
    color: white;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    z-index: 50;
    transition: 0.3s ease;
}

.btn-inscriptions:hover {
    background-color: #33ccff;      /* bleu clair */
    color: #ff0000;                 /* rouge du logo */
    transform: scale(1.05);
}

/* NAVIGATION */

.navbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* --- BOUTON BURGER --- */
.btn-menu {
    position: fixed;
    right: 40px;
    top: 40px;
    z-index: 200;
    padding: 12px 30px;
    background-color: #33ccff;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.btn-menu:hover {               
    transform: scale(1.05);
} 

.mot_menu {
    color: #fff;
    display: flex;
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
    text-align: center;
}   

.burger-icon {
    width: 30px;
    height: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top,
.middle,
.bottom {
    width: 30px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.btn-menu:hover .top,
.btn-menu:hover .middle,
.btn-menu:hover .bottom {
    background-color: #ec4d25;   /* couleur au survol */
}

.top { top: 0; }
.middle { top: 9px; }
.bottom { bottom: 0; }

/* --- ANIMATION EN CROIX --- */
.btn-menu.active .top {
    transform: translateY(9px) rotate(45deg);
}
.btn-menu.active .middle {
    opacity: 0;
}
.btn-menu.active .bottom {
    transform: translateY(-9px) rotate(-45deg);
}

/* LISTE DES ANCRES */
#navbarSupportedContent .menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

#navbarSupportedContent .menu-container .items-nav {
    font-size: 2rem;
    color: white;
    margin: 20px 0;
    display: block;
}

/* --- STYLE DU MENU OUVERT --- */
#navbarSupportedContent {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #929595;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: center;
}

#navbarSupportedContent.open {
    transform: translateX(0);
}

/* Bloc des liens */
#navbarSupportedContent .items-nav {
    text-align: center;
    margin: 0;
    padding: 0;    
}


/* Style des liens */
#navbarSupportedContent .items-nav a {
    display: block;          /* chaque lien sur sa propre ligne */
    font-size: 2rem;
    color: white;
    text-decoration: none;   /* pas de soulignement */
    margin: 18px 0;          /* espace vertical entre les liens */
    font-weight: 600;
    transition: 0.3s ease;
}

#navbarSupportedContent .items-nav a:hover {
    color: #33ccff;
    transform: scale(1.05);
}

/*---------------------------------- */
/* EN-TETE-ACCUEIL */
/*---------------------------------- */
#entete-accueil {
    display: flex;
    justify-content: center;   /* centre verticalement */
    align-items: center;        /* centre horizontalement */
    min-height: 100vh;          /* occupe toute la hauteur de l'écran */
    position: relative;         /* nécessaire pour le fond */
}

#entete-accueil::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* intensité du foncé */
    z-index: -2; /* entre l’image et le contenu */
}

.fond-ecran-accueil {
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -5;
}

.contenu {
    font-weight: 700;
    text-align: center;
    padding: 0;                 /* on enlève le padding top/bottom */
    z-index: 2;                 /* passe devant l’image */
}

.contenu h1 {
    font-size: 60px;
    font-family: "Rubik", cursive;
    font-style: italic;
    color: #bebebe;
}

.contenu p {
    font-size: 20px;
    font-family: "Rubik", cursive;
    font-style: italic;
    color: white;
}

.btn-epreuves {
    background-color: #ec4d25;
    border-radius: 15px;
    border: 2px outset #ff0000;
    padding: 10px;
    font-size: 20px;
    text-decoration: none;
}

.logo-triathlon-Saline {
    width: 200px;
    height: auto;
}
/*---------------------------------- */
/* COMPTE A REBOURS -*/
/* --------------------------------- */
.countdown-wrapper {
    position: relative;   /* au lieu de absolute */
    font-family: "Rubik", cursive;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;     /* optionnel : espace au-dessus */
    margin-bottom: 20px;  /* optionnel : espace en dessous */
}

.countdown {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-box {
    color: #4CAF50;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 50px;
    min-width: 100px;
    animation: clignote 1.2s infinite alternate ease-in-out;
}

.countdown-box span {
    display: block;
    font-size: 25px;
    opacity: 0.8;
}


/*---------------------------------- */
/* ACTIVATION DES SECTIONS */
/* --------------------------------- */
/* On cache toutes les sections par défaut */
.content {
  display: none;
}

/* On n'affiche que la section qui est la "cible" (target) de l'URL */
.content:target {
  display: block;
}

/* Optionnel : Afficher la première section par défaut si aucune ancre n'est présente */
#accueil {
  display: block; /* L'accueil est visible au chargement */
}
/* Mais si une autre section est ciblée, on cache l'accueil */
:target ~ #accueil {
  display: none;
}


/*---------------------------------- */
/* NEWS */
/* --------------------------------- */
#news {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* Gris clair */
    min-height: 100vh;
    padding: 20px;
    display:flex; 
    flex-direction: column;   /* IMPORTANT : empile carte + bouton */
    justify-content: flex-start; /* pas de centrage vertical */
    align-items: center;      /* centre horizontalement */
}

/* Conteneur principal (la carte) */
.news-card {
    max-width: 768px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* En-tête avec dégradé bleu */
.card-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Badge rouge Sapeurs-Pompiers */
.badge {
    background-color: #ef4444;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Zone de texte interne */
.card-content {
    padding: 40px;
}

.main-title {
    font-size: 2rem;
    color: #0f172a; /* Bleu très foncé presque noir */
    line-height: 1.2;
    margin-bottom: 24px;
}

.intro-text {
    font-size: 1.1rem;
    color: #475569;
    font-style: italic;
    border-left: 4px solid #2563eb;
    padding-left: 16px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.main-body p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Pied de page */
.card-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-note {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.signature {
    color: #1d4ed8;
    font-weight: bold;
    font-style: italic;
}

.btn-programme{
    display: block;
    margin: 20px auto 20px auto;  /* centre horizontalement */

    padding: 20px 30px;
    background: white;
    border-radius: 30px;
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    color: #929595;
    transition: 0.3s ease;
    border: 2px solid #33ccff;
}

.btn-programme:hover {
    background: #33ccff;
    color: #ec4d25;
    transform: scale(1.05);
}

/* ---------------------------------- */
/* HERO DU PROGRAMME (FOND PHOTO)     */
/* ---------------------------------- */

.programme-hero {
    position: relative;
    width: 100%;
    height: 60vh; /* hauteur immersive */
    background-image: url("../images/photos/Tri_J1_53.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.programme-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.programme-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.logo-prog {
    width: 180px;
    margin-bottom: 20px;
}

.programme-hero-content h2 {
    font-size: 60px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.programme-hero-content .intro {
    font-size: 22px;
    font-style: italic;
    line-height: 1.5;
}

/* ---------------------------------- */
/* CONTENU APRÈS LE HERO              */
/* ---------------------------------- */

.programme-content {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.programme-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-prog {
    width: 180px;
    margin-bottom: 20px;
}

#programme h2 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

#programme .intro {
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
}

/* ---------------------------------- */
/* GRILLE DES BLOCS                   */
/* ---------------------------------- */

.programme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* ---------------------------------- */
/* CARTES DU PROGRAMME                */
/* ---------------------------------- */

.prog-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.25s ease;
}

.prog-card:hover {
    transform: translateY(-5px);
}

.prog-card .date {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 10px;
}

.prog-card h3 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 10px;
}

.horaire {
    font-size: 32px;
    font-weight: 900;
    margin-top: 10px;
}

/* ---------------------------------- */
/* LISTE DES HORAIRES                 */
/* ---------------------------------- */

.liste-horaires {
    list-style: none;
    padding: 0;
    margin: 0;
}

.liste-horaires li {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
}

.liste-horaires li span {
    font-size: 22px;
    font-weight: 900;
    margin-right: 10px;
    color: #33ccff;
}

/* ---------------------------------- */
/* BOUTON RÈGLEMENT                   */
/* ---------------------------------- */

.btn-reglement {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: white;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    color: #929595;
    border: 2px solid #33ccff;
    transition: 0.3s ease;
}

.btn-reglement:hover {
    background: #33ccff;
    color: #ec4d25;
    transform: scale(1.05);
}

/* ---------------------------------- */
/* SECTION EPREUVES — STYLE GLOBAL   */
/* ---------------------------------- */

#epreuves {
    background: #929595;
    padding: 40px 20px 20px;
}

#epreuves .titre-section {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

#epreuves .titre-sous-section {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin: 50px 0 20px;
    letter-spacing: -1px;
}

/* ---------------------------------- */
/* GRILLE PRINCIPALE                  */
/* ---------------------------------- */

.epreuves-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* ---------------------------------- */
/* CARTES D'ÉPREUVES                  */
/* ---------------------------------- */

.epreuve-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.25s ease;
}

.epreuve-card:hover {
    transform: translateY(-5px);
}

.initiale {
    font-size: 50px;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 15px;
    color: #ec4d25;
}

.details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.details li {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0;
}

.tarif {
    font-size: 32px;
    font-weight: 900;
    margin: 10px 0;
}

.limite {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.infosdate {
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

/* ---------------------------------- */
/* BOUTONS                            */
/* ---------------------------------- */

.btn-parcours,
.btn-reglement {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    color: #929595;
    transition: 0.3s ease;
    border: 2px solid #33ccff;
}

.btn-parcours:hover,
.btn-reglement:hover {
    background: #33ccff;
    color: #ec4d25;
    transform: scale(1.05);
}

/* ---------------------------------- */
/* BLOCS PLEINE LARGEUR               */
/* ---------------------------------- */

.bloc-full {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    margin: 40px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.bloc-full h3 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 15px;
    text-align: center;
}

.retrait {
    background: #4CAF50;
    color: white;
}

.reglements {
    background: #33ccff;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reglement-col {
    text-align: center;
}

/* ------------------------------ */
/* SITE GEOGRAPHIQUE 
/* ------------------------------ */
#map-saline {
    background: #f3f4f6;
    padding: 40px 20px;
    text-align: center;
}
.map {
    min-width: 500px;
    height: 500px; /* Hauteur de la carte */
    position: relative;
    
}

.map iframe {
    width: 50%;
    height: 100%;
    border: none;
    border-radius: 12px; /* Pour des coins arrondis élégants */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ------------------------------ */
/* PARTENAIRES 
/* ------------------------------ */
#partenaires {
    background: white;
    padding: 40px 20px;
    text-align: center;
}

.partners-insti-logos,
.partners-prives-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.partners-insti-logos img {
    height: 150px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.partners-prives-logos img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.partners-insti-logos img:hover,
.partners-prives-logos img:hover {
    transform: scale(1.08);
}



/* ------------------------------ */
/* PHOTOS-VIDEOS / RESULTATS */
/* ------------------------------ */
#photos,
#resultats {
    background: #4CAF50;
    padding: 40px 20px;
    text-align: center;
}
#map-saline h3,
#partenaires h3,
#photos h3,
#resultats h3 {
    font-size: 28px;
    font-weight: 900;
}

/* Cartes cliquables pour les éditions */
.media-cards,
.results-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.media-card,
.results-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #33ccff;
    text-align: center;
}

.media-card:hover,
.results-card:hover {
    background: #33ccff;
    color: #ec4d25;
    font-weight: bold;
    transition: 0.3s ease;

}

.media-icon,
.results-icon {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    opacity: 0.8;
}

/*----------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.site-footer {
    background: #1f4f7b;
    color: white;
    padding: 30px 15px;
    text-align: center;
}

/* Liens */
.footer-link {
    color: #cce7ff;
    text-decoration: none;
    display: block;
    margin: 3px 0;
}

.footer-link:hover {
    text-decoration: underline;
}

/* PARTENAIRES */
.footer-partners {
    margin-bottom: 15px;
}

.footer-partners h4 {
    margin-bottom: 10px;
    font-size: 25px;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.partners-logos img {
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.partners-logos img:hover {
    transform: scale(1.08);
}

/* COLONNES */
.footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 10px;
}

.footer-block h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-block p {
    margin: 3px 0;
}

/* ----- COOKIES DANS LE FOOTER ----- */

.cookies {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.cookies a {
    color: #cce7ff;
    text-decoration: underline;
}

.cookies a:hover {
    color: white;
}

/* COPYRIGHT */
.footer-bottom {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ---------------------------------- */
/* RESPONSIVE TABLETTE                */
/* ---------------------------------- */

@media (max-width: 1023px) {
    .programme-grid {
        grid-template-columns: 1fr;
    }

    .epreuves-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reglements {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------- */
/* RESPONSIVE MOBILE                  */
/* ---------------------------------- */

@media (max-width: 599px) {

    #programme h2 {
        font-size: 38px;
    }

    .prog-card {
        padding: 20px 15px;
    }

    .horaire {
        font-size: 26px;
    }

    .liste-horaires li span {
        font-size: 20px;
    }

    .epreuves-grid {
        grid-template-columns: 1fr;
    }

    .initiale {
        font-size: 40px;
    }

    .tarif {
        font-size: 26px;
    }

    .btn-parcours,
    .btn-reglement {
        display: block;
        margin: 15px auto;
    }

    .bloc-full {
        padding: 25px 15px;
    }

    .map-responsive {
        display: block;
        height: 200px;
    }
}
