/*
 * Feuille de style principale de steami.cc
 * Fidèle à l'identité visuelle STeaMi : blanc, gris clair (#E8E6E6), jaune (#FFBF23) et trait noir.
 * Polices auto-hébergées (SIL OFL 1.1) : Space Grotesk pour les titres, Figtree en repli libre de Proxima Nova.
 */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/figtree-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/figtree-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blanc: #ffffff;
  --gris-bandeau: #e8e6e6;
  --jaune: #ffbf23;
  --jaune-survol: #f2ae0c;
  --noir: #000000;
  --texte: #1a1a1a;
  --texte-doux: #333333;
  --bordure-tableau: #1a1a1a;

  --police-titre: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --police-texte: 'Proxima Nova', 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --largeur-max: 1120px;
  --rayon: 8px;
  --rayon-bouton: 5px;

  /* Vitesses des animations (modifiables ici en un seul endroit) */
  --duree-fade: 1.2s;
  --duree-float: 1.2s;
  --duree-survol: 0.4s;
  --courbe-anim: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--noir);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 2px;
  border-radius: 4px;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--noir);
  color: var(--blanc);
  padding: 0.7rem 1.2rem;
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
}

.lien-evitement:focus {
  left: 1rem;
  top: 1rem;
}

.conteneur {
  width: min(100% - 2.5rem, var(--largeur-max));
  margin-inline: auto;
}

/* --- Boutons signature (bordure noire nette) --- */

.bouton-steami {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  background: var(--jaune);
  color: var(--noir);
  border: 1.5px solid var(--noir);
  border-radius: var(--rayon-bouton);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    background-color var(--duree-survol) ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bouton-steami:hover {
  background: var(--jaune-survol);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--noir);
}

.bouton-steami:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.bouton-blanc {
  background: var(--blanc);
}

.bouton-blanc:hover {
  background: #f5f5f5;
}

.bouton-plein {
  width: 100%;
}

/* --- En-tête (bande noire en haut + barre blanche) --- */

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  border-top: 6px solid var(--noir);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease;
}

.entete--defilee {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
}

.entete-interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.marque {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.marque img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.nav-bureau {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-liens {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-liens a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: var(--texte);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  border-radius: 3px;
  transition: background-color var(--duree-survol) ease, color 0.3s ease;
}

.nav-liens a:hover,
.nav-liens a.nav-actif {
  background: var(--jaune);
  color: var(--noir);
}

.nav-liens a.nav-actif {
  font-weight: 600;
}

/* Menu mobile sans JavaScript */
.menu-mobile {
  display: none;
  position: relative;
}

.menu-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid var(--noir);
  border-radius: var(--rayon-bouton);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--jaune);
  color: var(--noir);
}

.menu-mobile summary::-webkit-details-marker {
  display: none;
}

.menu-mobile-panneau {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  background: var(--blanc);
  border: 1.5px solid var(--noir);
  border-radius: var(--rayon);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-mobile-panneau a {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--noir);
  font-size: 0.94rem;
}

.menu-mobile-panneau a:hover {
  background: var(--gris-bandeau);
}

.menu-mobile-panneau .bouton-steami {
  margin-top: 0.35rem;
}

/* --- Hero --- */

.hero {
  background: var(--blanc);
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 0;
  overflow: hidden;
}

.hero-grille {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  align-items: end;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero-texte {
  padding-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--police-titre);
  font-size: clamp(2.4rem, 4.6vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--noir);
}

.hero-slogan {
  margin: 0 0 1.4rem;
  font-family: var(--police-titre);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--noir);
}

.hero-slogan span {
  display: block;
}

.hero-soustitre {
  margin: 0 0 1.85rem;
  font-size: 1.08rem;
  color: var(--texte);
  max-width: 28ch;
  line-height: 1.45;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-point {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--texte);
  max-width: 14ch;
}

.hero-point-icone {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--noir);
}

.hero-point-icone svg {
  width: 28px;
  height: 28px;
}

