/* --- VARIABLES ET BASE --- */
:root {
    --bg: #000000;
    --card-bg: rgba(10, 10, 10, 0.5); 
    --border: rgba(255, 255, 255, 0.1);
    --text-muted: #888888;
    --accent-red: #ff4d4d;
}

/* Correctif flash blanc : forcer le fond noir sur l'élément racine */
html {
    background-color: #000000;
}

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

body { 
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(50, 40, 120, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(80, 30, 100, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(30, 50, 100, 0.2) 0%, transparent 60%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    
    color: white; 
    font-family: 'Geist', sans-serif; 
    overflow-x: hidden; 
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- NAVIGATION --- */
.navbar { 
    position: absolute; 
    top: 0; 
    width: 100%; 
    z-index: 100; 
    padding: 1.5rem 2rem; 
    border-bottom: 1px solid var(--border); 
}

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

.brand { font-weight: 800; letter-spacing: -1px; }

/* --- HERO --- */
.hero-section { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 1rem; }
.badge { padding: 0.5rem 1rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 100px; font-size: 0.75rem; margin-bottom: 2rem; color: var(--text-muted); backdrop-filter: blur(5px); }
h1 { font-size: clamp(2.5rem, 10vw, 5.5rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }
.muted { color: var(--text-muted); }
.subtitle { margin-top: 2rem; color: var(--text-muted); font-size: 1.1rem; max-width: 650px; }

/* --- BENTO GRID --- */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1200px; margin: 0 auto 5rem; padding: 0 1.5rem; }
.bento-item { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    border-radius: 24px; 
    padding: 2.2rem; 
    min-height: 300px; 
    position: relative; 
    transition: all 0.4s ease; 
    backdrop-filter: blur(12px); 
}
.bento-item:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-5px); background: rgba(20, 20, 20, 0.6); }
.bento-item.wide { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; }
.icon { font-size: 1.8rem; display: block; margin-bottom: 1rem; opacity: 0.9; }
.bento-item h3 { font-size: 1.3rem; margin-bottom: 1rem; font-weight: 600; }
.bento-item p { color: var(--text-muted); font-size: 0.85rem; font-weight: 300; text-align: justify; }

/* --- TESTIMONIALS --- */
.testimonials { padding: 4rem 0; overflow: hidden; }
.section-title { text-align: center; margin-bottom: 3rem; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; }
.marquee-wrapper { max-width: 1600px; margin: 0 auto; padding: 0 8rem; }
.marquee-container { display: flex; overflow: hidden; user-select: none; mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); margin-bottom: 1.5rem; }
.marquee-content { display: flex; gap: 1.5rem; flex-shrink: 0; }
.left { animation: scroll-left 25s linear infinite; }
.right { animation: scroll-right 25s linear infinite; }
.marquee-container:hover .marquee-content { animation-play-state: paused; }
.t-card { background: var(--card-bg); border: 1px solid var(--border); padding: 1.5rem; border-radius: 18px; min-width: 285px; font-style: italic; color: #eee; font-size: 0.9rem; line-height: 1.4; backdrop-filter: blur(12px); }
.client-name { display: block; margin-top: 1rem; font-style: normal; font-size: 0.75rem; color: var(--accent-red) !important; filter: blur(3px) !important; font-weight: 700; }

@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* --- SECTION LOGISTIQUE (MACBOOK) --- */
.logistique-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 2500px;
    padding: 20px;
    margin-top: -40px;
}

/* Texte ajusté et caché derrière l'écran */
.logistique-text {
    max-width: 400px;
    z-index: 0;
    position: relative;
    text-transform: none;
    letter-spacing: normal;
}

.logistique-text h2 { font-size: 1.8rem; margin-bottom: 5px; color: white; text-transform: none; letter-spacing: -0.5px; }
.logistique-text p { font-size: 0.9rem; color: var(--text-muted); text-transform: none; letter-spacing: 0; }

.macbook-wrapper {
    position: relative;
    transform-style: preserve-3d;
    margin-top: 120px;
    margin-bottom: 40px;
    transform: rotateX(5deg);
    z-index: 10;
}

