/* ==========================================================================
   1. VARIABLES & MISE EN FORME GÉNÉRALE
   ========================================================================== */
body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

body.loaded {
    opacity: 1;
}

header, footer, .cookie-consent {
    color: #fff;
}

/* ==========================================================================
   2. HEADER & EFFETS (PARALLAX + GRADIENT)
   ========================================================================== */
header {
    position: relative;
    overflow: hidden;
    height: 80vh;
    display: flex;
    justify-content: center; 
    align-items: center;
    background-color: #e6b823;
    background-image: url('pictures/wallpaper.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed; /* Parallaxe natif PC */
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
    z-index: 1;
    pointer-events: none;
}

.header-center {
    text-align: center;
    color: #5a4a1a;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
    overflow: hidden;
}

.header-center, .contact-grid, .calendar-container, .contact-siege-grid {
    transform: translateY(20px);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    opacity: 0;
}

body.loaded .header-center,
body.loaded .contact-grid,
body.loaded .calendar-container,
body.loaded .contact-siege-grid {
    transform: translateY(0);
    opacity: 1;
}

.header-center h1,
.header-center h2,
.header-center h3 {
    position: relative;
    z-index: 2;
    margin: 10px 0;
}

.bienvenue {
    font-family: 'Georgia', serif;
    font-size: 3rem;
    color: #5a4a1a;
}

.fleur-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    max-width: 100vw;
    overflow: hidden;
    padding: 0 10px;
    box-sizing: border-box;
    height: 450px;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.fleur-bg svg {
    width: 100%;
    height: auto;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   3. NAVIGATION (MENU)
   ========================================================================== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    background-color: transparent;
    box-sizing: border-box;
}

#main-nav.scrolled {
    background-color: #4a4a4a !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    padding: 10px 50px;
}

/* Couleurs du Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo h4 {
    margin: 0;
    font-size: 18px;
    color: #5a4a1a;
    font-family: 'Georgia', serif;
    font-weight: 500;
    font-style: italic;
    white-space: nowrap;
    transition: color 0.4s;
}

/* Liens du Menu */
.nav-links a {
    position: relative;
    padding-bottom: 5px;
    margin-left: 20px;
    text-decoration: none;
    color: #5a4a1a;
    font-family: 'Georgia', serif;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

/* Soulignement page active */
.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #5a4a1a;
    border-radius: 2px;
}

/* Adaptations quand on scroll */
#main-nav.scrolled .nav-links a,
#main-nav.scrolled .nav-logo h4 {
    color: #fff !important;
}

#main-nav.scrolled .nav-links a.active::after {
    background-color: #ffffff;
}

#main-nav.scrolled .nav-links a:hover {
    color: #e6b823 !important; /* Doré au survol quand menu sombre */
}

/* ==========================================================================
   4. SECTIONS & TYPOGRAPHIE
   ========================================================================== */
section {
    position: relative;
    z-index: 2;
    padding: 80px 10%;
    text-align: center;
    background-color: #ffffff;
}

