/* ===============================================
   VARIABLES ET RESET
   =============================================== */
:root {
    /* Palette Bleu Lavande Élégant */
    --primary-color: rgb(168, 184, 230);        /* Bleu lavande doux */
    --secondary-color: #7b8fc7;      /* Bleu lavande plus profond */
    --accent-color: #c5d3f5;         /* Bleu lavande très clair */
    --text-color: #4a4a4a;           /* Gris anthracite doux */
    --light-bg: #f4f6fc;             /* Fond très pâle bleuté */
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(168, 184, 230, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1500px; /* limite la largeur sur grand écran */
    margin: 0 auto;
    padding: 0 20px;
}



/* ===============================================
   NAVIGATION
   =============================================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}
.navbar .nav-brand img {
    height: 140px; /* hauteur adaptée à la navbar */
    width: auto;
    display: block;
}
.navbar .nav-brand {
    height: 70px; /* hauteur de la barre */
    width: auto;
    overflow: hidden; /* coupe le bas du logo si trop grand */
    display: flex;
    align-items: center;
    background: none;
}
/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    position: relative;
    min-height: 100vh; /* hauteur relative à la fenêtre */
    height: auto;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: 300px auto;
    background-position: 30px 30px;
}

.hero-image {
    width: 100%;
    max-height: 900px;
    object-fit: cover;
    object-position: top center; /* met le haut de l'image en priorité */
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 100%;
    max-height: 100%;
    align-items: left;
}


.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: relative;
    position: relative;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.05);
    z-index: 3;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
}

.deroule-photo {
    position: absolute;
    top:130px;
    right: 50px;
    bottom: 10px;
    width: 300px;      /* ajuste la taille selon tes besoins */
    height: auto;
    z-index: 100;
    border-radius: 10px; /* optionnel, coins arrondis */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* optionnel, ombre */
}

.pratique-photo {
    position: absolute;
    top:130px;
    right: 50px;
    bottom: 10px;
    width: 215px;      /* ajuste la taille selon tes besoins */
    height: auto;
    z-index: 100;
    border-radius: 10px; /* optionnel, coins arrondis */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* optionnel, ombre */
}
.confirmation-photo {
    position: absolute;
    top:130px;
    right: 50px;
    bottom: 10px;
    width: 215px;      /* ajuste la taille selon tes besoins */
    height: auto;
    z-index: 100;
    border-radius: 10px; /* optionnel, coins arrondis */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* optionnel, ombre */
}

.galerie-photo {
    position: absolute;
    top:130px;
    right: 50px;
    bottom: 10px;
    width: 230px;      /* ajuste la taille selon tes besoins */
    height: auto;
    z-index: 100;
    border-radius: 10px; /* optionnel, coins arrondis */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* optionnel, ombre */
}

.cadeaux-photo {
    position: absolute;
    top:-180px;
    right: 50px;
    bottom: 10px;
    width: 230px;      /* ajuste la taille selon tes besoins */
    height: auto;
    z-index: 100;
    border-radius: 10px; /* optionnel, coins arrondis */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* optionnel, ombre */
}

.qrcode {
    object-fit: relative;
    position: relative;
}
/* ===============================================
   INFORMATIONS PRINCIPALES (Accueil)
   =============================================== */
.main-info {
    position: relative;
    z-index: 20;
    margin-top: 20px;
    padding: 60px 0;
    background: var(--white);
    margin-bottom: 32px;  /* espace externe ajouté en bas */
}

.main-info .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    grid-auto-rows: 1fr;
    box-sizing: border-box;
}

.main-info .container2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
    grid-auto-rows: 1fr;
    box-sizing: border-box;
}
.main-info .container3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    grid-auto-rows: 1fr;
    box-sizing: border-box;
}
.info-card {
    position: relative; /* important : pas absolute */
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    margin: 0;
    padding: 24px;
    z-index: 1;

     /* centrer verticalement et horizontalement le contenu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* s'assurer que la carte prend toute la hauteur de la grille */
    height: 100%;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card img {
    margin-bottom: 12px;
    display: block;
}

.info-card h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.info-card p {
    text-align: center;
}

.date-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.location-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* ===============================================
   MESSAGE DE BIENVENUE
   =============================================== */
.welcome-message {
    padding: 80px 0;
    background: var(--light-bg);
    text-align: center;
}

.welcome-message h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.welcome-message p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 3rem auto;
    line-height: 1.2;
}

