/* Fichier : style.css | Concept 1 : Dark Tech & Glassmorphism */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Palette Dark Tech */
    --bg-main: #11151D;         /* Fond principal ultra sombre */
    --bg-glass: rgba(34, 45, 65, 0.65); /* Verre dépoli */
    --border-glass: rgba(55, 65, 88, 0.5); /* Bordure lumineuse légère */
    
    --brand-accent: #D76C58;    /* Action / Néon (Orange vif) */
    --brand-accent-hover: #e57d69;
    --brand-secondary: #7F5056; /* Accent secondaire */
    
    --text-main: #EFF3F5;       /* Blanc cassé pour lisibilité max */
    --text-muted: #ADD4F3;      /* Bleu glacier pour les paragraphes */
    --text-dark: #11151D;       /* Pour les contrastes sur boutons clairs */
    
    --glow-shadow: 0 0 20px rgba(215, 108, 88, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    /* Background Tech Gradient Subtil */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(127, 80, 86, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(55, 65, 88, 0.4), transparent 25%);
    background-attachment: fixed;
}

/* Typographie */
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 3rem; line-height: 1.15; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 12px; }
p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 24px; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.bg-white { background-color: transparent; } /* Annule le bg-white pour le dark theme */

/* --- HEADER & MENU GLASSMORPHISM --- */
header {
    background-color: rgba(17, 21, 29, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    position: fixed; width: 100%; top: 0; z-index: 1000; padding: 24px 0;
    transition: all 0.3s ease;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 75px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(255,255,255,0.1)); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-accent); text-shadow: 0 0 10px rgba(215, 108, 88, 0.5); }

/* --- MENU DÉROULANT --- */
.dropdown { position: relative; display: inline-block; }
.dropdown::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; }
.dropbtn {
    background-color: transparent; color: var(--text-main); font-family: 'Inter', sans-serif;
    font-weight: 500; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: 1px;
}
.dropdown:hover .dropbtn, .dropbtn.active { color: var(--brand-accent); text-shadow: 0 0 10px rgba(215, 108, 88, 0.5); }

.dropdown-content {
    display: none; position: absolute; 
    background-color: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    min-width: 220px; border-radius: 12px; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 15px;
    border: 1px solid var(--border-glass); box-shadow: var(--glass-shadow); z-index: 1001; overflow: hidden;
}
.dropdown-content a {
    color: var(--text-main); padding: 12px 20px; text-decoration: none; display: block;
    font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: rgba(255,255,255,0.1); color: var(--brand-accent); }
.dropdown:hover .dropdown-content { display: block; animation: slideUp 0.3s ease forwards; }

@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* --- BOUTONS CYBER --- */
.btn-primary {
    display: inline-flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, var(--brand-accent), #b5503e);
    color: #ffffff !important; padding: 12px 28px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--glow-shadow); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(215, 108, 88, 0.6); }

.btn-secondary {
    display: inline-flex; justify-content: center; align-items: center;
    background-color: transparent; color: var(--brand-accent) !important; padding: 12px 28px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 8px;
    border: 2px solid var(--brand-accent); box-shadow: inset 0 0 0 rgba(215,108,88,0), 0 0 10px rgba(215,108,88,0.2);
    transition: all 0.3s ease; cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
}
.btn-secondary:hover { background-color: rgba(215, 108, 88, 0.1); box-shadow: inset 0 0 20px rgba(215,108,88,0.2), 0 0 20px rgba(215,108,88,0.4); }
.button-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* --- HERO SECTION --- */
.hero-section { padding: 200px 0 100px 0; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* --- SECTIONS TEXTE & IMAGE --- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-image, .split-image-element {
    width: 100%; border-radius: 16px; object-fit: cover;
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow), 0 0 20px rgba(55, 65, 88, 0.4); /* Effet 3D lumineux */
    transition: transform 0.4s ease;
}
.hero-image:hover, .split-image-element:hover { transform: scale(1.02) translateY(-5px); box-shadow: 0 15px 40px rgba(55, 65, 88, 0.6); }

/* --- CARTES SERVICES (GLASSMORPHISM) --- */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }

.service-card, .contact-form, .legal-card, .hm-model-card {
    background: var(--bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 40px; border-radius: 20px; border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255,255,255,0.15); /* Reflet de lumière sur la tranche sup */
    border-left: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--glass-shadow); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-main);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05); border-color: var(--brand-accent); }
