/* SITE XPERIUM V1 : feuille de style commune.
   Style 1 « technologique électrique » (choix du 05/12/2026). Couleurs, polices et effets : DESIGN-Tawnia.txt.
   Règle : la lueur est réservée au survol, au bouton principal et aux lignes de l'image ; le reste est calme et lisible. */

/* ---------- 1. Polices (rangées dans le site, aucun lien vers Google) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("polices/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("polices/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("polices/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("polices/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- 2. Couleurs et réglages ---------- */
:root {
  --nuit-0: #040F33;
  --nuit-1: #07184F;
  --nuit-2: #0B1E5B;
  --nuit-3: #0E2468;
  --trait: rgba(110, 168, 255, .22);
  --bleu: #3B82F6;
  --bleu-clair: #6EA8FF;
  --cyan: #06B6DA;
  --lueur: #8EEFF5;
  --texte: #F2F6FF;
  --texte-doux: #A9B8D9;
  --or: #F5C451;
  --halo: 0 0 0 1px rgba(6, 182, 218, .5), 0 8px 28px rgba(6, 182, 218, .22);
  --titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --plex: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --large: 1240px;
  --menu: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--menu) + 16px); }
body { margin: 0; background: var(--nuit-1); color: var(--texte); font: 400 17px/1.6 var(--plex); }
a { color: var(--bleu-clair); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--lueur); outline-offset: 3px; }
.xp-sauter { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--cyan); color: var(--nuit-0); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.xp-sauter:focus { top: 12px; }
.xp-cadre { max-width: var(--large); margin: 0 auto; padding: 0 32px; }
.xp-petit-titre { margin: 0 0 8px; font: 600 15px/1.3 var(--plex); color: var(--bleu-clair); }

/* ---------- 3. Barre du menu : transparente sur l'image, fond nuit dès qu'on défile ---------- */
.xp-entete { position: fixed; top: 0; left: 0; right: 0; z-index: 40; border-bottom: 1px solid transparent; background: linear-gradient(rgba(4, 15, 51, .8), rgba(4, 15, 51, 0)); transition: background .25s, border-color .25s; }
.xp-entete nav { flex: 1; }
.xp-entete.xp-defile { background: rgba(4, 15, 51, .92); backdrop-filter: blur(8px); border-bottom-color: var(--trait); }
.xp-entete .xp-cadre { display: flex; align-items: center; gap: 18px; height: var(--menu); }
.xp-logo {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
  font: 800 26px/1 var(--titre); color: var(--texte); text-decoration: none;
  background: var(--nuit-2); border: 1px solid var(--trait); box-shadow: inset 0 2px 0 var(--bleu);
}
.xp-menu { flex: 1; display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.xp-menu a { position: relative; display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--texte); transition: background .18s; }
.xp-menu a b { display: block; font: 600 15px/1.2 var(--plex); white-space: nowrap; }
.xp-menu a small { display: block; font-size: 12px; line-height: 1.35; color: var(--texte-doux); white-space: nowrap; }
.xp-menu a:hover { background: rgba(14, 36, 104, .75); }
.xp-menu a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--cyan); }
.xp-contact {
  flex: none; cursor: pointer; background: transparent; padding: 10px 20px; border-radius: 8px; text-decoration: none;
  font: 600 15px/1 var(--plex); color: var(--texte); border: 1.5px solid var(--cyan); transition: background .18s, color .18s;
}
.xp-contact:hover { background: var(--cyan); color: var(--nuit-0); }

