/* ==========================================================
   0. POLICE (hébergée sur le site, aucun appel à un service externe)
   JetBrains Mono, licence SIL Open Font License (voir fonts/).
   ========================================================== */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-latin-700-italic.woff2") format("woff2"); }

/* ==========================================================
   1. COULEURS ET POLICE
   Changez ces variables pour modifier tout le thème d'un coup.
   ========================================================== */
:root {
  --fond: #ffffff;        /* fond de l'éditeur */
  --fond-barre: #f5f6f8;  /* onglets */
  --guide: #e3e6eb;       /* lignes verticales d'indentation */
  --gouttiere: #a3aab6;   /* numéros de ligne */
  --texte: #1f2430;
  --doux: #6b7280;        /* accolades fermantes */
  --commentaire: #3f7350;
  --mot-cle: #8a3fb8;     /* function, const, return */
  --fonction: #25396e;    /* noms des chapitres : le marine du logo */
  --variable: #a86400;    /* sous-chapitres : l'orange du logo, assombri pour rester lisible sur blanc */
  --chaine: #2e7d32;      /* liens, affichés comme des "chaînes" */
  --accent: #25396e;      /* marine du logo : bouton de langue, barre d'état */
  --marque: #f1a605;
  --onglet-actif: inset 0 2px 0 var(--marque);  /* trait de l'onglet ouvert */      /* orange du logo : touches décoratives (onglet actif, curseur) */

  --police: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --interligne: 1.7;
  --indentation: 2ch;     /* largeur d'un niveau d'indentation */
}

/* ==========================================================
   2. BASES
   ========================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: var(--interligne);
}

/* Dans un éditeur, tout a la même taille : on neutralise
   les tailles et marges par défaut des titres et paragraphes. */
