/* --- style.css --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

:root {
    /* Couleurs & Ambiance */
    --bg-color: #FBFBFD; /* Blanc "Off-White" Apple */
    --text-main: #1D1D1F;
    --text-muted: #86868B;
    --accent-blue: #0071E3; /* Bleu Apple */
    
    /* Blobs Organiques (Pastel Saturé) */
    --blob-1: #E0F7FA; /* Cyan très pâle */
    --blob-2: #E8F5E9; /* Vert menthe */
    --blob-3: #FFF3E0; /* Orange crème */
    
    /* Glassmorphism Ultra-Fin */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --radius-l: 32px;
    --radius-m: 24px;
    --radius-s: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- FOND LIQUIDE --- */
.liquid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; overflow: hidden; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #fff, transparent 80%);
}
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: 0.9;
    will-change: transform;
    animation: moveLiquid 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--blob-1); }
.blob-2 { bottom: -10%; right: -20%; width: 60vw; height: 60vw; background: var(--blob-2); animation-delay: -5s; }
.blob-3 { top: 40%; left: 30%; width: 40vw; height: 40vw; background: var(--blob-3); animation-delay: -10s; }

@keyframes moveLiquid {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- GLASS COMPONENTS --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-m);
}
.glass-panel { padding: 3rem; }

/* --- TYPO --- */
h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.5rem; color: #111; }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
p { font-size: 1.15rem; color: var(--text-muted); font-weight: 400; max-width: 600px; line-height: 1.6; }
.kicker { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-blue); margin-bottom: 1rem; display: block; }

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    width: auto; padding: 12px 24px; z-index: 1000;
    display: flex; gap: 32px; align-items: center;
    border-radius: 50px; background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px); box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
nav a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.9rem; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--accent-blue); }
nav .logo { font-weight: 800; padding-right: 12px; border-right: 1px solid rgba(0,0,0,0.1); }

/* --- BOUTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: 50px;
    font-weight: 500; text-decoration: none; transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.btn-secondary { background: rgba(255,255,255,0.5); color: #000; border: 1px solid rgba(0,0,0,0.05); margin-left: 10px; }
.btn-secondary:hover { background: #fff; }

/* --- SECTIONS LAYOUT --- */
section { padding: 8rem 5%; max-width: 1400px; margin: 0 auto; position: relative; }

/* BENTO GRID (Section Concept) */
.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 4rem;
}
.bento-card {
    border-radius: var(--radius-l); padding: 2.5rem;
    display: flex; flex-direction: column; justify-content: space-between;
    height: 400px; transition: 0.4s; overflow: hidden; position: relative;
}
.bento-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); background: rgba(255,255,255,0.85); }
.span-2 { grid-column: span 2; }
.span-row-2 { grid-row: span 2; height: auto; }

/* HORIZONTAL SCROLL (Section Matériaux) */
/* --- HORIZONTAL SCROLL (Section Matériaux) --- */
.scroll-wrapper {
    display: flex; 
    gap: 24px; 
    overflow-x: auto; 
    padding-bottom: 30px; /* Espace pour la barre de défilement */
    margin-top: 3rem;
    scroll-snap-type: x mandatory; 
    
    /* Pour Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) rgba(0,0,0,0.05);
}

/* DESIGN DE LA SCROLLBAR (Chrome, Safari, Edge) */
.scroll-wrapper::-webkit-scrollbar {
    height: 8px; /* Hauteur de la barre */
}

.scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05); /* Fond de la barre (très discret) */
    border-radius: 10px;
    margin: 0 5%; /* Marge pour ne pas coller aux bords */
}

.scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(29, 29, 31, 0.3); /* Couleur du curseur (Gris Apple) */
    border-radius: 10px; /* Forme de pilule */
    transition: background 0.3s;
}

.scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 29, 31, 0.6); /* Plus foncé au survol */
    cursor: grab;
}

/* CARDS */
.material-card {
    min-width: 300px; 
    height: 400px; 
    border-radius: var(--radius-m);
    background: #fff; 
    scroll-snap-align: center;
    position: relative; 
    overflow: hidden; 
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    /* On empêche la sélection de texte pendant le scroll */
    user-select: none; 
}

.material-img { width: 100%; height: 70%; object-fit: cover; transition: 0.5s; }
.material-card:hover .material-img { transform: scale(1.05); }
.material-info { padding: 1.5rem; height: 30%; display: flex; align-items: center; justify-content: space-between; }

/* FOOTER */
footer { padding: 4rem 5%; text-align: center; border-top: 1px solid rgba(0,0,0,0.05); background: rgba(255,255,255,0.4); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .bento-card { height: 300px; }
}

/* --- NOUVEAUX STYLES (WORKFLOW & TECH) --- */

