/* ============================================================
   GV INFORMATIQUE — COMPOSANTS (header, hero, footer, cartes,
   formulaires, tableaux, badges, stats)
   Construit sur css/tokens.css — aucune valeur hors charte.
   ============================================================ */

/* --- Header (fond marine, fixe) --- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: var(--color-signature); height: var(--header-height); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-name { font-family: var(--font-title); font-weight: 800; font-size: 19px; color: var(--color-white); }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.92); font-family: var(--font-title); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav-list a:hover { background: rgba(255,255,255,.1); color: var(--color-white); }
.nav-list a.is-active, .nav-list a[aria-current="page"] { background: rgba(255,255,255,.14); color: var(--color-white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
/* Mobile (≤ 880px) : .nav-toggle visible, .nav-list masqué, nav glissée en plein écran */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; }
  .nav-toggle-bar { width: 24px; height: 3px; background: var(--color-white); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .site-nav { position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: var(--color-signature); transform: translateX(100%); transition: transform .25s ease, visibility .25s; visibility: hidden; overflow-y: auto; }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; padding: 24px; gap: 8px; }
  .nav-list a { font-size: 18px; padding: 14px 16px; }
  body.nav-lock { overflow: hidden; }
}

/* --- Hero (dégradé officiel) --- */
.hero { background: var(--gradient-hero); color: var(--color-white); padding: calc(var(--header-height) + 64px) 0 88px; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 3; max-width: 760px; }
.hero h1 { color: var(--color-white); margin-bottom: 16px; }
.hero-sub { font-size: clamp(17px, 2.4vw, 20px); font-weight: var(--fw-body-light); color: rgba(255,255,255,.92); max-width: 620px; }
/* Lisibilité du texte sur la vidéo : ombre douce sur tous les textes du hero. */
.hero .section-kicker, .hero h1, .hero-sub,
.hero-stat strong, .hero-stat span {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 12px rgba(0, 49, 80, .55);
}
/* Voile de lisibilité : assombrissement doux derrière le bloc de texte
   du hero (au-dessus de la vidéo), la vidéo reste bien visible à droite.
   Le fondu s'amorce après le texte pour ne pas créer de liseré net.
   Pas de backdrop-filter (flou) : coûteux en GPU sur une vidéo en lecture. */
.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px -32px -14px -56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg,
    rgba(0, 49, 80, .66) 0%,
    rgba(0, 49, 80, .55) 45%,
    rgba(0, 49, 80, .42) 75%,
    rgba(0, 49, 80, 0) 100%);
  pointer-events: none;
}
/* La description du hero (sous le titre) mérite un contraste renforcé pour
   rester lisible sur la vidéo animée ; limité au hero de l'accueil, les
   sous-titres des autres pages (.page-head .hero-sub) restent inchangés. */
.hero .hero-sub {
  color: rgba(255, 255, 255, .98);
  font-weight: var(--fw-body-medium);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; }
.hero-stat { }
.hero-stat strong { display: block; font-family: var(--font-title); font-weight: 800; font-size: 30px; color: var(--color-sky); }
.hero-stat span { font-size: 14px; color: rgba(255,255,255,.85); }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(78,189,245,.25) 0%, transparent 70%); pointer-events: none; }

/* --- Hero : vidéo de fond pleine largeur (remplace les vagues) --- */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video-el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* --- Repli : lecteur YouTube si la vidéo locale est absente --- */
.hero-video-youtube { position: absolute; inset: 0; z-index: 1; display: none; overflow: hidden; }
.hero-video-youtube.is-active { display: block; }
.hero-video-youtube iframe {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 0; max-width: none;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg,
    rgba(0, 49, 80, .92) 0%,
    rgba(0, 49, 80, .68) 34%,
    rgba(0, 49, 80, .35) 62%,
    rgba(0, 49, 80, .10) 100%);
  opacity: 1;
  pointer-events: none;
  transition: opacity .5s ease;
}
/* Vidéo chargée : on allège le voile mais on garde un fond lisible
   côté texte (à gauche) tout en laissant voir la vidéo (à droite). */
.hero-shade.is-hidden { opacity: .62; }

/* --- Page-head (hero interne des sous-pages) --- */
.page-head { background: var(--gradient-hero); color: var(--color-white); padding: calc(var(--header-height) + 48px) 0 56px; }
.page-head h1 { color: var(--color-white); }
.page-head .breadcrumb { font-size: 14px; color: rgba(255,255,255,.8); }

