/* --- PALETTE DE COULEURS --- */
:root {
    --bg-dark: #1D202B;     /* Conservé pour les ombres/headers */
    --bg-main: #2D3142;     /* TA COULEUR DE FOND PRINCIPALE */
    --bg-light: #3D425A;    /* Conservé pour les éléments en relief */
    --silver: #BFC0C0;      /* CONTRASTE 1 */
    --white: #FFFFFF;       /* CONTRASTE 2 */
    --swiss-red: #C30000;   /* TA COULEUR PRIMAIRE */
    --red-glow: rgba(195, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rajdhani', sans-serif; /* Corps du texte */
    background-color: var(--bg-main);    /* Application de ta couleur de fond */
    color: var(--white);
    font-size: 1.15rem;
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    font-family: 'Orbitron', sans-serif; 
    text-transform: uppercase; 
}

/* --- LOGO SWISS-SIM --- */
.logo { 
    font-family: 'Orbitron', sans-serif; 
    font-weight: 800; /* Gras */
	font-style: italic;
    text-transform: none; /* Permet de garder tes "S" majuscules et le reste en minuscules */
}
.logo a { 
    font-size: 1.8rem; 
    cursor: pointer; 
    text-decoration: none; 
}
.logo .word { 
    color: var(--swiss-red); /* Notre rouge pour les mots */
}
.logo .hyphen { 
    color: var(--bg-main); /* Notre couleur de fond pour le tiret */
    /* Note : Si ton header a une couleur différente du fond (ex: --bg-dark), 
       tu peux remplacer var(--bg-main) par "transparent" pour qu'il se fonde parfaitement. */
}

/* --- NAVIGATION --- */
header {
    position: sticky; top: 0;
    background: rgba(29, 32, 43, 0.95);
    border-bottom: 2px solid var(--swiss-red);
    z-index: 1000; padding: 15px 0;
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.menu-toggle { display: none; font-size: 1.8rem; background: none; border: none; color: var(--white); cursor: pointer; }
nav { display: block; }
nav ul { display: flex; list-style: none; gap: 25px; }
nav ul li a { color: var(--silver); text-decoration: none; font-weight: 700; cursor: pointer; transition: all 0.3s ease; font-size: 1.1rem; }
nav ul li a:hover, nav ul li a.active { color: var(--white); text-shadow: 0 0 10px var(--swiss-red); }

/* --- BOUTONS --- */
.btn {
    display: inline-block; padding: 12px 25px; font-family: 'Orbitron', sans-serif;
    font-weight: 800; text-transform: uppercase; border-radius: 4px; border: none; transition: all 0.3s ease; cursor: pointer; text-align: center; text-decoration: none;
}
.btn-primary { background-color: var(--swiss-red); color: var(--white); box-shadow: 0 5px 20px var(--red-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(195, 0, 0, 0.6); color: var(--white); }
.btn-secondary { background-color: transparent; border: 2px solid var(--silver); color: var(--white); }
.btn-secondary:hover { border-color: var(--white); background-color: rgba(255,255,255,0.05); transform: translateY(-3px); color: var(--white); }
.btn-group { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 20px; }

/* --- STRUCTURE PAGE --- */
.page { animation: fadeIn 0.4s ease; min-height: 80vh; padding-bottom: 60px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- STYLES COMMUNS --- */
.section-header { text-align: center; margin: 60px 0 40px 0; }
.section-header h2 { font-size: 2.5rem; font-style: italic; }
.section-header h2 span { color: var(--swiss-red); }
.section-header p { color: var(--silver); font-size: 1.1rem; margin-top: 5px; }

/* --- PAGE ACCUEIL & GALERIE --- */
.hero { padding: 80px 0; background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-dark) 100%); display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-style: italic; }
.hero h1 span { color: var(--swiss-red); text-shadow: 0 0 20px var(--red-glow); }
.hero p { color: var(--silver); font-size: 1.2rem; margin-bottom: 30px; text-transform: uppercase; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; height: 220px; background-color: var(--bg-dark); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(29,32,43,0.95); padding: 15px; transform: translateY(100%); transition: transform 0.3s ease; pointer-events: none; }
.gallery-item:hover .gallery-caption { transform: translateY(0); border-top: 2px solid var(--swiss-red); }
.gallery-caption h4 { color: var(--swiss-red); font-size: 1rem; margin-bottom: 5px; }
.gallery-caption p { font-size: 0.9rem; color: var(--silver); margin:0; }

/* --- PAGE GAMMES --- */
.gamme-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; margin-bottom: 40px; background-color: var(--bg-dark); padding: 30px; border-radius: 8px; border: 1px solid rgba(191, 192, 192, 0.1); }
.gamme-img-container { overflow: hidden; border-radius: 8px; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); background-color: var(--bg-dark); }
.gamme-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gamme-img-container:hover img { transform: scale(1.05); }

