/* Style 2: Moderne Tech - Design épuré avec accents cyan et gris foncé */

:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --gradient-start: #0f172a;
    --gradient-end: #1e293b;
    --radius: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
}

/* Navigation avec glassmorphism */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
    border-radius: 2px;
}

.nav-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
}

/* Hero Section avec design moderne */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    position: relative;
}

.hero-section > * {
    flex-shrink: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
}

.logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 2.5rem;
    border-radius: var(--radius);
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    opacity: 0.85;
    max-width: 650px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.scroll-down {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.7;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.scroll-down:hover {
    opacity: 1;
    transform: translateY(5px);
}

.scroll-down svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    animation: bounce-arrow 2s infinite ease-in-out;
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 7rem 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -1px;
}

/* About Section */
.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 0 3rem;
}

.about-intro {
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 2;
}

/* Domaines Section avec cards modernes */
.domaines-section {
    background: linear-gradient(to bottom, var(--background), #f1f5f9);
    margin: 0 -2rem;
    padding: 3rem 2rem 7rem;
}

.domaines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Layout 2 lignes avec AMO centré */
.domaines-grid-two-rows {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.domaines-grid-two-rows .domaine-card-amo {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 1.25rem);
}

.domaine-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.domaine-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.domaine-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.domaine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.domaine-card:hover .domaine-image {
    transform: scale(1.08);
}

.domaine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.domaine-overlay h3 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
}

.domaine-content {
    padding: 2rem;
}

.domaine-list {
    list-style: none;
}

.domaine-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.domaine-list li:last-child {
    border-bottom: none;
}

.domaine-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Filiales Section */
.filiales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.filiale-card {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.filiale-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.filiale-card:hover::before {
    transform: scaleX(1);
}

.filiale-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.filiale-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: var(--background);
    padding: 10px;
}

.filiale-card h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.filiale-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* Contact Section moderne */
.contact-section {
    text-align: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    margin: 0 2rem;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
}

.contact-section h2 {
    color: white;
    position: relative;
    z-index: 1;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgb(0 0 0 / 0.2);
}

.email-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    white-space: nowrap;
}

.phone-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgb(0 0 0 / 0.2);
}

.phone-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

/* Footer moderne */
footer {
    text-align: center;
    padding: 2rem 2rem;
    color: var(--text-light);
    font-size: 0.85rem;
    background: transparent;
}

.legal-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
}

.legal-link:hover {
    text-decoration: underline;
}

/* Page Mentions Légales */
.page-legal {
    background-color: var(--background);
    padding-top: 80px;
}

.page-legal .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.back-to-home {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--accent-light);
    transform: translateX(-4px);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.legal-header .logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content strong {
    color: var(--primary);
    font-weight: 600;
}

.page-legal footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .page-legal .container {
        padding: 2rem 1.5rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

    .back-link {
        font-size: 0.9rem;
    }
}

/* Laptop et écrans de petite hauteur */
@media (max-height: 800px) and (min-width: 769px) {
    .hero-section {
        padding: 6rem 2rem 3rem;
        min-height: 100vh;
        justify-content: center;
        gap: 0.5rem;
    }

    .logo {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
        padding: 15px;
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 550px;
        margin-bottom: 0;
    }

    .scroll-down {
        margin-top: 2rem;
        margin-bottom: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        justify-content: flex-end;
        padding: 1rem 1.5rem;
    }

    .nav-container {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow-xl);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-container.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 5rem 1.5rem 4rem;
        justify-content: space-between;
    }
    
    .logo {
        width: 90px;
        height: 90px;
        padding: 12px;
        margin-bottom: 1rem;
        margin-top: auto;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: auto;
    }
    
    .scroll-down {
        margin-top: auto;
        margin-bottom: 1rem;
    }

    .scroll-down {
        margin-top: 2rem;
    }

    .domaines-grid {
        grid-template-columns: 1fr;
    }

    .domaines-grid-two-rows {
        grid-template-columns: 1fr;
    }

    .domaines-grid-two-rows .domaine-card-amo {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
    }

    .filiales-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        margin: 0 1rem;
    }

    .email-link {
        max-width: 100%;
    }
}
