/* assets/css/style.css */
:root {
    --paper: #EDF1F5;
    --panel: #DCE4EC;
    --ink: #14283F;
    --blue: #2E7DAF;
    --amber: #E8A33D;
    --white: #FFFFFF;
    --line: #B9C7D6;
    --shadow: rgba(20, 40, 63, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   HEADER
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(237, 241, 245, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.brand span {
    color: var(--blue);
}

nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--blue);
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 10px 18px;
    border-radius: 2px;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    background: transparent;
    color: var(--ink);
    text-align: center;
}

.btn-primary {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-ghost:hover {
    background: var(--white);
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.7rem;
}

.btn-block-mobile {
    width: auto;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 60px 0 40px;
}

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

.hero-content {
    order: 1;
}

.hero h1 {
    font-size: 1.8rem;
    line-height: 1.15;
    margin: 12px 0 16px;
}

.hero p.lead {
    font-size: 0.95rem;
    color: #3A4D63;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-actions .btn {
    width: 100%;
    text-align: center;
}

.stats-bar {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    justify-content: space-around;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue);
}

.stat-label {
    font-size: 0.7rem;
    color: #5A6E85;
}

/* Diagram */
.diagram {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 20px 16px;
    position: relative;
    order: 2;
}

.diagram-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: var(--paper);
    padding: 0 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: var(--blue);
}

.diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

.diagram-path {
    stroke: var(--blue);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw 2.2s ease forwards 0.3s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.node-dot {
    fill: var(--amber);
    stroke: var(--ink);
    stroke-width: 1;
}

.node-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px;
    fill: var(--ink);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 40px 0;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: 1.4rem;
    margin-top: 8px;
}

/* ============================================
   CALLOUTS
   ============================================ */
.callouts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.callout {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue);
    padding: 18px 16px;
    border-radius: 2px;
}

.callout h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.callout p {
    font-size: 0.88rem;
    color: #3A4D63;
}

/* ============================================
   MODULES (TIERS)
   ============================================ */
.tiers {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.tier {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
}

.tier:first-child {
    border-top: none;
}

.tier-label {
    background: var(--panel);
    padding: 12px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    text-align: center;
}

.tier-modules {
    background: var(--white);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #EDF1F5;
}

.module-item:last-child {
    border-bottom: none;
}

.module-item .num {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--blue);
    min-width: 45px;
    font-size: 0.75rem;
}

.module-title {
    font-size: 0.85rem;
    flex: 1;
    min-width: 80px;
}

.module-duration {
    font-size: 0.7rem;
    color: #5A6E85;
    background: var(--panel);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ============================================
   TÉMOIGNAGES
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 18px 16px;
}

.testimonial-stars {
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.testimonial-content {
    font-size: 0.88rem;
    color: #3A4D63;
    margin-bottom: 12px;
    font-style: italic;
}

.testimonial-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #5A6E85;
    flex-wrap: wrap;
    gap: 6px;
}

.testimonial-company {
    font-weight: 600;
}

/* ============================================
   SESSIONS
   ============================================ */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 14px 16px;
}

.session-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.session-day {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}

.session-month {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #5A6E85;
}

.session-info {
    min-width: 0;
}

.session-info h3 {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-module {
    font-size: 0.75rem;
    color: #5A6E85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-time {
    font-size: 0.75rem;
    color: #3A4D63;
}

.session-item .btn {
    font-size: 0.65rem;
    padding: 6px 12px;
    white-space: nowrap;
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.cta {
    background: var(--ink);
    color: var(--paper);
    border-radius: 2px;
    padding: 28px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.cta-content {
    display: flex;
    flex-direction: column;
}

.cta .eyebrow {
    color: var(--amber);
}

.cta h2 {
    color: var(--white);
    font-size: 1.2rem;
    margin-top: 6px;
}

.cta p {
    color: #B9C7D6;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-info {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #B9C7D6;
}

.contact-info p {
    margin-top: 3px;
    word-break: break-word;
}

/* Formulaire */
.cta form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.cta form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cta form input,
.cta form textarea {
    background: #1E3550;
    border: 1px solid #33507A;
    color: var(--paper);
    padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    border-radius: 2px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cta form input::placeholder,
.cta form textarea::placeholder {
    color: #8AA0B8;
}

.cta form input:focus,
.cta form textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.15);
}

.cta form textarea {
    resize: vertical;
    min-height: 70px;
}

.cta form .btn {
    margin-top: 4px;
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 0.9rem;
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
    font-weight: 500;
}

.form-message {
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 2px;
    display: none;
    margin-top: 8px;
    text-align: center;
}

.form-message.success {
    display: block;
    background: #1E4B3A;
    color: #8EE4B0;
    border: 1px solid #2E7A4A;
}

.form-message.error {
    display: block;
    background: #4B1E1E;
    color: #E48E8E;
    border: 1px solid #7A2E2E;
}

.form-message.info {
    display: block;
    background: #1E3A4B;
    color: #8EC4E4;
    border: 1px solid #2E5A7A;
}

/* Bouton désactivé */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.cta form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 24px 0 32px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #5A6E85;
    text-align: center;
}

/* ============================================
   RESPONSIVE - TABLETTES (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    .wrap {
        padding: 0 28px;
    }
    
    .hero {
        padding: 80px 0 56px;
    }
    
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
    }
    
    .hero-content {
        order: 1;
    }
    
    .diagram {
        order: 2;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: row;
    }
    
    .hero-actions .btn {
        width: auto;
    }
    
    .stats-bar {
        gap: 30px;
        justify-content: flex-start;
    }
    
    .stat-item {
        align-items: flex-start;
    }
    
    .callouts {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .tier {
        grid-template-columns: 160px 1fr;
    }
    
    .tier-label {
        text-align: left;
        padding: 16px 18px;
        font-size: 0.7rem;
    }
    
    .tier-modules {
        padding: 14px 20px;
    }
    
    .cta {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 40px 36px;
    }
    
    .cta h2 {
        font-size: 1.3rem;
    }
    
    .cta form .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta form .btn {
        width: auto;
        align-self: flex-start;
        padding: 12px 28px;
    }
    
    .session-item {
        padding: 16px 20px;
    }
    
    .btn-block-mobile {
        width: auto !important;
    }
    
    .diagram-label {
        font-size: 0.6rem;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .hero-grid {
        gap: 56px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .cta {
        padding: 48px 40px;
        gap: 40px;
    }
    
    .cta h2 {
        font-size: 1.5rem;
    }
    
    .tier {
        grid-template-columns: 180px 1fr;
    }
    
    .tier-label {
        font-size: 0.72rem;
        padding: 18px 20px;
    }
}

/* ============================================
   ACCESSIBILITÉ - RÉDUCTION DES MOUVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .diagram-path {
        animation: none;
        stroke-dashoffset: 0;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-center {
    text-align: center;
}

.text-muted {
    color: #5A6E85;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }