/********** Template CSS - Version Finale Nettoyée **********/

/* OPTIMISATION : Forcer l'affichage immédiat du texte */
@font-face { font-family: 'Roboto'; font-display: swap; }
@font-face { font-family: 'Poppins'; font-display: swap; }

:root {
    --primary: #FDA12B;
    --secondary: #555555;
    --light: #F8F9FA;
    --dark: #182333;
    --gold: #D4AF37; 
}

/* --- BASICS --- */
.back-to-top {
    position: fixed;
    display: none;
    left: 30px;
    right: auto;
    bottom: 30px;
    z-index: 99;
}

#spinner {
    display: none !important;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .3s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .3s;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 25px 0;
    color: var(--secondary);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  { margin-left: 0; padding: 10px 0; }
    .navbar .navbar-nav { margin-top: 25px; border-top: 1px solid #EEEEEE; }
}

/*** Header & Carousel ***/
.carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    background: rgba(0, 0, 0, .65);
    z-index: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--dark);
    border: 15px solid var(--dark);
    border-radius: 50px;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header h1, 
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9) !important;
    color: #FFFFFF !important;
}

/*** Service ***/
.service-text::before {
    position: absolute;
    content: "";
    width: 100%; 
    height: 100%;
    top: 0; left: 0;
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: -1;
}

.service-item:hover .service-text::before { 
    opacity: 1; 
    visibility: visible; 
    transform: scaleY(1); 
}

.service-item:hover .service-text * { 
    color: #FFFFFF !important; 
}

/* --- BLOC SEO 25 LIENS (NOIR & OR) --- */
.bg-black-seo {
    background-color: #000000 !important;
}

.gold-link {
    color: var(--gold) !important;
    text-decoration: none !important;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    transition: 0.3s;
    font-size: 0.95rem;
}

.gold-link:hover {
    color: #FFFFFF !important;
    padding-left: 5px;
}

/* --- FOOTER --- */
.footer {
    background: #111111;
}

.footer p, .footer span {
    color: #F8F9FA !important;
}

.footer i {
    color: var(--primary) !important;
}

.footer a {
    color: var(--primary) !important;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: #FFFFFF !important;
}

.footer .flex-column a, 
.footer .flex-column span {
    margin-bottom: 10px;
    display: block;
}

/* --- RESTAURATION DU DESIGN --- */
.text-primary, 
.section-title, 
.bg-dark h1, 
.bg-dark h4, 
.bg-dark h5 {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.bg-primary .text-white, 
.bg-primary h1, 
.bg-primary h5,
.bg-primary p {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.text-body, p {
    color: #444444 !important;
}

.contact-form label {
    color: var(--dark) !important;
    font-weight: 700 !important;
}

.appointment .text-white p strong {
    color: var(--primary) !important;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}

.appointment .form-floating label {
    color: #F8F9FA !important;
    opacity: 0.9;
}

.appointment .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF !important;
}

/* --- GALERIE & ALBUMS CORRIGÉS --- */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.comparison-block {
    flex: 1 1 350px;
    max-width: 500px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary);
}

.photo-container {
    display: flex;
    gap: 10px;
}

.photo-container > div {
    flex: 1;
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.photo-click {
    width: 100% !important;
    height: 220px !important; 
    object-fit: cover !important;
    display: block;
    border-radius: 5px;
    cursor: pointer;
}

/* Texte Avant/Après SOUS la photo */
.label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
}

/* --- FIX LIGHTBOX (BUG CADRE BLANC) --- */
.modal-content, .modal-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.modal-body img, #modal-image {
    max-width: 95vw !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;
    margin: auto;
    display: block;
    border-radius: 8px;
    border: 3px solid white; 
}

/* --- ANIMATIONS --- */
.blink-action {
    display: inline-block;
    animation: soft-pulse 2.5s infinite;
}

@keyframes soft-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}
