/* Hub de la carte de visite — Altiscore SAS. Même identité que formulaire.altiscore.eu et sa vidéo :
   fond nuit, lueurs bleue et violette, verre dépoli, dégradé bleu → violet. Pensé téléphone d'abord. */

@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #05060b;
  --verre: rgba(255, 255, 255, 0.045);
  --verre-fort: rgba(255, 255, 255, 0.08);
  --bord: rgba(255, 255, 255, 0.09);
  --bord-fort: rgba(255, 255, 255, 0.16);
  --texte: #f3f5fb;
  --texte-2: rgba(226, 232, 245, 0.74);
  --texte-3: rgba(226, 232, 245, 0.5);
  --bleu: #007dfe;
  --bleu-clair: #4da3ff;
  --violet: #7c3aed;
  --degrade: linear-gradient(135deg, #007dfe 0%, #5b5bff 55%, #7c3aed 100%);
  --police: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --police-titre: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --police-serif: 'Instrument Serif', Georgia, serif;
  --courbe: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--texte);
  font-family: var(--police); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--bleu-clair); outline-offset: 3px; border-radius: 12px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ——— Fond ——— */
.fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, #0b1230 0%, var(--bg) 62%); }
.fond__lueur { position: absolute; border-radius: 50%; }
.fond__lueur--bleue { width: 620px; height: 620px; left: -260px; top: -300px; background: radial-gradient(closest-side, rgba(0, 125, 254, 0.42), rgba(0, 125, 254, 0) 72%); }
.fond__lueur--violette { width: 600px; height: 600px; right: -300px; top: -160px; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.36), rgba(124, 58, 237, 0) 72%); }
.fond__lueur--cyan { width: 760px; height: 560px; left: 10%; bottom: -380px; background: radial-gradient(closest-side, rgba(56, 189, 248, 0.13), rgba(56, 189, 248, 0) 72%); }
.fond__grain { position: absolute; inset: 0; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* ——— Mise en page ——— */
.page { width: min(560px, 100% - 32px); margin-inline: auto; padding: max(22px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px; }

.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.entete__logo { width: 132px; height: auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--bord-fort); border-radius: 999px; background: var(--verre); font-size: 0.82rem; color: var(--texte-2); }
.badge__point { width: 7px; height: 7px; border-radius: 50%; background: var(--bleu-clair); box-shadow: 0 0 10px var(--bleu); }

.intro { text-align: center; padding-top: 10px; }
.intro h1 { margin: 0; font-family: var(--police-titre); font-weight: 700; font-size: clamp(2rem, 8.4vw, 2.9rem); line-height: 1.04; letter-spacing: -0.04em; }
.intro__salut { margin: 0 0 6px !important; font-size: 1.1rem !important; color: var(--texte-2); font-weight: 500; }
.intro h1 em { white-space: nowrap; font-family: var(--police-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; background: linear-gradient(90deg, #4da3ff, #8b7bff 55%, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.intro p { margin: 12px 0 0; color: var(--texte-2); font-size: 1.05rem; }

/* ——— Les deux grands choix ——— */
.choix { display: flex; flex-direction: column; gap: 14px; }
.choix__carte {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 20px 18px; border-radius: 22px;
  background: var(--verre); border: 1px solid var(--bord-fort);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform 220ms var(--courbe), border-color 220ms var(--courbe), background 220ms var(--courbe);
  overflow: hidden;
}
.choix__carte::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--degrade); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 220ms var(--courbe); }
.choix__carte--site { background: linear-gradient(135deg, rgba(0, 125, 254, 0.22), rgba(124, 58, 237, 0.16)), var(--verre); }
.choix__carte--site::before { opacity: 1; }
.choix__carte:hover, .choix__carte:focus-visible { transform: translateY(-2px); background-color: var(--verre-fort); }
.choix__carte:active { transform: scale(0.985); }
.choix__icone { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--degrade); box-shadow: 0 10px 26px -10px rgba(0, 125, 254, 0.9); }
.choix__carte--depannage .choix__icone { background: linear-gradient(135deg, #22c1ee, #007dfe); }
.choix__carte--heberg .choix__icone { background: rgba(255, 255, 255, 0.08); box-shadow: none; border: 1px solid var(--bord-fort); }
.choix__icone svg { width: 30px; height: 30px; stroke: #fff; }
.choix__texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.choix__texte strong { font-family: var(--police-titre); font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.2; }
.choix__texte span { color: var(--texte-2); font-size: 0.94rem; line-height: 1.4; }
.choix__fleche { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); }
.choix__fleche svg { width: 20px; height: 20px; }

/* ——— Vidéo ——— */
.video__vignette { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--bord-fort); border-radius: 20px; overflow: hidden; background: #0b1230; cursor: pointer; color: #fff; }
.video__vignette img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video__lecture { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--degrade); box-shadow: 0 12px 34px -8px rgba(0, 125, 254, 0.9); }
.video__lecture svg { width: 28px; height: 28px; fill: #fff; stroke: none; margin-left: 4px; }
.video__titre { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-weight: 600; font-size: 0.98rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.video__lecteur { width: 100%; border-radius: 20px; border: 1px solid var(--bord-fort); background: #000; }
/* téléphone : la version verticale occupe la hauteur de l'écran, sans déborder */
.video--verticale .video__lecteur { width: auto; max-width: 100%; max-height: 80vh; max-height: 80dvh; aspect-ratio: 9 / 16; margin-inline: auto; }

/* ——— Contact ——— */
.contact { padding: 20px 18px; border-radius: 22px; background: var(--verre); border: 1px solid var(--bord); }
.contact h2 { margin: 0 0 14px; font-family: var(--police-titre); font-size: 1.15rem; letter-spacing: -0.02em; text-align: center; }
.contact__boutons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.contact__bouton { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--bord); font-size: 0.88rem; font-weight: 600; transition: background 220ms var(--courbe); }
.contact__bouton svg { width: 24px; height: 24px; color: var(--bleu-clair); }
.contact__bouton:hover { background: rgba(255, 255, 255, 0.1); }
.contact__enregistrer { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 14px; background: var(--degrade); font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0, 125, 254, 0.9); }
.contact__enregistrer svg { width: 22px; height: 22px; }

.pied { display: flex; justify-content: center; gap: 14px; color: var(--texte-3); font-size: 0.85rem; }
.pied a { color: var(--texte-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