/* WORKFLOW (Timeline) */
.steps-container {
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4rem; position: relative;
}
/* Ligne connectrice derrière */
.steps-container::before {
    content: ''; position: absolute; top: 40px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    z-index: -1;
}
.step-card {
    flex: 1; min-width: 250px; text-align: center;
    background: rgba(255,255,255,0.4); backdrop-filter: blur(10px);
    padding: 2rem; border-radius: var(--radius-m); border: 1px solid rgba(255,255,255,0.5);
    transition: 0.3s;
}
.step-card:hover { background: rgba(255,255,255,0.8); transform: translateY(-5px); }
.step-icon {
    width: 80px; height: 80px; margin: 0 auto 1.5rem auto;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* TECH HIGHLIGHT (Focus Diode) */
.tech-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.laser-beam-demo {
    position: relative; height: 400px; border-radius: var(--radius-l);
    background: #1a1a1a; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
/* Simulation du faisceau laser */
.beam {
    position: absolute; top: 0; left: 50%; width: 2px; height: 50%;
    background: linear-gradient(to bottom, transparent, #0071E3, #fff);
    box-shadow: 0 0 20px #0071E3;
    animation: pulseBeam 2s infinite;
}
.spark {
    position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
    background: #fff; border-radius: 50%; transform: translate(-50%, -50%);
    box-shadow: 0 0 30px #0071E3, 0 0 50px #0071E3;
    animation: sparkFlash 0.1s infinite alternate;
}
@keyframes pulseBeam { 0% { opacity: 0.5; height: 48%; } 100% { opacity: 1; height: 50%; } }
@keyframes sparkFlash { 0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); } }

/* FAQ RAPIDE */
.faq-item {
    background: rgba(255,255,255,0.5); margin-bottom: 1rem; border-radius: var(--radius-s);
    overflow: hidden; border: 1px solid rgba(255,255,255,0.5); transition: 0.3s;
}
.faq-question {
    padding: 1.5rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-answer {
    max-height: 0; overflow: hidden; transition: 0.4s ease; padding: 0 1.5rem; color: var(--text-muted);
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 1.5rem; }
.faq-item.open { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

@media (max-width: 768px) {
    .tech-split { grid-template-columns: 1fr; }
    .steps-container::before { display: none; }
}

/* --- NOUVEAUX AJOUTS (AVIS & FOCUS) --- */

/* Section AVIS CLIENTS */
.reviews-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 3rem;
}
.review-card {
    background: rgba(255,255,255,0.6); padding: 2rem; border-radius: var(--radius-m);
    border: 1px solid rgba(255,255,255,0.5); position: relative;
}
.stars { color: #F5A623; margin-bottom: 0.5rem; letter-spacing: 2px; }
.review-author { font-weight: 600; font-size: 0.9rem; margin-top: 1rem; display: flex; align-items: center; gap: 10px; }
.avatar-placeholder { 
    width: 30px; height: 30px; background: linear-gradient(135deg, #ddd, #fff); border-radius: 50%; 
}

/* Section FOCUS TECHNIQUE (Verre) */
.glass-focus {
    display: flex; align-items: center; gap: 3rem; margin: 4rem 0;
    background: #111; color: #fff; border-radius: var(--radius-l); padding: 3rem;
    overflow: hidden; position: relative;
}
.glass-focus-content { z-index: 2; flex: 1; }
.glass-focus-visual { 
    flex: 1; height: 300px; background: rgba(255,255,255,0.1); border-radius: var(--radius-m);
    border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
    position: relative;
}
/* Effet de lueur bleue derrière */
.glass-focus::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.4), transparent 70%); pointer-events: none;
}

@media (max-width: 768px) {
    .glass-focus { flex-direction: column; padding: 2rem; }
    .glass-focus-visual { width: 100%; height: 200px; }
}

/* --- STYLE DES LOGOS PLATEFORMES --- */
.platform-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.review-meta {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- FAQ THEMATIQUE --- */
.faq-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.faq-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* On rend les items un peu plus compacts pour ce design */
.faq-item {
    margin-bottom: 15px; 
    border-radius: 12px;
    background: rgba(255,255,255,0.7); /* Plus blanc pour détacher du fond */
}
.faq-question { padding: 1rem; font-size: 0.95rem; }

/* CORRECTIF: Force l'image à s'afficher sur les cartes matériaux */
.material-card .bg-img {
    z-index: 0 !important; /* L'image repasse devant le fond blanc */
    position: relative !important; /* On garde la structure de la carte */
    width: 100%;
}

/* --- PAGE CATALOGUE --- */

/* Filtres (Style Pillules Apple) */
.filter-container {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 3rem;
}
.filter-btn {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.filter-btn:hover { background: #fff; transform: scale(1.05); color: #000; }
.filter-btn.active { background: #1D1D1F; color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Grille Produits */
.catalogue-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px;
}

/* Carte Produit */
.product-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-m);
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); background: #fff; }

/* Image Produit */
.product-thumb {
    height: 300px; width: 100%; position: relative; overflow: hidden;
}
.product-thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }

/* Infos Produit */
.product-details { padding: 1.5rem; display: flex; flex-direction: column; height: 100%; }
.product-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-blue); font-weight: 700; margin-bottom: 0.5rem; }
.product-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.product-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }

