/* ============================================================
   Jylia — charte graphique du SITE VITRINE jylia.io
   ------------------------------------------------------------
   Feuille UNIQUE et AUTONOME du site vitrine : palette, polices,
   boutons, en-tête (barre de navigation + menu mobile), pied de
   page, cartes, FAQ. Elle est chargée par les pages statiques de
   apps/landing/site/*.html (marqueur <!-- site:css -->) ET par les
   pages Next de la landing (formules, légales, merci, activation),
   qui en reprennent l'en-tête et le pied de page via les gabarits
   apps/landing/site/chrome/{header,footer}.html.

   Elle est indépendante de la charte des OUTILS (packages/ui,
   charte.css, tokens --jy-*) : le site vitrine a sa propre identité
   (Quicksand / Lexend, turquoise, coins ronds, ombres douces) et ne
   doit rien partager avec les espaces connectés.

   Polices : Quicksand (titres, logotype, boutons) et Lexend (corps),
   AUTO-HÉBERGÉES dans public/fonts (fichiers variables, sous-ensembles
   latin et latin-ext, licence OFL) : aucune page n'appelle Google Fonts,
   donc aucune adresse IP de visiteur n'est transmise à Google pour
   afficher le site (RGPD, 2026-10-06).
   ============================================================ */

/* ---------- polices (unicode-range : ceux de Google Fonts pour ces sous-ensembles) ---------- */
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/quicksand-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/quicksand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/lexend-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/lexend-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --crumbs-gap: 56px; /* espace entre le fil d'Ariane et le premier contenu de la page */
  --turquoise: #1fa38c; /* marque : aplats décoratifs, grands titres, logotype */
  --turquoise-deep: #137a69; /* même teinte, lisible : texte courant et boutons (5.2:1 sur blanc, 4.8:1 sur le fond) */
  --teal: #0c7a78;
  --aqua: #6fe0cc;
  --orange: #f08a2e;
  --blue: #2e78dd; /* Ops : décoratif, logotype */
  --blue-deep: #2466c4; /* Ops : texte et boutons (5.6:1 sur blanc) */
  --blue-soft: #7fb6ff;
  --ink: #112a2a;
  --cool-bg: #f1f6f4;
  --text-2: #3c5755;
  --text-3: #5c7572;
  --text-4: #8aa29e;
  --ops-bg: #0e1f24;
  --ops-line: rgba(127, 182, 255, 0.14);
  --ops-text-mut: #a7c0bd;
  --ops-text-dim: #6f8c89;
  --site-font-body: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --site-font-display: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --site-shadow-card: 0 16px 44px rgba(12, 122, 120, 0.08);
  --site-shadow-card-hover: 0 22px 50px rgba(12, 122, 120, 0.14);
}

/* ---------- accessibilité ---------- */
/* Focus visible partout, au clavier seulement : anneau 2 px, décollé de 2 px. */
:focus-visible { outline: 2px solid var(--turquoise-deep); outline-offset: 2px; }
.nav--dark :focus-visible, .site-footer :focus-visible, .site-footer--dark :focus-visible { outline-color: #fff; }
/* Texte réservé aux lecteurs d'écran (ex. : phrase complète derrière une animation). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Un lien dans un paragraphe se reconnaît sans la couleur. */
.site-card p a, .faq-a a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- gabarit ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Lien d'évitement (premier élément focusable de chaque page). */
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 1000; background: var(--turquoise-deep); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 12px; font-family: var(--site-font-display); font-weight: 600; font-size: 14px; transition: top 0.2s ease; }
.skip-link:focus { top: 0; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--site-font-display); font-weight: 600; font-size: 16px; border-radius: 14px; padding: 14px 22px; border: none; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--turquoise-deep); color: #fff; box-shadow: 0 8px 22px rgba(31, 163, 140, 0.4); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 163, 140, 0.5); }
.btn-secondary { background: #fff; color: var(--teal); border: 1.5px solid rgba(31, 163, 140, 0.35); }
.btn-secondary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12, 122, 120, 0.14); }
.btn-white { background: #fff; color: var(--turquoise-deep); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12); }
.btn-white:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.btn-blue { background: var(--blue-deep); color: #fff; box-shadow: 0 8px 22px rgba(46, 120, 221, 0.4); }
.btn-blue:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 14px rgba(46, 120, 221, 0.6), 0 12px 28px rgba(46, 120, 221, 0.5); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

/* Sur-titre teal en petites capitales espacées. */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--site-font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--teal); }

/* ---------- logotype ---------- */
.logo { font-family: var(--site-font-display); font-weight: 700; font-size: 34px; color: var(--ink); letter-spacing: -0.5px; line-height: 1; text-decoration: none; }
.logo .pt { color: var(--turquoise); }
.logo-tag { font-family: var(--site-font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--teal); border: 1px solid rgba(31, 163, 140, 0.35); border-radius: 999px; padding: 3px 10px; margin-left: 12px; vertical-align: middle; text-transform: uppercase; }

