/* ==========================================================================
   WAVEYE.FR - MAIN STYLESHEET
   Version: 1.0 - 05/02/2026
   Auteur: Généré pour Sébastien Galvagno
   ========================================================================== */

/* 1. RESET & CSS VARIABLES
   ========================================================================== */
:root {
    /* Couleurs officielles */
    --bleu-mer: #0077BE;
    --bleu-mer-clair: #4DA8E0;
    --vert-cta: #48BB78;
    --vert-cta-hover: #38A169;
    --gris-texte: #4A5568;
    --gris-fonce: #2D3748;
    --blanc: #FFFFFF;
    --fond-clair: #F7FAFC;
    --bordure: #E2E8F0;
    
    /* Ombres & transitions */
    --ombre-card: 0 4px 12px rgba(0, 119, 190, 0.12);
    --ombre-hover: 0 12px 24px rgba(0, 119, 190, 0.20);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typographie */
    --fs-h1: clamp(2.5rem, 5vw, 4rem);
    --fs-h2: clamp(2rem, 4vw, 2.8rem);
    --fs-body: 1.1rem;
    --lh-body: 1.7;

    --space-2:0.5rem;
    --space-3:0.75rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Header sticky */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 
                 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 
                 sans-serif;
    line-height: var(--lh-body);
    color: var(--gris-texte);
    background: var(--blanc);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. CONTAINER & TYPOGRAPHIE
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--bleu-mer);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

/* 3. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: var(--bleu-mer);
    color: var(--blanc);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 119, 190, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.logo {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--blanc);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--blanc);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vert-cta);
    transition: var(--transition);
}

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

nav a:hover,
nav a:focus {
    opacity: 0.95;
}

/* 4. HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, 
        var(--bleu-mer) 0%, 
        var(--bleu-mer-clair) 50%, 
        var(--vert-cta) 100%);
    color: var(--blanc);
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><defs><pattern id="wave" x="0" y="0" width="20" height="10" patternUnits="userSpaceOnUse"><path d="M0 5 Q5 0 10 5 T20 5" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="10" fill="url(%23wave)"/></svg>');
    opacity: 0.3;
}

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

.hero h1 {
    font-size: var(--fs-h1);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s 0.2s forwards;
}

.hero .baseline {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    opacity: 0;
    animation: fadeInUp 1s 0.4s forwards;
}

/* 5. CTA BUTTONS
   ========================================================================== */
.cta {
    display: inline-block;
    background: var(--vert-cta);
    color: var(--blanc) !important;
    padding: 1.2rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    box-shadow: var(--ombre-card);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta:hover::before {
    left: 100%;
}

.cta.primary:hover {
    background: var(--vert-cta-hover);
    transform: translateY(-3px);
    box-shadow: var(--ombre-hover);
}

.cta.primary:active {
    transform: translateY(-1px);
}

/* 6. SECTIONS GÉNÉRIQUES
   ========================================================================== */
section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    font-size: var(--fs-h2);
    margin-bottom: 4rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--vert-cta);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* 7. PARTENAIRES
   ========================================================================== */

.partners {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(0,119,190,0.05) 0%, 
        rgba(72,187,120,0.05) 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 4rem 0;
    border: 1px solid rgba(0,119,190,0.1);
}

.partners h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}
/*
.partners-list {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bleu-mer);
}
*/
.partners-list {
    max-width: none;
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bleu-mer);
}

.partners-list a {
    color: var(--bleu-mer);
    text-decoration: none;
    transition: var(--transition);
}

.partners-list a:hover {
    color: var(--vert-cta);
    text-decoration: underline;
}


/* 8. ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 9. FOOTER
   ========================================================================== */
footer {
    background: linear-gradient(180deg, 
        var(--gris-fonce) 0%, 
        var(--gris-texte) 100%);
    color: var(--blanc);
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 6rem;
}

footer a {
    color: var(--vert-cta);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--blanc);
    text-decoration: underline;
}

/* 10. RESPONSIVE DESIGN (Mobile First)
   ========================================================================== */

/* Mobile < 640px */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 4rem 1rem 3rem;
        min-height: 70vh;
    }
    
    .cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Tablet 641px - 1024px */
@media (min-width: 641px) and (max-width: 1024px) {
    nav ul {
        gap: 2rem;
    }
    
    .hero {
        padding: 6rem 1.5rem;
    }
}

/* Desktop > 1024px */
@media (min-width: 1025px) {
    .container {
        padding: 0 2rem;
    }
}

/* 11. ACCESSIBILITÉ & PERF
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible pour navigation clavier */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--vert-cta);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --bleu-mer: #005A9E;
        --vert-cta: #2F855A;
    }
}

/* Impression */
@media print {
    header, footer, .cta {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
}
