/* ==========================================================================
   Global Ventures QC : feuille de style
   Palette et typographie issues de l'identité visuelle (29 septembre 2026)
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --nuit: #001A3D;          /* couleur de la marque */
  --nuit-2: #0B2B5C;        /* cartes sur fond nuit */
  --signature: #0066FF;     /* boutons, liens */
  --signature-fonce: #0052CC;
  --clair: #4DAFFF;         /* accents sur fond sombre uniquement */
  --pale: #EAF1FB;          /* bandes claires */
  --blanc: #F8FAFC;
  --texte: #0B1B33;
  --gris: #5E6B7A;
  --ligne: #D5DFEC;
  --rayon: 18px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Montserrat", system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  color: var(--texte); background: #fff; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.conteneur { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* ---------- typographie ---------- */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; font-weight: 500; line-height: 1.3; }
p { margin: 0; }
.surtitre {
  display: inline-flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--signature);
}
.surtitre::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.sombre .surtitre { color: var(--clair); }
.intro { font-size: 1.12rem; color: var(--gris); max-width: 62ch; }
.sombre .intro { color: #C4D3E8; }

/* ---------- boutons en pilule ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font: 500 .95rem/1 "Montserrat", sans-serif; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-plein { background: var(--signature); color: #fff; }
.btn-plein:hover { background: var(--signature-fonce); }
.btn-contour { border-color: currentColor; color: var(--nuit); background: transparent; }
.sombre .btn-contour { color: #fff; }
.btn-contour:hover { background: rgba(255,255,255,.08); }

/* ---------- en-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s;
  padding: 22px 0;
}
.entete.defile { background: rgba(0, 26, 61, .92); backdrop-filter: blur(12px); padding: 12px 0; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.entete .logo img { height: 66px; width: auto; transition: height .3s var(--ease); }
.entete.defile .logo img { height: 52px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a, .entete .btn, .langue { white-space: nowrap; }
.nav a { color: #DCE6F5; text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--clair); transition: right .3s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { right: 0; }
.entete-actions { display: flex; align-items: center; gap: 14px; }
.langue { color: #DCE6F5; font-size: .85rem; font-weight: 600; text-decoration: none; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.entete .btn { padding: 11px 20px; font-size: .88rem; }
.burger { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.burger svg { width: 26px; height: 26px; }

/* ---------- bannière avec globe ---------- */
.banniere {
  position: relative; overflow: hidden; background: radial-gradient(120% 90% at 78% 40%, #0B3A80 0%, var(--nuit) 55%);
  color: #fff; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 80px;
}
.banniere .conteneur { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.banniere h1 { margin: 22px 0 24px; }
.banniere h1 em { font-style: normal; color: var(--clair); }
.banniere .intro { margin-bottom: 36px; }
.banniere .boutons { display: flex; flex-wrap: wrap; gap: 14px; }
.orbite { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orbite ellipse { fill: none; stroke: var(--clair); stroke-opacity: .22; stroke-width: 1.2; stroke-dasharray: 2 10; animation: orbite 60s linear infinite; }
.orbite ellipse + ellipse { stroke-opacity: .12; animation-duration: 90s; animation-direction: reverse; }
@keyframes orbite { to { stroke-dashoffset: -600; } }

.globe-zone { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; }
.globe-zone::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,.45), transparent 68%); filter: blur(30px);
}
.globe-zone canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.globe-zone canvas:active { cursor: grabbing; }
#globe-liens { pointer-events: none; }

.defiler { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: #9FB4D3; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.defiler::after { content: ""; width: 1px; height: 38px; background: linear-gradient(#9FB4D3, transparent); animation: descente 2.2s var(--ease) infinite; }
@keyframes descente { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- sections ---------- */
section { padding: clamp(80px, 10vw, 130px) 0; }
.pale { background: var(--pale); }
.sombre { background: var(--nuit); color: #fff; }
.entete-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.entete-section h2 { margin-top: 16px; }

/* qui sommes-nous */
.qui { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.qui h2 { margin-top: 16px; }
.qui .texte p + p { margin-top: 18px; }
.relie { margin-top: 36px; display: grid; gap: 12px; }
.relie li { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--ligne); border-radius: 14px; font-weight: 500; background: #fff; transition: border-color .25s, transform .25s var(--ease); }
.relie li:hover { border-color: var(--signature); transform: translateX(4px); }
.relie li i { width: 10px; height: 10px; border-radius: 50%; background: var(--signature); flex: none; }
.relie { padding: 0; margin-bottom: 0; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.carte {
  position: relative; background: #fff; border-radius: var(--rayon); padding: 34px 30px 32px; border: 1px solid var(--ligne);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.carte:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(0, 26, 61, .35); }
.carte h3 { margin: 0 0 12px; }
.carte p { color: var(--gris); font-size: .96rem; }
.carte .coin { position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 1.5px solid var(--signature); opacity: .15; transition: opacity .35s, transform .5s var(--ease); }
.carte:hover .coin { opacity: .5; transform: scale(1.15); }

/* territoires */
.territoires { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.territoire {
  position: relative; min-height: 300px; border-radius: var(--rayon); padding: 28px; color: #fff; display: flex; flex-direction: column; justify-content: flex-start;
  background: linear-gradient(160deg, var(--nuit-2), var(--nuit)); overflow: hidden; isolation: isolate;
}
.territoire svg.fond { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; transition: transform .8s var(--ease); }
.territoire:hover svg.fond { transform: scale(1.06) rotate(-2deg); }
.territoire h3 { font-size: 1.55rem; font-weight: 400; letter-spacing: -0.02em; }
.territoire p { color: #C4D3E8; margin-top: 10px; font-size: .95rem; }
.territoire .pays { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.territoire .pays span { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); }
.drapeau { height: 13px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); flex: none; }

/* verticales */
.verticales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--rayon); overflow: hidden; }
.verticale { background: var(--nuit); padding: 36px 32px; position: relative; transition: background .35s; }
.verticale:hover { background: var(--nuit-2); }
.verticale .icone { width: 46px; height: 46px; color: var(--clair); margin-bottom: 26px; }
.verticale h3 { color: #fff; }
.verticale p { color: #B9CAE3; font-size: .94rem; margin-top: 10px; }

/* méthode */
.etapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: etape; }
.etapes::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--signature), var(--clair)); transform-origin: left; transform: scaleX(var(--progression, 0)); transition: transform 1.6s var(--ease); }
.etape { text-align: center; padding: 0 14px; }
.etape .pastille { width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: #fff; border: 2px solid var(--signature); display: grid; place-items: center; font-weight: 600; color: var(--signature); position: relative; z-index: 1; }
.etape h3 { font-size: 1.15rem; }
.etape p { color: var(--gris); font-size: .9rem; margin-top: 8px; }

/* direction */
.direction { display: grid; grid-template-columns: .62fr 1.38fr; gap: 72px; align-items: start; }
.direction .portrait { position: sticky; top: 110px; }
.portrait { max-width: 380px; aspect-ratio: 4/5; border-radius: var(--rayon); background: #DCE7F6; position: relative; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait::after { content: ""; position: absolute; inset: auto -20% -30% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--signature); opacity: .35; }
.direction h3 { font-size: 2rem; font-weight: 400; letter-spacing: -0.02em; margin-top: 16px; }
.direction .role { color: var(--signature); font-weight: 600; margin-top: 6px; }
.direction .specialite { color: var(--gris); font-weight: 500; margin-top: 2px; }

.lien-in { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.lien-in:hover { text-decoration: underline; }
.ico-in { width: 16px; height: 16px; flex: none; }
.direction .bouton-in { margin-top: 18px; color: var(--signature); font-size: .9rem; padding: 9px 16px; border: 1.5px solid currentColor; border-radius: 999px; }
.direction .bouton-in:hover { background: var(--signature); color: #fff; text-decoration: none; }
.coordonnees .lien-in { color: #DCE6F5; }


/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact h2 { margin-top: 16px; }
.profils { margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.profils li { list-style: none; color: #C4D3E8; display: flex; gap: 12px; }
.profils li::before { content: "→"; color: var(--clair); }
.coordonnees { margin-top: 36px; display: grid; gap: 6px; color: #DCE6F5; }
form.formulaire { background: #fff; color: var(--texte); border-radius: var(--rayon); padding: 34px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.formulaire .plein { grid-column: 1 / -1; }
.formulaire label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--nuit); }
.formulaire input, .formulaire select, .formulaire textarea { width: 100%; min-width: 0; font: 400 .95rem "Montserrat", sans-serif; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--blanc); color: var(--texte); }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--signature); outline-offset: 1px; border-color: transparent; }
.formulaire textarea { min-height: 120px; resize: vertical; }
.consentement { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; color: var(--gris) !important; font-size: .8rem !important; }
.consentement input { margin-top: 3px; width: auto; flex: none; }
.piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.confirmation.erreur { background: #FDECEC; color: #B42318; }
.confirmation { display: none; grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; background: #E7F6EE; color: #1E7B4F; font-weight: 500; }

/* les colonnes de grille ne doivent jamais être élargies par leur contenu (ex. une longue option de liste) */
.banniere .conteneur > *, .qui > *, .direction > *, .contact > *, .entete-section > *, .formulaire > * { min-width: 0; }

/* à fournir : repère visible pour les contenus manquants */
.a-fournir { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: #B35900; background: #FFF3E6; border: 1px dashed #E3A15B; padding: 3px 9px; border-radius: 6px; vertical-align: middle; }

/* pied de page */
.pied { background: #00122B; color: #9FB4D3; padding: 64px 0 32px; font-size: .9rem; }
.pied .conteneur > div:first-child { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.pied img { height: 54px; width: auto; }
.pied nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.pied .conteneur > div:first-child { align-items: center; }
.pied nav a { line-height: 1.4; }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; }
.pied .bas { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: .8rem; }

/* apparition au défilement */
.revele { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delai, 0s); }
.revele.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revele { opacity: 1; transform: none; }
}

/* ---------- menu compact : 6 onglets + logo agrandi ne tiennent pas sous 1180 px ---------- */
@media (max-width: 1180px) {
  .nav, .entete-actions .btn { display: none; }
  .burger { display: block; }
  .nav.ouverte { display: flex; position: fixed; inset: 82px 0 auto; flex-direction: column; background: var(--nuit); padding: 24px; gap: 20px; }
}

/* ---------- mobile ---------- */
@media (max-width: 1000px) {
  .nav, .entete-actions .btn { display: none; }
  .entete .logo img { height: 52px; }
  .portrait { max-width: 420px; }
  .entete.defile .logo img { height: 44px; }
  .burger { display: block; }
  .nav.ouverte { display: flex; position: fixed; inset: 72px 0 auto; flex-direction: column; background: var(--nuit); padding: 24px; gap: 20px; }
  .banniere .conteneur, .qui, .direction, .contact, .entete-section { grid-template-columns: 1fr; }
  .globe-zone { max-width: 440px; order: -1; margin-top: -10px; }
  .services, .territoires, .verticales { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .etapes::before { display: none; }
  .etape { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; padding: 0; }
  .etape .pastille { margin: 0; grid-row: span 2; }
  form.formulaire { grid-template-columns: 1fr; padding: 24px; }
  .territoire { min-height: 300px; }
  .defiler { display: none; }
}

/* ---------- page légale (politique de confidentialité) ---------- */
.page-legale .entete { position: sticky; top: 0; }
.actions-legales { display: flex; align-items: center; gap: 12px; }
@media (max-width: 480px) { .page-legale .entete .conteneur { gap: 12px; } .actions-legales { gap: 8px; } .page-legale .logo { min-width: 112px; } .page-legale .retour { padding: 8px 11px; font-size: .78rem; } }
.page-legale .retour { color: #fff; padding: 10px 18px; font-size: .88rem; }
.legal { padding: 70px 0 100px; }
.conteneur.etroit { width: min(780px, 100% - 48px); }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: 18px 0 10px; color: var(--nuit); }
.legal .maj { color: var(--gris); font-size: .92rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; color: var(--nuit); margin: 40px 0 12px; }
.legal p, .legal li { color: #2B3A50; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.legal a { color: var(--signature); }
.legal .encadre { background: var(--pale); border-radius: 14px; padding: 20px 22px; line-height: 1.8; }
.page-legale .pied .bas { border: 0; padding-top: 0; }

/* ---------- typographie et bio (1er octobre 2026) ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.intro { line-height: 1.75; }
.intro + .intro { margin-top: 18px; }
.intro.lead { font-size: 1.28rem; line-height: 1.6; color: var(--nuit); }
.sombre .intro.lead { color: #fff; }
.etape p { text-wrap: balance; }
.carte p, .verticale p, .territoire p { line-height: 1.65; }

.bio-texte { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--ligne); max-width: 66ch; }
.bio { color: #44546A; line-height: 1.8; }
.bio + .bio { margin-top: 16px; }
.bio.lead { font-size: 1.22rem; line-height: 1.6; color: var(--nuit); }
.petit-titre { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--signature); margin-bottom: 10px; }
.distinction { margin-top: 30px; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 24px 26px; border-radius: var(--rayon); background: linear-gradient(135deg, #F3F7FD, #E6EEFA); border-left: 3px solid var(--signature); }
.ico-distinction { width: 48px; height: 48px; color: var(--signature); }
.distinction p { color: var(--nuit); line-height: 1.7; }
.titre-distinction { display: block; font-size: 1.12rem; font-weight: 600; color: var(--nuit); margin: -2px 0 8px; }
.titre-distinction sup { font-size: .62em; }
.titre-distinction:has(+ .sous-titre-distinction) { margin-bottom: 2px; }
.sous-titre-distinction { display: block; font-size: .92rem; font-weight: 500; color: var(--signature); margin-bottom: 10px; }
.sous-titre-distinction sup { font-size: .65em; }

.legal .lead { font-size: 1.18rem; line-height: 1.65; color: var(--nuit); }
.legal p, .legal li { line-height: 1.75; }

@media (max-width: 1000px) {
  .direction .portrait { position: static; }
  .bio-texte { max-width: none; }
  .distinction { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .intro.lead { font-size: 1.15rem; }
}