/* ===============================================
   HEADER DE PAGE
   =============================================== */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    font-style: italic;
}

.page-header .container {
    position: relative;
    padding-right: 360px; /* réserve de l'espace pour l'image sur grand écran */
    display: flex;
    align-items: center;    
}

.page-header .container img {
  width: relative;   /* occupe toute la largeur du container */
  height: auto;  /* garde les proportions */
  display: block;
  object-fit: cover;
}

.page-header .deroule-photo {
    position: absolute;
    right: 0;                 /* aligne sur le bord droit intérieur du container */
    top: 50%;                 /* ajuste verticalement */
    transform: translateY(-50%); /* centre verticalement par rapport au header */
    width: 280px;             /* taille sur grand écran - ajuste si besoin */
    max-width: 35%;           /* pour rester responsive */
    height: auto;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* image alignée à droite du container (desktop) */
.page-header .pratique-photo {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;        /* ajuster si nécessaire */
    max-width: 35%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 10;
    display: block;
}
.page-header .confirmation-photo {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 210px;        /* ajuster si nécessaire */
    max-width: 35%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 10;
    display: block;
}
.page-header .galerie-photo {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 210px;        /* ajuster si nécessaire */
    max-width: 35%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 10;
    display: block;
}
.page-header .cadeaux {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 210px;        /* ajuster si nécessaire */
    max-width: 35%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 10;
    display: block;
}
/* ===============================================
   TIMELINE (Déroulé)
   =============================================== */
.timeline {
    padding: 80px 0;
    background: var(--white);
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #ddd;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-time {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: right;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.timeline-content p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.location-small {
    color: #666;
    font-style: italic;
}

/* ===============================================
   SECTIONS PRATIQUES
   =============================================== */
.practical-section {
    padding: 80px 0;
}

.bg-light {
    background: var(--light-bg);
}

.practical-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.section-introleft {
    text-align: left;
    font-size: 1.2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: #666;
}

.accommodation-grid,
.transport-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.accommodation-card,
.transport-card,
.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.accommodation-card h3,
.transport-card h3,
.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.accommodation-distance {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.info-note {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===============================================
   INFO BOX
   =============================================== */
.info-box,
.additional-info {
    padding: 60px 0;
}

.info-box {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.info-box h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===============================================
   CARTE
   =============================================== */
.map-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.map-container {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===============================================
   FORMULAIRE
   =============================================== */
.form-section {
    padding: 80px 0;
    background: var(--white);
}

.confirmation-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label span {
    font-weight: normal;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* ===============================================
   CTA - encadré final
   =============================================== */
.cta-final {
    text-align: center;
    margin-top: 2rem;            /* moins d'espace au-dessus */
    padding: 0.6rem 1rem;        /* réduit la hauteur interne */
    background: var(--light-bg);
    border-radius: 10px;
}

.cta-final h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;          /* police légèrement plus petite */
}

.cta-final .cta-text {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: inherit;
}
/* bouton : réduit l'espacement vertical à l'intérieur du CTA */
.cta-final .btn-primary {
    margin-top: 0.25rem;
    padding: 0.45rem 0.9rem;
}
/* ===============================================
   BOUTONS
   =============================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Georgia', serif;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    margin-top: 10%;
    width: 50%;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* ===============================================
   RESPONSIVE 
   =============================================== */
/* Tablettes / petits ordinateurs */
@media (max-width: 1024px) {
    .hero { min-height: 50vh; background-size: 220px auto; background-position: 20px 20px; }
    .hero-content h1 { font-size: 3rem; }
    .deroule-photo,
    .pratique-photo,
    .qrcode,
    .confirmation-photo,
    .galerie-photo { right: 20px; bottom: 20px; width: 220px; }
    .container { padding: 0 16px; }
    .container2 { padding: 0 16px; max-width: 100%; grid-template-columns: 1fr;}
    .main-info.container3 { padding: 10px;max-width: 100%;grid-template-columns: 1fr;}
    .page-header .container { padding-right: 200px; }
    .page-header h1 {margin-left: 6%; margin-right: 20%;}
    .page-header .pratique-photo {
        position: absolute;
        transform: translateY(-50%)scale(1.3);
        height: auto;
        object-fit: cover;
    }
    .page-header .confirmation-photo {
        position: absolute;
        transform: translateY(-50%)scale(1.5);
        height: auto;
        object-fit: cover;
    }
    .page-header .deroule-photo {
        position: absolute;
        transform: translateY(-50%) scale(1.3) translateX(5%);
        object-fit: cover;
        height: auto;
    }
    .page-header .galerie-photo {
          position: absolute;
        transform: translateY(-50%) scale(1.3) translateX(5%);
        object-fit: cover;
        height: auto;
    }
    .page-header .cadeaux-photo {
          position: absolute;
        transform: translateY(20%) scale(1.3) translateX(10%);
        object-fit: cover;
        height: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem 0;
        text-align: center;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-time {
        text-align: left;
    }

    .confirmation-form {
        padding: 2rem 1rem;
    }

    .accommodation-grid,
    .transport-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .page-header .container { padding-right: 0; }
    .page-header .pratique-photo {
        position: static;
        transform: none;
        display: block;
        margin: 16px auto 0;
        width: 80%;
        max-width: 260px;
    }
     .page-header .confirmation-photo {
        position: static;
        transform: none;
        display: block;
        margin: 16px auto 0;
        width: 80%;
        max-width: 260px;
    }
     .page-header .galerie-photo {
        position: static;
        transform: none;
        display: block;
        margin: 16px auto 0;
        width: 80%;
        max-width: 260px;
    }
    .page-header .cadeaux-photo {
        position: static;
        transform: none;
        display: block;
        margin: 16px auto 0;
        width: 80%;
        max-width: 260px;
    }
    .main-info .container {
        grid-template-columns: 1fr;
        gap: 16px;
        grid-auto-rows: auto;
    }
    .main-info .container2 {
        grid-template-columns: 1fr;
        gap: 16px;
        grid-auto-rows: auto;
    }
     .main-info .container3 {
        grid-template-columns: 1fr;
        gap: 16px;
        grid-auto-rows: auto;
    } 
}
/* Mobiles (smartphones) */
@media (max-width: 768px) {
    /* Navbar : burger visible (déjà prévu) et espacement réduit */
    .navbar .container { padding: 0.6rem 12px; }

    /* Hero plus court pour mobile, contenu aligné à gauche */
    .hero { min-height: 50vh; background-size: 180px auto; background-position: 12px 12px; }
    .hero-content {
        left: 12%;
        top: 45%;
        transform: translateY(-45%);
        text-align: left;
    }
    .hero-content h1 { font-size: 2.2rem; }

    /* Images flottantes deviennent éléments du flux pour éviter chevauchement */
    .deroule-photo,
    .qrcode,
    .pratique-photo,
    .confirmation-photo,
    .cadeaux-photo
    .galerie-photo {
        position: static;
        display: block;
        margin: 16px auto;
        width: 80%;
        max-width: 220px;
    }
    /* Rendre les grilles single-column */
    .main-info .container {
        grid-template-columns: 1fr;
        gap: 16px;
        grid-auto-rows: auto;
    }
    .main-info .container2 {
        grid-template-columns: 1fr;
        gap: 16px;
        grid-auto-rows: auto;
    }
     .main-info .container3 {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 10px;
    }
    .accommodation-grid,
    .transport-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
     .info-card {
        width: 100%;
        padding: 18px;
    }
    .welcome-message {
        margin-top: 20px;
    }
    .main-info { 
        margin-bottom: 24px; 
    }
    .page-header .container {
        position: relative;
        padding-right: 100px; /* ajuste selon la largeur de l'image */
    }
    /* placer la photo à droite, verticalement centrée par rapport au header */
    .page-header .deroule-photo {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-70%) scale(2.0) translateX(5%);
        width: 100px;        /* taille sur mobile — ajuste si besoin */
        max-width: 35%;
        height: auto;
        z-index: 10;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        display: block;
    }

    .page-header .pratique-photo {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-60%)scale(2);
        width: 220px;        /* largeur réduite sur desktop */
        max-width: 28%;      /* limite responsive */
        height: auto;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        z-index: 10;
        display: block;
    }
    .page-header .confirmation-photo {
        position: absolute;
        right: 3px;
        top: 50%;
        transform: translateY(-60%)scale(1.6);
        width: 220px;        /* largeur réduite sur desktop */
        max-width: 28%;      /* limite responsive */
        height: auto;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        z-index: 10;
        display: block;
    }
    .page-header .galerie-photo {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-65%)scale(1.8)translateX(15%);
        width: 220px;        /* largeur réduite sur desktop */
        max-width: 28%;      /* limite responsive */
        height: auto;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        z-index: 10;
        display: block;
    }
    .page-header .cadeaux-photo {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-65%)scale(1.8)translateX(15%);
        width: 220px;        /* largeur réduite sur desktop */
        max-width: 28%;      /* limite responsive */
        height: auto;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        z-index: 10;
        display: block;
    }
    /* optionnel : assurer une hauteur suffisante du header */
    .page-header {
         text-align: left;
        padding-left: 16px;
        padding-right: 16px;
    }
    .page-header h1 {
        font-size: 1.6rem; /* réduit "Voici le programme" */
        line-height: 1.15;
        margin-bottom: 0.5rem;
        margin-left: -5%;
        margin-right: 30%;
    }
    .page-header p {
        font-size: 1rem;
    }
    .cta-final {
        margin-top: 1.2rem;
        padding: 0.5rem 0.8rem;
    }
    .cta-final h3 { font-size: 1rem; }
    .cta-final .cta-text { font-size: 0.95rem; }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .hero { min-height: 45vh; background-size: 140px auto; background-position: 10px 10px; }
    .hero-content h1 { font-size: 1.8rem; }
    .nav-menu a { padding: 0.8rem 0; font-size: 0.95rem; }
    .btn-primary { width: 100%; margin-top: 1rem; }
}

/* ===============================================
   GALERIE PHOTOS
   =============================================== */

/* Section Upload */
.upload-section {
    padding: 60px 0;
    background: var(--white);
}

.upload-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.upload-box h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: 10px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light-bg);
}