h1 {
    font-size: 90px;
    font-family: 'Georgia', serif;
    color: #5a4a1a;
    margin: 30px 0 40px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 60px;
    font-family: 'Georgia', serif;
    color: #5a4a1a;
    margin: 30px 0 40px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h3 { font-size: 32px; font-weight: lighter; font-family: 'Georgia', serif; color: #5a4a1a; }

.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    width: 100%;
}

.separator svg {
    width: 40px;
    height: 40px;
    opacity: 0.85;
    transition: transform 0.5s ease;
}

.separator:hover svg {
    transform: scale(1.1);
}

/* INDEX */

.about h3 {
    font-family: 'Georgia', serif;
    color: #5a4a1a;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0e6c1;
    display: inline-block;
    padding-bottom: 5px;
}

.about h4 {
    font-size: 24px;
    line-height: 1.8;
    color: #5a4a1a;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 300;
    font-style: italic;
}

.about h4 a {
    color: inherit;
    text-decoration: none;
    font-style: inherit;
    font-weight: inherit;
    font-style: normal;
    margin-top: 0;
    border-bottom: 1px solid #f0e6c1;
    display: inline-block;
}

.about h4 a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* PAGE LES DIVINES  */

.profile-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.profile-card.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.profile-image img {
    height: 300px;
    width: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgb(0, 0, 0);
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: translateY(-5px);
}

.profile-text h3 {
    font-family: 'Georgia', serif;
    color: #5a4a1a;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0e6c1;
    display: inline-block;
    padding-bottom: 5px;
}

.profile-text p {
    position: relative;
    font-style: italic;
    padding: 0 10px;
    font-size: 24px;
    line-height: 1.6;
    color: #5a4a1a;
}

.profile-text p::before {
    content: "\201C";
    font-family: "Georgia", serif;
    font-size: 50px;
    color: #c59c14;
    line-height: 0;
    vertical-align: -20px;
    margin-right: 5px;
}

.profile-text p::after {
    content: "\201D";
    font-family: "Georgia", serif;
    font-size: 50px;
    color: #c59c14;
    line-height: 0;
    vertical-align: -20px;
    margin-left: 5px;
}

.profile-text a {
    color: inherit;
    text-decoration: none;
    font-style: inherit;
    font-weight: inherit;
}

.profile-text a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* PAGE EVENEMENTS */

.events p {
    text-align:center;
}

.event-text a {
    color: inherit;
    text-decoration: none;
    font-style: inherit;
    font-weight: inherit;
}

.event-text a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.events h3 {
    font-family: 'Georgia', serif;
    color: #5a4a1a;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0e6c1;
    display: inline-block;
    padding-bottom: 5px;
}

.event-text p {
    position: relative;
    font-style: italic;
    padding: 0 10px;
    font-size: 30px;
    line-height: 1.6;
    color: #5a4a1a;
}

.calendar-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0e6cc;
    transition: background-color 0.3s;
}

.event-row:hover {
    background-color: rgba(255, 232, 156, 0.1);
}

.event-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.event-date {
    font-weight: bold;
    font-family: 'Georgia', serif;
    color: #c59c14;
    font-size: 24px
}

.event-title {
    font-style: italic;
    font-family: 'Georgia', serif;
    font-size: 24px;
    color: #5a4a1a;
}

.btn-inscription {
    display: inline-block;
    background-color: #d4af37;
    font-family: 'Georgia', serif;
    color: white;
    border: none;
    text-decoration: none !important;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-inscription:hover {
    background-color: #b8962d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgb(212, 175, 55);
}

.btn-inscription.complet {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.location-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: stretch;
    padding: 0 20px;
}

.location-container iframe {
    border: 0;
}

.location-container h3 {
    font-size: 30px;
    font-family: 'Georgia', serif;
    font-weight: 100;
}

.location-photo {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-photo img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.location-details {
    padding: 20px 0;
}

.location-details h4 {
    color: #c59c14;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.location-map {
    flex: 1;
}

.location-map h1 {
    font-size: 30px;
    font-family: 'Georgia', serif;
    font-weight: 100;
}

.location-map h4 {
    font-size: 24px;
    font-family: 'Georgia', serif;
    font-weight: 100;
    color: #5a4a1a;
}

.location-map h5 {
    font-size: 20px;
    font-family: 'Georgia', serif;
    font-weight: 100;
    color: #5a4a1a;
}

.location-map iframe {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 50%;
    min-height: 200px
}

.form-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.divine-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 15px;
}

.divine-form input, .divine-form select, .divine-form textarea {
    padding: 12px;
    border: 1px solid #ffe89c;
    border-radius: 8px;
    font-family: inherit;
}

.divine-form label {
    color: #5a4a1a;
    font-weight: bold;
}

/* PAGE CONTACT */

.contact-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin: 40px 0;
    text-align: center;
}

.contact-form-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-form-container h3 {
    font-family: 'Georgia', serif;
    color: #5a4a1a;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0e6c1;
    display: inline-block;
    padding-bottom: 5px;
}

.contact-form-container h4{
    font-family: 'Georgia', serif;
    color: #5a4a1a;
    margin-top: 0;
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
}

.checkbox-container {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #5a4a1a;
    max-width: 400px;
    line-height: 1.2;
}

.checkmark {
    min-width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid #c59c14;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    box-shadow: 0 0 8px rgba(197, 156, 20, 0.3);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #c59c14;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox input:checked ~ .checkmark {
    transform: scale(1.1);
}

