/* --- Variables & Reset --- */
:root {
    --primary: #d4a373; /* Terre Cuite Douce */
    --primary-dark: #b5835a;
    --secondary: #333d29; /* Vert Sauge Profond - Modernité */
    --accent: #bc6c25; /* Or Vieux/Miel - Peps */
    --bg-light: #fefae0; /* Crème Doux */
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --font-titles: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Défilement fluide natif */
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden; /* Évite les barres de défilement horizontales */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typographie Globale --- */
h1, h2, h3 {
    font-family: var(--font-titles);
    font-weight: 700;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-weight: 300;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Boutons --- */
.btn, .btn-outline, .btn-submit {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* Bords arrondis modernes */
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn {
    background-color: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn:hover {
    background-color: var(--white);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(188, 108, 37, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent; /* Transparent au départ */
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-titles);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -1px;
}

.logo .deco {
    color: var(--primary);
    font-weight: 400;
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    margin-left: 30px;
    position: relative;
    transition: var(--transition-smooth);
}

/* Effet de soulignement au survol */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-links li a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links li a {
    color: var(--text-dark);
}

/* Burger Menu (Caché sur desktop) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* On remplace le gris par un dégradé ambré/doré très léger */
    background-image: linear-gradient(
                        rgba(212, 163, 115, 0.2), /* Teinte terre cuite très translucide */
                        rgba(51, 61, 41, 0.4)     /* Rappel du vert sauge en bas pour le contraste */
                      ), 
                      url('images/fartdeco-cg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: kenBurns 20s infinite alternate;
}

/* On ajoute un petit effet de lueur sur le texte pour qu'il "pop" sur le fond clair */
.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombre portée légère pour la lisibilité */
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- Collection Grid (WAW Effects) --- */
.collection {
    padding: 100px 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.collection-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* Modernité */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    height: 400px; /* Hauteur fixe pour l'effet de grille */
}

.collection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.item-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.item-overlay p {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Effets de survol sur la carte */
.collection-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.collection-item:hover img {
    transform: scale(1.1); /* Zoom doux WAW */
}

.collection-item:hover .item-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* --- Univers Section --- */
.univers {
    padding: 100px 0;
    background-color: var(--white);
}

.univers-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.univers-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.univers-image img {
    width: 100%;
    height: auto;
    display: block;
}

.univers-text {
    flex: 1;
}

.univers-text h2 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.univers-text p {
    margin-bottom: 20px;
    color: #555;
    font-weight: 300;
}

/* --- Contact Section --- */
/* --- Contact Section avec 2 colonnes --- */
.contact {
    padding: 100px 0;
    background-color: #f9f6f2;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: #1e2a2f;
}

.contact-content > p {
    font-size: 1.2rem;
    color: #5a6b6f;
    margin-bottom: 3rem;
}

/* Grille à 2 colonnes */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
    margin-top: 20px;
}

/* Style du formulaire (colonne gauche) */
.contact-form-container {
    background: transparent;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-bottom: 2px solid #d4c9c0;
    background-color: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1e2a2f;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9aa9b0;
    font-weight: 300;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: #b89b7b;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background-color: #1e2a2f;
    color: white;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #b89b7b;
}

/* Section Contact */
/* Section Contact */
.contact {
    padding: 100px 0;
    background: #fefae0; /* couleur dominante */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: #444;
    font-size: 1.2rem;
    margin-bottom: 60px;
}

/* Grille */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: start;
}

/* Formulaire */
.contact-form-container {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.contact-form .form-group {
    margin-bottom: 30px;
}

.contact-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background: #fefae0;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1a1a1a;
    background: #fff;
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #444;
}

/* Informations */
.contact-info-container {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.info-item {
    margin-bottom: 35px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    border-bottom: 2px solid #fefae0;
    padding-bottom: 6px;
}

.info-item p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* --- Footer --- */
.footer {
    padding: 60px 0;
    background-color: var(--secondary);
    color: var(--text-light);
    text-align: center;
}

.footer .logo {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-tagline {
    font-family: var(--font-titles);
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 30px;
}

.copyright {
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.5;
}

/* --- Animations Keyframes --- */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Classes d'Animation (pour le JS) --- */
.fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }
.fade-in-delayed { animation: fadeIn 1s ease forwards 0.3s; opacity: 0; }
.fade-in-delayed-more { animation: fadeIn 1s ease forwards 0.6s; opacity: 0; }

/* Scroll Reveal States */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Directions spécifiques pour l'effet WAW */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* =====================================================
   MODAL GALERIE VITRINE — layout images → infos
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(14px);
    animation: backdropIn 0.4s ease forwards;
}

@keyframes backdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Panneau principal */
.modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 1160px;
    height: 88vh;
    max-height: 760px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--white);
    animation: panelIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Bouton fermer flottant ── */
.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.modal-close-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.08);
}

