/* CableTrail — feuille de style du site (sans étape de compilation).
   Couleurs du logo : violets #4E3282 / #6A4BA3 / #8C6CC2, vert #9BD34A (traits et boutons, jamais du texte sur fond clair). */

/* Polices servies par le site (public/fonts). Sans les fichiers, le navigateur prend la police de secours. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
    --encre: #2E1D52;
    --encre-douce: #4A3A6B;
    --gris-violet: #5E4E80;
    --violet: #4E3282;
    --violet-moyen: #6A4BA3;
    --violet-clair: #8C6CC2;
    --lavande: #EEE9F6;
    --lavande-pale: #F7F4FB;
    --filet: #E4DCF0;
    --pointille: #B9A8D9;
    --vert: #9BD34A;
    --sur-vert: #21143D;
    --police: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --police-titre: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #FFFFFF; color: var(--encre); font-family: var(--police); font-size: 18px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; }
a { color: var(--violet); }
a:hover { color: var(--encre); }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--violet-moyen); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

/* Mise en page */
.conteneur { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.conteneur--etroit { max-width: 880px; }
.section { padding: 96px 0; }
.section--haut { padding-bottom: 40px; }
.section--bas { padding-top: 56px; }
.section--lavande { background: var(--lavande-pale); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.section--violette { background: var(--violet); color: #FFFFFF; }
.bordure-haut { border-top: 1px solid var(--filet); }
.bordure-bas { border-bottom: 1px solid var(--filet); }
.marge-haut { margin-top: 40px; }
.marge-haut-l { margin-top: 48px; }
.feuille {
    background-color: #FFFFFF;
    background-image: linear-gradient(#F1ECF8 1px, transparent 1px), linear-gradient(90deg, #F1ECF8 1px, transparent 1px);
    background-size: 16px 16px;
}

.grille { display: grid; gap: 32px 48px; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grille--blocs { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px 56px; }

.duo { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.duo__texte { flex: 1 1 400px; min-width: 0; }
.duo > .attente { flex: 1 1 520px; min-width: 0; }
.duo--titre { align-items: flex-start; }
.duo__titre { flex: 1 1 360px; }
.duo--titre > .grille { flex: 2 1 520px; min-width: 0; }

/* Typographie */
.titre-1 { font-family: var(--police-titre); font-weight: 700; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.01em; }
.titre-2 { font-family: var(--police-titre); font-weight: 700; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.titre-2--large { max-width: 22em; }
.petit-titre { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.paragraphe { margin-top: 20px; max-width: 32em; }
.intro { margin-top: 16px; max-width: 36em; color: var(--encre-douce); }
.intro--clair { color: var(--filet); }
.filet { padding-top: 16px; border-top: 2px solid var(--filet); }
.gras { font-weight: 600; }

/* Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; border: 2px solid transparent; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.3; }
.btn--grand { padding: 14px 24px; font-size: 18px; }
.btn--primaire { background: var(--vert); color: var(--sur-vert); }
.btn--primaire:hover { background: #AEE06A; color: var(--sur-vert); }
.btn--contour { border-color: var(--violet); color: var(--violet); background: #FFFFFF; }
.btn--contour:hover { background: var(--lavande); color: var(--encre); }
.btn--clair { border-color: #FFFFFF; color: #FFFFFF; }
.btn--clair:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }

/* En-tête */
.entete { background: #FFFFFF; border-bottom: 1px solid var(--filet); position: relative; z-index: 10; }
.entete__barre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 12px; padding-bottom: 12px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; font-family: var(--police-titre); font-weight: 700; font-size: 24px; letter-spacing: 0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 auto; font-size: 16px; font-weight: 500; }
.nav a, .entete__actions a:not(.btn) { text-decoration: none; }
.entete__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 16px; }
@media (min-width: 900px) {
    .entete { position: sticky; top: 0; }
}

/* Accroche */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero__texte { flex: 1 1 440px; min-width: 0; }
.hero__schema { flex: 1 1 520px; min-width: 0; }
.hero__chapo { margin-top: 28px; max-width: 34em; font-size: 20px; color: var(--encre-douce); }
.hero .boutons { margin-top: 36px; }
.hero__note { margin-top: 18px; font-size: 15px; color: var(--gris-violet); }
.schema { display: block; width: 100%; height: auto; }
.console { margin-top: 12px; border: 2px solid var(--violet); border-radius: 3px; background: #FFFFFF; padding: 10px 14px; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 1.7; overflow-x: auto; white-space: nowrap; }
.console__invite { color: var(--gris-violet); }

/* Le câble se trace au chargement */
.trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.6s cubic-bezier(.6, 0, .3, 1) forwards; }
.trace--2 { animation-delay: .35s; }
.trace--3 { animation-delay: .7s; }
.trace--4 { animation-delay: 1.05s; }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* Emplacements réservés (captures, vidéo) */
.attente { display: flex; align-items: center; justify-content: center; padding: 24px; border: 2px dashed var(--pointille); border-radius: 8px; background: var(--lavande-pale); color: var(--gris-violet); font-size: 16px; text-align: center; }
.attente--16-10 { aspect-ratio: 16 / 10; }
.attente--16-9 { aspect-ratio: 16 / 9; }
.attente--blanche { background: #FFFFFF; }

/* Liste à puces « câble » */
.puces { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.puces li { display: flex; gap: 12px; }
.puces svg { flex: none; margin-top: 4px; }

/* Blocs de fonctions, dessinés comme des blocs d'équipement */
.bloc { background: #FFFFFF; border: 2px solid var(--violet); border-radius: 3px; }
.bloc__entete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 16px; background: var(--lavande); font-family: var(--police-titre); }
.bloc__entete h3 { font-size: 22px; font-weight: 700; }
.bloc__code { font-size: 16px; font-weight: 600; color: var(--violet-moyen); }
.bloc__liste { margin: 0; padding: 12px 16px 16px; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }

/* Étapes */
.etapes { padding: 0; margin-bottom: 0; list-style: none; gap: 40px; }
.etape { display: flex; flex-direction: column; gap: 12px; }
.etape__numero { font-family: var(--police-titre); font-weight: 700; font-size: 56px; line-height: 1; color: var(--violet-clair); }
.etape h3 { font-size: 22px; font-weight: 600; }

/* Tarifs */
.tarifs { gap: 24px; align-items: stretch; }
.tarif { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 2px solid var(--violet-clair); border-radius: 8px; }
.tarif--vedette { border-color: var(--vert); background: var(--encre); }
.tarif__titre { font-family: var(--police-titre); font-size: 26px; font-weight: 700; }
.tarif__prix { font-family: var(--police-titre); font-size: 56px; font-weight: 700; line-height: 1; }
.tarif__prix span { font-size: 22px; font-weight: 600; }
.tarif__texte { color: var(--filet); }
.tarif__liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.tarif__bouton { margin-top: auto; display: block; padding: 14px 20px; }

/* FAQ */
.faq { margin-top: 32px; border-top: 2px solid var(--filet); }
.faq details { border-bottom: 2px solid var(--filet); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq__plus { flex: none; color: var(--violet-moyen); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] .faq__plus { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; }

/* Appel final */
.final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.final__titre { flex: 1 1 480px; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; }

/* Pied de page en cartouche */
.pied { padding: 40px 0 48px; }
.cartouche { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 2px solid var(--violet); font-size: 15px; }
.case { padding: 12px 16px; border: 1px solid var(--pointille); }
.case__label { color: var(--gris-violet); font-size: 13px; }
.case__valeur--titre { font-family: var(--police-titre); font-weight: 700; font-size: 20px; }
.case__liens { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Petits écrans */
@media (max-width: 600px) {
    body { font-size: 17px; }
    .section { padding: 64px 0; }
    .section--haut { padding-bottom: 24px; }
    .section--bas { padding-top: 40px; }
    .hero { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
    .hero__chapo { font-size: 18px; }
    .tarif { padding: 24px; }
    .tarif__prix { font-size: 48px; }
}

/* Moins d'animations si le visiteur l'a demandé */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .trace { animation: none; stroke-dashoffset: 0; }
    .faq__plus { transition: none; }
}

/* ---------- Pages de compte (inscription, connexion, espace client) ---------- */
.corps-compte { background: var(--lavande-pale); }
.entete__actions--droite { margin-left: auto; }
.formulaire-ligne { display: inline; margin: 0; }
.lien-bouton { padding: 0; border: 0; background: none; color: var(--violet); font: inherit; text-decoration: underline; cursor: pointer; }
.lien-bouton:hover { color: var(--encre); }
.lien-bouton:focus-visible { outline: 3px solid var(--violet-moyen); outline-offset: 3px; border-radius: 4px; }
.page-compte { padding: 56px 16px 80px; }
.carte-compte { max-width: 480px; margin: 0 auto; padding: 36px 32px; background: #FFFFFF; border: 2px solid var(--violet); border-radius: 3px; }
.titre-compte { font-family: var(--police-titre); font-weight: 700; font-size: 34px; line-height: 1.1; }
.texte-compte { margin-top: 12px; color: var(--encre-douce); }
.formulaire { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-weight: 600; font-size: 16px; }
.champ__saisie { width: 100%; padding: 11px 12px; border: 2px solid var(--pointille); border-radius: 6px; background: #FFFFFF; color: var(--encre); font: inherit; }
.champ__saisie:focus { outline: 3px solid var(--violet-moyen); outline-offset: 1px; border-color: var(--violet); }
.champ__saisie[aria-invalid="true"] { border-color: #B3261E; }
.champ__aide { font-size: 14px; color: var(--gris-violet); }
.champ__erreur { font-size: 15px; color: #B3261E; font-weight: 500; }
.champ--case { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.champ--case input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--violet); flex: none; }
.champ--case label { flex: 1 1 0; font-weight: 400; }
.champ--case .champ__erreur { flex-basis: 100%; }
.btn--plein { width: 100%; cursor: pointer; font: inherit; font-weight: 600; }
.alerte { margin-top: 20px; padding: 12px 14px; border-radius: 6px; font-size: 16px; }
.alerte--succes { background: #EEF7E2; border: 1px solid #7FAF3A; color: #2D4A10; }
.alerte--erreur { background: #FCECEA; border: 1px solid #B3261E; color: #7A1A14; }
.pied-compte { margin-top: 16px; font-size: 16px; text-align: center; }
.espace { padding-top: 8px; }
.espace .alerte { max-width: 640px; }
.bloc__entete h2 { font-size: 22px; font-weight: 700; }
.bloc__texte { padding: 12px 16px 16px; font-size: 17px; }
@media (max-width: 600px) {
    .page-compte { padding: 32px 12px 56px; }
    .carte-compte { padding: 28px 20px; }
}

/* ---------- Licences, essai, achat ---------- */
.carte-compte--large { max-width: 640px; }
.fiche-cle { margin-top: 20px; padding: 14px 16px; border: 2px solid var(--violet); border-radius: 3px; background: var(--lavande-pale); }
.fiche-cle__libelle, .fiche-cle__meta { font-size: 14px; color: var(--gris-violet); }
.cle { display: inline-block; margin: 6px 0; font-family: Consolas, "Courier New", monospace; font-size: 20px; font-weight: 600; letter-spacing: .04em; color: var(--encre); user-select: all; -webkit-user-select: all; word-break: break-all; }
.cle--petite { font-size: 15px; margin: 0; }
.cle:focus-visible { outline: 3px solid var(--violet-moyen); outline-offset: 3px; }
.liste-etapes { margin: 20px 0 8px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prix-achat { margin-top: 16px; font-family: var(--police-titre); font-weight: 700; font-size: 30px; }
.tableau-defilant { overflow-x: auto; background: #FFFFFF; border: 2px solid var(--violet); border-radius: 3px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 16px; }
.tableau th { text-align: left; padding: 10px 14px; background: var(--lavande); font-family: var(--police-titre); font-size: 17px; font-weight: 700; white-space: nowrap; }
.tableau td { padding: 10px 14px; border-top: 1px solid var(--filet); vertical-align: top; }
.etat { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.etat--libre { background: var(--lavande); color: var(--encre); }
.etat--active { background: #EEF7E2; color: #2D4A10; }
.etat--revoquee { background: #FCECEA; color: #7A1A14; }

/* ---------- Connexion IA, facturation ---------- */
.offres-ia { align-items: stretch; }
.offre { max-width: none; margin: 0; display: flex; flex-direction: column; }
.offre .formulaire { margin-top: auto; padding-top: 20px; }
.titre-section-compte { margin-top: 48px; font-family: var(--police-titre); font-weight: 700; font-size: 28px; }
.liste-abonnements { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.liste-abonnements .bloc__entete h3 { font-size: 20px; font-weight: 700; }
.liens-facture { display: flex; gap: 14px; white-space: nowrap; }
.tableau-defilant + .pied-compte, .espace > .pied-compte { margin-top: 32px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
