/*
    GD CREADESIGN - Styles généraux et mise en page
*/

/* Style de base de la bannière */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333; /* Fond sombre pour contraste */
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Assure que la bannière est au-dessus du contenu */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Initialement masqué par défaut */
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%); 
}

/* Règle pour afficher la bannière (retirée par le JS au chargement) */
.cookie-banner:not(.hidden) {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    padding-right: 20px;
    font-size: 0.9em;
    flex-grow: 1;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

/* Style des boutons (inspiré de votre design GD Creadesign - Bleu foncé et Or) */
.cookie-banner button {
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-accept {
    /* Couleur d'accent (Or/Métal b8860b) */
    background-color: #b8860b; 
    color: white;
}

.btn-reject {
    /* Couleur principale du site (Bleu foncé 0A2E52) */
    background-color: #0A2E52; 
    color: white;
}

.btn-accept:hover {
    background-color: #d4a017;
}

.btn-reject:hover {
    background-color: #1a4a75;
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-content p {
        padding-right: 0;
        margin-bottom: 10px;
    }
    .cookie-actions {
        justify-content: center;
    }
}

:root {
    --primary-color: #000;
    --secondary-color: #333;
    /* Or Métallique pour le luxe aéronautique */
    --accent-color: #B8860B; 
    --background-color: #fff;
    --light-gray: #f8f8f8;
    --font-inter: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-inter);
    color: var(--primary-color);
    background-color: var(--background-color);
    line-height: 1.6;
    transition: background-color 0.3s;
}

/* Utility classes */
.section-inner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Classes pour les feedbacks */
.form-feedback {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
}

.form-feedback.success {
    color: green;
    opacity: 1;
}

.form-feedback.error {
    color: red;
    opacity: 1;
}

/* --- AFFICHAGE PRODUITS / CHARGEMENT (CSS Grid Friendly) --- */
.product-card.hidden-by-load-more {
    display: none;
}
/* Le product-grid gère l'affichage en grille quand les cartes NE sont PAS cachées */

/* --- HEADER / NAVIGATION --- */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--light-gray);
    padding: 20px 0;
    transition: background-color 0.3s, border-bottom 0.3s;
}

.header-inner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-modern {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color); 
    text-decoration: none;
}

/* UX: Géré par JS pour la version mobile */
.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.menu-icon {
    display: none; /* Cache par défaut sur desktop */
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s; 
}

.nav-actions {
    /* Pour un futur panier ou compte */
    width: 50px;
    text-align: right;
}

/* --- MAIN CONTENT LAYOUT --- */
.page-container {
    padding-top: 80px; /* Espace pour le header fixed */
}

/* --- SECTION HERO (Accueil) --- */
.hero-minimal-section {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 0 40px;
    min-height: 80vh;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content-left {
    flex: 1;
    padding-right: 50px;
    z-index: 10;
}

.intro-tag {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 300;
}

.main-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 40px;
}

.social-links-desktop a {
    display: inline-block;
    margin-right: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: 1px;
    transition: opacity 0.2s;
}

.social-links-desktop a:hover {
    opacity: 0.6;
}

.hero-product-display {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.hero-croquis-image {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    /* Amélioration UI: Ajout d'une subtile ombre */
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.1)); 
}

/* Pagination fixe/rotative */
.pagination-right-absolute {
    position: fixed; 
    right: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right top;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 990; 
}

.current-index {
    color: var(--primary-color); 
}

.index-divider {
    color: var(--secondary-color);
    font-weight: 400;
}


/* --- SECTION ABOUT --- */
.about-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.about-hero-text {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 10px;
}

.about-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.story-block h3, .designer-block h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.story-block p, .designer-block p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--secondary-color);
}

.designer-block {
    text-align: center;
    padding: 30px;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.designer-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.cta-about-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none; /* Ajouté pour le bouton CTA du contact */
}

.cta-about-btn:hover {
    /* Utilisation de la couleur accent pour un effet plus premium */
    background-color: var(--accent-color); 
}

/* --- SECTION SHOP (Catalogue) --- */
.shop-catalogue-section {
    padding: 100px 0;
}

.shop-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    flex-wrap: wrap; 
}

.section-title-large {
    font-size: 3rem;
    font-weight: 900;
}

.shop-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
}

.shop-filters .filter-btn {
    padding: 8px 15px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background-color 0.2s, color 0.2s;
    user-select: none; /* Amélioration UX: Empêche la sélection de texte */
}

.shop-filters .filter-btn.active,
.shop-filters .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Grille pour la boutique (Desktop) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Grille 4 colonnes pour un affichage dense */
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    /* On retire la hauteur fixe pour laisser le contenu (image carrée + texte) définir la taille */
    height: auto; /* <--- CORRIGÉ */
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--background-color);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 1. CORRECTION: Définir le conteneur d'image carré (À INSÉRER/REMPLACER) */
.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* C'est la ligne clé pour le carré */
    height: auto; 
    overflow: hidden;
    margin-bottom: 15px; 
}

/* 2. NOUVELLE RÈGLE : S'assurer que l'image remplit l'espace (À AJOUTER) */
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre sans déformer */
    display: block;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card h3, .product-card p, .product-card button {
    padding-left: 15px;
    padding-right: 15px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 15px;
}