/* ---------- 4. Ouverture de l'accueil : la maison à droite, le titre dans la partie libre à gauche ---------- */
.xp-ouverture { position: relative; height: clamp(600px, 50vw, 820px); background: linear-gradient(180deg, #041036, #081C5C 55%, var(--nuit-1)); overflow: hidden; }
.xp-ouverture-image {
  position: absolute; right: 0; top: 0; height: 100%; aspect-ratio: 3 / 2;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%);
  mask-image: linear-gradient(to right, transparent, #000 12%);
}
.xp-ouverture-image img { width: 100%; height: 100%; object-fit: cover; }
.xp-ouverture::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 110px; z-index: 1; background: linear-gradient(var(--nuit-0), rgba(4, 15, 51, 0)); pointer-events: none; }
.xp-ouverture::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--nuit-1)); pointer-events: none; }
.xp-ouverture .xp-cadre { position: relative; height: 100%; display: flex; align-items: center; padding-top: var(--menu); pointer-events: none; }
.xp-ouverture-texte { max-width: 480px; position: relative; z-index: 2; pointer-events: auto; }
.xp-ouverture h1 { margin: 0 0 18px; font: 800 clamp(40px, 5vw, 72px)/1.05 var(--titre); letter-spacing: -.01em; }
.xp-accroche { margin: 0 0 12px; font: 600 clamp(19px, 1.55vw, 23px)/1.45 var(--plex); }
.xp-sous-accroche { margin: 0 0 30px; color: var(--texte-doux); }
.xp-bouton {
  display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 10px; text-decoration: none;
  font: 600 16px/1 var(--plex); color: var(--nuit-0); background: var(--cyan);
  box-shadow: 0 0 24px rgba(6, 182, 218, .35); transition: transform .18s, box-shadow .18s;
}
.xp-bouton:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(6, 182, 218, .5); }
/* Bulle de la mascotte, placée en % de l'image : elle suit la mascotte à toutes les largeurs */
.xp-bulle {
  position: absolute; left: 71%; top: 47%; z-index: 3; margin: 0; max-width: 25%;
  padding: 9px 15px; border-radius: 14px; background: var(--texte); color: var(--nuit-0);
  font: 600 15px/1.3 var(--plex); box-shadow: 0 0 18px rgba(142, 239, 245, .45); pointer-events: none;
}
.xp-bulle::after { content: ""; position: absolute; left: 22px; bottom: -9px; border: 10px solid transparent; border-bottom: 0; border-top-color: var(--texte); }
/* Les pièces de la maison sont cliquables dans l'image ; leur nom apparaît au survol ou au clavier */
.xp-piece { position: absolute; z-index: 2; border-radius: 10px; border: 1px solid transparent; transition: border-color .18s, background .18s, box-shadow .18s; }
.xp-piece span {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); opacity: 0;
  padding: 5px 12px; border-radius: 8px; background: rgba(4, 15, 51, .92); color: var(--texte);
  font: 600 14px/1.2 var(--plex); white-space: nowrap; border: 1px solid var(--trait); transition: opacity .18s;
}
.xp-piece:hover, .xp-piece:focus-visible { border-color: var(--cyan); background: rgba(6, 182, 218, .08); box-shadow: var(--halo); }
.xp-piece:hover span, .xp-piece:focus-visible span { opacity: 1; }

/* ---------- 5. Sections ---------- */
.xp-section { padding: 64px 0; }
.xp-section + .xp-section { padding-top: 0; }
.xp-section h2 { margin: 0 0 8px; font: 700 34px/1.15 var(--titre); }
.xp-intro { margin: 0 0 30px; max-width: 70ch; color: var(--texte-doux); }