/* --- Footer (fond marine) --- */
.site-footer { background: var(--color-signature); color: rgba(255,255,255,.9); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 16px; }
.footer-title { font-family: var(--font-title); font-weight: 700; color: var(--color-white); margin-bottom: 14px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.footer-nav ul, .footer-social { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: rgba(255,255,255,.85); }
.footer-nav a:hover { color: var(--color-sky); }
address { font-style: normal; line-height: 1.7; }
address a { color: rgba(255,255,255,.9); }
.footer-phone { margin-top: 10px; }
.footer-phone-label { display: block; font-family: var(--font-title); font-weight: 600; font-size: 13px; color: var(--color-sky); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.footer-phone a { color: rgba(255,255,255,.9); }
.footer-phone a:hover { color: var(--color-sky); }
.footer-offices, .contact-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.footer-addr { white-space: nowrap; }
.footer-offices { max-width: 460px; }
.footer-office, .contact-office { border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; }
.footer-office-name { font-family: var(--font-title); font-weight: 700; font-size: 14px; color: var(--color-white); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.footer-rdv { display: inline-block; font-size: 12px; font-weight: 600; color: var(--color-sky); border: 1px solid rgba(78,189,245,.45); border-radius: 999px; padding: 1px 10px; margin-bottom: 8px; }
.footer-form-link { margin-top: 16px; font-size: 14px; }
.footer-form-link a { color: var(--color-sky); font-weight: 600; text-decoration: underline; }
@media (max-width: 560px) { .footer-offices, .contact-offices { grid-template-columns: 1fr; } }
.footer-social { display: flex; gap: 16px; margin-top: 14px; }
.footer-social a { color: var(--color-white); font-weight: 600; font-family: var(--font-title); font-size: 14px; }
.footer-note { font-size: 14px; color: rgba(255,255,255,.75); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-block: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: rgba(255,255,255,.75); }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* --- Cartes --- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-cards { grid-template-columns: 1fr; } }

.card-service, .card-formation {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card-service:hover, .card-formation:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(0,116,217,.1); color: var(--color-action); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-service h3, .card-formation h3 { font-size: 20px; margin-bottom: 10px; }
.card-service p, .card-formation p { flex: 1; font-size: 15px; color: var(--color-text-muted); }
.card-link { margin-top: 16px; font-family: var(--font-title); font-weight: 600; color: var(--color-action); }
.card-link:hover { text-decoration: underline; }

/* --- Carte formation (variante avec méta) --- */
.card-formation-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font-family: var(--font-title); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--color-bg-alt); color: var(--color-signature); }
.card-price { font-family: var(--font-title); font-weight: 800; font-size: 22px; color: var(--color-signature); margin-top: 16px; }
.badge-cert { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--color-signature); background: rgba(78,189,245,.18); border: 1px solid rgba(0,49,80,.15); padding: 4px 10px; border-radius: var(--radius-pill); margin-top: 14px; }
.page-head .badge-cert { color: var(--color-white); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }

/* --- Tableaux (données formations) --- */
.table-data { width: 100%; border-collapse: collapse; background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-data th, .table-data td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--color-border); }
.table-data th { background: var(--color-signature); color: var(--color-white); font-family: var(--font-title); font-weight: 700; }
.table-data tr:last-child td { border-bottom: 0; }
.table-data td:first-child { font-family: var(--font-title); font-weight: 600; color: var(--color-signature); }
@media (max-width: 620px) { .table-data { display: block; overflow-x: auto; } }

/* --- Formulaires --- */
.form-field { margin-bottom: 18px; }
.form-label { display: block; font-family: var(--font-title); font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--color-anthracite); }
.form-label .req { color: var(--color-action); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white); color: var(--color-text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 3px rgba(0,116,217,.15); }
.form-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] { border-color: #B3261E; }
.form-error { display: none; color: #B3261E; font-size: 13px; margin-top: 6px; }
.form-error.is-visible { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: 14px; color: var(--color-text-muted); margin-top: 8px; }
/* Champ anti-spam : hors écran, jamais atteignable au clavier. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Bannière de retour du formulaire (succès / échec d'envoi). */
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 15px; margin-bottom: 16px; }
.form-status:empty { display: none; }
.form-status--success { background: rgba(30,127,79,.08); border-color: rgba(30,127,79,.35); color: var(--color-success); }
.form-status--error { background: rgba(179,38,30,.06); border-color: rgba(179,38,30,.35); color: #B3261E; }

/* --- Badge (pastille) --- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-title); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--color-action); color: var(--color-white); }

/* --- Stat (chiffres) --- */
.stat { }
.stat strong { display: block; font-family: var(--font-title); font-weight: 800; font-size: 32px; color: var(--color-signature); }
.stat span { font-size: 14px; color: var(--color-text-muted); }

/* --- Bande CTA (fond marine, bouton clair) --- */
.cta-band { background: var(--color-signature); color: var(--color-white); padding: 48px 0; }
.cta-band h2 { color: var(--color-white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* --- Bande rappel Archi-Formation --- */
.fusion-band { background: rgba(78,189,245,.12); border: 1px solid rgba(0,49,80,.15); border-radius: var(--radius-md); padding: 24px; color: var(--color-signature); }

/* --- Grille d'équipe --- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .team-grid { grid-template-columns: 1fr; } }
.team-member { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-sm); text-align: center; }
.team-member h3 { font-size: 18px; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--color-action); font-family: var(--font-title); font-weight: 600; }
.team-photo { width: 96px; height: 96px; border-radius: 50%; background: var(--gradient-hero); color: var(--color-sky); display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 auto 16px; }
.team-photo svg { width: 62%; height: 62%; display: block; }

/* --- Contact (2 colonnes : coordonnées + formulaire) --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-offices { margin-top: 12px; }
.contact-office { border-top-color: var(--color-border); }
.contact-office .footer-office-name { color: var(--color-signature); }
.contact-office .footer-rdv { color: var(--color-action); border-color: rgba(0,116,217,.35); }
.contact-phone { margin-top: 6px; }
.contact-phone a { color: var(--color-action); }
.list-contact { list-style: none; margin: 0; padding: 0; line-height: 1.8; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 20px; }

/* --- Grille 2 colonnes responsive --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* --- Liste avec coche bleu action --- */
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--color-action); font-family: var(--font-title); font-weight: 700; }

/* --- Fil d'Ariane --- */
.breadcrumb { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.8); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "›"; color: rgba(255,255,255,.6); }
.breadcrumb a { color: var(--color-white); }
.breadcrumb a:hover { color: var(--color-sky); }

/* --- Apparition au défilement (reveal) --- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s; }
.js [data-reveal].is-visible { opacity: 1; transform: none; visibility: visible; transition: opacity .6s ease, transform .6s ease, visibility 0s; }