.hero-visuel {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-visuel img {
  width: min(100%, 580px);
}

/* --- Section Bonjour STeaMi ! (bande gris clair #E8E6E6) --- */

.section-bonjour {
  background: var(--gris-bandeau);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 0;
  overflow: hidden;
}

.bonjour-grille {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.bonjour-visuel {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bonjour-visuel img {
  width: min(100%, 340px);
}

.bonjour-texte {
  text-align: right;
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.bonjour-texte h2 {
  margin: 0 0 1.2rem;
  font-family: var(--police-titre);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--noir);
}

.bonjour-texte p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--texte);
}

.bonjour-accroche {
  margin-top: 1.35rem;
  font-weight: 700;
  color: var(--noir);
}

/* --- Section Fonctionnalités (fond blanc, grille 4 colonnes) --- */

.section-fonctionnalites {
  background: var(--blanc);
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.section-fonctionnalites h2 {
  margin: 0 0 2.5rem;
  font-family: var(--police-titre);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: var(--noir);
}

.grille-fonctionnalites {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2.25rem;
}

.carte-fonctionnalite {
  display: flex;
  flex-direction: column;
}

.vignette-encadree {
  border: 1.5px solid var(--noir);
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--blanc);
  aspect-ratio: 452 / 414;
  margin-bottom: 1.25rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vignette-encadree img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.carte-fonctionnalite:hover .vignette-encadree {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--noir);
}

.carte-fonctionnalite:hover .vignette-encadree img {
  transform: scale(1.04);
}

.carte-fonctionnalite h3 {
  margin: 0 0 0.75rem;
  font-family: var(--police-titre);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--noir);
}

.carte-fonctionnalite .sous-titre {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--noir);
}

.carte-fonctionnalite p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--texte-doux);
}

/* --- Section Programmation (bande gris clair #E8E6E6, 3 colonnes centrées) --- */

.section-programmation {
  background: var(--gris-bandeau);
  padding: clamp(3.25rem, 6vw, 4.75rem) 0;
}

.section-programmation h2 {
  margin: 0;
  text-align: center;
  font-family: var(--police-titre);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--noir);
}

.programmation-separateur {
  width: min(100%, 820px);
  height: 1px;
  background: #9c9a9a;
  border: 0;
  margin: 1.25rem auto 2.5rem;
}

.grille-programmation {
  width: min(100%, 840px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 2.5rem;
}

.colonne-environnement {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.colonne-environnement h3 {
  margin: 0 0 1.25rem;
  font-family: var(--police-titre);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--noir);
}

.colonne-environnement-logo {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.colonne-environnement-logo img {
  max-height: 86px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.colonne-environnement:hover .colonne-environnement-logo img {
  transform: scale(1.06);
}

.colonne-environnement p {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--texte);
  max-width: 24ch;
  flex: 1;
}

.colonne-environnement .bouton-steami {
  min-width: 175px;
}

/* --- Section Spécifications techniques (bande jaune #FFBF23 + tableau blanc) --- */

.section-specifications {
  background: var(--jaune);
  padding: clamp(3rem, 5.5vw, 4.25rem) 0;
}

.specs-entete {
  width: min(100%, 860px);
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
}

.specs-entete h2 {
  margin: 0;
  font-family: var(--police-titre);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--noir);
}

.specs-cadre {
  width: min(100%, 860px);
  margin-inline: auto;
  background: var(--blanc);
}

.specs-tableau {
  width: 100%;
  border-collapse: collapse;
}

.specs-tableau tr {
  border-bottom: 1px solid var(--bordure-tableau);
  transition: background-color 0.2s ease;
}

.specs-tableau tbody tr:hover {
  background: #fff9e6;
}

.specs-tableau th,
.specs-tableau td {
  text-align: left;
  padding: 0.95rem 1.5rem;
  vertical-align: top;
  font-size: 0.9rem;
  line-height: 1.55;
}

.specs-tableau th {
  width: 34%;
  font-weight: 700;
  color: var(--noir);
}

.specs-tableau td {
  color: var(--texte);
}

/* --- Section Nos projets partenaires (fond blanc, 5 colonnes) --- */

.section-projets {
  background: var(--blanc);
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.projets-entete {
  text-align: center;
  margin-bottom: 2.75rem;
}

.projets-entete h2 {
  margin: 0 0 0.75rem;
  font-family: var(--police-titre);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--noir);
}

.projets-entete p {
  margin: 0;
  font-size: 1rem;
  color: var(--texte);
}

.grille-projets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.25rem 1.75rem;
}

.carte-projet {
  display: flex;
  flex-direction: column;
}

.projet-vignette {
  border: 1.5px solid var(--noir);
  border-radius: var(--rayon);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--blanc);
  margin-bottom: 1.15rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.projet-vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease;
}

.carte-projet:hover .projet-vignette {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--noir);
}

.carte-projet:hover .projet-vignette img {
  transform: scale(1.05);
}

.carte-projet h3 {
  margin: 0 0 0.6rem;
  font-family: var(--police-titre);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--noir);
}

.carte-projet p {
  margin: 0 0 1.25rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--texte-doux);
  flex: 1;
}

/* --- Section Équipez votre classe (bande gris clair #E8E6E6) --- */

.section-tester {
  background: var(--gris-bandeau);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  overflow: hidden;
}

.tester-grille {
  width: min(100%, 920px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem 3rem;
  align-items: end;
}

.tester-texte {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.tester-texte h2 {
  margin: 0 0 1rem;
  font-family: var(--police-titre);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--noir);
}

.tester-texte p {
  margin: 0 0 1.25rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--texte);
}