/* ---------- 6. Le plan de la maison : un « mur » autour de 5 pièces, l'Atelier en grand ---------- */
.xp-plan {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
  padding: 14px; border: 2px solid var(--trait); border-radius: 18px;
}
.xp-tuile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px;
  min-height: 210px; padding: 16px 18px 20px; border-radius: 12px; text-decoration: none; color: var(--texte);
  background: var(--nuit-2); border: 1px solid var(--trait); box-shadow: inset 0 2px 0 var(--bleu);
  transition: transform .18s, background .18s, border-color .18s, box-shadow .18s;
}
.xp-tuile:first-child { grid-row: span 2; }
a.xp-tuile:hover, a.xp-tuile:focus-visible { transform: translateY(-3px); background: var(--nuit-3); border-color: var(--cyan); box-shadow: inset 0 1px 0 var(--cyan), var(--halo); }
.xp-tuile-image { width: 100%; height: auto; margin-bottom: 14px; border-radius: 8px; object-fit: cover; border: 1px solid var(--trait); }
.xp-tuile:not(:first-child) .xp-tuile-image { max-height: 120px; }
.xp-tuile:first-child .xp-tuile-image { flex: 1 1 0; min-height: 220px; aspect-ratio: auto !important; }
.xp-tuile b { font: 700 22px/1.2 var(--titre); }
.xp-tuile:first-child b { font-size: 30px; }
.xp-tuile .xp-pour { font-size: 14px; color: var(--texte-doux); }
.xp-tuile p { margin: 6px 0 0; color: var(--texte-doux); font-size: 16px; line-height: 1.5; }
.xp-tuile .xp-fleche { position: absolute; top: 24px; right: 26px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(4, 15, 51, .85); color: var(--bleu-clair); font-size: 18px; opacity: 0; transition: opacity .18s; }
a.xp-tuile:hover .xp-fleche, a.xp-tuile:focus-visible .xp-fleche { opacity: 1; }

/* ---------- 7. Journal de chantier et autres sites ---------- */
.xp-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.xp-deux:has(> [hidden]) { grid-template-columns: 1fr; }
.xp-boite { padding: 26px 28px; border-radius: 14px; background: var(--nuit-2); border: 1px solid var(--trait); }
.xp-boite h2 { margin: 0 0 14px; font: 700 24px/1.2 var(--titre); }
.xp-journal { margin: 0; padding: 0; list-style: none; }
.xp-journal li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--trait); }
.xp-journal li:first-child { border-top: 0; }
.xp-journal time { font: 500 14px/1.6 var(--mono); color: var(--texte-doux); }
.xp-site { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 12px; text-decoration: none; color: var(--texte); background: var(--nuit-1); border: 1px solid var(--trait); transition: border-color .18s, box-shadow .18s, background .18s; }
.xp-site:hover, .xp-site:focus-visible { background: var(--nuit-3); border-color: var(--cyan); box-shadow: var(--halo); }
.xp-site-icone { font-size: 30px; line-height: 1; }
.xp-site b { display: block; font: 700 18px/1.25 var(--titre); }
.xp-site small { display: block; color: var(--texte-doux); font-size: 15px; }
.xp-site .xp-ouvrir { margin-left: auto; color: var(--bleu-clair); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* ---------- 8. Pied de page : 3 colonnes et une ligne du bas ---------- */
.xp-pied { margin-top: 56px; padding: 44px 0 36px; background: var(--nuit-0); border-top: 1px solid var(--trait); color: var(--texte-doux); font-size: 15px; }
.xp-pied-colonnes { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 32px; }
.xp-pied h2 { margin: 0 0 10px; font: 600 15px/1.3 var(--plex); color: var(--bleu-clair); }
.xp-pied ul { margin: 0; padding: 0; list-style: none; }
.xp-pied li { margin: 4px 0; }
.xp-pied a { color: var(--texte-doux); text-decoration: none; }
.xp-pied a:hover { color: var(--texte); text-decoration: underline; }
.xp-pied-bas { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--trait); font-size: 14px; }

/* ---------- 9. Page L'Équipe : bandeau, le titre à gauche, l'arbre de vie à droite ----------
   L'image de l'arbre porte déjà des mots (XPERIUM, LOGICIELS, JEUX…) : on la recadre sur le tronc et les racines seulement. */
.xp-bandeau { position: relative; height: clamp(420px, 34vw, 540px); overflow: hidden; background: linear-gradient(180deg, var(--nuit-0) 0, var(--nuit-0) 60%, var(--nuit-1)); }
.xp-bandeau-image {
  position: absolute; right: 0; top: 0; height: 100%; width: min(62%, 900px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 25%);
  mask-image: linear-gradient(to right, transparent, #000 25%);
}
.xp-bandeau-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; object-view-box: inset(322px 485px 0 485px); }
.xp-bandeau-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--nuit-0) 0, rgba(4, 15, 51, .7) 14%, transparent 34%); pointer-events: none; }
.xp-bandeau::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(transparent, var(--nuit-1)); pointer-events: none; }
.xp-bandeau .xp-cadre { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--menu); }
.xp-bandeau h1 { margin: 0 0 10px; font: 800 clamp(44px, 5vw, 72px)/1.05 var(--titre); letter-spacing: -.01em; }
.xp-bandeau p { margin: 0; max-width: 460px; font: 600 20px/1.4 var(--plex); }