.service-icon { width: 56px; height: 56px; margin-bottom: 24px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
.service-icon img { width: 100%; height: auto; }

/* Override SOUVERAINETÉ */
.hm-model-card { border-left: 4px solid var(--brand-accent); background: rgba(17, 21, 29, 0.8); }
.hm-model-card h2, .hm-model-card h3 { color: var(--text-main) !important; text-shadow: none; }
.hm-model-card p, .hm-model-card strong { color: var(--text-muted) !important; }

/* --- TITRES LÉGAUX --- */
.legal-hero { padding: 180px 0 60px 0; background: transparent; border-bottom: 1px solid var(--border-glass); text-align: center; }
.legal-hero h1 { font-size: 3rem; position: relative; display: inline-block; padding-bottom: 15px; }
.legal-hero h1::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px;
    background: var(--brand-accent); border-radius: 2px; box-shadow: 0 0 10px var(--brand-accent);
}

/* --- FORMULAIRE DARK --- */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; color: var(--text-main); letter-spacing: 0.5px; }

.form-control {
    width: 100%; padding: 14px 18px; border: 1px solid var(--border-glass); border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-main);
    background-color: rgba(17, 21, 29, 0.6); box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.form-control::placeholder { color: #5c6b89; }
.form-control:focus {
    outline: none; border-color: var(--brand-accent);
    background-color: rgba(34, 45, 65, 0.8); box-shadow: 0 0 0 3px rgba(215, 108, 88, 0.2), inset 0 1px 2px rgba(0,0,0,0.5);
}
select.form-control {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23EFF3F5%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 16px top 50%; background-size: 12px auto;
}
textarea.form-control { resize: vertical; min-height: 140px; }

/* ENCADRÉS LÉGAUX / INFOS */
.grc-shield, .highlight-box, .alert-clause {
    background-color: rgba(34, 45, 65, 0.4); border: 1px solid var(--border-glass);
    padding: 24px; border-radius: 12px; margin: 24px 0; backdrop-filter: blur(4px);
}
.grc-shield { border-left: 4px solid var(--brand-secondary); }
.highlight-box { border-left: 4px solid var(--text-muted); }
.alert-clause { border-left: 4px solid var(--brand-accent); }

/* --- FOOTER --- */
footer {
    background-color: #0b0e14; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted);
    padding: 80px 0 40px 0; font-size: 0.95rem; position: relative; z-index: 10;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: var(--text-main); margin-bottom: 20px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--brand-accent); text-shadow: 0 0 8px rgba(215, 108, 88, 0.4); }
.footer-bottom { text-align: left; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; }

/* --- RESPONSIVE & HAMBURGER MENU --- */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1002; padding: 10px; }
.hamburger span { width: 30px; height: 2px; background-color: var(--text-main); transition: all 0.3s ease; border-radius: 2px; box-shadow: 0 0 5px rgba(255,255,255,0.2); }

@media (max-width: 992px) {
    h1 { font-size: 2.25rem; } h2 { font-size: 1.75rem; }
    .hero-section { padding: 140px 0 60px 0; }
    .hero-grid, .split-section, .footer-grid { grid-template-columns: 1fr; gap: 50px; }
    .logo img { height: 50px; }
    .hamburger { display: flex; }

    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 100%; max-width: 350px;
        background: rgba(17, 21, 29, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; justify-content: flex-start; padding: 100px 30px 30px 30px; 
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        align-items: flex-start; z-index: 1001; border-left: 1px solid var(--border-glass);
    }
    .nav-links.active { right: 0; }
    .nav-links a, .dropbtn { font-size: 1.15rem; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .dropdown { width: 100%; }
    .dropdown-content {
        position: static; box-shadow: none; border: none; transform: none; width: 100%;
        background-color: transparent; margin-top: 5px; border-radius: 0; border-left: 2px solid var(--brand-accent); padding-left: 15px;
    }
    .dropdown-content a { border-bottom: none; font-size: 1rem; color: var(--text-muted); }
    .btn-primary { width: 100%; margin-top: 20px; }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--brand-accent); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--brand-accent); }
}

/* --- LIENS DANS LES PAGES LÉGALES --- */
.legal-card a {
    color: var(--brand-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(215, 108, 88, 0.4);
    padding-bottom: 2px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.legal-card a:hover {
    color: var(--brand-accent-hover);
    border-bottom-color: var(--brand-accent-hover);
    text-shadow: 0 0 8px rgba(215, 108, 88, 0.4);
}