/* ===================================================================
   THÈME « COCKPIT » — NewTech Institute
   Reprend le design du site Licornne (dépôt licornne-vitrinne,
   gabarit leads/templates/leads/designs/cockpit.html).

   Cette feuille se charge APRÈS site-pro.css : elle ne remplace pas
   la structure, elle change l'habillage (couleurs, police, rythme
   des blocs, cartes, ombres). Tout le JavaScript continue de marcher.

   Les 3 idées du design Cockpit :
     1. fond blanc + un seul violet fort
     2. titres très gros, très serrés, un mot en italique serif
     3. grands angles arrondis et ombres larges et douces
   =================================================================== */

/* ═══════════════ 1. LES COULEURS ET LA POLICE ═══════════════
   On redéfinit les variables de site-pro.css : tout le site
   change de couleur d'un coup, sans toucher au reste. */
:root {
    /* L'encre (ex-navy) : un violet très sombre au lieu du bleu marine */
    --navy: #15102d;
    --navy-2: #211038;

    /* L'accent (ex-bleu) : le violet Licornne */
    --blue: #642bfa;
    --blue-600: #5422e0;
    --blue-50: #f5f2ff;
    --blue-100: #dcd1ff;

    --violet: #642bfa;
    --violet-50: #f1eaff;

    --text: #15102d;
    --text-2: #575267;
    --muted: #69657c;

    --bg: #ffffff;
    --bg-soft: #f8f7fc;
    --border: #e9e5f0;
    --border-2: #e0dbe9;

    /* Angles plus arrondis et ombres plus larges = signature Cockpit */
    --r-sm: 10px;
    --r-md: 13px;
    --r-lg: 19px;
    --shadow-sm: 0 8px 21px rgba(54, 27, 98, .025);
    --shadow-md: 0 15px 30px rgba(49, 18, 93, .07);
    --shadow-lg: 0 22px 65px rgba(35, 15, 88, .10);

    /* La police : Inter pour tout, Georgia italique pour le mot accentué */
    --font: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
    --nav-h: 76px;
}

body { font-family: var(--font); }
::selection { background: #dcd1ff; color: var(--navy); }
:focus-visible { outline: 3px solid #ad93ff; outline-offset: 4px; }

/* ═══════════════ 2. LA LARGEUR DES PAGES ═══════════════
   Licornne centre tout dans une colonne de 1200 px. */
.container { max-width: 1200px; padding: 0 34px; }

/* ═══════════════ 3. LES TITRES ═══════════════
   Très gros, très serrés, graisse forte : c'est ça qui fait l'effet. */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.045em; }

/* Le mot en italique : Georgia, violet, légèrement plus clair */
h1 em, h2 em, h3 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--violet);
    letter-spacing: -1.7px;
}
.gt { color: var(--violet); }

/* La petite étiquette au-dessus des titres.
   Chez Licornne c'est du texte nu : on enlève la pastille blanche. */
