/* ========================================
   QONTINUITY - STYLES LUXE
   Design haut de gamme pour formation IA
   ======================================== */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --noir: #0A0A0A;
    --blanc: #FEFEFE;
    --blanc-casse: #F9F9F7;
    --gris-perle: #E8E6E1;
    --gris-taupe: #C9C5BC;
    --or-champagne: #D4AF37;
    --bordeaux: #5D1F1F;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 300;
    color: var(--noir);
    background: var(--blanc);
    line-height: 1.7;
    font-size: 16px;
}

/* Typography Luxe */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gris-perle);
    padding: 32px 0;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
    padding: 20px 0;
}

.nav-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--noir);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-links a {
    color: var(--noir);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.05em;
    font-weight: 400;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--or-champagne);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 12px 32px;
    border: 1px solid var(--noir);
    color: var(--noir);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    font-weight: 400;
}

.btn-nav:hover {
    background: var(--noir);
    color: var(--blanc);
}

/* ========================================
   HERO
   ======================================== */

.hero {
    margin-top: 120px;
    padding: 80px 80px 120px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 80px;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 120%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.1));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-content {
    max-width: 650px;
}

.hero-tag {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--or-champagne);
    margin-bottom: 40px;
    font-weight: 500;
    display: block;
}

.hero-content h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
}

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

.hero-badge-btn,
.hero-eval-btn {
    padding: 14px 32px;
    font-size: 13px;
    letter-spacing: 0.08em;
    font-weight: 400;
    border: 1px solid var(--gris-perle);
    background: none;
    color: var(--noir);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
}

.hero-badge-btn:hover,
.hero-eval-btn:hover {
    background: var(--noir);
    color: var(--blanc);
    border-color: var(--noir);
}

.hero-badge {
    display: inline-block;
    border: 1px solid var(--gris-perle);
    padding: 12px 28px;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--noir);
    margin-top: 24px;
    font-weight: 400;
}

/* ========================================
   WALTER CHATBOT SECTION
   ======================================== */

.walter-section {
    padding: 120px 80px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--blanc);
}

.walter-container {
    max-width: 800px;
    margin: 0 auto;
}

.walter-header {
    text-align: center;
    margin-bottom: 48px;
}

.walter-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    color: var(--noir);
    margin-bottom: 16px;
    line-height: 1.2;
}

.walter-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.walter-chatbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--gris-perle);
    background: var(--blanc-casse);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.walter-chatbox:focus-within {
    border-color: var(--or-champagne);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
}

.walter-input {
    flex: 1;
    padding: 24px 32px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--noir);
    background: transparent;
    border: none;
    outline: none;
}

.walter-input::placeholder {
    color: var(--gris-taupe);
}

.walter-send-btn {
    padding: 24px 32px;
    background: var(--noir);
    color: var(--blanc);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
}

.walter-send-btn:hover {
    background: var(--or-champagne);
    transform: translateX(4px);
}

.walter-send-btn svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.walter-send-btn:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

.walter-note {
    font-size: 12px;
    color: var(--gris-taupe);
    text-align: center;
    margin-top: 24px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    padding: 100px 80px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--blanc-casse);
}

.faq-title {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--or-champagne);
    text-align: center;
    margin-bottom: 80px;
    font-weight: 400;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gris-perle);
    margin-bottom: 0;
}

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

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--noir);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--or-champagne);
}

.faq-icon {
    font-size: 32px;
    font-weight: 300;
    color: var(--or-champagne);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 32px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 32px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
    padding-right: 60px;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 160px 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.section-beige {
    background: var(--blanc-casse);
}

.section-header {
    margin-bottom: 120px;
    max-width: 800px;
}

.section-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--or-champagne);
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}

.section-title {
    font-size: 72px;
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 300;
}

.section-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
}

/* ========================================
   FORMATIONS GRID
   ======================================== */

.formation-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.formation-item {
    grid-column: span 4;
    background: var(--blanc);
    padding: 64px 48px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    position: relative;
}

.formation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--or-champagne) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.formation-item:hover::before {
    transform: scaleX(1);
}

.formation-item:hover {
    border-color: var(--gris-perle);
    transform: translateY(-8px);
}

.formation-item.large {
    grid-column: span 6;
}

.formation-item.featured {
    background: var(--noir);
    color: var(--blanc);
}

.formation-item.featured .formation-title,
.formation-item.featured .formation-meta {
    color: var(--blanc);
}

.formation-item.featured .formation-description {
    color: rgba(255, 255, 255, 0.7);
}

.formation-niveau {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--or-champagne);
    font-weight: 500;
}

.formation-title {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.formation-description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 32px;
    font-weight: 300;
}

