/* --- VARIABLES ET RESET --- */
:root {
    /*--primary: #c6a769;marron*/
    --primary: #415E87; /* bleu*/
    /*--primary-dark: #b99249;*/
    --primary-dark: #415E87;
    --dark: #1f1f1f;
    --light: #f8f6f2;
    --beige-bg: #F5F5DC;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
    --transition: 0.3s ease;
    --sticky-offset: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   LOCK SCREEN
========================= */

#access-popup {
    position: fixed;
    inset: 0;
    background:
        rgba(20,20,20,0.82);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.logo{
    width:100px;
    text-align:center;
}

.access-box {
    width: min(90%, 420px);
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.25);
}

.access-box h2 {
    margin-bottom: 15px;
}

.access-box p {
    margin-bottom: 25px;
    line-height: 1.5;
}

#access-password {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 1rem;
    margin-bottom: 15px;
}

#access-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 100px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

#access-error {
    margin-top: 15px;
    color: #d62828;
    display: none;
}

.locked {
    height: 100vh;
    overflow: hidden;
}


body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    background:var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, .share-title {
    font-family: 'Great Vibes', 'Comic Sans MS', cursive;
    letter-spacing: 2px;
}

h2 {
    text-align: center;
    text-align: center;
    font-size: 40px;
    font-weight:100;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.icon{
    font-size: 30px;
    width: 60px;
    padding: 10px 0;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.info-line{
    display:flex;
    align-items:center;
    gap:6px;
}

/* --- LAYOUT & CONTAINERS --- */
section {
    padding: 0;
    scroll-margin-top: calc(var(--sticky-offset) + 0px);
}

.container {
    max-width: 1100px;
    margin: auto;
}

.containercolor {
    padding: 40px;
    width: 100%;
    background: var(--primary-dark);
    color: var(--white);
}

.containercolor a{
    color:var(--white);
    text-decoration:underline;
}

.containercolor2 {
    padding: 40px;
    width: 100%;
    background: var(--white);
}

.flexcenter {
    display: flex;
    justify-content: center;
}

.sticky {
    width: 100%;
    margin: auto;
    position:sticky;
    top:0px;
    z-index: 5;
    background: none;
    backdrop-filter:blur(6px);
    padding: 5px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.sticky a.btn {
    padding: 5px 10px !important;
    background: var(--primary);
    text-decoration:none !important;
    border:1px solid var(--white);
    font-family:'Cormorant Garamond', cursive;    
    font-size:20px;
    letter-spacing: 2px;

}

.boxed {
    max-width: 800px;
    width: 100%;
    display: grid;
    gap: 10px;
    padding: 20px 25px;
    border-radius: 28px;
    box-shadow: 0 0 60px rgba(0,0,0,.2);
    margin: auto;
}

/* --- HERO SECTION --- */
.hero {
    height: calc(100dvh - var(--sticky-offset));
    display: flex;
    position: relative;
    overflow: hidden;
}

.hero-img-double {
    width: 50%;
    object-fit: cover;
    transition: transform 6s;
}
.hero-img-unique {
    width: 100%;
    object-fit: cover;
    transition: transform 6s;
}

.hero-img-double:hover, .hero-img-unique:hover {
    transform: scale(1.08);
}

.hero-title {
    font-size: clamp(20px, 8vw, 60px);
    margin:0 auto;
    line-height:2;
    word-break:break-word;  
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    max-width:90%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-family: 'Great Vibes', 'Comic Sans MS', cursive;
    background: color-mix(in srgb, var(--primary-dark), transparent 60%);
    padding: 0 30px 0 30px;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 2;
}

/* --- FAQ --- */
.faq-item {
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 10px 20px;
}

.faq-item .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-content {
    max-height: 1000px;
    margin-top: 15px;
}

.faq-content h3 { margin: 15px 0 5px; font-size:15px; }
.faq-content ul { padding-left: 20px; }

/* POPUP FORMULAIRE RSVP*/
.rsvp-box{
    text-align:center;
}

.btn-rsvp{
    background:var(--white);
    margin-top:20px;
    color:var(--primary);
    border:none;
    padding:14px 28px;
    font-size:30px;
    font-family: 'Great Vibes', 'Comic Sans MS', cursive;
    border-radius:100px;
    cursor:pointer;
    transition:0.3s;
}

.btn-rsvp:hover{
    transform:translateY(-2px);
}

.modal-rsvp{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.65);
    backdrop-filter:blur(4px);
}

.modal-content-rsvp{
    position:relative;
    width:95%;
    max-width:800px;
    height:90%;
    margin:2% auto;
    background:var(--white);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,0.3);
}

.close-rsvp{
    position:absolute;
    top:10px;
    right:18px;
    font-size:34px;
    cursor:pointer;
    z-index:10;
    color:var(--white);
    background:var(--primary);
    border-radius:50%;
    padding: 0 15px;
}

/* iframe */
.modal-content-rsvp iframe{
    width:100%;
    height:100%;
    border:none;
}

/* mobile */
@media(max-width:768px){
    .modal-content-rsvp{
        width:100%;
        height:100%;
        margin:0;
        border-radius:0;
    }
}


/* --- CONTACTS & CARTES --- */
.container-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contact-card {
    background: var(--white);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-photo img {
    width: 100px;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    margin-right:10px;
}

.contact-infos {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.contact-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color:var(--primary);
}

.contact-role {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 18px;
}

/* --- BOUTONS --- */
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.btn-call, .btn-mail, .btn-wa, .btn-sms { background: var(--primary); text-decoration:none !important;border:1px solid var(--white)}
.btn-mailxx { background: var(--white); color: var(--primary) !important; text-decoration:none !important; border:1px solid var(--primary)}
.btn-waxx   { background: #25D366; text-decoration:none !important;}
.btn-smsxx  { background: #ffb020; color: var(--primary) !important; text-decoration:none !important;}

.contact-toggle-group{
    border:1px solid var(--primary);
    border-radius:18px;
}
.contact-toggle{
    width:100%;
    padding:12px 18px;
    border:none;
    border-radius:100px;
    background:var(--white);
    color:var(--primary);
    font-size:.95rem;
    font-weight:600;
    cursor:pointer;
    display:flex;
    flex-direction:row-reverse;
    align-items:center;
    justify-content:left;
    gap:10px;
    transition:
        background .3s ease,
        transform .3s ease;
}

.contact-chevron{
    display:flex;
    align-items:center;
    justify-content:center;
    width:16px;
    height:16px;
    font-size:.75rem;
    line-height:1;
    transition:transform .3s ease;
}

.contact-card.open .contact-chevron{
    transform:rotate(180deg);
}

.contact-actions-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.45s ease,
        opacity 0.35s ease,
        margin-top 0.35s ease;
    margin-top: 0;
}

.contact-card.open .contact-actions-wrapper {
    max-height: 300px;
    opacity: 1;
    margin: 10px;
}

/* --- FORMULAIRES --- */
form {
    max-width: 600px;
    margin: auto;
    text-align:center;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

button {
    background: var(--white);
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size:0.95rem;
}

/* --- GALERIE PHOTO --- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin:20px;
}

/* Style Polaroid */
.gallery figure {
    background: var(--white);
    padding: 15px;
    padding-bottom: 0;
    /*box-shadow: 0 4px 10px rgba(0,0,0,0.2);*/
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.9s ease;
    display: flex;
    flex-direction: column;
    
    --rotate: -5deg;
    --translateY: 0px;
    transform: rotate(var(--rotate)) translateY(var(--translateY));
}

.gallery figure:hover {
    transform: scale(1.15) rotate(var(--rotate)) translateY(var(--translateY));
    --rotate: 0deg!important;
    z-index:99;
}

.gallery figure:nth-child(even) {
    --rotate: 5deg;
}

.gallery figure:nth-child(3n) {
    --rotate: -5deg;
    --translateY: 5px;
}

.gallery figure:nth-child(4n) {
    --rotate: 5deg;
    --translateY: -5px;
}

/* Image */
.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio:1/1;
    object-fit: cover;
    border: 1px solid #ddd;
}

/* Légende manuscrite */
.gallery figcaption {
    margin: 10px 0;
    font-size: 25px;
    font-weight:600;
    letter-spacing: 0.5px;
    line-height: 0.9;
    transform: rotate(-0.5deg);
    color: var(--primary);
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    min-height: 80px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

/* --- ESPACE PARTAGE (PREMIUM) --- */
.premium-share {
    text-align: center;
    padding: 20px 25px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
    margin: auto;
}

.share-title {
    font-size: 40px;
    color: var(--primary-dark);
}

.pulse {
    font-size: 3rem;
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.countdown-box {
    display: inline-block;
    padding: 16px 26px;
    border-radius: 18px;
    font-size: 1.3rem;
}

.soon-box {
    background: color-mix(in srgb, var(--primary-dark), transparent 80%);
    color: var(--primary-dark);
}

.live-box {
    background: var(--primary-dark);
    color: var(--white); 
}

.premium-btn {
    display: inline-block;
    padding: 18px 34px;
    border-radius: 100px;
    background: var(--primary-dark);
    color: var(--white);
}

/* --- MAP & FOOTER --- */
.map {
    padding:20px 10px;
    background: var(--primary);
}
.map iframe {
    width: 100%;
    min-height: calc(100dvh - var(--sticky-offset) - 40px);
    border-radius:20px;
    border: 0;
    display: block;
    scroll-margin-top:calc(var(--sticky-offset) + 10px);
    box-shadow: 0 0 60px rgba(0,0,0,.2);
}

.iframe-wrapper {
    width: 100%;
    height: 90vh;
}
.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer {
    padding: 20px;
    max-width:800px;
    background: var(--primary);
    border-radius: 40px 40px 0 0;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-around;
    align-items: center;
}

.footer p {
    opacity: 0.9;
    letter-spacing: 2px;
}

.signature {
    font-family: 'Great Vibes', 'Comic Sans MS', cursive;
    font-size: 30px;
    opacity: 0.8;
}

.btn-acces-prive {
    display: inline-block;
    padding: 12px 24px;
    background: var(--white);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-acces-prive:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* --- UI ELEMENTS (Back to Top & Fade) --- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 20px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
    padding:0px;
    text-align:center;
    
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:0.3s;
}

#backToTop polyline {
    stroke: var(--white);
}


#backToTop.show:hover {
    transform: scale(1.1);
    opacity:0.8;
}


#backToTop.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s;
}

.fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h2, .share-title {
        font-size: 30px; 
    }
    .boxed{
        margin:5px;
        padding:20px 10px;
    }
    .hero {
        flex-direction: column;
        height: calc(100dvh - var(--sticky-offset));
    }
    .hero-img-double {
        width: 100%;
        height: calc((100dvh - var(--sticky-offset))/2);
    }
    .hero-img-unique {
        width: 100%;
        height: calc(100dvh - var(--sticky-offset));
    }
    .containercolor, .containercolor2 {
        padding: 10px;
    }
    .premium-share {
        padding: 35px 18px;
    }
    .faq-item{
        padding:10px 10px;
    }
    .footer{
        flex-direction: column;
        margin-top:40px;
    }
    .signature{
        font-size:20px;
    }
}