.gamme-info h3 { font-size: 1.8rem; margin-bottom: 5px; }
.gamme-price { font-size: 1.8rem; color: var(--swiss-red); font-weight: 800; font-family: 'Orbitron'; margin-bottom: 15px; }
.gamme-info p { color: var(--silver); margin-bottom: 15px; font-size: 1rem; }
.gamme-specs { list-style: none; margin-bottom: 20px; }
.gamme-specs li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 1rem; }
.gamme-specs li::before { content: '✓'; color: var(--swiss-red); font-weight: bold; }
.pc-spec { background-color: var(--bg-dark); padding: 15px; border-radius: 4px; }
.pc-spec h4 { color: var(--swiss-red); font-size: 0.9rem; margin-bottom: 5px; }

/* --- PAGE ÉQUIPE --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.team-card { background-color: var(--bg-dark); border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid rgba(191,192,192,0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.team-photo { height: auto; max-height: 500px; background-color: var(--bg-dark); display: flex; align-items: center; justify-content: center; border-bottom: 3px solid var(--swiss-red); overflow: hidden; padding: 10px; }
.team-photo img { width: 100%; height: auto; object-fit: contain; transition: transform 0.4s ease; }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-info { padding: 30px 25px; }
.team-info h3 { font-size: 1.6rem; margin-bottom: 5px; letter-spacing: 1px; }
.team-info h4 { color: var(--swiss-red); font-size: 0.95rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: bold; }
.team-info p { color: var(--silver); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* --- PAGE CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-item { margin-bottom: 25px; }
.info-item h4 { color: var(--swiss-red); margin-bottom: 5px; }
.info-item p { font-size: 1.3rem; font-family: 'Orbitron'; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--silver); font-size: 0.9rem; text-transform: uppercase; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; background: var(--bg-dark); border: 1px solid rgba(191,192,192,0.2); color: var(--white); border-radius: 4px; font-family: 'Rajdhani'; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--swiss-red); }

/* --- SYSTÈME DE MODALES & LIGHTBOX --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 14, 21, 0.95); z-index: 2000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.details-modal { background-color: var(--bg-main); padding: 40px; border-radius: 8px; border: 2px solid var(--swiss-red); max-width: 600px; width: 90%; position: relative; transform: scale(0.8); transition: transform 0.3s ease; }
.modal-overlay.active .details-modal { transform: scale(1); }
.details-modal h3 { font-size: 2rem; margin-bottom: 15px; color: var(--white); }
.details-modal p { color: var(--silver); margin-bottom: 15px; }
.details-modal ul { color: var(--white); margin-left: 20px; margin-bottom: 20px; font-size: 1.1rem; }
.details-modal li { margin-bottom: 8px; }

.lightbox-container { position: relative; width: 90%; max-width: 1000px; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-height: 85vh; max-width: 100%; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); transform: scale(0.8); transition: transform 0.3s ease; border: 2px solid var(--bg-light); }
.modal-overlay.active .lightbox-img { transform: scale(1); }

.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(45, 49, 66, 0.8); border: 2px solid var(--swiss-red); color: var(--white); font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.nav-btn:hover { background: var(--swiss-red); }
.nav-prev { left: -60px; }
.nav-next { right: -60px; }

.close-btn { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; color: var(--white); cursor: pointer; transition: color 0.2s; font-family: sans-serif; line-height: 1; z-index: 2010; }
.close-btn:hover { color: var(--swiss-red); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .gamme-detail { grid-template-columns: 1fr; }
    .nav-prev { left: 10px; } .nav-next { right: 10px; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { width: 100%; display: none; margin-top: 15px; }
    nav.open { display: block; }
    nav ul { flex-direction: column; gap: 15px; text-align: center; background-color: var(--bg-main); padding: 20px; border-radius: 8px; }
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 2.2rem; }
    .gallery-caption { transform: translateY(0); border-top: 2px solid var(--swiss-red); background: rgba(29,32,43,0.98); }
    .contact-grid { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-group .btn { width: 100%; }
}

/* --- ZONE INFO INSTALLATION --- */
.pc-notice { 
    background-color: rgba(195, 0, 0, 0.1); 
    border-left: 4px solid var(--swiss-red); 
    padding: 30px; 
    margin-bottom: 40px; 
    border-radius: 4px; 
    display: flex; 
    align-items: flex-start; 
    gap: 20px; 
}
.pc-notice .icon { font-size: 2.5rem; margin-top: 5px; }
.pc-notice h4 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: 1px; color: var(--white); }
.pc-notice p { margin-bottom: 15px; color: var(--silver); line-height: 1.6; }
.pc-notice ul { color: var(--silver); margin-left: 20px; margin-bottom: 15px; }
.pc-notice li { margin-bottom: 8px; }
.pc-custom-box { 
    color: var(--white); 
    background: rgba(255,255,255,0.05); 
    padding: 15px; 
    border-radius: 4px; 
    border-left: 3px solid var(--white); 
}

