/* =========================================================
   FIX DÉFINITIF MODALS — CENTRAGE & SUPERPOSITION
========================================================= */

.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.55) !important;
    backdrop-filter: blur(6px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.modal-overlay.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal {
    background: white !important;
    width: min(90%, 520px) !important;
    padding: 2.5rem 2rem !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25) !important;
    animation: modalPop .35s ease !important;
    position: relative !important;
}

@keyframes modalPop {
    0% { transform: scale(.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
    margin-bottom: 1.6rem !important;
}

.modal-close {
    position: absolute !important;
    right: 16px !important;
    top: 5px !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
}
/* =========================================================
   ICONES
========================================================= */
.icone-hommage i {
    font-size: 55px;
    color: #333;
    margin: 20px 0;
    display: block;
    text-align: center;
}

/* =========================================================
   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
========================================================= */
.script-title {
    font-family: "Dancing Script", cursive;
    font-size: 3rem;
    color: #0A63C8;
    text-align: center;
    margin-bottom: 1.2rem;
}

h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: #0A335F;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* =========================================================
   SECTIONS (cartes)
========================================================= */
.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);
}

.section-hero { text-align: center; }

/* =========================================================
   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.08rem;
    color: #00336b;
    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;
}

/* =========================================================
   GALERIE — CAROUSEL
========================================================= */
.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);
}

/* =========================================================
   BOUTON WHATSAPP — SPECIAL
========================================================= */
.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;
}