.macbook-screen-hinge {
    width: 500px; height: 330px; background: #0a0a0a; border: 3px solid #3c3c3c; border-radius: 18px 18px 0 0;
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%) rotateX(-100deg); 
    transform-origin: bottom; transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0; z-index: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
}

/* L'Encoche (Notch) */
.macbook-screen-hinge::before {
    content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
    width: 105px; height: 18px; background: #000; border-radius: 0 0 10px 10px; z-index: 20;
}

/* La Caméra FaceTime */
.macbook-screen-hinge::after {
    content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
    width: 7px; height: 7px; background: radial-gradient(circle at 2px 2px, #666 0%, #111 80%);
    border-radius: 50%; z-index: 21;
    box-shadow: 14px 0 0 -1px #0f0, 14px 0 5px 0px rgba(0, 255, 0, 0.6);
}

.macbook-wrapper.is-open .macbook-screen-hinge { transform: translateX(-50%) rotateX(0deg); opacity: 1; }

.screen-content {
    width: 98%; height: 96%; background: linear-gradient(145deg, #1a1a2e 0%, #000000 100%);
    border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.8s ease 0.6s;
}
.macbook-wrapper.is-open .screen-content { opacity: 1; }

/* UI FACETIME */
.facetime-ui { display: flex; flex-direction: column; align-items: center; }
.pulse-dot { width: 10px; height: 10px; background: #0f0; border-radius: 50%; margin-bottom: 10px; animation: pulse 2s infinite; }
.loading-text { color: #0f0; font-size: 0.7rem; font-weight: bold; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 25px; }
.caller-profile { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: rgba(255, 255, 255, 0.08); border-radius: 50px; margin-bottom: 25px; }
.avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, 0.2); }
.caller-name { font-size: 1.1rem; font-weight: 500; color: white; }
.call-actions { display: flex; gap: 35px; }
.btn-decline, .btn-accept { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-decline { background: #ff3b30; } .btn-accept { background: #34c759; }

.macbook-base { width: 540px; height: 24px; background: #d1d1d1; border-radius: 2px 2px 22px 22px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.8); z-index: 5; }
.notch { width: 100px; height: 8px; background: #b5b5b5; margin: 0 auto; border-radius: 0 0 10px 10px; }

/* PLATFORMES */
.platform-grid { display: flex; justify-content: center; gap: 12px; margin-top: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.glass-card { display: flex; align-items: center; gap: 10px; padding: 8px 18px; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; transition: 0.3s; }
.platform-icon { width: 22px; height: 22px; object-fit: cover; border-radius: 50%; background: white; padding: 1.5px; }
.glass-card span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }

/* --- CONTACT --- */
.contact-section { max-width: 800px; margin: 0 auto 5rem; padding: 0 1.5rem; }
#js-contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
input, textarea { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); padding: 1.2rem; border-radius: 12px; color: white; outline: none; font-family: inherit; }
.btn-glow, .btn-glow-alt { background: white; color: black; padding: 1rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; }

/* --- RESPONSIVE --- */
/* Tablettes (max-width: 1024px) */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item.wide { grid-column: span 2; }
    .bento-item.tall { grid-row: span 1; }
    .marquee-wrapper { padding: 0 3rem; }
    .macbook-wrapper { transform: scale(0.8) rotateX(5deg); margin-top: 0; }
}

/* Smartphones (max-width: 768px) */
@media (max-width: 768px) {
    .navbar { padding: 1rem 1.5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.wide, .bento-item.tall { grid-column: span 1; grid-row: span 1; }
    .marquee-wrapper { padding: 0 1rem; }
    /* Masque plus doux pour maximiser l'espace de lecture sur petit écran */
    .marquee-container { 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); }
    .macbook-wrapper { transform: scale(0.55) rotateX(5deg); margin-top: 200px; }
}

/* Petits écrans mobiles (max-width: 480px) */
@media (max-width: 480px) {
    .macbook-wrapper { transform: scale(0.42) rotateX(5deg); margin-top: 150px; }
    .testimonials { padding: 2rem 0; }
}

@keyframes pulse { 0% { transform: scale(0.9); opacity: 0.4; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.4; } }