/* --- HERO VIDÉO DYNAMIQUE --- */
.hero-video-container {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh; 
    /* C'est ici qu'on ajoute le scale(1.35) pour zoomer et cacher les bords YouTube */
    transform: translate(-50%, -50%) scale(1.35);
    z-index: 1;
    pointer-events: none; 
    filter: brightness(0.4);
}

.hero-content {
    position: relative;
    z-index: 10; /* On augmente le z-index pour qu'il soit bien au-dessus du bouclier */
    width: 90%;
}

/* Bouclier anti-clic pour YouTube */
.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Au-dessus de la vidéo (1), en dessous du texte (10) */
    background: transparent;
    pointer-events: auto; /* Force la capture des clics ici, pour qu'ils n'atteignent jamais la vidéo */
}

.hero-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-style: italic; }
.hero-content h1 span { color: var(--swiss-red); text-shadow: 0 0 20px var(--red-glow); }
.hero-content p { color: var(--silver); font-size: 1.2rem; margin-bottom: 30px; text-transform: uppercase; }




.wa-highlight-box {
            background-color: rgba(37, 211, 102, 0.1);
            border-left: 4px solid #25D366;
            padding: 15px;
            margin-bottom: 25px;
            border-radius: 0 5px 5px 0;
        }
        .wa-highlight-box p {
            margin: 0;
            color: #fff; /* À adapter selon votre thème, mettez du noir si fond clair */
            font-family: 'Rajdhani', sans-serif;
            font-size: 1.1rem;
        }
        .btn-whatsapp-submit {
            background-color: #25D366;
            color: white;
            border: none;
            padding: 15px;
            font-family: 'Orbitron', sans-serif;
            font-weight: 800;
            font-size: 1.1rem;
            text-transform: uppercase;
            cursor: pointer;
            border-radius: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }
        .btn-whatsapp-submit:hover {
            background-color: #128C7E;
            transform: translateY(-2px);
        }
        .btn-whatsapp-submit svg {
            width: 24px;
            height: 24px;
            fill: white;
        }