/* =========================================
   PAGES CSS
   Specific views: Prices, Reels, Guestbook etc.
   ========================================= */

/* --- Mes Réels Section --- */
.reels-section {
    background: #fff0f3;
    overflow: hidden;
}

.reels-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 40px;
}

.reel-card {
    flex: 0 0 220px;
    height: 350px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    background: #1a1a1a;
    border: 3px solid #fff;
    filter: sepia(30%);
}

.reel-card:hover {
    transform: translateY(-10px) scale(1.02);
    filter: sepia(0%);
    box-shadow: 0 15px 35px rgba(196, 164, 132, 0.4);
    border-color: var(--accent-gold);
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.reel-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: white;
}

.reel-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* --- Price List --- */
.price-section {
    margin-bottom: 60px;
}

/* --- Price List Styling (Reference Design) --- */

/* --- Price List Styling (Exact Replica) --- */

.price-category {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-soft);
    /* Roughly #ab737c */
    margin-bottom: 20px;
    text-align: left;
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
}

/* Small underline under title */
.price-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #d4a5ad;
    /* var(--primary-light) */
}

/* Container for rows */
.price-list {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    /* Push to right */
    margin-right: 20px;
    margin-top: 40px;
    /* Space between title and list */
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    /* Vertical spacing */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* Very faint line */
    transition: 0.2s;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row:hover {
    padding-left: 5px;
    background: transparent;
}

/* Service Name: Sans-serif, Bold, Dark Grey */
.service-name {
    font-family: 'Lato', sans-serif;
    /* Cleaner sans-serif */
    font-weight: 700;
    color: #444;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Price: Pill shape, reddish-brown text on beige bg */
.service-price {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #9c666c;
    /* Slightly darker than primary-soft */
    font-size: 1.1rem;
    background: #fdf2ea;
    /* Beige/Nude pill */
    padding: 5px 14px;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
}

/* --- Onglerie Specific --- */
.price-block {
    display: flex;
    background: white;
    margin-bottom: 50px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.price-block:nth-child(even) {
    flex-direction: row-reverse;
}

.price-img {
    flex: 1;
    min-height: 300px;
}

.price-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-content-wrapper {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Testimonials Marquee --- */
.testimonial-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
    display: inline-flex;
    gap: 30px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    min-width: 300px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(170, 58, 76, 0.1);
    white-space: normal;
}

/* --- Classic Guestbook --- */
.classic-livre-or-section {
    background-color: #3E3636;
    color: white;
    font-family: 'Playfair Display', serif;
}

.classic-reviews-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.classic-review-card {
    background-color: #4E4545;
    border-radius: 6px;
    padding: 30px;
    width: 280px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.classic-stars {
    color: #FFD700;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.classic-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #f0f0f0;
    font-style: italic;
    flex: 1;
    margin-bottom: 20px;
}

.classic-author {
    color: #EAC8CD;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* --- Google Widget --- */
.google-widget-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.widget-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 320px;
    height: 380px;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

/* --- Comparison Slider --- */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 2px solid white;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transform: translate(-50%, -50%);
}

/* --- Newsletter Popup & Box --- */
.newsletter-section {
    padding-top: 50px;
    padding-bottom: 80px;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--primary-soft), #aa3a4c);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
}

.newsletter-form button {
    padding: 15px 35px;
    border-radius: 50px;
    background: var(--text-dark);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.newsletter-popup-overlay.show {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.newsletter-popup-content {
    background: var(--bg-body);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
}

.popup-image {
    flex: 1;
    background: url('../images/popup-bg.webp');
    background-size: cover;
}

.popup-text {
    flex: 1;
    padding: 50px 40px;
    position: relative;
}

/* --- Guestbook Modal --- */
.guestbook-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.guestbook-form {
    background: #fffafa;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: zoomUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group-gb {
    margin-bottom: 15px;
    text-align: left;
}

.form-group-gb label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group-gb input,
.form-group-gb textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.submit-gb {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.submit-gb:hover {
    background: var(--primary-dark);
}

.close-gb-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
}

/* --- Map --- */
#map {
    border: 5px solid white;
}

/* --- Quiz --- */
.quiz-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-step.active {
    display: block;
}

.btn-quiz {
    padding: 15px 20px;
    border: 2px solid var(--primary-soft);
    background: transparent;
    color: var(--text-dark);
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.btn-quiz:hover {
    background: var(--primary-soft);
    color: white;
}

/* --- Gallery Internal Views (Reels) --- */
.gallery-nav {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: 0.3s;
}

.back-btn:hover {
    transform: translateX(-5px);
}

.photo-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.media-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    background: #000;
    cursor: pointer;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.media-item:hover img {
    transform: scale(1.08);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: none;
}

.media-item:hover .item-overlay {
    opacity: 1;
}

.pagination {
    text-align: center;
    margin: 50px 0;
    font-family: var(--font-heading);
}

.pagination span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s;
}

.pagination span.active,
.pagination span:hover {
    background: var(--primary-soft);
    color: white;
}

/* --- Gallery Header Badge --- */
.gallery-header-container {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 10px 30px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(171, 115, 124, 0.2);
}

.gallery-header-badge i {
    font-size: 1.5rem;
    color: var(--primary-soft);
}

.gallery-header-badge h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.gallery-header-badge h2 span {
    font-family: var(--font-heading);
    /* Great Vibes */
    color: var(--primary-soft);
    margin-left: 8px;
    font-weight: 400;
    font-size: 1.8rem;
}

/* --- Badge Style Refinement from User Images --- */
.gallery-header-container {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.gallery-badge-pill {
    background: white;
    border-radius: 50px;
    padding: 10px 40px 10px 10px;
    /* Left padding small for icon, right large */
    display: inline-flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Soft shadow like image */
    position: relative;
    border: none;
    transition: transform 0.3s ease;
}

.gallery-badge-pill:hover {
    transform: translateY(-2px);
}

.badge-icon-circle {
    width: 60px;
    height: 60px;
    background: #A85A66;
    /* Matching the maroon/reddish color */
    border-radius: 15px;
    /* Rounded square/squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(168, 90, 102, 0.3);
}

.badge-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1;
}

.badge-main-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A4A4A;
    /* Dark grey */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.badge-sub-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #A85A66;
    /* Same reddish color */
    margin-left: 2px;
    font-weight: 400;
}

/* --- Lightbox & Zoom Styles (Restored) --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    /* Flex when active via JS */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform-origin: center;
    user-select: none;
    transition: transform 0.1s ease-out;
    /* Smooth zoom transition */
    cursor: grab;
}

.lightbox img:active {
    cursor: grabbing;
}

/* Controls */
.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10002;
    transition: transform 0.3s;
    opacity: 0.8;
}

.close-lightbox:hover {
    transform: rotate(90deg);
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10002;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

/* Zoom Controls - Bottom Center */
.zoom-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10002;
}

.zoom-controls button {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.zoom-controls button:hover {
    background: white;
    color: black;
    border-color: white;
    transform: translateY(-3px);
}

/* =========================================
   NEW POPUP DESIGN V2 (PREMIUM & RESPONSIVE)
   ========================================= */

.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Fond sombre */
    backdrop-filter: blur(5px);
    /* Effet flou */
    z-index: 999999;
    /* TRÈS HAUT pour être sûr d'être au dessus de tout */
    display: none;
    /* JS ajoute .show */
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Marge de sécurité mobile */
}

/* La classe activée par JS */
.newsletter-popup-overlay.show {
    display: flex !important;
    animation: fadeIn 0.5s ease forwards;
}

.newsletter-popup-content {
    background: #fffafa;
    /* Blanc cassé très doux */
    width: 100%;
    max-width: 750px;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(170, 58, 76, 0.25);
    /* Ombre colorée */
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Image de gauche (Desktop) */
.popup-image {
    flex: 1;
    background: url('../images/intro_virginie_final.jpg');
    /* On utilise ta belle photo ou une autre */
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

/* Contenu Texte */
.popup-text {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.popup-text h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: #A85A66;
    /* Terracotta */
    margin-bottom: 15px;
    font-weight: 400;
}

.popup-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Formulaire */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: white;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.popup-form input:focus {
    border-color: #A85A66;
    box-shadow: 0 0 0 3px rgba(168, 90, 102, 0.1);
}

.popup-form button {
    padding: 12px 20px;
    background: #4A4A4A;
    /* Noir doux */
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.popup-form button:hover {
    background: #A85A66;
    /* Terracotta au survol */
    transform: translateY(-2px);
}

/* Bouton Fermer */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
    z-index: 10;
    background: transparent;
    border: none;
}

.popup-close:hover {
    color: #A85A66;
    transform: rotate(90deg);
}

/* --- MOBILE SPECIFIQUE --- */
@media (max-width: 768px) {
    .newsletter-popup-content {
        flex-direction: column;
        /* Empilement vertical */
        max-height: 85vh;
        /* Max hauteur écran */
        overflow-y: auto;
        /* Scroll si besoin */
    }

    .popup-image {
        flex: none;
        /* Ne pas étirer */
        height: 180px;
        /* Hauteur fixe image */
        width: 100%;
    }

    .popup-text {
        padding: 30px 20px;
    }

    .popup-text h3 {
        font-size: 2.2rem;
    }

    /* Bouton fermer rond sur mobile pour visibilité */
    .popup-close {
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.8);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* --- FIX CURSOR POPUP (AJOUTÉ LE 20/12) --- */
.popup-newsletter,
.popup-content,
.popup-text,
.popup-form input,
.popup-form button,
.popup-close {
    cursor: auto !important;
    /* Force le curseur normal système */
}

/* Forçage de la nouvelle image 'Vintage' */
.popup-image {
    background-image: url('../images/popup_generated.png') !important;
    /* Image IA Générée */
    background-size: cover;
    background-position: center;
}