@charset "utf-8";

/* =========================================
   VARIABLES GLOBALES
========================================= */
:root {
    --fond:      rgba(0,0,0,0.55);
    --fond-bloc: rgba(0,0,0,0.45);
    --accent:    #ffcf11;
    --texte:     #f3f3f3;
    --ombre:     0 4px 15px rgba(0,0,0,0.35);
    --radius:    12px;
    --transition:0.25s ease;
}

/* =========================================
   ANIMATIONS GLOBALES
========================================= */
@keyframes pulse {
    from { opacity: 0.7; transform: scale(0.98); }
    to   { opacity: 1;   transform: scale(1.02); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

@keyframes loading-pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1);    box-shadow: 0 4px 15px rgba(255,107,53,0.4); }
    50%       { transform: scale(1.05); box-shadow: 0 6px 25px rgba(255,107,53,0.7); }
}

/* =========================================
   FOND D'ÉCRAN (commun à toutes les pages)
========================================= */
body {
    background-image: url("../Fond/index_fond_ecran_1920.jpg");
    background-size: cover;
    background-attachment: fixed;
}

/* =========================================
   STRUCTURE GLOBALE
========================================= */
body {
    margin: 0;
    padding: 0;
    color: var(--texte);
    font-family: "Segoe UI", Arial, sans-serif;
}

#page {
    width: 100%;
    max-width: 980px;
    margin: auto;
    padding: 20px;
    background: var(--fond);
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}

iframe {
    width: 100%;
    max-width: 100%;
    border: none;
}

/* =========================================
   HAUT DE PAGE
========================================= */
#haut { margin-bottom: 20px; }

.haut-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--fond-bloc);
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}

.logo { width: 85px; }

.marquee {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 2s infinite alternate;
}

/* PC : éléments visibles */
.logo-left, .logo-right, .marquee-pc { display: block; }

/* Mobile : éléments cachés par défaut */
.header-mobile-line, .logo-mobile, .hamburger { display: none; }

/* =========================================
   MENU
========================================= */
#nav ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 12px;
    background: rgba(0,0,0,0.65);
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}

#nav a {
    color: var(--texte);
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

#nav a:hover {
    background: var(--accent);
    color: black;
    transform: translateY(-2px);
}

/* =========================================
   GRILLE CONTENU (page d'accueil)
========================================= */
.contenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.bloc {
    background: var(--fond-bloc);
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--ombre);
    transition: var(--transition);
}

.bloc:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    color: #E6EC04;
    font-weight: bolder;
}

.bloc h3, .bloc h4 { color: #FFCF11; }
.bloc p { color: #FFCF11; font-weight: bold; }

.img-part  { width: 180px; margin: 10px auto; transition: transform 0.3s ease, opacity 0.3s ease; cursor: pointer; }
.img-small { width: 120px; margin: 10px auto; }
.img-mini  { width: 100px; margin: 10px auto; }

.img-part:hover { transform: scale(1.05); opacity: 0.8; }

.img-flyer {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}

.bloc-partenaires {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bloc-partenaires img {
    width: 70%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

/* =========================================
   BOUTONS
========================================= */
.btn-center { text-align: center; margin: 25px 0; }

.btn-action {
    display: inline-block;
    background: var(--accent);
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: bold;
    color: black;
    font-size: 18px;
    box-shadow: var(--ombre);
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,207,17,0.4);
}

.btn-action:active { transform: translateY(0); }

.btn-disabled {
    background: #666 !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.flyer-empty, .inscription-empty {
    display: inline-block;
    width: 120px;
    height: 20px;
    opacity: 0.25;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
}

/* =========================================
   TABLEAU CLUBS
========================================= */
.clubs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--fond-bloc);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ombre);
    margin-bottom: 25px;
}

