/* --- Variables & Couleurs --- */
:root {
    --couleur-principale: #e7c7b8; /* rose beige doux */
    --couleur-principale-forte: #50362d; /* brun profond plus soft */
    --couleur-accent: #d9b48d; /* or chaud doux */
    --couleur-texte: #352620;
    --fond-leger: #f8f4f1;
    --fond-ombre: rgba(80, 54, 45, 0.12);
}

/* --- Styles Généraux --- */
body {
    font-family: 'Poppins', sans-serif; /* Vous pouvez ajouter cette police via Google Fonts */
    color: var(--couleur-texte);
}

.brand-logo {
    color: #000 !important;
    letter-spacing: 1px;
}

.brand-logo-image {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
}

/* --- SECTION HERO (Vidéo en arrière-plan) --- */
.hero-video-section {
    min-height: 85vh; /* Hauteur de la bannière d'accueil */
    background-color: #000; /* Fond noir si la vidéo ne charge pas */
    position: relative;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ajuste la vidéo sans la déformer */
    filter: saturate(1.2) contrast(1.08);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Filtre noir à 50% d'opacité */
    z-index: 1;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.5;
    z-index: 1;
    animation: floatOrb 10s ease-in-out infinite;
}

.orb-one {
    width: 220px;
    height: 220px;
    background: rgba(231, 199, 184, 0.38);
    top: 12%;
    left: 10%;
}

.orb-two {
    width: 180px;
    height: 180px;
    background: rgba(217, 180, 141, 0.18);
    right: 12%;
    bottom: 14%;
    animation-delay: 1.5s;
}

.orb-three {
    width: 120px;
    height: 120px;
    background: rgba(80, 54, 45, 0.12);
    right: 30%;
    top: 20%;
    animation-delay: 3s;
}

.z-2 {
    z-index: 2; /* Place le texte au-dessus de l'overlay */
}

.hero-content {
    animation: heroFadeRise 1.2s ease-out both;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    letter-spacing: 0.12rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Animation Machine à écrire ajustée à la taille du texte */
.typing-effect-infinite {
    display: inline-block;        /* Limite le conteneur à la taille exacte des mots */
    max-width: fit-content;       /* S'assure que le bloc ne dépasse pas le texte */
    overflow: hidden;             /* Masque le texte en cours d'écriture */
    white-space: nowrap;          /* Empêche le retour à la ligne */
    border-right: 3px solid #fff; /* Curseur placé juste après la dernière lettre */
    width: 0;
    margin: 0 auto;               /* Centre le bloc si besoin */
    animation: 
        typeAndDelete 8s steps(42, end) infinite,
        blinkCaret 0.75s step-end infinite;
}

/* Keyframes pour écrire et effacer */
@keyframes typeAndDelete {
    0% { width: 0; }
    40% { width: 100%; }  /* Écriture complète */
    60% { width: 100%; }  /* Pause d'affichage */
    90% { width: 0; }     /* Effacement */
    100% { width: 0; }    /* Pause avant répétition */
}

@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: #fff; }
}

@keyframes heroFadeRise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.08);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255,255,255,0);
    }
    50% {
        box-shadow: 0 0 18px rgba(231, 199, 184, 0.45);
    }
}

.hero-video-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(231, 199, 184, 0.7),
        0 0 20px rgba(231, 199, 184, 0.45),
        0 0 30px rgba(231, 199, 184, 0.25);
}

/* Style Cursive pour les titres principaux */
.brand-title-script {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin: 0 auto;
    line-height: 1.05;
    text-transform: none;   
}

.welcome-word {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: 1px;
    background: linear-gradient(135deg, #50362d 0%, #e7c7b8 42%, #d9b48d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 18px rgba(80, 54, 45, 0.12);
}

.welcome-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: var(--couleur-principale-forte, #50362d);
}

.navbar-brand.brand-logo {
    font-family: 'Playfair Display', serif; /* ou 'Cinzel' */
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

@media (max-width: 575.98px) {
    .brand-logo-image {
        width: 50px;
        height: 50px;
    }
}

/* --- Navigation --- */
.announcement-bar {
    position: relative;
    z-index: 1020;
    overflow: hidden;
    padding: 0.7rem 0;
    background: linear-gradient(90deg, var(--couleur-principale-forte) 0%, #704f42 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(80, 54, 45, 0.12);
}

.announcement-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-width: 100%;
    white-space: nowrap;
    will-change: transform;
    animation: announcementScroll 18s linear infinite;
}

.announcement-track span {
    flex: 0 0 auto;
    display: inline-block;
    padding-right: 4rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
}

.announcement-bar:hover .announcement-track,
.announcement-bar:focus-within .announcement-track {
    animation-play-state: paused;
}

@keyframes announcementScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-track {
        animation: none;
        width: 100%;
        justify-content: center;
    }

    .announcement-track span[aria-hidden="true"] {
        display: none;
    }
}

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.35rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(80,54,45,0.95), rgba(231,199,184,0.95));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #000 !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.page-home .navbar-nav .nav-link:hover,
.page-home .navbar-nav .nav-link.active {
    text-shadow: 0 0 10px rgba(217, 176, 162, 0.35);
}

.page-boutique .navbar-nav .nav-link:hover,
.page-boutique .navbar-nav .nav-link.active {
    letter-spacing: 0.04rem;
}

.page-galerie .navbar-nav .nav-link:hover,
.page-galerie .navbar-nav .nav-link.active {
    transform: translateY(-1px) scale(1.02);
}