.tester-contact {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--noir);
}

.tester-contact a {
  color: var(--noir);
  font-weight: 700;
  text-decoration: underline;
}

.tester-visuel {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.tester-visuel img {
  width: min(100%, 340px);
}

/* --- Pied de page (bande jaune #FFBF23 + barre noire copyright) --- */

.pied-de-page {
  background: var(--jaune);
  border-top: 3px solid var(--noir);
  color: var(--noir);
}

.pied-corps {
  padding: 2.5rem 0 2.25rem;
}

.pied-marque {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.pied-marque img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.pied-marque-nom {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
}

.pied-marque-slogan {
  font-size: 0.9rem;
  line-height: 1.2;
}

.pied-grille {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 4rem;
  padding-left: clamp(0rem, 4vw, 3.5rem);
}

.pied-colonne h3 {
  margin: 0 0 0.85rem;
  font-family: var(--police-titre);
  font-size: 1.05rem;
  font-weight: 700;
}

.pied-colonne p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pied-financement {
  margin-top: 1.1rem;
  font-style: italic;
  font-size: 0.86rem;
  max-width: 44ch;
}

.pied-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.pied-liste a,
.pied-colonne a {
  color: var(--noir);
  text-decoration: underline;
}

.pied-liste a:hover,
.pied-colonne a:hover {
  opacity: 0.72;
}

.financeurs-bandeau {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.25rem;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  background: var(--blanc);
  border: 1.5px solid var(--noir);
  border-radius: var(--rayon);
}

.financeurs-bandeau a {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.financeurs-bandeau a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.financeurs-bandeau img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.pied-copyright {
  background: var(--noir);
  color: var(--blanc);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
}

.pied-copyright a {
  color: var(--blanc);
  text-decoration: underline;
  margin-left: 0.35rem;
}

/* Bouton flottant retour en haut (apparition progressive au défilement) */
.retour-haut {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blanc);
  border: 1.5px solid rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  transition:
    opacity var(--duree-survol) ease,
    transform var(--duree-survol) ease,
    border-color 0.3s ease;
}

.js-prete .retour-haut {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.js-prete .retour-haut.est-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.retour-haut:hover {
  border-color: var(--noir);
}

.retour-haut-carre {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jaune);
  color: var(--blanc);
  border-radius: 2px;
  font-size: 0.75rem;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.retour-haut:hover .retour-haut-carre {
  background: var(--jaune-survol);
  transform: scale(1.08);
}

/* --- Animations d'apparition au défilement (dégradation gracieuse sans JS) --- */

@media (prefers-reduced-motion: no-preference) {
  .js-prete [data-anim='fade'] {
    opacity: 0;
    transition: opacity var(--duree-fade) var(--courbe-anim) var(--delai, 0ms);
  }

  .js-prete [data-anim='float'] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity var(--duree-float) var(--courbe-anim) var(--delai, 0ms),
      transform var(--duree-float) var(--courbe-anim) var(--delai, 0ms);
  }

  .js-prete [data-anim].visible {
    opacity: 1;
    transform: none;
  }
}

/* --- Page texte (Politique de confidentialité) --- */

.page-texte {
  background: var(--blanc);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.page-texte-interieur {
  max-width: 760px;
}

.page-texte h1 {
  margin: 0 0 1.5rem;
  font-family: var(--police-titre);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--noir);
}

.page-texte h2 {
  margin: 1.85rem 0 0.55rem;
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--noir);
}

.page-texte p {
  margin: 0 0 0.85rem;
  color: var(--texte-doux);
}

.retour-accueil {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

/* --- Responsive --- */

@media (max-width: 1020px) {
  .grille-fonctionnalites {
    grid-template-columns: repeat(2, 1fr);
  }

  .grille-projets {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 880px) {
  .nav-bureau {
    display: none;
  }

  .menu-mobile {
    display: block;
  }

  .hero-grille,
  .bonjour-grille,
  .tester-grille,
  .pied-grille {
    grid-template-columns: 1fr;
  }

  .hero-visuel {
    justify-content: center;
  }

  .bonjour-texte {
    text-align: left;
  }

  .bonjour-visuel {
    order: 2;
  }

  .grille-programmation {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pied-grille {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .grille-fonctionnalites,
  .grille-projets {
    grid-template-columns: 1fr;
  }

  .specs-tableau th,
  .specs-tableau td {
    display: block;
    width: 100%;
  }

  .specs-tableau th {
    padding-bottom: 0.2rem;
  }

  .specs-tableau td {
    padding-top: 0.2rem;
  }

  .financeurs-bandeau img {
    height: 30px;
  }
}