h1, h2, h3, p, ul {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

ul { list-style: none; padding: 0; }

a { color: var(--chaine); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: #fde7b0; }

/* ==========================================================
   3. ONGLETS (le menu)
   ========================================================== */
.onglets {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  overflow-x: auto;
  background: var(--fond-barre);
  border-bottom: 1px solid var(--guide);
}

.onglets a {
  padding: 0.6rem 1.2rem;
  color: var(--doux);
  white-space: nowrap;
  border-right: 1px solid var(--guide);
}

.onglets a:hover,
.onglets a.actif {
  color: var(--texte);
  background: var(--fond);
  text-decoration: none;
  box-shadow: var(--onglet-actif);
}

/* Logo, tout à gauche des onglets */
.onglets a.logo {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  box-shadow: none;
  background: none;
}

.logo img {
  display: block;
  height: 28px;  /* changez cette valeur pour agrandir le symbole */
  width: auto;   /* la largeur suit, proportions conservées */
}

/* Logo complet en haut de la page d'accueil */
.logo-entete {
  display: block;
  width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
}

/* Sélecteur de langue, poussé tout à droite des onglets */
.langues {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0 0.75rem;
}

.onglets .langues a {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--guide);
  border-radius: 4px;
  font-size: 0.85rem;
  box-shadow: none;
}

.onglets .langues a[aria-current] {
  color: var(--fond);
  background: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================
   4. L'ÉDITEUR ET LES NUMÉROS DE LIGNE
   ========================================================== */
.editeur {
  position: relative;          /* repère pour placer les numéros */
  max-width: 80ch;
  margin: 0 auto;
  padding: 2rem 1rem 4rem 4.5rem; /* à gauche : la place des numéros */
  counter-reset: ligne;        /* compteur qui démarre à 0 */
}

/* Chaque « ligne de code » ajoute 1 au compteur et l'affiche
   tout à gauche, dans la gouttière. */
.editeur :is(h1, h2, h3, p, li)::before {
  counter-increment: ligne;
  content: counter(ligne);
  position: absolute;
  left: 0;
  width: 3rem;
  text-align: right;
  color: var(--gouttiere);
  font-style: normal;
  font-weight: 400;
  user-select: none;           /* les numéros ne sont pas copiés */
}

/* Ligne survolée : légèrement éclairée, comme dans un éditeur */
.editeur :is(h1, h2, h3, p, li):hover { background: rgba(37, 57, 110, 0.04); }
.editeur :is(h1, h2, h3, p, li):hover::before { color: var(--texte); }

/* Ligne vide entre deux chapitres */
.vide { min-height: calc(1em * var(--interligne)); }

/* Les ancres ne doivent pas se cacher sous les onglets */
section, header { scroll-margin-top: 3.5rem; }

/* ==========================================================
   5. L'INDENTATION = LES CHAPITRES
   Tout ce qui est dans .corps est décalé d'un niveau,
   avec un fin trait vertical comme guide.
   ========================================================== */
.corps {
  margin-left: 0.5ch;
  padding-left: var(--indentation);
  border-left: 1px solid var(--guide);
}

.corps p { text-wrap: pretty; }

/* Captures d'écran d'exemples (page TiPi) */
.exemple { margin: 0.75rem 0 1rem; }

.exemple img {
  display: block;
  max-width: 100%;  /* l'image rétrécit sur petit écran */
  height: auto;
  border: 1px solid var(--guide);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(37, 57, 110, 0.08);
}

/* ==========================================================
   6. COLORATION SYNTAXIQUE
   ========================================================== */
.com   { color: var(--commentaire); font-style: italic; }
.kw    { color: var(--mot-cle); }
.fn    { color: var(--fonction); font-weight: 700; }
.var   { color: var(--variable); }
.cle   { color: var(--fonction); }
.fin   { color: var(--doux); }
.chaine { color: var(--chaine); } /* texte entre guillemets, comme une chaîne en code */
.titre { font-weight: 700; }

/* Curseur clignotant après le nom */
.curseur::after {
  content: "▋";
  margin-left: 0.3ch;
  color: var(--marque);
  font-style: normal;
  animation: clignote 1.1s steps(1) infinite;
}

@keyframes clignote {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .curseur::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   7. BARRE D'ÉTAT
   ========================================================== */
.statut {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding: 0.3rem 1rem;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
}

/* ==========================================================
   8. GRANDS ÉCRANS
   Assez de marge à gauche : le logo complet s'y installe,
   en haut à gauche, et reste visible pendant le défilement.
   Le petit symbole des onglets devient alors inutile.
   ========================================================== */
@media (min-width: 1200px) {
  .logo-entete {
    position: fixed;
    top: 5rem;     /* juste sous la barre d'onglets */
    left: 2rem;
    width: 160px;
    margin: 0;
  }
  .onglets a.logo { display: none; }
}

/* ==========================================================
   9. PETITS ÉCRANS
   On réduit la gouttière et l'indentation pour garder
   de la place au texte.
   ========================================================== */
@media (max-width: 600px) {
  body { font-size: 14px; }
  .editeur { padding-left: 2.8rem; padding-right: 0.75rem; }
  .editeur :is(h1, h2, h3, p, li)::before { width: 2rem; }
  :root { --indentation: 1.2ch; }
  .logo-entete { width: 150px; }
}

/* Image cliquable : s'ouvre en taille réelle dans un nouvel onglet */
.exemple a { display: block; cursor: zoom-in; }
.exemple a:hover img { border-color: var(--marque); }

/* ==========================================================
   10. TABLEAUX D'EXEMPLE (page TiCi)
   ========================================================== */
.defile { overflow-x: auto; margin: 0.75rem 0 1rem; } /* défilement horizontal sur mobile */

.tableau {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.45;
}

.tableau caption {
  text-align: left;
  color: var(--doux);
  padding-bottom: 0.4rem;
}

.tableau th,
.tableau td {
  padding: 0.3rem 0.6rem;
  border-bottom: 1px solid var(--guide);
  text-align: left;
  vertical-align: top;
}

.tableau thead th {
  background: var(--fond-barre);
  color: var(--fonction);
  font-weight: 700;
  border-bottom: 2px solid var(--fonction);
}

.tableau .nb { text-align: right; white-space: nowrap; }
.tableau .ok { color: var(--chaine); font-weight: 700; }
.tableau .ignore td { color: var(--gouttiere); }
.tableau .alerte { background: #ffe9a8; }  /* l'orange de TiCi, éclairci */

/* Chiffres clés : les nombres ressortent */
.nombre { color: var(--variable); font-weight: 700; }

/* ==========================================================
   11. ONGLETS (pages d'accueil) — sans JavaScript
   Chaque chapitre est un « fichier » : un seul est affiché,
   celui dont l'id est dans l'adresse (#equipe, #expertise...).
   L'accueil est placé en dernier dans le HTML : il s'affiche
   par défaut, et se masque dès qu'un autre onglet est ouvert.
   ========================================================== */
.fichier { display: none; counter-reset: ligne; } /* numéros repartant de 1 */
.fichier:target,
#accueil, #home { display: block; }
.fichier:target ~ #accueil,
.fichier:target ~ #home { display: none; }

.chiffres { margin: 1.5rem 0; }

/* Onglet actif dans la barre (navigateurs récents) */
body:not(:has(:target)) .onglets a:is([href="#accueil"], [href="#home"]):not(.logo),
body:has(#accueil:target)   .onglets a[href="#accueil"]:not(.logo),
body:has(#home:target)      .onglets a[href="#home"]:not(.logo),
body:has(#a-propos:target)  .onglets a[href="#a-propos"],
body:has(#about:target)     .onglets a[href="#about"],
body:has(#equipe:target)    .onglets a[href="#equipe"],
body:has(#team:target)      .onglets a[href="#team"],
body:has(#expertise:target) .onglets a[href="#expertise"],
body:has(#logiciels:target) .onglets a[href="#logiciels"],
body:has(#software:target)  .onglets a[href="#software"],
body:has(#contact:target)   .onglets a[href="#contact"] {
  color: var(--texte);
  background: var(--fond);
  box-shadow: var(--onglet-actif);
}

/* À l'ouverture d'un onglet, la page reste en haut (pas de saut) */
.fichier { scroll-margin-top: 8rem; }
@media (max-width: 1199px) {
  /* Sur petit écran, le logo est au-dessus : on descend juste sous lui */
  .fichier { scroll-margin-top: 3.5rem; }
}

/* ==========================================================
   12. SOUS-ONGLETS DES LOGICIELS — sans JavaScript
   Chaque logiciel a son adresse : index.html#wipi, #tipi, #tici.
   - l'onglet « logiciels » s'ouvre dès qu'un de ses panneaux est visé ;
   - sans adresse précise, WiPi s'affiche par défaut.
   ========================================================== */
.fichier:has(:target) { display: block; }
.fichier:has(:target) ~ #accueil,
.fichier:has(:target) ~ #home { display: none; }

.sous-barre {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.9rem;
}

.sous-barre a {
  padding: 0.2rem 0.9rem;
  border: 1px solid var(--guide);
  border-radius: 4px;
  background: var(--fond-barre);
  color: var(--doux);
}

.sous-barre a:hover { color: var(--texte); border-color: var(--doux); text-decoration: none; }

.panneau { display: none; scroll-margin-top: 14rem; } /* la page ne saute pas */
.panneau:target,
.fichier:not(:has(.panneau:target)) #wipi { display: block; }

/* Sous-onglet actif */
.fichier:not(:has(.panneau:target)) .sous-barre a[href="#wipi"],
.fichier:has(#wipi:target) .sous-barre a[href="#wipi"],
.fichier:has(#tipi:target) .sous-barre a[href="#tipi"],
.fichier:has(#tici:target) .sous-barre a[href="#tici"] {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Onglet principal « logiciels » actif quand un sous-onglet est ouvert */
body:has(.panneau:target) .onglets a:is([href="#logiciels"], [href="#software"]) {
  color: var(--texte);
  background: var(--fond);
  box-shadow: var(--onglet-actif);
}

/* ==========================================================
   13. CARTE « VOIR LES EXEMPLES »
   ========================================================== */
.apercu-lien {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.6rem 0 0.9rem;
  padding: 0.6rem;
  border: 1px solid var(--marque);
  border-left-width: 4px;
  border-radius: 6px;
  background: #fff8e6;
  color: var(--texte);
  transition: transform 0.15s, box-shadow 0.15s;
}

.apercu-lien:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(241, 166, 5, 0.25);
}

.apercu-lien img {
  flex-shrink: 0;
  width: 150px;
  height: auto;
  border: 1px solid var(--guide);
  border-radius: 4px;
  background: #ffffff;
}

.apercu-texte { display: flex; flex-direction: column; gap: 0.2rem; }
.apercu-texte strong { color: var(--fonction); }

@media (max-width: 600px) {
  .apercu-lien img { width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .apercu-lien, .apercu-lien:hover { transition: none; transform: none; }
}

/* Accueil : lignes d'accroche aérées, lien bien visible */
.accroche { margin-top: 1.25rem; }
.accroche a {
  font-style: normal;
  font-weight: 700;
  color: var(--fonction);
  text-decoration: underline;
  text-decoration-color: var(--marque);
  text-underline-offset: 3px;
}

/* Chiffres dans À propos : pas d'espace en trop avant l'accolade */
.chiffres { margin: 1.5rem 0 0; }

/* ==========================================================
   14. AVATARS DE L'ÉQUIPE
   À droite de chaque présentation, le texte les contourne.
   ========================================================== */
.avatar {
  float: right;
  width: 110px;
  height: 110px;
  margin: 0 0 0.75rem 1rem;
  shape-outside: circle(50%);
}

/* Le bloc suivant ne remonte pas à côté de l'avatar */
#equipe .corps > section::after,
#team .corps > section::after { content: ""; display: block; clear: both; }

@media (max-width: 600px) {
  .avatar { width: 72px; height: 72px; margin-left: 0.6rem; }
}

/* ==========================================================
   15. ILLUSTRATIONS DES LOGICIELS
   ========================================================== */
.illustration {
  float: right;
  width: 200px;
  height: auto;
  margin: 0 0 0.75rem 1rem;
}

.apercu-lien { clear: both; }  /* la carte d'exemples passe sous l'illustration */

@media (max-width: 600px) {
  .illustration { width: 130px; margin-left: 0.6rem; }
}

/* Un bloc d'expertise ne remonte pas à côté de l'illustration du précédent */
#expertise .corps > section::after { content: ""; display: block; clear: both; }

/* ==========================================================
   16. PAGE D'ACCUEIL EN FORME DE TERMINAL (accueil.bash)
   Ne concerne que l'onglet d'accueil : les autres onglets
   gardent leur style « code ».
   ========================================================== */

/* Sur l'accueil, le grand logo horizontal remplace le logo de la marge */
body:not(:has(:target)) .editeur > .logo-entete,
body:has(#accueil:target) .editeur > .logo-entete,
body:has(#home:target) .editeur > .logo-entete { display: none; }

/* Pas de numéros de ligne ni de surbrillance dans l'accroche */
.editeur .hero :is(h1, h2, h3, p, li)::before { content: none; }
.editeur .hero :is(h1, h2, h3, p, li):hover { background: none; }

.hero { padding: 0.5rem 0 1rem; }

.logo-hero {
  display: block;
  width: min(400px, 100%);
  height: auto;
  margin-bottom: 2.25rem;
}

.hero-titre {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fonction);
  margin-bottom: 1rem;
}

/* Effet « surligneur » orange sous la fin du titre */
.surligne {
  background: linear-gradient(transparent 62%, rgba(241, 166, 5, 0.45) 62%);
}

.hero-sous-titre {
  max-width: 62ch;
  color: var(--doux);
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
}

/* La fenêtre de terminal, façon Terminal Windows */
.terminal {
  border-radius: 8px;
  overflow: hidden;
  background: #1b2747;
  border: 1px solid #0f1830;
  box-shadow: 0 12px 32px rgba(37, 57, 110, 0.25);
  margin-bottom: 1.75rem;
}

/* Barre de titre : onglet à gauche, boutons de fenêtre à droite */
.terminal-barre {
  display: flex;
  align-items: flex-end;
  height: 40px;
  background: #111a33;
  color: #c9d4ea;
  font-size: 0.8rem;
}

.terminal-onglet {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 32px;
  margin-left: 0.5rem;
  padding: 0 0.6rem 0 0.8rem;
  border-radius: 8px 8px 0 0;
  background: #1b2747;            /* même fond que le terminal : l'onglet actif */
  color: #e8ebf2;
}

.terminal-icone { color: var(--marque); font-weight: 700; font-size: 0.75rem; }

/* Petite croix de l'onglet */
.onglet-fermer { position: relative; width: 10px; height: 10px; margin-left: 0.6rem; opacity: 0.6; }

.terminal-bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #aab6d3;
  font-size: 1.05rem;
}

/* Chevron « ⌄ » dessiné en CSS */
.terminal-bouton.chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* Boutons Réduire, Agrandir, Fermer, dessinés en CSS */
.fenetre-boutons { display: flex; align-self: stretch; margin-left: auto; }
.fenetre-boutons span { position: relative; width: 46px; }
.fenetre-boutons span::before,
.fenetre-boutons span::after,
.onglet-fermer::before,
.onglet-fermer::after { content: ""; position: absolute; left: 50%; top: 50%; }

.btn-reduire::before { width: 10px; height: 1px; background: #c9d4ea; transform: translate(-50%, 0); }
.btn-agrandir::before { width: 9px; height: 9px; border: 1px solid #c9d4ea; transform: translate(-50%, -50%); }
.btn-fermer::before, .btn-fermer::after,
.onglet-fermer::before, .onglet-fermer::after { width: 12px; height: 1px; background: #c9d4ea; }
.onglet-fermer::before, .onglet-fermer::after { width: 10px; }
.btn-fermer::before, .onglet-fermer::before { transform: translate(-50%, -50%) rotate(45deg); }
.btn-fermer::after, .onglet-fermer::after { transform: translate(-50%, -50%) rotate(-45deg); }
.btn-fermer:hover { background: #c42b1c; }   /* rouge de fermeture Windows */
.btn-reduire:hover, .btn-agrandir:hover { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 600px) {
  .terminal-bouton { display: none; }
  .fenetre-boutons span { width: 34px; }
}

.terminal-corps {
  padding: 1rem 1.2rem 1.1rem;
  color: #e8ebf2;
  font-size: 0.95rem;
  line-height: 1.8;
}

.t-prompt { color: var(--marque); font-weight: 700; margin-right: 1ch; }
.t-sortie { color: #aab6d3; padding-left: 2ch; }
.t-ok { color: #7ee2a0; }
.terminal a { color: var(--marque); }

/* Les lignes du terminal apparaissent l'une après l'autre */
.terminal-corps p { opacity: 0; animation: apparait 0.35s ease-out forwards; }
/* Calendrier : invite, frappe de la commande (voir .tape), puis résultats */
.terminal-corps p:nth-child(1) { animation-delay: 0.3s; }
.terminal-corps p:nth-child(2) { animation-delay: 1.9s; }
.terminal-corps p:nth-child(3) { animation-delay: 2.05s; }
.terminal-corps p:nth-child(4) { animation-delay: 2.2s; }
.terminal-corps p:nth-child(5) { animation-delay: 2.5s; }
.terminal-corps p:nth-child(6) { animation-delay: 4.2s; }
.terminal-corps p:nth-child(7) { animation-delay: 4.5s; }

/* Effet de frappe au clavier : la commande se dévoile caractère par caractère.
   --n = nombre de caractères de la commande, --debut = moment où la frappe commence */
.tape {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 2px solid transparent;
  animation:
    frappe calc(var(--n) * 60ms) steps(var(--n), end) var(--debut) forwards,
    curseur-frappe calc(var(--n) * 60ms + 0.3s) step-end var(--debut);
}

@keyframes frappe { from { width: 0; } to { width: calc(var(--n) * 1ch); } }
@keyframes curseur-frappe { 0%, 100% { border-right-color: var(--marque); } }

@keyframes apparait {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* Si le système demande de réduire les animations (réglage Windows, Bureau à distance…),
   on retire seulement le glissement : les lignes apparaissent en simple fondu et la frappe
   reste, car elle ne fait rien bouger à l'écran. */
@media (prefers-reduced-motion: reduce) {
  .terminal-corps p { animation-name: apparait-sans-mouvement; }
}

@keyframes apparait-sans-mouvement { from { opacity: 0; } to { opacity: 1; } }

/* Boutons d'action */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bouton {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border: 2px solid var(--fonction);
  border-radius: 6px;
  color: var(--fonction);
  font-weight: 700;
}

.bouton:hover { text-decoration: none; background: var(--fond-barre); }

.bouton-principal {
  background: var(--marque);
  border-color: var(--marque);
  color: #1f2430;
}

.bouton-principal:hover { background: #ffb820; }

.hero-liens { color: var(--doux); font-size: 0.9rem; }

@media (max-width: 600px) {
  .terminal-corps { font-size: 0.8rem; padding: 0.8rem; }
  .logo-hero { margin-bottom: 1.5rem; }
}

/* Liens du terminal : soulignés au survol pour montrer qu'on peut cliquer */
.terminal a { text-decoration: underline; text-decoration-color: rgba(241, 166, 5, 0.4); text-underline-offset: 3px; }
.terminal a:hover { text-decoration-color: var(--marque); }


/* ==========================================================
   17. CHANGER DE LANGUE SANS QUITTER L'ONGLET
   Le bouton de l'autre langue existe en plusieurs exemplaires,
   un par onglet ; seul celui de l'onglet ouvert est affiché.
   ========================================================== */
.langues a.vers-langue[data-pour] { display: none; }
body:has(:target) .langues a.vers-langue:not([data-pour]) { display: none; }
body:has(#accueil:target) .langues a[data-pour="accueil"],
body:has(#a-propos:target) .langues a[data-pour="a-propos"],
body:has(#equipe:target) .langues a[data-pour="equipe"],
body:has(#expertise:target) .langues a[data-pour="expertise"],
body:has(#logiciels:target) .langues a[data-pour="logiciels"],
body:has(#contact:target) .langues a[data-pour="contact"],
body:has(#wipi:target) .langues a[data-pour="wipi"],
body:has(#tipi:target) .langues a[data-pour="tipi"],
body:has(#tici:target) .langues a[data-pour="tici"],
body:has(#home:target) .langues a[data-pour="home"],
body:has(#about:target) .langues a[data-pour="about"],
body:has(#team:target) .langues a[data-pour="team"],
body:has(#software:target) .langues a[data-pour="software"] { display: inline-block; }

/* Prononciation à côté des noms de l'équipe */
.phonetique {
  font-weight: 400;
  margin-left: 0.5ch;
  font-style: normal;  /* l'italique décale les tildes des voyelles nasales */
  font-family: "Segoe UI", "Helvetica Neue", "DejaVu Sans", "Noto Sans", Arial, sans-serif;
}


/* ==========================================================
   18. MENTIONS LÉGALES
   ========================================================== */
.statut a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; margin-left: auto; }
.a-completer { background: #ffe9a8; color: #8a5a00; border-radius: 3px; padding: 0 0.2em; }


/* ==========================================================
   19. MENU HAMBURGER SUR SMARTPHONE
   Sur grand écran, les onglets restent en ligne (display: contents).
   Sous 700 px, ils se replient derrière le bouton ☰.
   ========================================================== */
.onglets-liens { display: contents; }
.menu-case { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; }

@media (max-width: 700px) {
  .onglets { overflow: visible; flex-wrap: nowrap; --onglet-actif: inset 4px 0 0 var(--marque); }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
    width: 48px;
    min-height: 46px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--fonction);
    border-left: 1px solid var(--guide);
    user-select: none;
  }
  .burger::before { content: "☰"; }
  .menu-case:checked ~ .burger::before { content: "✕"; }
  .menu-case:focus-visible ~ .burger { outline: 2px solid var(--marque); outline-offset: -2px; }

  .langues { order: 2; }

  .onglets-liens {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--fond);
    border-bottom: 1px solid var(--guide);
    box-shadow: 0 14px 28px rgba(37, 57, 110, 0.18);
  }
  .menu-case:checked ~ .onglets-liens { display: flex; }

  .onglets-liens a {
    padding: 0.95rem 1.4rem;
    border-right: none;
    border-bottom: 1px solid var(--guide);
    font-size: 1rem;
  }
}