.formation-meta {
    display: flex;
    gap: 32px;
    font-size: 13px;
    color: var(--noir);
    padding-top: 24px;
    border-top: 1px solid var(--gris-perle);
    font-weight: 400;
}

/* ========================================
   MÉTIERS LAYOUT
   ======================================== */

.metiers-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--gris-perle);
    margin-top: 80px;
}

.metier-box {
    background: var(--blanc);
    padding: 80px 56px;
    text-align: center;
    transition: background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.metier-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--noir);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.metier-box:hover::before {
    transform: scaleY(1);
}

.metier-box > * {
    position: relative;
    z-index: 1;
}

.metier-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    color: var(--or-champagne);
    margin-bottom: 24px;
    font-weight: 300;
    transition: color 0.4s ease;
}

.metier-box:hover .metier-number {
    color: var(--or-champagne);
}

.metier-title {
    font-size: 20px;
    margin-bottom: 16px;
    transition: color 0.4s ease;
}

.metier-box:hover .metier-title {
    color: var(--blanc);
}

.metier-description {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    font-weight: 300;
    transition: color 0.4s ease;
}

.metier-box:hover .metier-description {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   SERVICES
   ======================================== */

.services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 120px;
}

.service-block {
    padding: 120px 80px;
    background: var(--blanc);
}

.service-block:nth-child(2) {
    background: var(--noir);
    color: var(--blanc);
}

.service-block:nth-child(3) {
    background: var(--blanc-casse);
}

.service-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--or-champagne);
    margin-bottom: 32px;
    letter-spacing: 0.2em;
}

.service-title {
    font-size: 48px;
    margin-bottom: 32px;
    font-weight: 300;
    line-height: 1.2;
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
    color: inherit;
    opacity: 0.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 16px 0;
    border-bottom: 1px solid;
    border-color: var(--gris-perle);
    font-size: 15px;
    letter-spacing: 0.03em;
    font-weight: 400;
}

.service-block:nth-child(2) .service-features li {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--noir);
    color: var(--blanc);
    padding: 120px 80px 60px;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-weight: 300;
}

.footer-badge {
    display: inline-block;
    border: 1px solid var(--or-champagne);
    color: var(--or-champagne);
    padding: 8px 20px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
}

.footer-title {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--or-champagne);
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--blanc);
}

.footer-bottom {
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ========================================
   CURSEUR PERSONNALISÉ
   ======================================== */

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--or-champagne);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-width: 2px;
}

/* Masquer le curseur par défaut sur desktop */
@media (min-width: 1024px) {
    body {
        cursor: none;
    }
    
    a, button, .formation-item {
        cursor: none;
    }
}

/* ========================================
   ANIMATIONS SUPPLÉMENTAIRES
   ======================================== */

/* Initialiser les éléments avant animation */
.formation-item,
.metier-box,
.service-block {
    opacity: 0;
    transform: translateY(40px);
}

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

/* Transition fluide pour les hovers */
.formation-item {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-content h1 {
        font-size: 64px;
    }
    
    .section-title {
        font-size: 56px;
    }
    
    .formation-grid {
        grid-template-columns: 1fr;
    }
    
    .formation-item,
    .formation-item.large {
        grid-column: span 1;
    }
    
    .metiers-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-split {
        grid-template-columns: 1fr;
    }
    
    /* Désactiver curseur personnalisé sur tablette */
    .custom-cursor {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-inner,
    .hero,
    .section,
    .footer {
        padding-left: 32px;
        padding-right: 32px;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Masquer l'image sur smartphone */
    .hero-image {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    /* Hero CTA Responsive */
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .hero-badge-btn,
    .hero-eval-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Walter Chatbot Responsive */
    .walter-section {
        padding: 80px 32px;
    }

    .walter-title {
        font-size: 36px;
    }

    .walter-subtitle {
        font-size: 14px;
    }

    .walter-input {
        padding: 20px 24px;
        font-size: 15px;
    }

    .walter-send-btn {
        padding: 20px 24px;
        min-width: 64px;
    }

    /* FAQ Responsive */
    .faq-section {
        padding: 80px 32px;
    }
    
    .faq-question {
        font-size: 22px;
        padding: 24px 0;
    }
    
    .faq-icon {
        font-size: 28px;
    }
    
    .faq-answer p {
        padding-right: 0;
        font-size: 15px;
    }
    
    .section {
        padding: 100px 32px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    .metiers-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .service-block {
        padding: 80px 32px;
    }
    
    /* Désactiver curseur personnalisé sur mobile */
    .custom-cursor {
        display: none;
    }
    
    body {
        cursor: auto !important;
    }
}