/* FEUILLE DE STYLE GstarCAD Suisse 
   Dernière mise à jour : 2026 
*/

:root {
    --primary: #0056b3; /* Bleu professionnel GstarCAD */
    --secondary: #2c3e50;
    --accent: #e67e22;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --primary-dark: #2c3e50;
    --orange: #e67e22;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Roboto, sans-serif; 
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: white;
}

/* --- NAVIGATION & HEADER --- */
header {
    background: white;
    position: sticky;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }
.logo span { color: var(--secondary); }

.nav-links { display: none; }

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary);
    display: block;
}

/* --- SECTION HERO --- */
.hero {
    position: relative;
    padding: 100px 5% 60px;
    color: white; 
    text-align: center; 
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 43, 91, 0.7); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px; 
    margin: 0 auto;
}

.hero h1 { 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
    line-height: 1.2;
    color: white; /* Corrigé pour lisibilité sur fond bleu */
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    opacity: 0.9;
}

/* --- BOUTONS --- */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #004494; }

.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.btn-hero-orange {
    background: var(--orange);
    color: white;
    border: none; 
    padding: 12px 30px; 
    font-size: 1.1rem;
}

.btn-hero-orange:hover { background: #d35400; }

.cta-group { display: flex; justify-content: center; gap: 15px; }

/* --- GRILLE DE FONCTIONNALITÉS --- */
.features { 
    padding: 60px 5%; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.gstar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    margin-top: 40px;
}

.gstar-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer; 
    position: relative; 
    overflow: hidden;
}

.gstar-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.15);
    border-color: var(--orange);
}

.gstar-card i {
    font-size: 3.5rem;
    color: #3498db;
    margin-bottom: 20px;
    transition: 0.3s;
}

.gstar-card:hover i {
    color: var(--orange); 
    transform: scale(1.1);
}

.gstar-card::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 5px;
    background: var(--orange);
    transition: 0.4s;
}

.gstar-card:hover::after { width: 100%; }

/* --- TABLEAU DE COMPARAISON --- */
.comparison { background: var(--light); padding: 60px 5%; text-align: center; }
table { width: 100%; max-width: 900px; margin: 30px auto; border-collapse: collapse; background: white; }
th, td { padding: 15px; border: 1px solid #ddd; text-align: center; }
th { background: var(--secondary); color: white; }
.check { color: #27ae60; font-weight: bold; }

/* --- MODALES --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff; 
    margin: 10% auto; 
    padding: 40px;
    border-left: 8px solid var(--orange); 
    width: 60%; 
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5); 
    animation: slideDown 0.4s;
}

.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover { color: var(--orange); }

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- FOOTER --- */
footer { 
    background: var(--secondary); 
    color: white; 
    padding: 30px 5%; 
    text-align: center; 
}

.copyright { font-size: 0.9rem; opacity: 0.8; letter-spacing: 1px; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .cta-group { flex-direction: column; }
    
    .menu-toggle { display: flex; }
    
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        list-style: none;
        text-align: center;
        z-index: 1000;
    }

    .nav-links.active { display: flex; }
    
    .modal-content { width: 90%; margin: 20% auto; }
}