/* Boutons d'action petits */
.actions { display: flex; gap: 10px; margin-top: auto; }
.btn-small {
    flex: 1; text-align: center; padding: 10px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: 0.2s;
}
.btn-vinted { background: rgba(0, 119, 133, 0.1); color: #007785; }
.btn-vinted:hover { background: #007785; color: white; }
.btn-lbc { background: rgba(240, 106, 53, 0.1); color: #F06A35; }
.btn-lbc:hover { background: #F06A35; color: white; }
/* Style du lien crédit footer */
footer a[href*="maurice-clement"] {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
footer a[href*="maurice-clement"]:hover {
    color: var(--accent-blue);
}

/* --- PAGE CONTACT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Colonne Info plus petite, Formulaire plus large */
    gap: 40px;
    align-items: start;
    margin-top: 3rem;
}

/* Carte d'infos (Gauche) */
.contact-info-card {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-m);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.6);
}

.contact-method { margin-bottom: 2rem; }
.contact-method h3 { font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.contact-method p, .contact-method a { font-size: 0.95rem; color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.contact-method a:hover { color: var(--accent-blue); }

/* Le Formulaire (Droite) */
.contact-form-card {
    background: #fff;
    border-radius: var(--radius-l);
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-main); }

/* Champs de saisie style Apple */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 16px;
    background: #F5F5F7; /* Gris très clair Apple */
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    background: #fff;
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* Responsive Mobile */
@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form-card { padding: 2rem; }
}

/* --- PAGE GALERIE (MASONRY) --- */
.gallery-grid {
    column-count: 3; /* 3 colonnes sur PC */
    column-gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius-m);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover { transform: translateY(-5px); }

.gallery-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img { transform: scale(1.05); }

/* Overlay au survol avec le titre du projet */
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: 0.3s;
    display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.project-name { color: white; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* LIGHTBOX (Zoom image) */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    z-index: 1000; display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(10px);
}
.lightbox.active { display: flex; animation: fadeIn 0.3s; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.lightbox-close {
    position: absolute; top: 30px; right: 30px; color: white; font-size: 3rem; cursor: pointer;
}

@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 600px) { .gallery-grid { column-count: 1; } }

/* ======================================================= */
/* === AJOUTS RESPONSIVE (A COLLER A LA FIN DU FICHIER) === */
/* ======================================================= */

/* TABLETTE (Max 1024px) */
@media (max-width: 1024px) {
    /* On passe en 2 colonnes au lieu de 3 */
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { column-count: 2; }
    
    /* On réduit un peu le titre */
    h1 { font-size: 3.5rem; }
}

/* MOBILE (Max 768px) */
@media (max-width: 768px) {
    
    /* 1. NAVIGATION MOBILE */
    nav {
        width: 95%; /* Prend presque toute la largeur */
        top: 10px;
        padding: 10px 15px;
        flex-wrap: wrap; /* Permet au logo de rester en haut et aux liens de passer dessous */
        justify-content: center;
        gap: 10px;
    }
    nav .logo {
        width: 100%; 
        text-align: center; 
        border-right: none; /* Enlève la barre de séparation */
        padding-right: 0;
        margin-bottom: 5px;
    }
    nav a { font-size: 0.85rem; }

    /* 2. LAYOUT & MARGES */
    /* On réduit le padding immense (8rem) pour mobile */
    section { padding: 6rem 5% 3rem 5%; } 

    /* 3. GRILLES EN 1 COLONNE */
    /* Force tous les éléments côte à côte à s'empiler */
    .bento-grid, 
    .contact-wrapper, 
    .catalogue-grid, 
    .tech-split,
    .reviews-grid,
    .materials-grid { 
        grid-template-columns: 1fr !important; 
    }

    /* Annule les éléments qui prennent 2 places */
    .span-2, .span-row-2 { grid-column: auto; grid-row: auto; }

    /* 4. GALERIE & WORKFLOW */
    .gallery-grid { column-count: 1; }
    .steps-container { flex-direction: column; }
    .steps-container::before { display: none; } /* Cache la ligne timeline */

    /* 5. TEXTES */
    h1 { font-size: 2.5rem; margin-top: 1rem; } /* Plus petit pour ne pas sortir */
    h2 { font-size: 2rem; }
    
    /* 6. FIX PAGE GALERIE VIDE */
    /* Empêche le "+ " de passer sous le menu */
    .empty-slot { 
        width: 100px; height: 100px; font-size: 2rem;
        margin-top: 2rem; 
    }

    /* 7. AJUSTEMENTS DIVERS */
    .bento-card { height: auto; min-height: 250px; } /* Hauteur auto pour le texte */
    .glass-focus { flex-direction: column; padding: 1.5rem; }
    .glass-focus-visual { width: 100%; height: 200px; margin-top: 1rem; }
    .contact-form-card, .contact-info-card { padding: 1.5rem; }
}