/* ---------- 10. La salle de réunion : la table, l'arbre doré au centre, les sièges autour ---------- */
.xp-salle {
  display: grid; grid-template-columns: 180px 1fr 180px; gap: 20px 24px; align-items: center;
  padding: 32px; border-radius: 18px; background: var(--nuit-0); border: 2px solid var(--trait);
}
.xp-rangee { grid-column: 2; display: flex; justify-content: center; gap: 16px; }
.xp-table {
  grid-column: 2; grid-row: 2; display: grid; place-items: center; text-align: center; min-height: 170px; padding: 18px 40px;
  border-radius: 50%; background: var(--nuit-2); border: 1px solid var(--trait); box-shadow: inset 0 0 0 6px var(--nuit-2), inset 0 0 0 7px var(--bleu);
}
/* L'arbre doré de la table, recadré dans l'image d'ouverture : le seul or de la page */
.xp-arbre { display: block; width: 120px; height: 103px; margin: 0 auto; object-fit: cover; object-view-box: inset(292px 466px 629px 950px); -webkit-mask-image: radial-gradient(ellipse, #000 55%, transparent 72%); mask-image: radial-gradient(ellipse, #000 55%, transparent 72%); filter: drop-shadow(0 0 12px rgba(245, 196, 81, .45)); }
.xp-table b { display: block; margin-top: 6px; font: 700 20px/1.2 var(--titre); }
.xp-table small { color: var(--texte-doux); font-size: 14px; }
.xp-siege {
  width: 150px; padding: 12px 8px 12px; border-radius: 14px; cursor: pointer; text-align: center;
  font: inherit; color: var(--texte); background: var(--nuit-2); border: 1px solid var(--trait);
  transition: transform .18s, background .18s, border-color .18s, box-shadow .18s;
}
.xp-siege:hover, .xp-siege:focus-visible, .xp-siege[aria-expanded="true"] { transform: translateY(-3px); background: var(--nuit-3); border-color: var(--cyan); box-shadow: var(--halo); }
.xp-insigne { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; font-size: 25px; background: var(--nuit-1); border: 1px solid var(--trait); box-shadow: inset 0 2px 0 var(--bleu); }
/* Les insignes (émojis) sont teintés en bleu Xperium : ni rouge, ni vert, ni violet sur ce site */
.xp-insigne, .xp-site-icone { filter: grayscale(1) sepia(1) hue-rotate(175deg) saturate(2.6) brightness(1.15); }
.xp-siege b { display: block; font: 600 15px/1.25 var(--plex); }
.xp-siege small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--texte-doux); }
.xp-bout-de-table { grid-column: 1; grid-row: 2; justify-self: center; text-align: center; }
.xp-portrait { width: 150px; height: 180px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--nuit-1); border: 1px solid var(--trait); box-shadow: inset 0 2px 0 var(--bleu); }
/* Recadrage seulement (aucun pixel changé) : la mascotte de l'image d'ouverture */
.xp-portrait img { width: 100%; height: 100%; object-fit: cover; object-view-box: inset(590px 380px 110px 920px); }
.xp-bout-de-table b { display: block; margin-top: 8px; font: 600 15px/1.25 var(--plex); }
.xp-bout-de-table small { display: block; max-width: 170px; font-size: 13px; line-height: 1.3; color: var(--texte-doux); }
.xp-place-droite { grid-column: 3; grid-row: 2; justify-self: center; }
/* Le siège du bout de table a la même taille que la carte de la mascotte, en face */
.xp-place-droite .xp-siege { display: flex; flex-direction: column; justify-content: center; width: 150px; height: 240px; }
.xp-place-droite .xp-insigne { width: 96px; height: 96px; font-size: 46px; margin-bottom: 14px; }
.xp-fiche { grid-column: 1 / -1; margin-top: 4px; padding: 20px 24px; border-radius: 14px; background: var(--nuit-3); border: 1px solid var(--cyan); box-shadow: var(--halo); }
.xp-fiche h3 { margin: 0 0 2px; font: 700 22px/1.2 var(--titre); }
.xp-fiche .xp-fiche-equipe { margin: 0 0 8px; color: var(--bleu-clair); font-size: 15px; font-weight: 600; }
.xp-fiche p { margin: 0; }

