/* ========================================
   CORIOLIS - Organisme de Formation AALEO
   Feuille de style principale
   ======================================== */

:root {
    --color-primary: #1e4d8f;
    --color-primary-dark: #143560;
    --color-primary-light: #3a6fb5;
    --color-accent: #2c8fd6;
    --color-bg: #ffffff;
    --color-bg-soft: #f5f8fc;
    --color-bg-alt: #eef3fa;
    --color-text: #1f2937;
    --color-text-soft: #4b5563;
    --color-border: #e2e8f0;
    --color-success: #15803d;
    --color-warning: #d97706;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1180px;
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }

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

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primary-dark);
}
.brand-logo {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}
.brand-text { line-height: 1.15; }
.brand-text small { display: block; font-size: .7rem; font-weight: 500; color: var(--color-text-soft); }

.nav-links {
    display: flex; gap: 4px;
    list-style: none;
}
.nav-links a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--color-text);
    font-weight: 500;
    border-radius: 8px;
    font-size: .95rem;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}
.nav-cta {
    margin-left: 12px;
}

.nav-toggle {
    display: none;
    background: none; border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--color-primary-dark);
    transition: .3s;
}

main { padding-top: 72px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    font-family: inherit;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}
.btn-white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.btn-white:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 850px;
}
.hero p.lead {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 32px;
    opacity: .95;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #fff;
    padding: 70px 0 60px;
}
.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.page-hero p { opacity: .92; max-width: 720px; }
.breadcrumb {
    font-size: .9rem;
    opacity: .85;
    margin-bottom: 14px;
}
.breadcrumb a { color: #fff; text-decoration: underline; opacity: .9; }

/* ===== SECTIONS ===== */
section { padding: 70px 0; }
.section-alt { background: var(--color-bg-soft); }

.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    color: var(--color-primary-dark);
    margin-bottom: 14px;
    font-weight: 800;
}
.section-head p {
    color: var(--color-text-soft);
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ===== GRID DE CARTES ===== */
.grid {
    display: grid;
    gap: 28px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}
.card .card-icon {
    width: 52px; height: 52px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    color: var(--color-primary);
}
.card h3 {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}
.card p { color: var(--color-text-soft); font-size: .98rem; }

/* ===== FORMATION CARD ===== */
.formation-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.formation-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.formation-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.formation-card-img .price-tag {
    position: absolute;
    top: 16px; right: 16px;
    background: #fff;
    color: var(--color-primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: var(--shadow-sm);
}
.formation-card-body {
    padding: 26px;
    flex: 1;
    display: flex; flex-direction: column;
}
.formation-card-body h3 {
    color: var(--color-primary-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.formation-card-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin: 14px 0;
    font-size: .88rem;
    color: var(--color-text-soft);
}
.formation-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.formation-card .btn { margin-top: auto; }

/* ===== INDICATEURS ===== */
.indicators {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #fff;
}
.indicators .section-head h2 { color: #fff; }
.indicators .section-head p { color: rgba(255,255,255,.85); }
.indicators .section-head .eyebrow { color: #fff; opacity: .9; }

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}
.indicator-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    backdrop-filter: blur(8px);
}
.indicator-card .value {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}
.indicator-card .label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85rem;
    margin-bottom: 12px;
    opacity: .9;
}
.indicator-card .note {
    font-size: .85rem;
    opacity: .8;
    margin-top: 10px;
}

/* ===== CTA BANDEAU ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
    font-weight: 800;
}
.cta-banner p { opacity: .95; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FORMATION DÉTAIL ===== */
.formation-detail .info-bar {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--color-border);
}
.info-bar .info-item .label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-soft);
    margin-bottom: 6px;
    font-weight: 600;
}
.info-bar .info-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.content-section { margin-bottom: 40px; }
.content-section h2 {
    color: var(--color-primary-dark);
    margin-bottom: 18px;
    font-size: 1.6rem;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}
.content-section h3 {
    color: var(--color-primary);
    margin: 22px 0 10px;
    font-size: 1.15rem;
}
.content-section p { margin-bottom: 14px; color: var(--color-text-soft); }
.content-section ul, .content-section ol { margin: 14px 0 14px 28px; }
.content-section li { margin-bottom: 8px; color: var(--color-text-soft); }
.content-section strong { color: var(--color-text); }

.module-block {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--color-accent);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 16px;
}
.module-block h3 { margin-top: 0; }

.financing-badges {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 16px 0;
}
.financing-badges span {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid var(--color-border);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}
.contact-info-card {
    background: var(--color-bg-soft);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}
.contact-info-card h3 {
    color: var(--color-primary-dark);
    margin-bottom: 18px;
    font-size: 1.3rem;
}
.contact-line {
    display: flex; gap: 14px;
    margin-bottom: 18px; align-items: flex-start;
}
.contact-line .icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    background: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.contact-line .text { flex: 1; }
.contact-line .text strong { display: block; color: var(--color-primary-dark); margin-bottom: 2px; }
.contact-line .text a, .contact-line .text span { color: var(--color-text-soft); }

.form-card {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px;
    color: var(--color-text);
}
.form-group label .req { color: #dc2626; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30,77,143,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .checkbox-line {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .9rem; color: var(--color-text-soft);
}
.form-group .checkbox-line input { width: auto; margin-top: 4px; }
.form-success {
    display: none;
    padding: 16px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    border-radius: 8px;
    margin-bottom: 18px;
}

.map-wrap {
    margin-top: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ===== À PROPOS ===== */
.about-intro {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-stats {
    background: var(--color-primary-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
}
.about-stats h3 { margin-bottom: 20px; }
.about-stat-line {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.about-stat-line:last-child { border-bottom: 0; }
.about-stat-line strong { font-size: 1.3rem; font-weight: 800; }

.team-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}
.team-card .avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem; font-weight: 800;
}
.team-card h3 { color: var(--color-primary-dark); margin-bottom: 4px; }
.team-card .role { color: var(--color-accent); font-weight: 600; margin-bottom: 14px; font-size: .9rem; }

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 880px;
    margin: 0 auto;
}
.legal-content h2 {
    color: var(--color-primary-dark);
    margin: 36px 0 14px;
    font-size: 1.5rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}
.legal-content h3 {
    color: var(--color-primary);
    margin: 22px 0 10px;
    font-size: 1.15rem;
}
.legal-content p, .legal-content li {
    color: var(--color-text-soft);
    margin-bottom: 10px;
}
.legal-content ul, .legal-content ol { margin: 10px 0 14px 28px; }
.legal-content strong { color: var(--color-text); }
.nda-highlight {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0f1e35;
    color: #cbd5e1;
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cbd5e1; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: .93rem; margin-bottom: 10px; color: #94a3b8; }
.footer-brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.footer-brand .brand-logo { box-shadow: none; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }

.nda-footer {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: .85rem;
    margin: 20px 0;
    color: #cbd5e1;
}
.nda-footer strong { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .88rem;
    color: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s;
        border-top: 1px solid var(--color-border);
    }
    .nav-links.open { max-height: 500px; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 14px 12px; border-radius: 6px; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }

    .contact-grid { grid-template-columns: 1fr; }
    .about-intro { grid-template-columns: 1fr; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 600px) {
    section { padding: 50px 0; }
    .hero { padding: 60px 0; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .card, .form-card { padding: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