.clubs-table th, .clubs-table td {
    padding: 15px;
    vertical-align: top;
    color: var(--texte);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.clubs-table th {
    background: rgba(0,0,0,0.7);
    color: var(--accent);
    font-size: 18px;
}

.clubs-table td { background: transparent; }

.clubs-table td:last-child, .clubs-table th:last-child {
    width: 160px;
    white-space: nowrap;
}

.clubs-table a {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.clubs-table a:hover { text-decoration: underline; }

.clubs-table tr:nth-child(even) td { background: rgba(255,255,255,0.03); }

/* =========================================
   CLUBS — VERSION MOBILE CARTES
========================================= */

/* Par défaut : tableau visible, cartes cachées */
.clubs-cards {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
}

.club-card {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.club-card-header {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.club-card-name {
    color: #333;
    font-size: 1.3em;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.club-card-location {
    color: var(--accent);
    font-size: 1em;
    margin: 0;
}

.club-card-info {
    margin: 12px 0;
    color: #666;
    font-size: 0.95em;
    display: flex;
    align-items: flex-start;
}

.club-card-info-icon {
    min-width: 30px;
    font-size: 1.2em;
    margin-right: 8px;
}

.club-card-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    word-break: break-all;
}

/* =========================================
   BLOCS DIVERS
========================================= */
.bloc-image {
    background: var(--fond-bloc);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    margin: 30px auto;
    text-align: center;
    width: fit-content;
}

.bloc-image img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}

.bloc-charte {
    background: var(--fond-bloc);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    margin: 40px 0;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.bloc-charte h2 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bloc-charte iframe {
    width: 100%;
    max-width: 900px;
    height: 700px;
    border: none;
    border-radius: var(--radius);
    background: #f0f0f0;
    box-shadow: var(--ombre);
    transition: transform 0.3s ease;
}

.bloc-charte iframe:hover { transform: scale(1.01); }

/* Wrapper iframe scrollable (page Charte) */
.iframe-wrapper {
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.bloc-indispo {
    background: var(--fond-bloc);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    margin: 40px 0;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.bloc-indispo h2 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bloc-indispo p { color: var(--texte); font-size: 18px; opacity: 0.9; margin: 0; }

/* =========================================
   BLOC ECO-RESPONSABLE
========================================= */
.bloc-eco {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

.texte-pave {
    background: var(--fond-bloc);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}

.texte-pave h2 { color: var(--accent); margin-bottom: 15px; font-size: 24px; }
.texte-pave p  { font-size: 17px; line-height: 1.5; }

.bloc-eco-partenaire, .bloc-eco-gobelet {
    background: var(--fond-bloc);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    text-align: center;
}

.bloc-eco-partenaire h3, .bloc-eco-gobelet h3 { color: var(--accent); margin-bottom: 15px; }

.eco-img-small  { width: 100px; margin-bottom: 15px; }
.eco-img-medium { width: 125px; margin-bottom: 10px; }
.prix { color: var(--accent); font-weight: bold; font-size: 18px; }

/* =========================================
   BLOC PLAQUETTE
========================================= */
.bloc-plaquette {
    background: var(--fond-bloc);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    margin: 40px 0;
    text-align: center;
}

.bloc-plaquette h2 {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bloc-plaquette img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.bloc-plaquette img:hover { transform: scale(1.01); }
.plaquette-link { display: block; margin-bottom: 20px; }

/* =========================================
   CONTACT
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.contact-card {
    background: rgba(0,0,0,0.45);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card h3 { color: var(--accent); margin-bottom: 10px; }

.contact-form {
    margin-top: 40px;
    background: rgba(0,0,0,0.45);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.contact-form h3    { color: var(--accent); margin-bottom: 15px; text-align: center; }
.contact-form label { display: block; margin-top: 10px; margin-bottom: 5px; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    margin-bottom: 10px;
}

.contact-form button {
    background: var(--accent);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* =========================================
   PAGE CONTACT — FORMULAIRE
========================================= */

/* #contenu surchargé uniquement sur la page contact */
.contenu-contact {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: #333;
}

.contenu-contact h1 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-group label span { color: #dc3545; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,207,17,0.1);
}

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

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.g-recaptcha {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffd700 100%);
    color: #333;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,207,17,0.4);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #dc3545;
    display: none;
}

.error-message.show { display: block; }

.contact-info-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
}

.contact-info-box h3 { color: var(--accent); margin-bottom: 20px; }
.contact-info-box p  { margin: 10px 0; color: #666; font-size: 1.1em; }
.contact-info-box a  { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-info-box a:hover { text-decoration: underline; }

/* =========================================
   PIED DE PAGE
========================================= */
#pied {
    margin-top: 20px;
    text-align: center;
    color: var(--texte);
    padding: 12px;
    background: var(--fond-bloc);
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}

#maj          { text-align: center; margin-top: 10px; color: var(--texte); }
.maj-label    { color: var(--accent); font-weight: bold; }

.compteur {
    margin-top: 20px;
    font-size: 22px;
    color: var(--accent);
    font-weight: bold;
    text-align: center;
}

/* =========================================
   TABLEAU CALENDRIER (desktop)
========================================= */
.cal-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--fond-bloc);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.cal-table th, .cal-table td {
    padding: 15px;
    vertical-align: top;
    color: var(--texte);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cal-table thead th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--accent);
    text-align: left;
    font-size: 18px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cal-table tbody tr { transition: all 0.3s ease; }

.cal-table tbody tr:hover {
    background: rgba(255,207,17,0.1);
    transform: translateX(5px);
}

.cal-date { font-weight: bold; color: var(--accent); width: 150px; }
.cal-info h3 { margin: 0 0 5px 0; color: var(--accent); }
.cal-info p  { margin: 3px 0; color: var(--texte); }

/* Badges statut randonnée */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 8px;
}

.status-upcoming { background: #4caf50; color: white; }
.status-soon     { background: #ff9800; color: white; animation: badge-pulse 2s infinite; }
.status-passed   { background: #757575; color: white; }

/* Bouton refresh flottant */
.btn-refresh {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, #ffcf11 0%, #ffa500 100%);
    color: #333;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,207,17,0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.btn-refresh:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 6px 20px rgba(255,207,17,0.6);
}

/* Animation chargement */
.loading-calendar { animation: loading-pulse 1.5s infinite; }

/* Indicateur mise à jour */
.last-update {
    text-align: center;
    color: #aaa;
    font-size: 0.9em;
    margin-top: 20px;
    padding: 10px;
}

/* =========================================
   CALENDRIER MOBILE — CARTES
   (visibles uniquement via media query)
========================================= */
.calendar-cards { display: none; }

.rando-card {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.rando-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.rando-card-header {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.rando-card-date  { color: var(--accent); font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
.rando-card-title { color: #333; font-size: 1.3em; margin: 5px 0; }
.rando-card-info  { color: #666; font-size: 0.95em; margin: 8px 0; }
.rando-card-info strong { color: #333; }

.rando-card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.rando-card-buttons .btn-action {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 0.95em;
}

.empty-message      { text-align: center; padding: 40px 20px; color: #666; }
.empty-message-icon { font-size: 3em; margin-bottom: 15px; }

/* =========================================
   GÉOLOCALISATION
========================================= */
.geoloc-banner {
    background: var(--fond-bloc);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid var(--accent);
}

.geoloc-banner h2 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.geoloc-banner p { color: var(--texte); margin-bottom: 20px; }

.btn {
    padding: 15px 40px;
    background: var(--accent);
    color: black;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(255,207,17,0.4);
}

.btn:hover   { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,207,17,0.6); background: #f5c400; }
.btn:disabled{ background: #666; color: #aaa; cursor: not-allowed; box-shadow: none; }

.search-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 650px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: 2px solid var(--accent);
    border-radius: 25px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255,255,255,0.95);
    color: #333;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #f5c400;
    box-shadow: 0 0 0 3px rgba(255,207,17,0.3);
    background: white;
}

.search-input::placeholder { color: #999; }

.next-event {
    background: var(--fond-bloc);
    color: white;
    padding: 35px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--ombre);
    border: 3px solid var(--accent);
    display: none;
}

.next-event.show { display: block; animation: slideIn 0.5s ease; }

.next-event h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.event-detail {
    background: rgba(255,207,17,0.15);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,207,17,0.3);
}

.event-detail strong { display: block; margin-bottom: 5px; font-size: 0.9em; color: var(--accent); }
.event-detail span   { font-size: 1.2em; color: var(--texte); }

.map-container {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    margin-bottom: 30px;
    display: none;
}

.map-container.show { display: block; }
.map-container h2   { color: #2a5298; margin-bottom: 15px; }

.map-info { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }

.map-stat {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 140px;
}

.map-stat strong { display: block; color: #2a5298; font-size: 0.9em; margin-bottom: 5px; }
.map-stat span   { font-size: 1.3em; font-weight: bold; color: #333; }

#map { height: 450px; border-radius: 10px; margin-top: 15px; }

/* =========================================
   BADGES
========================================= */
.nouveaute-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85em;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

.badge-nouveau {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65em;
    margin-left: 10px;
    display: inline-block;
    animation: badge-pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255,68,68,0.4);
}

/* =========================================
   PAGE D'ACCUEIL — PROCHAINE RANDO
========================================= */
.titre-rando {
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.countdown {
    color: #ffcf11;
    font-size: 0.75em;
    font-weight: normal;
    margin-top: 8px;
    display: block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.lieu-info {
    font-size: 0.7em;
    font-weight: normal;
    color: #aaa;
    margin-top: 5px;
    display: block;
}

.loading {
    opacity: 0.6;
    animation: loading-pulse 1.5s infinite;
}

/* =========================================
   FIL D'ACTUALITÉS
========================================= */
.section-actualites {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.bloc-actualites {
    background: rgba(30,30,30,0.95);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.actualites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ffcf11;
}

.bloc-actualites h3 { color: #ffcf11; font-size: 1.6em; margin: 0; font-weight: bold; }

.btn-add-actu {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1em;
}

.btn-add-actu:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(76,175,80,0.4); }

.actualites-container {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.actualites-container::-webkit-scrollbar       { width: 10px; }
.actualites-container::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 10px; }
.actualites-container::-webkit-scrollbar-thumb { background: #ffcf11; border-radius: 10px; }
.actualites-container::-webkit-scrollbar-thumb:hover { background: #ffd940; }

.actu-card {
    background: linear-gradient(135deg, rgba(70,70,70,0.9) 0%, rgba(50,50,50,0.9) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255,207,17,0.3);
}

.actu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,207,17,0.4);
    border-color: #ffcf11;
}

.actu-header {
    background: linear-gradient(135deg, rgba(255,207,17,0.15) 0%, rgba(255,207,17,0.05) 100%);
    padding: 15px 20px;
    border-bottom: 2px solid rgba(255,207,17,0.3);
}

.actu-title { color: #fff; font-weight: bold; font-size: 1.3em; margin: 0 0 8px 0; line-height: 1.4; }
.actu-date  { color: #aaa; font-size: 0.9em; display: block; margin-top: 5px; }

.actu-media {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    background: #111;
    margin: 0 auto;
}

.actu-video { width: 100%; max-height: 500px; background: #111; display: block; }

.actu-content { padding: 20px; color: #ddd; line-height: 1.8; font-size: 1.05em; }
.actu-content a { color: #ffcf11; text-decoration: none; font-weight: bold; transition: color 0.3s; }
.actu-content a:hover { color: #ffd940; text-decoration: underline; }

.actu-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7em;
    margin-left: 10px;
    font-weight: bold;
    animation: badge-pulse 2s infinite;
    vertical-align: middle;
}

.actu-empty      { text-align: center; padding: 60px 20px; color: #999; font-style: italic; }
.actu-empty-icon { font-size: 4em; margin-bottom: 20px; opacity: 0.3; }

.actu-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
}

.cat-info      { background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); color: white; }
.cat-resultats { background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); color: white; }
.cat-nouveau   { background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%); color: white; }
.cat-important { background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%); color: white; }

/* =========================================
   PAGE INSCRIPTION — BLOC ÉVÉNEMENT
========================================= */
.event-wrapper {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}
.event-banner { width: 100%; max-height: 250px; object-fit: cover; display: block; }
.event-header { padding: 30px; }

.event-info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 30px; }
.event-main      { display: flex; flex-direction: column; gap: 15px; }
.event-meta      { display: flex; flex-direction: column; gap: 15px; align-items: flex-end; text-align: right; }

.event-title       { color: #2d2e5c; font-size: 1.8em; font-weight: 600; line-height: 1.25; margin: 0; }
.event-org         { color: #717198; font-size: 1.15em; margin: 0; }
.event-org a       { color: #4b3fcf; font-weight: 600; text-decoration: none; }
.event-org a:hover { text-decoration: underline; }
.event-date        { display: inline-flex; align-items: center; gap: 8px; color: #505870; font-size: 0.95em; font-weight: 600; margin: 0; }
.event-date svg    { width: 16px; height: 16px; fill: currentColor; }
.event-short-desc  { color: #717198; font-size: 1em; line-height: 1.6; margin: 0; }
.event-separator   { border: 0; border-top: 1px solid rgba(209,215,223,0.5); margin: 20px 0; }

.event-long-desc                          { color: #717198; font-size: 0.95em; line-height: 1.6; }
.event-long-desc h3, .event-long-desc h4 { color: #2d2e5c; font-weight: 600; margin-top: 1.5em; margin-bottom: 0.75em; }
.event-long-desc h3    { font-size: 1.3em; }
.event-long-desc h4    { font-size: 1.1em; }
.event-long-desc ul    { padding-left: 20px; margin: 10px 0; }
.event-long-desc li    { margin: 0.5em 0; }
.event-long-desc p     { margin: 1em 0; }
.event-long-desc strong{ color: #2d2e5c; font-weight: 600; }
.event-long-desc a     { color: #4b3fcf; text-decoration: none; }
.event-long-desc a:hover { text-decoration: underline; }

.event-location-wrapper { background: #f7f9fd; border-radius: 8px; overflow: hidden; margin-top: 20px; }
.event-map              { width: 100%; height: 200px; background: #e0e0e0; }
.event-map iframe       { width: 100%; height: 100%; border: 0; }
.event-location         { padding: 20px; }
.event-location-title   { color: #2d2e5c; font-weight: 600; font-size: 1em; margin: 0 0 10px 0; }
.event-location p       { color: #717198; margin: 5px 0; font-size: 0.95em; }
.event-contact          { margin-top: 20px; padding: 15px; background: #f7f9fd; border-radius: 8px; }
.event-contact-title    { color: #2d2e5c; font-weight: 600; margin: 0 0 10px 0; font-size: 0.95em; }
.event-contact a        { color: #4b3fcf; text-decoration: none; font-size: 0.95em; }
.event-contact a:hover  { text-decoration: underline; }
.event-loading          { text-align: center; padding: 40px; color: #717198; }

/* =========================================
   PAGE INSCRIPTION — CONDITIONS
========================================= */
.conditions-overlay        { background: #ffffff; border-radius: 12px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; }
.conditions-overlay.hidden { display: none; }
.conditions-header         { background: linear-gradient(135deg, #4b3fcf 0%, #6c5ce7 100%); color: white; padding: 25px 30px; }
.conditions-header h3      { margin: 0; font-size: 1.4em; font-weight: 600; }
.conditions-content        { padding: 30px; }
.conditions-intro          { background: #f7f9fd; border-left: 4px solid #4b3fcf; padding: 20px; margin-bottom: 25px; border-radius: 4px; }
.conditions-intro p        { margin: 0; color: #2d2e5c; font-size: 1.05em; line-height: 1.6; }
.conditions-list           { background: #fafbfc; border-radius: 8px; padding: 25px; margin-bottom: 25px; }
.conditions-list h4        { color: #2d2e5c; font-size: 1.15em; margin: 0 0 15px 0; font-weight: 600; }
.conditions-list ul        { list-style: none; padding: 0; margin: 0; }
.conditions-list li        { padding: 12px 0 12px 35px; position: relative; color: #505870; line-height: 1.6; border-bottom: 1px solid rgba(209,215,223,0.3); }
.conditions-list li:last-child { border-bottom: none; }
.conditions-list li::before    { content: "☑"; position: absolute; left: 0; color: #4b3fcf; font-size: 1.3em; font-weight: bold; }
.conditions-checkbox-wrapper   { background: #fff8e1; border: 2px solid #ffc107; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.conditions-checkbox           { display: flex; align-items: flex-start; gap: 15px; cursor: pointer; }
.conditions-checkbox input[type="checkbox"] { width: 24px; height: 24px; cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.conditions-checkbox label     { flex: 1; font-size: 1.05em; color: #2d2e5c; font-weight: 600; cursor: pointer; line-height: 1.5; }
.conditions-actions            { display: flex; gap: 15px; justify-content: flex-end; }
.btn-conditions                { padding: 15px 30px; border: none; border-radius: 8px; font-size: 1.05em; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-accept                    { background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); color: white; opacity: 0.5; cursor: not-allowed; }
.btn-accept.enabled            { opacity: 1; cursor: pointer; }
.btn-accept.enabled:hover      { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(76,175,80,0.4); }
.btn-decline                   { background: #e0e0e0; color: #505870; }
.btn-decline:hover             { background: #d0d0d0; }

/* =========================================
   PAGE INSCRIPTION — IFRAME HELLOASSO
========================================= */
.inscription-wrapper { position: relative; }

/* Placeholder visible avant acceptation des conditions */
.inscription-locked-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
}

.lock-icon    { font-size: 3em; margin-bottom: 15px; }
.lock-title   { color: #2d2e5c; font-size: 1.3em; font-weight: 600; margin: 0 0 10px 0; }
.lock-subtitle{ color: #717198; font-size: 1em; margin: 0; line-height: 1.6; }

#haWidget {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =========================================
   =========================================
   RESPONSIVE — toutes les media queries
   regroupées ici, dans l'ordre décroissant
   =========================================
========================================= */

/* ---- Tablette / Mobile ≤ 900px ---- */
@media (max-width: 900px) {

    #page { width: 95%; padding: 15px; }

    /* Header bascule en ligne mobile */
    .haut-container { flex-direction: column; gap: 0; padding: 10px 15px; }
    .logo-left, .logo-right, .marquee-pc { display: none; }

    .header-mobile-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }

    .hamburger {
        display: block;
        font-size: 32px;
        color: var(--accent);
        padding: 10px 15px;
        background: rgba(0,0,0,0.6);
        border-radius: 8px;
        box-shadow: var(--ombre);
        cursor: pointer;
        flex-shrink: 0;
    }

    .header-mobile-line .marquee { flex: 1; font-size: 16px; text-align: center; }
    .logo-mobile { display: block; width: 55px; flex-shrink: 0; }

    /* Menu hamburger */
    #nav { display: none; width: 100%; }
    #nav.open { display: block; animation: fadeIn 0.3s ease; }

    #nav ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px;
    }

    #nav a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        background: rgba(0,0,0,0.55);
        border-radius: 6px;
        font-size: 1rem;
    }

    /* Grille 2 colonnes sur tablette */
    .contenu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .section-actualites { grid-column: 1 / -1; }

    .bloc { padding: 15px; }
    .img-flyer { width: 90%; max-width: 350px; }
    .btn-action { font-size: 16px; }
    #pied, #maj, .compteur { text-align: center; }
    .bloc-partenaires img { width: 70%; max-width: 180px; }

    /* Clubs */
    .clubs-table { display: none; }
    .clubs-cards { display: block; max-width: 100%; }
    .clubs-table th, .clubs-table td { padding: 10px; font-size: 15px; }

    /* Charte */
    .bloc-charte iframe { height: 500px; }

    /* Eco */
    .bloc-eco { grid-template-columns: 1fr; }

    /* Calendrier */
    .cal-table  { display: none; }
    .calendar-cards { display: block; max-width: 100%; padding: 10px; }
    .cal-table th, .cal-table td { padding: 10px; }
    .cal-date { width: auto; }

    .btn-refresh { bottom: 80px; right: 15px; padding: 12px 15px; font-size: 0.9em; }

    /* Géolocalisation */
    .geoloc-banner { padding: 20px 15px; margin-bottom: 20px; }
    .geoloc-banner h2 { font-size: 1.3em; }
    .btn { padding: 12px 25px; font-size: 0.95em; }
    .search-container { flex-direction: column; }
    .next-event { padding: 20px 15px; }
    .event-info { grid-template-columns: 1fr; }
    #map { height: 300px; }

    /* Actualités */
    .actualites-container { max-height: 450px; }
    .actu-media { max-height: 300px; }
    .actu-title { font-size: 1.1em; }
    .actu-content { padding: 15px; font-size: 1em; }
    .bloc-actualites h3 { font-size: 1.3em; }
    .actualites-header { flex-direction: column; gap: 15px; align-items: stretch; }
    .btn-add-actu { padding: 10px 18px; font-size: 0.9em; width: 100%; text-align: center; }
}

/* ---- Smartphone paysage (orientation landscape ≤ 900px) ---- */
@media (max-width: 900px) and (orientation: landscape) {

    .contenu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .section-actualites { grid-column: 1 / -1; }

    /* Header compact */
    .haut-container { padding: 6px 12px; }
    .header-mobile-line .marquee { font-size: 14px; }
    .logo-mobile { width: 40px; }
    .hamburger { font-size: 26px; padding: 7px 12px; }

    /* Menu en 2 colonnes pour économiser la hauteur */
    #nav.open ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 10px;
    }

    #nav.open ul li { list-style: none; }
    #nav.open a { padding: 8px 0; font-size: 0.9rem; }

    .bloc { padding: 10px; }
    .actualites-container { max-height: 300px; }

    /* Inscription */
    .event-info-grid    { grid-template-columns: 1fr; gap: 20px; }
    .event-meta         { align-items: flex-start; text-align: left; }
    .event-header       { padding: 20px; }
    .event-title        { font-size: 1.5em; }
    .conditions-header  { padding: 20px; }
    .conditions-header h3 { font-size: 1.2em; }
    .conditions-content { padding: 20px; }
    .conditions-actions { flex-direction: column; }
    .btn-conditions     { width: 100%; }
    #haWidget           { height: 600px; }
}

/* ---- Smartphone portrait ≤ 600px ---- */
@media (max-width: 600px) {

    /* Grille 1 colonne */
    .contenu-grid { grid-template-columns: 1fr; gap: 10px; }

    .hamburger { font-size: 28px; }

    /* Contact */
    .contact-card a { word-break: break-word; overflow-wrap: break-word; }
    .contact-card p { text-align: center; }
    .contact-card   { min-height: auto; padding: 15px; }
    .contact-grid   { grid-template-columns: 1fr; gap: 15px; }

    .contact-form { padding: 15px; margin-top: 30px; }
    .contact-form input, .contact-form textarea { font-size: 16px; padding: 10px; }
    .contact-form button { width: 100%; padding: 12px; font-size: 18px; }

    h2 { font-size: 1.3rem; }

    /* Actualités */
    .actualites-container { max-height: 400px; }
    .actu-media { max-height: 250px; }
    .actu-header { flex-direction: column; align-items: flex-start; gap: 5px; }

    /* Plaquette */
    #plaquetteImg { width: 100%; height: auto; max-width: 280px; }

    /* Formulaire contact */
    .contenu-contact { padding: 20px; margin: 20px; }
    .contenu-contact h1 { font-size: 2em; }
}