.product-category {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* --- CORRECTION DEMANDÉE: Couleur du prix en noir --- */
.product-price {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 15px; 
    color: var(--primary-color); /* Prix en noir */
}

/* Amélioration UI: Style spécifique pour les articles vendus */
.product-price.is-sold {
    font-size: 1rem;
    font-weight: 700;
    color: #999; 
    text-decoration: line-through;
}

.view-product-btn {
    width: 100%;
    padding: 10px 0;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    border-radius: 0;
    /* Pousse le bouton au bas de la carte fixe */
    margin-top: auto; 
}

.view-product-btn:hover {
    background-color: var(--secondary-color);
}

.load-more-btn {
    display: block;
    width: 250px;
    margin: 40px auto 0;
    padding: 15px 30px;
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.load-more-btn:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
    border-color: var(--accent-color);
}

.load-more-btn.hidden {
    display: none;
}

/* --- SECTION CONTACT (Principale) --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-details p {
    margin: 5px 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.contact-details strong {
    font-weight: 700;
}

/* Formulaire */
.fs-field {
    margin-bottom: 15px;
}

.fs-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.fs-input, .fs-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: var(--font-inter);
    font-size: 1rem;
    background-color: var(--light-gray);
    color: var(--primary-color);
    resize: vertical;
}

.fs-input:focus, .fs-textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 1px var(--accent-color);
}


/* --- SECTION CONTACT / FOOTER --- */
.contact-footer-section {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 60px 0 30px;
}

.contact-grid-modern {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}

.contact-item-modern {
    display: flex;
    flex-direction: column;
}

.contact-item-modern h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-item-modern p, .contact-item-modern a {
    font-size: 0.9rem;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.contact-item-modern a:hover {
    color: var(--accent-color);
}

.copyright {
    margin-top: 15px;
    font-size: 0.8rem !important;
}


/* --- MODALES (Product & Contact) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* UX: Empêche le scroll du body quand la modale est ouverte */
.modal-open {
    overflow: hidden;
}

.modal-content {
    background-color: var(--background-color);
    padding: 40px;
    position: relative;
    max-width: 1000px;
    width: 95%;
    border-radius: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    margin: auto; /* Pour centrer le contenu verticalement dans la modale si elle est plus grande que l'écran */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    line-height: 1;
}

/* Style de la modale produit */
.product-details-modal {
    max-width: 1200px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.modal-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    margin-bottom: 15px;
}

.modal-thumbnails-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.modal-thumbnail {
    min-width: 80px; /* Utilisation de min-width pour que le scroll fonctionne */
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.modal-thumbnail.active, .modal-thumbnail:hover {
    border-color: var(--accent-color);
}

.modal-product-name {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 5px;
}

/* --- CORRECTION DEMANDÉE: Couleur du prix en noir dans la modale --- */
.modal-product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color); /* Prix en noir */
    margin-bottom: 20px;
    padding: 0;
}

.modal-details p {
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.product-specs {
    margin-bottom: 30px;
}

.product-specs h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 5px;
}

.product-specs ul {
    list-style: none;
    padding: 0;
}

.product-specs li {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-specs li span {
    font-weight: 700;
}

.buy-now-btn {
    width: 100%;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--background-color);
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    text-decoration: none;
    display: block;
}

.buy-now-btn:hover {
    background-color: var(--secondary-color);
}

/* Modale Contact spécifique (utilise le même style de form que la section contact) */
.contact-modal-content {
    max-width: 600px;
}
.contact-modal-content .modal-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
}


/* --- RESPONSIVE DESIGN (Media Queries) --- */

@media (max-width: 1024px) {
    .section-inner-content {
        padding: 0 20px;
    }
    
    .header-inner-content {
        padding: 0 20px;
    }

    /* Shop - 3 colonnes */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* Les cartes gardent leur hauteur fixe */

    .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    
    /* Navigation Mobile (UX) */
    .main-nav {
        display: none; /* Caché par défaut */
        position: absolute;
        top: 65px; /* Sous le header */
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        text-align: left;
        flex-direction: column;
    }
    
    .main-nav.is-open {
        display: flex; /* Affiché par JS */
    }

    .main-nav a {
        display: block;
        margin: 10px 0;
        padding: 10px 20px;
        border-bottom: 1px solid var(--light-gray);
        font-size: 1.1rem;
    }
    
    .menu-icon {
        display: block; /* Affiche le hamburger */
    }

    .header-nav {
        padding: 15px 0;
    }

    /* Section Hero */
    .hero-minimal-section {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 40px 20px; 
        min-height: auto;
    }

    .hero-content-left {
        padding-right: 0;
        padding-bottom: 40px;
    }

    .main-title {
        font-size: 3rem;
    }

    .hero-product-display {
        justify-content: center;
        margin-bottom: 40px;
    }

    /* Pagination (UX: trop encombrant) */
    .pagination-right-absolute {
        display: none;
    }
    
    /* Section About */
    .about-content-grid {
        grid-template-columns: 1fr;
    }
    
    /* Shop - 1 colonne */
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shop-filters {
        margin-top: 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
    height: auto; /* CORRIGÉ: S'adapte au contenu sur mobile aussi */
    }

    /* Section Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .contact-grid-modern {
        flex-direction: column;
    }
    
    .contact-item-modern {
        margin-bottom: 20px;
    }
    
    .logo-modern {
        /* Correction pour que le logo soit en haut du footer sur mobile */
        margin-bottom: 10px;
    }
}