/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Colors */
    --clr-navy-dark: hsl(215, 60%, 8%);
    --clr-navy: hsl(215, 60%, 12%);
    --clr-navy-light: hsl(215, 60%, 18%);
    --clr-accent: hsl(210, 100%, 50%); /* Bright electric blue */
    --clr-accent-hover: hsl(210, 100%, 40%);
    --clr-text-main: #f8f9fa;
    --clr-text-muted: hsl(210, 10%, 65%);
    --clr-dark: hsl(220, 30%, 5%);
    --clr-card-bg: rgba(255, 255, 255, 0.03);
    --clr-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Box Shadows */
    --shadow-glow: 0 0 20px rgba(0, 123, 255, 0.3);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    background: linear-gradient(rgba(11, 19, 43, 0.65), rgba(11, 19, 43, 0.80)), url('../fond_acceuil.jpg') center/cover fixed no-repeat;
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    color: var(--clr-text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--clr-text-main);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title span {
    color: var(--clr-accent);
}

.text-gradient {
    background: linear-gradient(135deg, #fff, var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--ff-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--clr-border);
    color: var(--clr-text-main);
}

.btn-outline:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Header & Navbar (Glassmorphism)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.header.scrolled {
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-border);
    padding: 0.7rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 80px;
    width: auto;
    border-radius: 6px;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 50px;
}

.logo-text {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.nav-links a:not(.btn) {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    color: var(--clr-text-muted);
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--clr-text-main);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: transparent;
    overflow: hidden;
}

/* Decorative background elements */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--clr-accent);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: rgba(11, 19, 43, 0.5);
    backdrop-filter: blur(8px);
}

.section-light {
    background-color: #ffffff;
    color: var(--clr-dark);
}

.section-light .section-title,
.section-light h2, 
.section-light h3, 
.section-light h4 {
    color: var(--clr-navy-dark);
}

.section-light p, 
.section-light .card-text {
    color: #4a5568;
}

.section-light .card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.section-light .card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: #f8f9fa;
    border-color: var(--clr-accent);
}

.section-light .card-title {
    color: var(--clr-navy-dark);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.card {
    background: rgba(11, 19, 43, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--clr-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    background: var(--clr-navy-light);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--clr-navy);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    color: var(--clr-text-main);
    font-family: var(--ff-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.section-divider {
    margin: 2rem 0;
    border-top: 1px solid var(--clr-border);
    position: relative;
}

.section-divider span {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--clr-navy);
    padding: 0 10px;
    font-size: 0.85rem;
    color: var(--clr-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-dark);
    border-top: 1px solid var(--clr-border);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-col p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a,
.footer-col ul li {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-main);
}

.social-links a:hover {
    background: var(--clr-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Utilities (ScrollReveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Floating Call Button
   ========================================================================== */
.floating-call {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--clr-accent);
    color: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    width: 54px;
    height: 54px;
}

.floating-call:hover {
    width: 185px;
    color: #fff;
}

.floating-call i {
    font-size: 1.5rem;
    min-width: 24px;
    text-align: center;
}

.floating-call span {
    white-space: nowrap;
    margin-left: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s;
    transition-delay: 0.1s;
}

.floating-call:hover span {
    opacity: 1;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content { text-align: center; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--clr-navy-dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active { right: 0; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .floating-call {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        padding: 13px;
    }
    .floating-call i {
        font-size: 1.3rem;
    }
}
