/* ============================================
   GROUPE ALTAYA - FORMATION IA GÉNÉRATIVE
   Design inspiré Azalée - Élégant & Professionnel
   ============================================ */

:root {
    /* Couleurs Altaya */
    --bleu-altaya: #1a335a;
    --orange-altaya: #fd8d10;
    --bleu-fonce: #0f1f3a;
    --bleu-clair: #2a4570;
    --gris-clair: #f7f7f9;
    --gris-texte: #555555;
    --blanc: #ffffff;
    --beige-clair: #f5f1ed;
    
    /* Typographie */
    --font-principale: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-titres: 'Poppins', sans-serif;
    
    /* Espacements */
    --section-padding: 100px 0;
    --container-max: 1200px;
    
    /* Effets */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 40px rgba(26, 51, 90, 0.08);
    --shadow-hover: 0 15px 50px rgba(26, 51, 90, 0.15);
    --radius: 8px;
}

/* Reset et Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principale);
    color: var(--gris-texte);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titres);
    color: var(--bleu-altaya);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); }

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gris-texte);
}

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

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

/* Boutons - Style Azalée */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--orange-altaya);
    color: var(--blanc);
    box-shadow: 0 4px 20px rgba(253, 141, 16, 0.25);
}

.btn-primary:hover {
    background: #e77d0a;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(253, 141, 16, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--bleu-altaya);
    border: 2px solid var(--bleu-altaya);
    padding: 14px 38px;
}

.btn-secondary:hover {
    background: var(--bleu-altaya);
    color: var(--blanc);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--blanc);
    color: var(--bleu-altaya);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
    background: var(--beige-clair);
    transform: translateY(-2px);
}

/* Header & Navigation - Style Azalée */
header {
    background: var(--bleu-altaya);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--bleu-fonce);
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blanc);
    font-family: var(--font-titres);
}

.logo span {
    color: var(--orange-altaya);
}

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

nav ul li a {
    color: var(--blanc);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--orange-altaya);
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--orange-altaya);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.header-cta {
    margin-left: 20px;
}

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

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--bleu-altaya);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section - Style Azalée avec overlay */
.hero {
    background: linear-gradient(rgba(26, 51, 90, 0.85), rgba(15, 31, 58, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%231a335a" width="1920" height="1080"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--blanc);
    padding: 180px 0 120px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(253, 141, 16, 0.08) 0%, transparent 60%);
    opacity: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    color: var(--blanc);
    margin-bottom: 24px;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.hero-text .subtitle {
    font-size: 1.3rem;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.hero-highlight {
    color: var(--orange-altaya);
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 15rem;
    opacity: 0.2;
}

/* Sections générales - Style Azalée */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 70px;
}

.section-header h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

.section-header p {
    color: var(--gris-texte);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Cartes - Style Azalée */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.card {
    background: var(--blanc);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: none;
    position: relative;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.card p {
    color: var(--gris-texte);
    line-height: 1.7;
}

/* Trust Badges */
.trust-badges {
    background: var(--gris-clair);
    padding: 60px 0;
    text-align: center;
}

.badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.badge-icon {
    font-size: 3rem;
    color: var(--orange-altaya);
}

.badge strong {
    color: var(--bleu-altaya);
    font-size: 1.1rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    padding: 60px 0;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--orange-altaya);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--gris-texte);
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--bleu-altaya);
    color: var(--blanc);
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: var(--blanc);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--orange-altaya);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* Formulaires */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--bleu-altaya);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-principale);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange-altaya);
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanc);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilitaires */
.text-center { text-align: center; }
.bg-grey { background: var(--gris-clair); }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Badge Qualiopi - Style Azalée */
.qualiopi-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--blanc);
    padding: 15px;
    border-radius: 50%;
    box-shadow: var(--shadow-hover);
    z-index: 999;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--bleu-altaya);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.3;
    transition: var(--transition);
}

.qualiopi-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(26, 51, 90, 0.25);
}