.eyebrow {
    font-size: 10px;
    letter-spacing: 2.15px;
    font-weight: 800;
    color: var(--violet);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
}
.eyebrow .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #9f76ff;
    box-shadow: none;
}
/* Sur le carrousel sombre, l'étiquette reste lisible en blanc. */
.car-hero .eyebrow { background: none; border: 0; padding: 0; color: #cbb6ff; }

/* ═══════════════ 4. LES BOUTONS ═══════════════ */
.btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    gap: 12px;
    transition: transform .2s, box-shadow .2s, color .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .ic { width: 17px; height: 17px; }

.btn-p { background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(100, 43, 250, .14); }
.btn-p:hover { background: #5422e0; box-shadow: 0 12px 23px rgba(100, 43, 250, .24); }
.btn-p:disabled { background: #cfc7dd; box-shadow: none; transform: none; }

.btn-o { background: #fff; color: var(--navy); border-color: #e0dbe9; }
.btn-o:hover { border-color: #c0b0e6; background: #fff; }

.btn-white { background: #fff; color: #302146; }
.btn-white:hover { background: #f5f0ff; }

.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .10); border-color: #fff; }

.btn-sm { min-height: 43px; font-size: 12px; padding: 0 18px; }

/* ═══════════════ 5. LE MENU DU HAUT ═══════════════ */
.nav {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(110, 87, 160, .09);
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(43, 20, 95, .06); }
.nav-links > li > a { font-size: 13px; font-weight: 600; color: #454055; }
.nav-links > li > a:hover { color: var(--violet); background: transparent; }
.nav-client { font-size: 13px; font-weight: 600; border-radius: 11px; }
.nav-client:hover { background: var(--violet-50); color: var(--violet); }

/* Les sous-menus déroulants */
.dd { border-radius: 17px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.dd-ico { background: var(--violet-50); color: var(--violet); border-radius: 12px; }

/* Le logo : même esprit que Licornne — monogramme violet arrondi
   et nom en gras très serré avec le suffixe en violet. */
.logo-img { height: 46px; width: auto; object-fit: contain; }
.logo-sym {
    background: var(--violet-50);
    color: var(--violet);
    border-radius: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
    letter-spacing: -0.5px;
}
.logo-name {
    font-weight: 850;
    letter-spacing: -1px;
    color: var(--navy);
}
.logo-name b { color: var(--violet); font-weight: 850; }

/* Le sélecteur de langue */
.lang-switch { border-radius: 11px; border-color: var(--border-2); }
.lang-btn.active { background: var(--violet); color: #fff; }

/* ═══════════════ 6. LE HAUT DE PAGE (hero) ═══════════════
   Le halo violet en haut à droite + l'anneau = la signature Cockpit. */
.hero {
    background: radial-gradient(ellipse at 86% 24%, #eee8ff 0%, rgba(245, 241, 255, .58) 32%, transparent 65%), #fff;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    right: -230px; top: 90px;
    width: 560px; height: 560px;
    border-radius: 50%;
    border: 75px solid rgba(153, 120, 246, .07);
    pointer-events: none;
    background: none;
}
.hero::after { display: none; }

.hero h1 {
    font-size: clamp(44px, 4.5vw, 66px);
    line-height: 1.045;
    letter-spacing: -3.9px;
    font-weight: 830;
    margin: 22px 0 24px;
}
.hero h1 em { font-size: 1em; line-height: 1.05; }
.hero-lead { font-size: 17px; font-weight: 700; color: var(--navy); }
.hero-desc { font-size: 17px; line-height: 1.64; color: #575267; max-width: 520px; }

/* Les petites preuves sous les boutons : pastilles violettes */
.hero-checks li { font-size: 11px; color: #797287; gap: 7px; }
.hero-checks .ic { width: 14px; height: 14px; color: var(--violet); }

/* Le panneau de droite devient un « écran » incliné en perspective :
   c'est lui qui donne la profondeur. */
.hero-dash {
    background: #fff;
    border: 1px solid #e3e0f0;
    border-radius: 17px;
    box-shadow: 0 26px 75px rgba(43, 20, 95, .18), 0 4px 11px rgba(43, 20, 95, .07);
    transform: perspective(1600px) rotateY(-3deg) rotateX(1deg);
}
.dash-float {
    border-radius: 999px;
    border: 1px solid #e8e3f1;
    box-shadow: 0 8px 28px rgba(32, 10, 75, .1);
    font-size: 11px;
    font-weight: 700;
    color: #4a395e;
}
.dash-float-ico { background: var(--violet-50); color: var(--violet); border-radius: 10px; }
.kpi-ico { background: var(--violet-50); color: var(--violet); border-radius: 12px; }

/* ═══════════════ 7. LE RYTHME DES BLOCS ═══════════════ */
.section { padding: 105px 0; }
.section-soft { background: #f8f7fc; }

.sec-head { max-width: 650px; margin: 0 auto 39px; }
.sec-head h2 { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -2.2px; margin: 11px 0 0; }
.sec-head .desc, .desc { font-size: 15px; color: var(--muted); line-height: 1.65; }
.sec-head .desc { margin: 13px auto 0; max-width: 600px; }
.sec-head-row { margin-bottom: 35px; }
.sec-head-row .desc { margin-top: 11px; }

.link-arrow { font-size: 13px; font-weight: 700; color: #3e3653; }
.link-arrow:hover { color: var(--violet); }

/* ═══════════════ 8. LES CARTES ═══════════════
   Toutes les cartes du site prennent le même habillage Cockpit :
   bord fin, grand angle, et au survol elles se soulèvent. */
.svc-item, .sol-card, .step-card, .testi-card, .train-card,
.exp-item, .metier, .contact-card, .stat-box, .train-tile, .faq-item {
    border-radius: 17px;
    border: 1px solid #ebe7f0;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.svc-item:hover, .sol-card:hover, .train-card:hover,
.exp-item:hover, .metier:hover, .train-tile:hover {
    border-color: #cfbffb;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Les pictogrammes dans les cartes : carré violet pâle arrondi */
.svc-item-ico, .exp-ico, .metier-ico, .contact-ico, .feed-ico,
.step-dot, .lead-ico, .exp-badge-ico {
    background: var(--violet-50);
    color: var(--violet);
    border-radius: 12px;
}
/* La 1re étape était en vert : on la repasse au violet comme les autres. */
.step-card:first-child .step-dot { background: var(--violet-50); color: var(--violet); }
.step-dot { box-shadow: 0 0 0 6px #fff, 0 0 0 7px #e4d8ff; }

/* Le graphique « Avant / Avec l'IA » : gris pour l'avant, violet pour l'après. */
.ic-before { background: #c0b4d8; }
.ic-after { background: var(--violet); }

.svc-tag, .exp-chip, .exp-tech-list span, .subject-chip, .train-badge {
    background: var(--violet-50);
    color: #5c25e6;
    border-color: #d8c8ff;
    border-radius: 10px;
    font-weight: 700;
}
/* Les petites cartes de service affichent les mêmes pastilles que les
   grandes : avant, elles les montraient en texte gris nu. */
.svc-item-body .svc-tags { margin-top: 10px; }
.svc-item-body .svc-tag { font-size: 11.5px; padding: 3px 9px; }

/* Le panneau des petits services est prévu pour 3 colonnes. Avec deux
   services seulement, la 3e case restait vide : la grille s'adapte. */
.svc-panel:has(.svc-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}
.svc-panel:has(.svc-item:nth-child(2):last-child) .svc-item:last-child {
    border-right: 0;
}
.svc-panel:has(.svc-item:only-child) { grid-template-columns: 1fr; }
.svc-panel:has(.svc-item:only-child) .svc-item { border-right: 0; }

/* Réalisation sans photo : au lieu d'un cadre gris vide, un aplat violet
   dans l'esprit Cockpit. C'est un visuel d'attente, le temps que les
   illustrations maison remplacent les photos. */
.img-wrap:not(:has(img)) {
    background: radial-gradient(ellipse at 70% 25%, #eee8ff 0%, #f5f2ff 45%, #faf8ff 100%);
    position: relative;
}
.img-wrap:not(:has(img))::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 86px; height: 86px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 18px solid rgba(153, 120, 246, .13);
}

/* La carte de service en version sombre.
   ATTENTION : la règle générique plus haut donne un fond blanc à toutes
   les cartes, .metier comprise. Comme cette feuille se charge après
   site-pro.css, elle écrasait le fond sombre et le titre (blanc)
   devenait invisible. On le rétablit donc ici, après. */
.metier-dark { background: var(--navy); border-color: var(--navy); }
.metier-dark:hover { border-color: #3a2a63; box-shadow: 0 22px 45px rgba(10, 2, 24, .25); }
.metier-dark h3 { color: #fff; }
.metier-dark .link-arrow { color: #fff; }
.metier-dark .link-arrow:hover { color: #cbb6ff; }
.metier-dark::after { background: radial-gradient(circle, rgba(119, 59, 255, .45), transparent 70%); }
.metier-dark p { color: #c2b8d2; }
.metier-dark .metier-ico { background: rgba(255, 255, 255, .12); color: #cbb6ff; }

/* ═══════════════ 9. LE BLOC SOMBRE (chiffres clés) ═══════════════
   Licornne utilise un violet très sombre avec un halo violet. */
.stats { background: #211038; }
.stats::before { background: radial-gradient(circle, rgba(119, 59, 255, .25), transparent 70%); }
.stats h2 em { color: #ae8cff; }
.stat-box { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .10); }
.stat-val { color: #fff; }
.stat-lbl, .stat-sub { color: #c2b8d2; }

/* ═══════════════ 10. LA FAQ ═══════════════
   Lignes simples séparées par un filet. */
.faq-item {
    border: 0; border-bottom: 1px solid #e7e2ed;
    border-radius: 0; box-shadow: none;
    padding: 18px 0; background: none;
}
.faq-item:hover { transform: none; box-shadow: none; border-color: #e7e2ed; }
.faq-item .faq-q { font-weight: 700; font-size: 14px; }
.faq-item p { font-size: 13px; line-height: 1.7; color: #716979; }

/* ═══════════════ 11. LE BANDEAU DE FIN ═══════════════
   Dégradé violet + grand cercle en filigrane. */
.final-cta { background: none; padding: 10px 0 85px; }
.cta-inner {
    background: linear-gradient(105deg, #4c21c5, #7339ff);
    border-radius: 24px;
    padding: 43px 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-inner::after {
    content: "";
    position: absolute;
    right: 90px; top: -130px;
    height: 330px; width: 330px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
}
.cta-inner h2 { color: #fff; font-size: 29px; line-height: 1.14; letter-spacing: -1.3px; }
.cta-inner h2 em { color: #e7dfff; }
.cta-inner .desc, .cta-inner p { color: #e7dfff; font-size: 13px; }
.cta-btns { position: relative; z-index: 1; }

/* ═══════════════ 12. LE PIED DE PAGE ═══════════════ */
.footer { background: #180f2c; color: #d0c9dc; }
.footer .logo-name { color: #fff; font-size: 21px; font-weight: 850; letter-spacing: -1px; }
.footer .logo-name b { color: #8954ff; }
.footer .logo-sym { background: rgba(255, 255, 255, .08); color: #c9b3ff; }
.footer h4 { color: #fff; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.footer a:hover { color: #fff; }
.footer p, .footer li a { color: #ac9fbf; font-size: 12px; }
.footer-social a {
    background: rgba(255, 255, 255, .06);
    border-radius: 10px;
    color: #c9b3ff;
}
.footer-social a:hover { background: var(--violet); color: #fff; }
.footer-bot { border-top-color: rgba(255, 255, 255, .09); }

/* ═══════════════ 13. LE BOUTON « REMONTER » ═══════════════ */
.back-top {
    background: #fff;
    border: 1px solid #e0dbe9;
    color: var(--violet);
    box-shadow: 0 10px 26px rgba(43, 20, 95, .16);
}
.back-top:hover { background: var(--violet); color: #fff; border-color: var(--violet); transform: translateY(-3px); }
.back-top-ring circle { stroke: var(--violet); }

/* ═══════════════ 14. LES FENÊTRES (popups) ═══════════════ */
.lead-popup, .team-popup, .sol-popup-modal {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
.lead-input, .bk-input, .contact-form input, .contact-form textarea, .contact-form select {
    border-radius: 13px;
    border-color: #e0dbe9;
    background: #fbfaff;
}
.lead-input:focus, .bk-input:focus,
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #ad93ff;
    box-shadow: 0 0 0 4px rgba(100, 43, 250, .10);
    background: #fff;
}
/* ─── La fenêtre « Notre équipe » ───
   Médaillon carré arrondi (comme les pictogrammes Cockpit) plutôt que rond,
   et les coordonnées de chaque personne sous sa fonction. */
.team-popup { border-radius: 24px; }
.team-popup-header h2 { letter-spacing: -1.6px; }
.team-medallion {
    border-radius: 20px;
    background: linear-gradient(135deg, #e4d8ff, #cdbdff);
    padding: 4px;
}
.team-medallion .medallion-photo { border-radius: 17px; }
.medallion-initials { background: var(--violet-50); color: var(--violet); border-radius: 17px; }
.team-name { letter-spacing: -.4px; }
.team-role { font-size: 13px; line-height: 1.5; }

.team-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 13px;
}
.team-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--violet-50);
    color: #5c25e6;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s, color .2s, transform .2s;
}
.team-contact a:hover {
    background: var(--violet);
    color: #fff;
    transform: translateY(-2px);
}
.team-contact .ic { width: 15px; height: 15px; }

/* ═══════════════ 15. LA RÉSERVATION ═══════════════ */
.bk-body, .bk-left, .bk-right { border-radius: 19px; }
.bk-step-num { background: var(--violet-50); color: var(--violet); }
.bk-step.bk-active .bk-step-num { background: var(--violet); color: #fff; }
.bk-btn { border-radius: 11px; border-color: #e0dbe9; font-weight: 700; }
.bk-btn:hover { border-color: #c0b0e6; color: var(--violet); }
.bk-btn.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.bk-success-icon { background: var(--violet-50); color: var(--violet); }

/* Ancre #rdv posée dans le bloc Contact quand le calendrier est masqué :
   même décalage que les sections, pour que le menu fixe ne cache pas le titre. */
.ancre-rdv { display: block; scroll-margin-top: var(--nav-h); }

/* ═══════════════ 16. LES LOGOS CLIENTS ═══════════════ */
.marquee-label { font-size: 10px; letter-spacing: 2.15px; font-weight: 800; color: var(--violet); text-transform: uppercase; }

/* ═══════════════ 17. ADAPTATION AUX PETITS ÉCRANS ═══════════════
   Mêmes seuils que Licornne : 1100, 800 et 540 pixels. */
@media (max-width: 1100px) {
    .container { padding: 0 28px; }
    .hero h1 { font-size: 53px; }
    .nav-links { gap: 2px; }
}
@media (max-width: 800px) {
    .container { padding: 0 24px; }
    .hero h1 { font-size: clamp(42px, 7vw, 58px); letter-spacing: -2.8px; margin: 15px 0 20px; }
    .hero-desc { font-size: 16px; max-width: 670px; }
    .hero-dash { transform: none; }
    .section { padding: 77px 0; }
    .sec-head h2 { font-size: 35px; letter-spacing: -1.6px; }
    .cta-inner { padding: 34px 30px; }
}
@media (max-width: 540px) {
    .container { padding: 0 19px; }
    .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
    .hero h1 { font-size: clamp(36px, 9.4vw, 48px); line-height: 1.08; letter-spacing: -2.1px; }
    .hero-desc { font-size: 15px; line-height: 1.58; }
    .hero-dash { border-radius: 11px; }
    .section { padding: 65px 0; }
    .sec-head h2 { font-size: 32px; }
    .cta-inner { padding: 30px 24px; border-radius: 19px; }
    .cta-inner h2 { font-size: 27px; }
}

/* On respecte le réglage « moins d'animations » du système. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .svc-item, .sol-card, .train-card, .exp-item, .metier { transition: none; }
    .btn:hover, .svc-item:hover, .sol-card:hover { transform: none; }
}