/* ---------- en-tête : barre de navigation ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 rgba(17, 42, 42, 0.06); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.nav-brand { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 30px; justify-self: center; }
.nav-links a { font-family: var(--site-font-body); font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--turquoise-deep); }
.nav-right { display: flex; align-items: center; gap: 18px; justify-self: end; }

/* Sous-menu de la barre (Campus → Formules) : lien parent + chevron qui
   déplie un panneau au survol, au focus clavier (focus-within) ou au clic
   (classe .open posée par menu.js, pour le tactile). */
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-item.is-active > a { color: var(--turquoise-deep); }
.sub-toggle { display: flex; align-items: center; background: none; border: 0; padding: 6px 4px; margin: 0; cursor: pointer; color: var(--text-2); border-radius: 8px; transition: color 0.2s ease, transform 0.2s ease; }
.sub-toggle:hover, .nav-item.is-active .sub-toggle { color: var(--turquoise-deep); }
.nav-item:hover .sub-toggle, .nav-item.open .sub-toggle, .nav-item:focus-within .sub-toggle { transform: rotate(180deg); }
.sub-menu { position: absolute; top: calc(100% + 10px); left: -14px; min-width: 190px; display: none; flex-direction: column; padding: 8px; background: #fff; border: 1px solid rgba(17, 42, 42, 0.08); border-radius: 14px; box-shadow: var(--site-shadow-card); }
.sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu, .nav-item.open .sub-menu { display: flex; }
.nav-links .sub-menu a { padding: 10px 12px; border-radius: 10px; font-size: 14.5px; }
.nav-links .sub-menu a:hover, .nav-links .sub-menu a.active { background: var(--cool-bg); color: var(--turquoise-deep); }
/* .nav .nav-cta (et pas .nav-cta seul) : une page qui redéfinit .btn après cette feuille (accueil, Ops)
   ne doit pas regonfler le bouton de l'en-tête. */
.nav .nav-cta, .btn-sm { padding: 10px 18px; font-size: 15px; }
.hamburger { display: none; justify-self: end; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- fil d'Ariane (lib/site-chrome.ts renderBreadcrumb) ----------
   Sous l'en-tête de toute page autre que l'accueil et les pages d'erreur, dans
   le flux : le fond est celui de la page (dégradé du body), le contenu suit. */
.crumbs { padding-top: 20px; font-family: var(--site-font-body); font-size: 14px; line-height: 20px; color: var(--text-3); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.crumbs li { display: flex; align-items: center; gap: 4px; }
.crumbs svg { flex: none; }
.crumbs a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.crumbs a:hover { color: var(--turquoise-deep); }
.crumbs [aria-current] { font-weight: 500; color: var(--teal); }
.crumbs--dark { color: var(--ops-text-mut); }
.crumbs--dark a:hover { color: #fff; }
.crumbs--dark [aria-current] { color: var(--blue-soft); }
/* Espace sous le fil : UNE valeur pour toutes les pages (--crumbs-gap : 56 px, 40 px sous 768 px),
   portée par le fil et non par chaque page. Le premier bloc d'une page statique (hero, première
   section) abandonne donc sa propre marge haute. Pages Next : SiteShell insère le fil dans un
   conteneur (il n'est plus le voisin direct de <main>), d'où la classe .after-crumbs sur son <main>.
   Sans cela l'eyebrow se trouvait à 59, 67, 88 ou 98 px du fil selon la page (2026-10-06). */
.crumbs ~ main, main.after-crumbs { padding-top: var(--crumbs-gap); }
.crumbs ~ main > .hero, .crumbs ~ main > section:first-child { padding-top: 0; }
/* Le texte du hero part du haut de sa colonne (il était centré sur l'illustration, plus haute
   que lui sur Campus et À propos) ; l'illustration, elle, reste centrée. */
.crumbs ~ main > .hero .hero-text { align-self: start; }
/* L'eyebrow du premier bloc colle au haut de sa ligne : 3 px de moins au-dessus, autant en dessous. */
.crumbs ~ main > :first-child .eyebrow, main.after-crumbs > :first-child .eyebrow { vertical-align: top; }

/* Menu mobile : panneau pré-rendu par le gabarit, déplié par menu.js. */
.jm-panel { position: fixed; top: 72px; left: 0; right: 0; z-index: 9998; display: none; flex-direction: column; background: #fff; padding: 6px 24px 16px; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18); border-top: 1px solid rgba(17, 42, 42, 0.07); }
.jm-panel.open { display: flex; }
.jm-panel a { font-family: var(--site-font-body); font-size: 16px; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 14px 2px; border-bottom: 1px solid rgba(17, 42, 42, 0.07); }
.jm-panel a.active { color: var(--turquoise-deep); }
.jm-panel a.jm-sub { padding-left: 22px; font-size: 15px; }
.jm-panel a.jm-sub::before { content: '\2013'; margin-right: 8px; color: var(--turquoise); }
/* color : sans lui, « .jm-panel a » (plus spécifique que .btn-primary / .btn-blue) assombrit le texte du bouton. */
.jm-panel a.jm-cta { border-bottom: none; margin-top: 12px; padding: 12px 18px; color: #fff; }

/* Variante sombre (page Ops). */
.nav--dark { background: rgba(14, 31, 36, 0.85); backdrop-filter: blur(12px); box-shadow: none; border-bottom: 1px solid var(--ops-line); }
.nav--dark .logo { color: #fff; }
.nav--dark .logo .pt { color: var(--blue); }
.nav--dark .logo-tag { color: var(--blue-soft); border-color: rgba(127, 182, 255, 0.4); }
.nav--dark .nav-links a { color: var(--ops-text-mut); }
.nav--dark .nav-links a:hover, .nav--dark .nav-links a.active { color: #fff; }
.nav--dark .sub-toggle { color: var(--ops-text-mut); }
.nav--dark .sub-toggle:hover, .nav--dark .nav-item.is-active .sub-toggle, .nav--dark .nav-item.is-active > a { color: #fff; }
.nav--dark .sub-menu { background: var(--ops-bg); border-color: var(--ops-line); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4); }
.nav--dark .nav-links .sub-menu a:hover, .nav--dark .nav-links .sub-menu a.active { background: rgba(127, 182, 255, 0.12); color: #fff; }
.nav--dark .hamburger span { background: #fff; }
.jm-panel--dark { background: var(--ops-bg); border-top-color: rgba(255, 255, 255, 0.09); }
.jm-panel--dark a { color: #e4eeec; border-bottom-color: rgba(255, 255, 255, 0.09); }
.jm-panel--dark a.active { color: var(--blue-soft); }

/* ---------- pied de page ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo .pt { color: var(--aqua); }
.footer-tag { font-size: 14px; color: var(--text-4); margin-top: 12px; letter-spacing: 0.04em; }
.footer-col h2, .footer-contact-title { font-family: var(--site-font-display); font-weight: 600; font-size: 14px; color: var(--aqua); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; }
.footer-contact-title { margin: 22px 0 8px; }
.footer-contact { display: inline-block; font-size: 15px; font-weight: 500; color: var(--aqua); text-decoration: none; }
.footer-col a { display: block; font-size: 15px; color: #c5d6d3; margin-bottom: 10px; text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; font-size: 14px; color: var(--text-4); }
.site-footer--dark { background: #0b181c; border-top: 1px solid var(--ops-line); margin-top: 20px; }
.site-footer--dark .footer-brand .logo { font-size: 30px; }
.site-footer--dark .footer-tag, .site-footer--dark .footer-bottom { color: var(--ops-text-dim); }
.site-footer--dark .footer-col h2, .site-footer--dark .footer-contact-title { color: var(--blue-soft); }
.site-footer--dark .footer-col a { color: var(--ops-text-mut); }
.site-footer--dark .footer-bottom { border-top-color: var(--ops-line); }

/* ---------- composants partagés (pages Next : formules, légales…) ---------- */
.site-card { background: #fff; border: 1px solid rgba(31, 163, 140, 0.06); border-radius: 24px; box-shadow: var(--site-shadow-card); }
.site-input { width: 100%; border: 1.5px solid rgba(31, 163, 140, 0.25); border-radius: 12px; background: #fff; padding: 12px 14px; font-family: var(--site-font-body); font-size: 15px; color: var(--ink); }
.site-input::placeholder { color: var(--text-3); }
.site-input:focus { border-color: var(--turquoise); outline: none; box-shadow: 0 0 0 3px rgba(31, 163, 140, 0.15); }
.faq-item { background: #fff; border: 1px solid rgba(31, 163, 140, 0.1); border-radius: 16px; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(12, 122, 120, 0.05); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--site-font-display); font-weight: 600; font-size: 17px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 0.2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--site-font-display); font-size: 24px; font-weight: 600; color: var(--turquoise-deep); line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--turquoise-deep); }
.faq-a { padding: 0 24px 20px; }
.faq-a p { font-size: 15.5px; color: var(--text-2); line-height: 1.7; margin: 0; }
.faq-a a { color: var(--teal); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --crumbs-gap: 40px; }
  /* .nav-right entier, pas seulement .nav-cta : vide, il garderait la 2e colonne et renverrait le burger
     à la ligne ; et une page qui redéfinit .btn après cette feuille (accueil) réafficherait le bouton. */
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
@media (min-width: 769px) {
  .jm-panel { display: none !important; }
}
@media (max-width: 420px) {
  .logo-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .hamburger span, .skip-link { transition: none; }
}
