:root {
    --vert-principal: #2e7d32;
    --rose-energie: #e91e63;
    --fond-clair: #ffffff;
    --texte-fonce: #1a1a1a;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f5f7fb;
    color: #1a1a1a;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    overflow-x: hidden;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
}

p {
    font-weight: 450;
}

.container {
    width: min(1000px, 92%);
    margin: 0 auto;
    padding: 20px 0;
}


/* =======================
   MENU HAMBURGER
   =======================
   Menu fixe sur toute la page, qui s'ouvre/ferme au clic
*/
.menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(6px);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    transform: translateX(100%);  /* caché à droite */
    transition: transform 0.4s ease;
    
    z-index: 1000;
}

.menu a {
    color: white;
    font-size: 2.6em;
    text-decoration: none;
    margin: 18px;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.4s ease;
}

/* Animation quand le menu est ouvert */
.menu.open a {
    opacity: 1;
    transform: translateX(0);
}

/* Effet cascade */
.menu.open a:nth-child(1) { transition-delay: 0.1s; }
.menu.open a:nth-child(2) { transition-delay: 0.2s; }
.menu.open a:nth-child(3) { transition-delay: 0.3s; }

.menu a:hover {
    transform: scale(1.1);
    color: var(--vert-principal);
}

.menu.open {
    transform: translateX(0); /* visible quand .open est ajouté */
}

/* Bouton hamburger */
.menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 4px;
    margin: 6px 0;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
    background: var(--texte-fonce);
}

/* Animation hamburger -> croix */
.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* =======================
   HEADER PAGE D'ACCUEIL
   =======================
   Image de fond + texte centré
*/
.header-home {
    position: relative;
    text-align: center;
    padding: 120px 20px;
    color: white;
    background: 
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("images/header.png") center 80% / cover no-repeat;
}

.header-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* filtre sombre */
}

/* logo de la home */
.header-home img {
    max-width: 240px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 18px;  /* carré arrondi */
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    animation: fadeHero 1.2s ease;
    z-index: 1;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25); /* 👈 petit effet premium */
    background: white;
    padding: 12px;
    backdrop-filter: blur(4px);
}

/* titre et sous-titre */
.header-home h1 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    animation: fadeHero 1.2s ease;
    z-index: 1;
}

.header-home p {
    font-size: 1.6em;
    opacity: 0.9;
    max-width: 650px;
    margin: auto;
    position: relative;
    animation: fadeHero 1.2s ease;
    z-index: 1;
}

.header-home .menu-btn span {
    background: white;
}

/* =======================
   RESEAUX SOCIAUX
   ======================= */
.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    color: white;
    font-size: 18px;

    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Facebook */
.social-btn.facebook {
    background: #1877f2;
}

/* Instagram (dégradé stylé) */
.social-btn.instagram {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

/* Effet hover */
.social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.4),
                0 8px 18px rgba(0,0,0,0.3);
}

/* =======================
   BOUTONS CONTACT
   ======================= */
.cta {
    display: block;
    width: fit-content;
    margin: 25px auto 0 auto; /* centre horizontalement */
    padding: 14px 28px;
    
    background: linear-gradient(135deg, #d4af37, #f9d976); /* effet or */
    color: #222;
    
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
    
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    
    transition: all 0.3s ease;
}

.cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #f9d976, #d4af37); /* inversion effet */
}

.cta:active {
    transform: translateY(0) scale(0.98);
}

.cta i {
    margin-right: 8px;
}

.cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.cta:hover::after {
    left: 100%;
}


/* =======================
   CARTES
   ======================= */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.10);
    transition: all 0.25s ease;
    font-size: 18px;
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

.card.sponsors {
    width: 100%;
    max-width: none;
    margin: 40px 0;
    border-radius: 0;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ffffff, #f3f3f3);
    box-shadow: inset 0 0 60px rgba(0,0,0,0.05);
}

.card h2 {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 0.4px;
}

.card p {
    line-height: 1.6;
    font-size: 18px;
}

.logos {
    display: flex;
    justify-content: center;
}

.logos img {
    width: 100%;
    max-width: none; /* 💥 très important */
    border-radius: 20px;

    box-shadow: 
        0 25px 60px rgba(0,0,0,0.35),
        0 5px 15px rgba(0,0,0,0.15);

    transform: perspective(1000px) rotateX(2deg);
    transition: 0.4s;
}

.logos img:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.rencontre {
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    border: 2px solid #d4af37;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Titre */
.rencontre h2 {
    color: #f9d976;
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Date mise en avant */
.rencontre .date {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.rencontre .date span {
    display: block;
    font-size: 18px;
    color: #f9d976;
    margin-top: 5px;
}

/* Texte */
.rencontre .description {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
}

/* Petit effet lumière discret */
.rencontre::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(25deg);
}

/* Badge */
.badge-event {
    position: absolute;
    top: 15px;
    right: -40px;

    background: #e53935;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 50px;

    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    
    animation: pulse 2s infinite;
}

/* Version encore plus stylée au survol */
.rencontre:hover .badge-event {
    background: #c62828;
}

@keyframes pulse {
    0% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.05); }
    100% { transform: rotate(45deg) scale(1); }
}


/* =======================
   CONTACT
   ======================= */
.header-contact-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: auto;
    animation: fadeHero 1.2s ease;
}

.header-contact-content h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--rose-energie);
}

.header-contact-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.header-contact-content .cta {
    display: inline-block;
    padding: 14px 28px;
    background: var(--vert-principal);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.header-contact-content .cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeHero {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}


.header-contact .logo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.header-contact .logo img:hover {
    transform: scale(1.05);
}

.header-contact h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--rose-energie);
}

.header-contact p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.header-contact .cta {
    display: inline-block;
    padding: 14px 28px;
    background: var(--vert-principal);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.header-contact .cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 20px;
}

/* COLONNE GAUCHE */
.contact-info {
    flex: 1 1 350px;
    background: var(--fond-clair);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-info h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.name {
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 30px;
    font-size: 18px;
}

/* RESEAUX SOCIAUX */
.socials {
    display: flex;
    gap: 15px;
    justify-content: center; /* centre les boutons */
}

.social {
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    color: white;
    transition: all 0.25s;
}

.social:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.facebook { background:#1877f2; }
.instagram { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); }

/* COLONNE DROITE */
.contact-form {
    flex: 1 1 450px;
    background: var(--fond-clair);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.contact-form form {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--vert-principal);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
    transform: scale(1.02);
}

.contact-form button {
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--rose-energie);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
    background: var(--vert-principal);
}


/* =======================
   PHOTORAMA
   ======================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.grid img {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}   


/* =======================
   FOOTER
   ======================= */
footer {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(180deg,#ebe4d8,#e1d8c9);
    font-size: 0.95em;
    color: #555;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {

    .hero-content h1 {
        font-size: 26px;
    }

    .card {
        padding: 16px;
    }
}