.upload-area:hover {
    background: #fff;
    border-color: var(--secondary-color);
}

.upload-area.drag-over {
    background: var(--primary-color);
    opacity: 0.1;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.upload-subtext {
    color: #666;
    font-size: 1rem;
}

.upload-message {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.upload-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Aperçu des photos */
.preview-container {
    margin-top: 2rem;
}

.preview-container h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.preview-remove:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Galerie */
.gallery-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.gallery-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gallery-count {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.btn-view {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-caption {
    text-align: center;
    color: #ccc;
    padding: 1rem;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

/* Info Section */
.info-section {
    padding: 60px 0;
    background: var(--white);
}

/* Responsive Galerie */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .modal-prev,
    .modal-next {
        padding: 0.5rem 1rem;
        font-size: 1.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 3rem;
    }

    /* Google Photos Integration */
    .google-photos-section {
        padding: 80px 0;
        background: var(--white);
    }

    .google-photos-header {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }

    .google-photos-header h2 {
        color: var(--secondary-color);
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .google-photos-header p {
        font-size: 1.2rem;
        color: #666;
        margin-bottom: 2rem;
    }

    .google-photos-embed {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: var(--shadow);
        margin: 2rem 0;
    }

    .google-photos-embed iframe {
        min-height: 600px;
    }

    .gallery-info {
        text-align: center;
        color: #666;
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }

    @media (max-width: 768px) {
        .google-photos-embed iframe {
            min-height: 400px;
        }
    }
}