/* ---------- 11. La même équipe en liste (toujours présente : clavier, lecteurs d'écran, petits écrans) ---------- */
.xp-liste { width: 100%; border-collapse: collapse; font-size: 16px; }
.xp-liste caption { text-align: left; margin-bottom: 12px; font: 700 24px/1.2 var(--titre); }
.xp-liste th, .xp-liste td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.xp-liste thead th { font-size: 14px; font-weight: 600; color: var(--bleu-clair); }
.xp-liste tbody th { font-weight: 600; white-space: nowrap; }
.xp-liste td:last-child { color: var(--texte-doux); white-space: nowrap; }
.xp-fin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; border-radius: 14px; background: var(--nuit-2); border: 1px solid var(--trait); }
.xp-fin p { margin: 0; font-size: 18px; }

/* ---------- 12. Écrans étroits : une colonne, la table laisse la place à la liste ---------- */
@media (max-width: 760px) {
  .xp-plan, .xp-deux { grid-template-columns: 1fr; }
  .xp-tuile:first-child { grid-row: auto; }
  .xp-salle { display: none; }
}

/* ---------- 12 bis. Le formulaire « Nous écrire » (aucune adresse mail en clair sur le site) ---------- */
.xp-lien-ecrire { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--texte-doux); }
.xp-lien-ecrire:hover { color: var(--texte); text-decoration: underline; }
.xp-ecrire { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--cyan); border-radius: 16px; background: var(--nuit-2); color: var(--texte); box-shadow: var(--halo), 0 24px 60px rgba(0, 0, 0, .5); }
.xp-ecrire::backdrop { background: rgba(4, 15, 51, .75); backdrop-filter: blur(3px); }
.xp-ecrire-form { display: grid; gap: 14px; padding: 28px 30px 26px; }
.xp-ecrire h2 { margin: 0; font: 700 28px/1.15 var(--titre); }
.xp-ecrire-intro { margin: 0; color: var(--texte-doux); font-size: 16px; }
.xp-ecrire label { display: grid; gap: 6px; font: 600 15px/1.3 var(--plex); }
.xp-ecrire input, .xp-ecrire textarea { width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--trait); background: var(--nuit-0); color: var(--texte); font: 400 16px/1.5 var(--plex); resize: vertical; }
.xp-ecrire input:focus, .xp-ecrire textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6, 182, 218, .25); }
.xp-ecrire .xp-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xp-ecrire-etat { margin: 0; min-height: 1.5em; font-size: 15px; }
.xp-ecrire-etat.xp-erreur { color: var(--or); }
.xp-ecrire-etat.xp-attente { color: var(--bleu-clair); }
.xp-ecrire-etat.xp-ok { color: var(--lueur); }
.xp-ecrire-boutons { display: flex; justify-content: flex-end; gap: 12px; }
.xp-ecrire-fermer { height: 52px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--trait); background: transparent; color: var(--texte); font: 600 16px/1 var(--plex); cursor: pointer; }
.xp-ecrire-fermer:hover { background: var(--nuit-3); }
.xp-ecrire .xp-bouton { border: 0; cursor: pointer; }

/* ---------- 13. Mouvement réduit : pas de montée ni de transition, seulement bord et fond ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  a.xp-tuile:hover, a.xp-tuile:focus-visible, .xp-siege:hover, .xp-siege:focus-visible, .xp-siege[aria-expanded="true"], .xp-bouton:hover { transform: none; }
}
