/* Bordure rouge autour de la section Hero uniquement */
section.container-fluid.position-relative {
    position: relative;
}

section.container-fluid.position-relative::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 15px solid #00008B;
    pointer-events: none;
    z-index: 9999;
}

/* Google Font pour les noms */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Couleurs mariage */
.btn-primary {
    background-color: #ffbf0092;
    color: #333;
    border: none;
}

.btn-primary:hover {
    background-color: #f1d9c5;
    color: #333;
}

body {
    font-family: 'Inter', sans-serif; /* texte normal */
    background-color: #fff;
}

.hero-logo {
    height: 60px;
    width: auto;
}

/* Logo en filigrane sur l'image */
.hero-image-container {
    position: relative;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    height: 150px;
    width: auto;
    pointer-events: none;
    z-index: 10;
}

/* Bague en filigrane sur toute la section Hero */
.hero-ring-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    height: 200px;
    width: auto;
    pointer-events: none;
    z-index: 5;
}

/* Texte Bienvenue agrandi */
.text-uppercase.text-muted.mb-2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Bouton Administration en bas à droite */
.btn-administration {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background-color: #6c757d;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-administration:hover {
    background-color: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-image {
    width: 100%;
    height: 45vh;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.im1 {
    border: #00008B solid 6px;
}

.form-control::placeholder {
    color: #b8a89c;
    font-style: italic;
    opacity: 1; /* important pour Safari */
}

/* FORM PREMIUM */
.premium-form {
    max-width: 650px;
}

.premium-form .form-control {
    border-radius: 14px;
    border: 1px solid #e6d5c3;
    padding: 1rem;
    background-color: #fffdfb;
    transition: all 0.3s ease;
}

.premium-form .form-control:focus {
    border-color: #d4bfa7;
    box-shadow: 0 0 0 0.25rem rgba(212,191,167,0.25);
    transform: scale(1.02);
}

.premium-form .form-floating label {
    color: #b8a89c;
}

.premium-form .form-control::placeholder {
    color: transparent;
}

/* Bouton premium */
.premium-btn {
    border-radius: 14px;
    background: linear-gradient(135deg, #f9e7d9, #f1d9c5);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* LIGHTBOX PREMIUM */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px); /* flou premium */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 3000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.lightbox.active img {
    transform: scale(1);
}

/* Bouton fermer */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* Flèches */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    z-index: 3100;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Hover doux */
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    opacity: 0.7;
}

/* Curseur pointer sur les images déclencheur */
#photos img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#photos img:hover {
    transform: scale(1.03);
}

/* Bloquer scroll quand lightbox active */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.hero-lead {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    line-height: 1.5;
}

/* Responsive Desktop */
@media (min-width: 768px) {
    .hero-image {
        height: 100vh;
        object-fit: contain;
        object-position: center;
    }

    .hero-title {
        line-height: 1.1;
    }

    .custom-border {
        border: none !important;
        z-index: 1;
        position: relative;
    }
}

/* Supprimer bordure sur mobile */
@media (max-width: 767.98px) {
    section.container-fluid.position-relative::before {
        border: none;
        content: none;
        z-index: 1;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 5px 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Animation barre de progression toast */
.toast-progress {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}


/* Toast position fixe responsive */
@media (max-width: 575.98px) {
    .position-fixed.top-0.end-0 {
        right: 1rem !important; /* force le toast à droite */
        left: auto !important;   /* évite le décalage à gauche */
        padding: 0.5rem;         /* réduit le padding global */
    }

    .toast {
        width: auto;             /* largeur automatique pour mobile */
        max-width: 90%;          /* ne dépasse pas l’écran */
    }
}