.info-item {
    margin-bottom: 25px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c59c14;
    margin-bottom: 5px;
}

.contact-form-container a {
    font-size: 1.1rem;
    color: #444;
    transition: color 0.3s;
}

.contact-form-container a:hover {
    color: #c59c14;
    text-decoration: none;
}

.insta-icon {
    height: 40px;
    margin-top: 10px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
}

.insta-icon:hover {
    transform: scale(1.1);
}

.divine-form input,
.divine-form select,
.divine-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    outline-color: #d4af37;
    box-sizing: border-box;
}

.divine-form textarea {
    resize: vertical;
}

.btn-submit {
    background-color: #d4af37;
    font-family: 'Georgia', serif;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #b8962d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgb(212, 175, 55);
}

.contact-infos {
    padding-top: 20px;
}

.contact-infos h3 {
    font-family: 'Georgia', serif;
    margin-bottom: 20px;
}

.contact-infos p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

.contact-infos a {
    color: inherit;
    text-decoration: none;
    font-style: inherit;
    font-weight: inherit;
}

.contact-infos a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.social-links {
    margin-top: 30px;
}

.contact-siege-grid {
    display: grid;
    grid-template-columns: 1.2fr;
    gap: 40px;
    margin: 40px auto;
    text-align: center;
}

.contact-siege-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.contact-siege-container h3 {
    font-family: 'Georgia', serif;
    color: #5a4a1a;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0e6c1;
    display: inline-block;
    padding-bottom: 5px;
}

.contact-siege-container h4{
    font-family: 'Georgia', serif !important;
    color: #5a4a1a !important;
    margin-top: 0;
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
}

/* PAGE MERCI */


/* ==========================================================================
   5. CONTACT & GALERIE
   ========================================================================== */
.contact-container {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 40px;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-container img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    /* Menu mobile */
    #main-nav {
        padding: 15px 20px;
        flex-direction: row; /* Logo et Burger sur la même ligne */
    }

    #main-nav.scrolled, #main-nav.mobile-active-background {
        background-color: rgba(74, 74, 74, 0.98) !important;
    }

    .nav-links {
        display: none; /* Caché par défaut */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(74, 74, 74, 0.98);
        padding: 20px 0;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0;
        color: white !important;
    }

    /* Bouton Burger */
    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 1001;
    }

    .burger-menu span {
        width: 25px;
        height: 3px;
        background-color: #5a4a1a;
        transition: 0.3s;
    }

    #main-nav.scrolled .burger-menu span,
    .burger-menu.active span {
        background-color: #fff;
    }

    /* Animation Burger en X */
    .burger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Ajustements tailles de texte mobile */
    header { height: 60vh; background-attachment: scroll; }
    h1 { font-size: 40px}
    h2 { font-size: 36px; }
    h3 { font-size: 22px; }
    .about h4 { font-size: 18px; }
    .contact-container { flex-direction: column; gap: 40px; }

    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-card.reverse {
        flex-direction: column;
        text-align: center
    }

    .event-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .event-info {
        text-align: center;
    }

    .location-container {
        flex-direction: column;
    }

    .location-map iframe {
        min-height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-siege-grid {
        grid-template-columns: 1fr;
    }

    .contact-infos {
        text-align: center;
        border-top: 1px solid #f0e6c1;
        padding-top: 30px;
    }

    .contact-form-container {
        padding: 25px;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner p {
        padding-right: 0;
        margin-bottom: 10px;
    }
}

/* Styles pour écrans larges uniquement */
@media (min-width: 769px) {
    .burger-menu {
        display: none;
    }
}

@keyframes slowRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.fleur-bg {
    animation: slowRotate 60s linear infinite;
}

/* ==========================================================================
   7. FOOTER & COOKIES
   ========================================================================== */
footer {
    background: linear-gradient(to bottom, #ffffff, #ffe89c);
    padding: 60px 20px;
    text-align: center;
    color: #5a4a1a;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(40, 40, 40, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    padding-right: 20px;;
}

.cookie-button {
    background-color: #c59c14;
    color: white;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 20px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.cookie-button:hover {
    background: #a38110;
}