/* ══════════════════════════════════════
   COLONNE GAUCHE — Galerie d'images
   ══════════════════════════════════════ */
.modal-gallery-col {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    background: #111;
    min-width: 0;
    overflow: hidden;
}

/* Image principale */
.modal-main-image-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.modal-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.28s ease, transform 0.4s ease;
    display: block;
}

.modal-main-image-wrap img.transitioning {
    opacity: 0;
    transform: scale(1.04);
}

/* Grain overlay */
.modal-image-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Flèches nav sur l'image principale */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.28s ease;
}
.modal-nav:hover {
    background: rgba(212, 163, 115, 0.55);
    border-color: rgba(212, 163, 115, 0.7);
    transform: translateY(-50%) scale(1.1);
}
.modal-prev { left: 16px; }
.modal-next { right: 16px; }

/* Compteur */
.modal-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    background: rgba(0,0,0,0.4);
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

/* Bande de thumbnails */
.modal-thumbs-row {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: #0d0d0d;
    overflow-x: auto;
    scrollbar-width: none;
}
.modal-thumbs-row::-webkit-scrollbar { display: none; }

.modal-thumb {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    background: #222;
    padding: 0;
}
.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}
.modal-thumb:hover img,
.modal-thumb.active img { opacity: 1; }
.modal-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(212,163,115,0.4);
}
.modal-thumb:hover {
    border-color: rgba(212,163,115,0.5);
}

/* ══════════════════════════════════════
   COLONNE DROITE — Infos produit
   ══════════════════════════════════════ */
.modal-info-col {
    width: auto;
    flex: 1.2;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    align-items: flex-start;
    overflow-y: auto;
    border-left: 1px solid rgba(212,163,115,0.12);
}

.modal-info-inner {
    padding: 52px 40px 44px;
    width: 100%;
}

/* Eyebrow label */
.modal-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

/* Titre du produit */
.modal-product-title {
    font-family: var(--font-titles);
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--secondary);
    line-height: 1.15;
    margin-bottom: 18px;
}

/* Badge prix */
.modal-price-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    font-family: var(--font-titles);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 26px;
    letter-spacing: 0.5px;
}

/* Description */
.modal-product-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: #666;
    line-height: 1.85;
    margin-bottom: 28px;
}

/* Tags */
.modal-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.modal-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--secondary);
    background: rgba(51, 61, 41, 0.07);
    border: 1px solid rgba(51, 61, 41, 0.1);
    padding: 7px 14px;
    border-radius: 30px;
    font-weight: 500;
}
.modal-tag-icon { font-size: 0.95rem; }

/* Bouton CTA */
.modal-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.32s ease;
}
.modal-inquiry-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(188, 108, 37, 0.3);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
    .modal-panel {
        flex-direction: column;
        height: 92vh;
        max-height: none;
        border-radius: 18px;
    }
    .modal-gallery-col { flex: none; height: 54%; }
    .modal-info-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(212,163,115,0.12);
    }
    .modal-info-inner { padding: 28px 28px 36px; }
    .modal-product-title { font-size: 1.6rem; }
}

@media (max-width: 520px) {
    .modal { padding: 10px; }
    .modal-panel { height: 96vh; border-radius: 14px; }
    .modal-gallery-col { height: 50%; }
    .modal-thumbs-row { padding: 8px; gap: 5px; }
    .modal-thumb { width: 54px; height: 54px; }
    .modal-info-inner { padding: 22px 20px 28px; }
    .modal-product-title { font-size: 1.4rem; }
    .modal-price-badge { font-size: 1rem; }
}

/* Suppression des anciens styles de modal */
.modal-content, .modal-header, .modal-body,
.modal-close, .products-grid, .product-card,
.product-image, .product-info, .product-description,
.product-details, .product-detail-item, .no-products { display: none; }

/* --- Responsive (Mobile) --- */
@media screen and (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -10px 0 20px rgba(0,0,0,0.05);
        padding-top: 50px;
    }
    
    .nav-links li { opacity: 0; margin: 20px 0; }
    .nav-links li a { margin-left: 0; font-size: 1.2rem; }
    
    .burger { display: block; }
    
    .univers-container { flex-direction: column; gap: 40px; }
    
    .nav-active { transform: translateX(0%); }
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* Pour le toast  */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}