/* Infrastructure v2 : structure et mouvement inspirés d'une page « on-premises » (techniques seulement).
   Ses jetons uniquement. Rien ne bouge sans .js-mouvement ; la pause du site fige tout. */
@property --e { syntax: "<number>"; inherits: true; initial-value: 1; }

/* ---------- Révélations : lignes masquées qui montent, blocs qui montent en fondu ---------- */
.iv2-pret [data-lignes] .ligne { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.iv2-pret [data-lignes] .ligne__in { display: block; transform: translateY(105%); transition: transform 1000ms var(--courbe-sortie); transition-delay: calc(var(--l, 0) * 90ms + 120ms); }
.iv2-pret [data-lignes].est-vu .ligne__in { transform: none; }
.iv2-pret [data-monte] { opacity: 0; transform: translateY(48px); transition: opacity 900ms var(--courbe-sortie), transform 1000ms var(--courbe-sortie); transition-delay: calc(var(--d, 0) * 110ms); }
.iv2-pret [data-monte].est-vu { opacity: 1; transform: none; }

/* ---------- Étiquette (pastille) ---------- */
.iv2-etiquette { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: var(--rayon-action); border: var(--trame) solid color-mix(in srgb, var(--texte) 22%, transparent); background: color-mix(in srgb, var(--texte) 8%, transparent); font-family: var(--police-interface); font-size: var(--t-s); color: var(--texte); }
.iv2-etiquette--clair { background: var(--surface); }

/* ---------- 1. Héros centré, fond de circuits ---------- */
.iv2-heros { text-align: center; padding-bottom: var(--e-12); }
.iv2-circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, transparent 30%, #000 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, transparent 30%, #000 75%); }
.iv2-circuit__trait { fill: none; stroke: color-mix(in srgb, var(--texte) 16%, transparent); stroke-width: 1.2; }
.iv2-circuit__noeud { fill: color-mix(in srgb, var(--texte) 35%, transparent); }
.iv2-circuit__pouls { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 94; stroke-dashoffset: 100; opacity: 0; }
.js-mouvement .iv2-circuit__pouls { opacity: 0.9; animation: iv2-pouls 5s linear infinite; animation-delay: var(--r, 0s); }
@keyframes iv2-pouls { to { stroke-dashoffset: 0; } }
.iv2-heros__centre { display: grid; justify-items: center; gap: var(--e-6); padding-top: var(--e-6); }
.iv2-heros__titre { max-width: 17ch; margin-inline: auto; font-size: clamp(2.6rem, calc(1rem + 4.6vw), 5.5rem); }
.iv2-heros__intro { max-width: 44ch; color: var(--texte-doux); }
.iv2-heros__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--e-4) var(--e-6); }
.iv2-usages { margin: var(--e-16) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
.iv2-usages li { display: grid; align-content: start; gap: var(--e-3); padding: var(--e-6) var(--e-8); border-left: var(--trame) solid var(--bordure); }
.iv2-usages li:nth-child(3n+1) { border-left: 0; }
.iv2-usages li:nth-child(-n+3) { border-bottom: var(--trame) solid var(--bordure); }
.iv2-usages p { max-width: 32ch; }
.picto { width: 30px; height: 30px; fill: none; stroke: var(--texte); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.picto .pt { fill: var(--accent); stroke: none; }
.picto .tr-ac { stroke: var(--accent); }

/* ---------- 2. Avantages : cartes en grille 7/5, 4/4/4, 12 ---------- */
.iv2-entete { display: grid; justify-items: center; gap: var(--e-4); text-align: center; margin-bottom: var(--e-12); }
.iv2-entete h2 { max-width: 20ch; }
.iv2-entete p.t-intro { max-width: 52ch; }
.iv2-cartes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--e-6); }
.iv2-carte { grid-column: span 4; display: grid; grid-template-rows: auto 1fr; gap: var(--e-4); padding: var(--e-8); border-radius: var(--rayon-panneau, 24px); background: var(--surface); border: var(--trame) solid var(--bordure); overflow: clip; min-height: 520px; }
.iv2-carte--large { grid-column: span 7; }
.iv2-carte--large + .iv2-carte--sombre { grid-column: span 5; }
.iv2-carte--bande { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; min-height: 0; }
.iv2-carte h3 { font-size: clamp(1.6rem, calc(1rem + 1.1vw), 2.25rem); letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
.iv2-carte p { color: var(--texte-doux); max-width: 42ch; margin-top: var(--e-3); }
.iv2-carte strong { color: var(--texte); font-weight: 500; }
.iv2-carte figure { margin: 0; align-self: end; display: grid; place-items: end center; }
.iv2-carte .iv2-dessin { width: 100%; max-height: 300px; overflow: visible; }
/* Les cartes sombres prennent la palette de nuit, dans la section claire */
.iv2-carte--sombre { --texte: #ECEEED; --texte-doux: #ADB5B2; --surface: #202221; --bordure: #373B39; background: var(--fond-nuit, #101211); color: var(--texte); }
.iv2-dessin .plaque--memoire .dessus { fill: color-mix(in srgb, var(--accent) 24%, var(--surface)); }
.iv2-dessin .fiche-memoire { fill: none; stroke: var(--texte); stroke-width: 1.2; }
.iv2-dessin .iv2-enveloppe { fill: none; stroke: color-mix(in srgb, var(--texte) 50%, transparent); stroke-width: 1.2; stroke-dasharray: 6 6; }
.iv2-dessin .iv2-piste { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.iv2-dessin .puce .dessus { fill: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.iv2-dessin .iv2-pouls { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.iv2-dessin .iv2-a-venir polygon { stroke-dasharray: 5 6; }
.js-mouvement .iv2-dessin .iv2-pouls { animation: iv2-trace 2.8s var(--courbe) infinite; }
.js-mouvement .iv2-dessin .iv2-flotte { animation: iv2-flotte 4.5s ease-in-out infinite; }
.js-mouvement .iv2-dessin .iv2-veille { animation: iv2-veille 2.4s ease-in-out infinite; }
.js-mouvement .iv2-dessin .iv2-a-venir { animation: iv2-veille 3s ease-in-out infinite; }
@keyframes iv2-trace { 0% { stroke-dashoffset: 100; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes iv2-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes iv2-veille { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
/* Bande « relié » : un nœud, des fils qui s'ouvrent en éventail, les logiciels */
.iv2-relie { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 0; min-height: 300px; }
.iv2-noeud { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: var(--fond); color: var(--texte); font-family: var(--police-interface); font-weight: 600; box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 0 42px color-mix(in srgb, var(--accent) 7%, transparent); }
.iv2-noeud span { font-size: var(--t-s); }
.iv2-noeud::after { content: ""; position: absolute; top: 18px; right: 30px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.js-mouvement .iv2-noeud { animation: iv2-onde 3.2s ease-in-out infinite; }
@keyframes iv2-onde { 0%, 100% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 0 42px color-mix(in srgb, var(--accent) 7%, transparent); } 50% { box-shadow: 0 0 0 24px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 0 54px color-mix(in srgb, var(--accent) 3%, transparent); } }
.iv2-fils { width: 100%; height: 280px; overflow: visible; }
.iv2-fil { fill: none; stroke: color-mix(in srgb, var(--texte) 30%, transparent); stroke-width: 1.3; }
.iv2-fil--pouls { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 8 92; stroke-dashoffset: 100; opacity: 0; }
.js-mouvement .est-vu .iv2-fil--pouls { opacity: 1; animation: iv2-pouls 2.6s linear infinite; animation-delay: var(--r, 0s); }
.iv2-logiciels { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.iv2-logiciels li { padding: 10px 18px; border-radius: 12px; background: var(--page, #F0EEE9); border: var(--trame) solid var(--bordure); font-family: var(--police-interface); font-weight: 600; font-size: var(--t-s); white-space: nowrap; }

/* ---------- 3. Résidence : panneau sombre, schéma qui converge ---------- */
.iv2-residence__grille { display: grid; gap: var(--e-12); align-items: center; }
.iv2-residence__texte { display: grid; gap: var(--e-6); align-content: start; justify-items: start; }
.iv2-residence__texte p { max-width: 44ch; }
.iv2-schema { margin: 0; display: grid; justify-items: center; }
.iv2-schema__haut { width: 100%; padding: var(--e-6); border: var(--trame) solid var(--bordure); border-radius: var(--rayon-panneau, 24px); background: color-mix(in srgb, var(--texte) 4%, transparent); text-align: center; }
.iv2-schema__titre { font-family: var(--police-interface); font-size: var(--t-l); margin-bottom: var(--e-4); }
.iv2-schema__haut ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-3); }
.iv2-schema__haut li { display: grid; place-items: center; min-height: 72px; padding: var(--e-3); border-radius: var(--rayon); border: 1.5px dashed color-mix(in srgb, var(--texte) 30%, transparent); font-size: var(--t-s); color: var(--texte-doux); }
.iv2-eventail { width: 80%; height: 120px; overflow: visible; margin-top: -1px; }
.iv2-schema__bas { width: min(440px, 100%); padding: var(--e-6); border-radius: var(--rayon-panneau, 24px); background: var(--accent); color: var(--fond); text-align: center; display: grid; gap: var(--e-2); justify-items: center; }
.iv2-pastille-noire { display: inline-flex; padding: 4px 14px; border-radius: var(--rayon-action); background: var(--fond); color: var(--texte); font-size: var(--t-xs); font-family: var(--police-interface); }
.iv2-schema__nom { font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: var(--t-l); letter-spacing: -0.02em; }
.iv2-schema figcaption { margin-top: var(--e-4); font-size: var(--t-s); color: var(--texte-doux); }
@media (min-width: 1024px) { .iv2-residence__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---------- 4. Gouvernance : quatre cartes ---------- */
.iv2-gouvernance h2 { text-align: center; margin-bottom: var(--e-12); }
.iv2-quatre { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--e-6); }
@media (min-width: 760px) { .iv2-quatre { grid-template-columns: 1fr 1fr; } }
.iv2-quatre li { display: grid; align-content: start; gap: var(--e-4); padding: var(--e-8); border-radius: var(--rayon-panneau, 24px); background: var(--surface); border: var(--trame) solid var(--bordure); }
.iv2-quatre h3 { font-size: var(--t-l); letter-spacing: -0.02em; }
.iv2-quatre p { color: var(--texte-doux); max-width: 52ch; }

/* ---------- 5. Bandeau d'accent qui déplie la fiche ---------- */
.iv2-fiche__boite { border-radius: var(--rayon-panneau, 28px); background: var(--accent); color: #101211; overflow: clip; }
.iv2-fiche__boite summary { list-style: none; cursor: pointer; display: grid; gap: var(--e-6); padding: clamp(28px, 4vw, 56px); align-items: center; }
.iv2-fiche__boite summary::-webkit-details-marker { display: none; }
.iv2-fiche__boite summary:focus-visible { outline: 3px solid #101211; outline-offset: -8px; }
.iv2-fiche__titre { font-size: clamp(2.2rem, calc(1rem + 3.4vw), 4.25rem); letter-spacing: -0.04em; line-height: 0.98; max-width: 12ch; }
.iv2-fiche__droite { display: grid; gap: var(--e-4); justify-items: start; max-width: 40ch; }
.iv2-fiche__bouton { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 6px 6px 22px; border-radius: 999px; background: #101211; color: #ECEEED; font-family: var(--police-interface); }
.iv2-fiche__bouton .bouton__fleche { background: var(--accent); color: #101211; transition: transform var(--duree) var(--courbe); }
.iv2-fiche__boite[open] .iv2-fiche__bouton .bouton__fleche { transform: rotate(90deg); }
.iv2-fiche__boite .fermer, .iv2-fiche__boite[open] .ouvrir { display: none; }
.iv2-fiche__boite[open] .fermer { display: inline; }
.iv2-fiche__contenu { margin: 0 clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px); padding: var(--e-6); border-radius: var(--rayon-panneau, 20px); background: var(--page, #F0EEE9); color: #101211; overflow-x: auto; }
.iv2-fiche__contenu table { width: 100%; }
@media (min-width: 900px) { .iv2-fiche__boite summary { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- 6. Questions + carte sombre animée ---------- */
.iv2-questions__grille { display: grid; gap: var(--e-12); align-items: start; }
.iv2-questions__grille > div { display: grid; gap: var(--e-6); justify-items: start; }
.iv2-questions .questions { width: 100%; }
.iv2-carte-appel { --texte: #ECEEED; --texte-doux: #ADB5B2; --surface: #202221; --bordure: #373B39; display: grid; justify-items: center; gap: var(--e-4); padding: var(--e-8); border-radius: var(--rayon-panneau, 28px); background: #101211; color: var(--texte); text-align: center; }
.iv2-carte-appel__dessin { margin: 0; width: 100%; }
.iv2-carte-appel__dessin .couche { transform: translateY(calc(var(--k, 0) * var(--e) * -58px)); }
.iv2-carte-appel__dessin .plaque .dessus { fill: var(--surface); }
.iv2-carte-appel__dessin .enveloppe { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 6 6; }
.iv2-carte-appel__dessin .flux-externe { fill: none; stroke: var(--texte-doux); stroke-width: 2; stroke-dasharray: 3 7; }
.iv2-carte-appel__dessin .prise, .iv2-carte-appel__dessin .fiche-memoire { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.iv2-carte-appel__dessin text { display: none; }
.js-mouvement .iv2-carte-appel__dessin { animation: iv2-respire 6s ease-in-out infinite; }
@keyframes iv2-respire { 0%, 100% { --e: 1; } 50% { --e: 0.25; } }
.iv2-carte-appel__texte { font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: var(--t-titre); letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
@media (min-width: 1024px) { .iv2-questions__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- Pause et téléphone ---------- */
.pause-mouvement .iv2-heros *, .pause-mouvement .iv2-dessin *, .pause-mouvement .iv2-noeud, .pause-mouvement .iv2-fils *, .pause-mouvement .iv2-eventail *, .pause-mouvement .iv2-carte-appel__dessin { animation-play-state: paused !important; }
@media (max-width: 1023px) {
  .iv2-carte, .iv2-carte--large, .iv2-carte--large + .iv2-carte--sombre { grid-column: span 6; }
  .iv2-carte--bande { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .iv2-carte:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .iv2-usages { grid-template-columns: 1fr; }
  .iv2-usages li { border-left: 0; border-bottom: var(--trame) solid var(--bordure); padding: var(--e-4) 0; }
  .iv2-usages li:last-child { border-bottom: 0; }
  .iv2-cartes { grid-template-columns: 1fr; gap: var(--e-4); }
  .iv2-carte, .iv2-carte--large, .iv2-carte--large + .iv2-carte--sombre, .iv2-carte:nth-child(5) { grid-column: 1; min-height: 0; padding: var(--e-6); }
  .iv2-relie { grid-template-columns: 1fr; justify-items: center; gap: var(--e-8); min-height: 0; padding-top: var(--e-8); }
  .iv2-fils { display: none; }
  .iv2-logiciels { grid-template-columns: 1fr 1fr; width: 100%; }
  .iv2-logiciels li { white-space: normal; text-align: center; }
  .iv2-schema__haut ul { grid-template-columns: 1fr; }
  .iv2-schema__haut li { min-height: 52px; }
  .iv2-eventail { height: 80px; }
  .iv2-carte-appel { padding: var(--e-6); }
}
@media (prefers-reduced-motion: reduce) { .iv2-circuit__pouls, .iv2-fil--pouls { display: none; } }

/* Schémas des cartes de calcul (images/gpu/) */
.iv2-carte img.iv2-gpu { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; }
/* Sur téléphone, site.css masque les étiquettes des dessins de machines ; la légende du schéma « Environnement dédié »
   reste affichée, agrandie pour se lire une fois le dessin réduit à la largeur de la carte. */
@media (max-width: 600px) {
  .iv2-carte .machines__dessin text.etiquette-forte { display: inline; font-size: 26px; }
}
/* Ventilateurs qui tournent (images/gpu/anime/) ; image fixe avec le mouvement réduit ou la pause du site. */
.iv2-carte img.iv2-gpu--fixe { display: none; }
@media (prefers-reduced-motion: reduce) { .iv2-carte img.iv2-gpu--anime { display: none; } .iv2-carte img.iv2-gpu--fixe { display: block; } }
.pause-mouvement .iv2-carte img.iv2-gpu--anime { display: none; }
.pause-mouvement .iv2-carte img.iv2-gpu--fixe { display: block; }