.page-prestations .navbar-nav .nav-link:hover,
.page-prestations .navbar-nav .nav-link.active {
    color: var(--couleur-principale-forte) !important;
}

.page-contact .navbar-nav .nav-link:hover,
.page-contact .navbar-nav .nav-link.active {
    text-shadow: 0 0 8px rgba(217, 176, 162, 0.2);
}

.page-infos .navbar-nav .nav-link:hover,
.page-infos .navbar-nav .nav-link.active {
    transform: translateY(-1px) translateX(1px);
}

/* --- Boutons Personnalisés --- */
.btn-custom {
    background: linear-gradient(135deg, var(--couleur-principale-forte) 0%, #7a5649 100%);
    color: #fff;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 10px 18px rgba(80, 54, 45, 0.12);
}

.btn-custom:hover {
    background: linear-gradient(135deg, #fff 0%, #f7efeb 100%);
    color: var(--couleur-principale-forte);
    border-color: rgba(80, 54, 45, 0.28);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-custom {
    border-color: rgba(80,54,45,0.45);
    color: var(--couleur-principale-forte);
}

.btn-outline-custom:hover {
    background: linear-gradient(135deg, var(--couleur-principale-forte) 0%, var(--couleur-principale) 100%);
    color: #fff;
    border-color: transparent;
}

/* --- Cartes & Titres --- */
.section-title {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.text-custom {
    color: var(--couleur-principale);
}

.card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Petit saut au survol */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* --- Personnalisation page par page --- */
.page-home .card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.page-home .card:hover {
    transform: translateY(-8px) rotateX(1deg);
    box-shadow: 0 0 24px rgba(80, 54, 45, 0.10), 0 18px 30px rgba(217, 180, 141, 0.14) !important;
    filter: brightness(1.02);
}

.page-home .btn-custom,
.page-home .btn-outline-light,
.page-home .btn-outline-custom {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.page-home .btn-custom:hover,
.page-home .btn-outline-light:hover,
.page-home .btn-outline-custom:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 18px rgba(80, 54, 45, 0.18);
}

.page-prestations .card {
    transition: transform 0.42s ease, box-shadow 0.42s ease, border-color 0.42s ease;
}

.page-prestations .card:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(231, 199, 184, 0.34);
}

.page-boutique .product-item .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(231, 199, 184, 0.12);
    transition: transform 0.38s ease, box-shadow 0.38s ease, border-color 0.38s ease, filter 0.38s ease;
}

.page-boutique .product-item:hover .card {
    transform: scale(1.05);
    border-color: rgba(80, 54, 45, 0.28);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.12) !important;
    filter: saturate(1.12);
}

.page-boutique .product-item .card img {
    height: 320px;
    width: 100%;
    padding: 0.75rem;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.35s ease;
}

@media (max-width: 575.98px) {
    .page-boutique .product-item .card img {
        height: 240px;
        padding: 0.5rem;
    }
}

.page-boutique .product-item:hover .card img {
    transform: scale(1.1);
    filter: contrast(1.06) saturate(1.12);
}

.page-boutique .product-item .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.page-boutique .product-item .card-title {
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-boutique .price-badge {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.62rem 1rem;
    min-width: 138px;
    box-shadow: 0 8px 18px rgba(80, 54, 45, 0.2);
}

.page-prestations strong.text-custom {
    display: inline-block;
    color: var(--couleur-principale-forte) !important;
    background: rgba(231, 199, 184, 0.32);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.page-boutique .product-item .add-to-cart-btn {
    margin-top: auto;
}

.page-galerie .gallery-card {
    transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease, opacity 0.45s ease;
}

.page-galerie .gallery-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.12) !important;
    filter: saturate(1.1) contrast(1.08);
}

.page-galerie .gallery-card img,
.page-galerie .gallery-card video {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.page-galerie .gallery-card:hover img,
.page-galerie .gallery-card:hover video {
    transform: scale(1.04);
}

.page-contact .card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.page-contact .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(231, 199, 184, 0.28);
}

.page-infos .bg-white {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.page-infos .bg-white:hover {
    transform: translateY(-5px) translateX(2px);
    box-shadow: 0 18px 30px rgba(231, 199, 184, 0.12) !important;
    border-color: rgba(231, 199, 184, 0.32);
}

/* --- Boutique : animations produits et boutons --- */
.product-item .card {
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-item .card img {
    transition: transform 0.55s ease, filter 0.35s ease;
    transform-origin: center;
}

.product-item:hover .card {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12) !important;
}

.product-item:hover .card img {
    transform: scale(1.08);
    filter: saturate(1.12);
}

.add-to-cart-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    animation: buttonPulse 2.8s ease-in-out infinite;
    background: linear-gradient(135deg, var(--couleur-principale-forte) 0%, var(--couleur-accent) 100%);
    border: 0;
}

.add-to-cart-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    transform: translateX(-130%);
    transition: transform 0.6s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 18px rgba(80, 54, 45, 0.18);
}

.add-to-cart-btn:hover::before {
    transform: translateX(130%);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(231, 199, 184, 0);
    }
    50% {
        box-shadow: 0 0 12px rgba(231, 199, 184, 0.22);
    }
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- BOUTON WHATSAPP FLOTTANT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Vert WhatsApp */
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e; /* Vert plus foncé au survol */
    color: #fff;
    transform: scale(1.1); /* S'agrandit légèrement */
}