/* =========================================================
   RESET SIMPLE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   FOND GÉNÉRAL
========================================================= */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #1A1A1A;
    background: linear-gradient(to bottom,#cfe7ff,#d7ecff,#e5f3ff,#f4faff);
}

body.no-scroll { overflow: hidden; }

/* =========================================================
   TITRES
========================================================= */
h1, h2 {
    text-align: center;
    color: #0A335F;
}

.script-title {
    font-family: "Dancing Script", cursive;
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: #0A63C8;
}

h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* =========================================================
   SECTION CARD — CONTAINER PRINCIPAL
========================================================= */
.section-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.08);
    width: 92%;
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

/* =========================================================
   PORTRAIT
========================================================= */
.portrait {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.6rem;
    border: 5px solid #fff;
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   TEXTE
========================================================= */
.hero-subtext {
    font-size: 1.1rem;
    color: #00336b;
    text-align: center;
    margin-bottom: 1.5rem;
}

.script-text {
    font-family: "Dancing Script", cursive;
    font-size: 1.7rem;
    color: #0A63C8;
    text-align: center;
    margin-top: 1.8rem;
}

/* =========================================================
   PROGRAMME
========================================================= */
.programme-day-title {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: #002f57;
    margin-bottom: 0.6rem;
}

.programme-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    padding: 0.9rem 0;
    border-bottom: 1px solid #d0def0;
    color: #003e74;
}

.time-badge {
    font-weight: 700;
    color: #0A63C8;
}

/* =========================================================
   BOUTONS PRINCIPAUX
========================================================= */
.btn-main {
    background: #0A63C8;
    color: white;
    padding: 0.9rem 1.4rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover {
    background: #3c8df0;
}

.btn-main.ghost {
    background: #fff;
    color: #0A63C8;
    border: 2px solid #0A63C8;
}

.btn-main.ghost:hover {
    background: #e8f2ff;
}

.btn-row {
    text-align: center;
    margin-top: 1.8rem;
}

/* =========================================================
   BOUTON WHATSAPP — SPÉCIAL
========================================================= */
.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.25s;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Conteneur du bouton */
.contact-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.8rem;
}

/* =========================================================
   GALERIE AUTO-SCROLL
========================================================= */
.gallery-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 5px;
    margin-top: 1.4rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-img {
    width: 200px;
    height: 200px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 3px solid #fff;
    background: #eee;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* =========================================================
   MODALS — FIX CENTRAGE + SUPERPOSITION
========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: white;
    width: min(90%, 520px);
    padding: 2.5rem 2rem;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
    animation: modalPop .35s ease;
    position: relative;
}

@keyframes modalPop {
    from { transform: scale(.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 1.6rem;
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 5px;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Inputs */
.modal input,
.modal textarea {
    width: 100%;
    padding: 0.7rem 0.4rem;
    border-radius: 10px;
    border: 1px solid #c6d4e1;
    background: #f8fbff;
    margin-bottom: 1.1rem;
    font-size: 1rem;
}

.modal input:focus,
.modal textarea:focus {
    border-color: #0D6DFD;
    background: white;
}

.modal textarea {
    min-height: 150px;
    resize: none;
}

/* Submit button */
.modal button[type="submit"] {
    width: 100%;
    background: #0D6DFD;
    color: white;
    padding: 0.9rem;
    border-radius: 10px;
    font-weight: 600;
}

.modal button[type="submit"]:hover {
    background: #0B5AD3;
}

/* =========================================================
   POPUP DE CONFIRMATION
========================================================= */
.success-popup {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.success-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.success-popup-box {
    background: #ffffff;
    padding: 1.7rem 2rem;
    border-radius: 16px;
    font-size: 1.2rem;
    color: #0A335F;
    border: 1px solid #dce7f7;
    animation: popupScale .35s ease;
}

@keyframes popupScale {
    from { transform: scale(.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
