/* Le cadre commun des pages d'Eyno (26/10), repris de l'accueil essai-linearity-clair.html : la forme de la charte Linearity
   (chartes/Linearity : tailles, espacements, arrondis, Grotesk 400, pilules) avec les couleurs claires de la suite
   (Reverie.swift). Barre du haut à filet, deux guides le long du contenu, un filet à croix entre les sections, et sur les bords
   le quadrillage calé sur les guides et sur chaque filet. À charger après chartes/Linearity/variables.css. */
:root {
  --font-acidgrotesk: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-acidgrotesksubset: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --encre: #18191b; --ardoise: #5c5d61; --nuage: #eef0ee; --neige: #fafbfa; --papier: #ffffff;
  --encre-50: #8a8b8f;
  --filet: rgba(24,25,27,.08);
  --filet-fort: rgba(24,25,27,.14);
  --contenu: 1180px;
  --ressort: cubic-bezier(.34,1.56,.64,1);
  --liquide: cubic-bezier(.3,1.35,.5,1);
  --liquide: linear(0, 0.052, 0.179, 0.344, 0.518, 0.682, 0.822, 0.934, 1.015, 1.068, 1.097, 1.107, 1.103, 1.09, 1.073, 1.055, 1.037, 1.021, 1.009, 1, 0.994, 0.99, 0.989, 0.989, 0.99, 0.992, 0.994, 0.996, 0.997, 0.999, 1, 1.001, 1);
  --marge: 48px;   /* entre les guides et le contenu */
  --ciel: linear-gradient(135deg, #cfead6 0%, #d9e8f8 55%, #f1dff1 100%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; background: var(--neige); color: var(--encre); font: var(--font-weight-regular) var(--text-body)/var(--leading-body) var(--font-inter); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.page { width: min(var(--page-max-width), 100%); margin: 0 auto; padding: 0 40px; position: relative; }
.contenu { width: min(var(--contenu), 100%); margin: 0 auto; position: relative; padding-left: var(--marge); padding-right: var(--marge); }

/* Barre du haut : la marque, la navigation, une pilule ; son filet du bas porte une croix à chaque guide */
.nav { display: flex; align-items: center; gap: var(--spacing-24); height: 72px; border-bottom: 1px solid var(--filet); }
.nav::before, .nav::after { content: ""; position: absolute; bottom: -6px; width: 11px; height: 11px; pointer-events: none;
  background: linear-gradient(var(--encre-50), var(--encre-50)) center / 1px 100% no-repeat, linear-gradient(var(--encre-50), var(--encre-50)) center / 100% 1px no-repeat; }
.nav::before { left: -6px; } .nav::after { right: -6px; }
.logo { display: flex; align-items: center; gap: var(--spacing-8); font: var(--font-weight-medium) 17px var(--font-acidgrotesk); }
.logo img { width: 22px; height: 22px; }
.nav nav { display: flex; gap: var(--spacing-24); flex: 1; }
.nav nav a { font: var(--font-weight-medium) var(--text-nav)/var(--leading-nav) var(--font-inter); color: var(--ardoise); transition: color .2s; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--encre); }
.nav nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Pilules : blanche bordée (secondaire), noire (action principale), comme dans les apps */
.pilule { display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-8); border-radius: var(--radius-pills); padding: 10.2857px var(--card-padding);
  font: var(--font-weight-medium) var(--text-button-label)/var(--leading-button-label) var(--font-inter); color: var(--encre);
  background: var(--papier); border: 1px solid var(--filet-fort); white-space: nowrap; cursor: pointer;
  transition: background .2s, transform .35s var(--ressort); }
.pilule:hover { background: var(--nuage); transform: translateY(-1px); }
.pilule:active { transform: scale(.96); }
.pilule.principale { background: var(--encre); color: var(--papier); border-color: var(--encre); padding: 12px 20.5714px; }
.pilule.principale:hover { background: #2c2d31; }
.boutons { display: flex; gap: var(--spacing-12); flex-wrap: wrap; align-items: center; }

/* Textes */
.sur-titre { font: var(--font-weight-regular) var(--text-micro-label)/var(--leading-micro-label) var(--font-inter); letter-spacing: 2.64px; text-transform: uppercase; color: var(--encre-50); margin: 0 0 10px; }
.affiche { font: var(--font-weight-regular) 64px/1.02 var(--font-acidgrotesk); letter-spacing: -.64px; margin: 0; text-wrap: balance; }
.section-titre { font: var(--font-weight-regular) var(--text-section-display)/var(--leading-section-display) var(--font-acidgrotesk); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.chapo { margin: 0; color: var(--ardoise); font-size: 17px; line-height: 1.5; max-width: 600px; }
.gris { color: var(--ardoise); }

/* Cartes blanches à filet, comme les cartes des apps */
.carte { background: var(--papier); border-radius: var(--radius-cards); padding: var(--card-padding); box-shadow: inset 0 0 0 1px var(--filet); }

/* Le fond : deux guides le long du contenu, un filet à croix entre les sections */
.guides { position: absolute; top: 0; bottom: 0; left: 50%; width: min(var(--contenu), calc(100% - 80px)); transform: translateX(-50%);
  border-left: 1px solid var(--filet); border-right: 1px solid var(--filet); pointer-events: none; z-index: 2; }   /* au-dessus des fonds de couleur et des rubans : rien ne coupe les lignes qui cadrent le texte */
.tranche { border-top: 1px solid var(--filet); }
.tranche::before { content: ""; position: absolute; top: -6px; left: -6px; right: -6px; height: 11px; pointer-events: none; --c: var(--encre-50);
  background: linear-gradient(var(--c), var(--c)) left 5px top / 1px 100% no-repeat, linear-gradient(var(--c), var(--c)) left top 5px / 11px 1px no-repeat,
              linear-gradient(var(--c), var(--c)) right 5px top / 1px 100% no-repeat, linear-gradient(var(--c), var(--c)) right top 5px / 11px 1px no-repeat; }
/* Le quadrillage des bords (une case de 24 px, un carré fort toutes les 5 cases) : chaque section a le sien, qui part de son
   filet du haut et des guides, donc les croix tombent sur un croisement. Le haut de page part du haut de la barre (72 px = 3 cases). */
.tranche::after, .ouverture::after { content: ""; position: absolute; top: -1px; bottom: 0; left: -1000px; right: -1000px; z-index: -1; pointer-events: none;
  --fin: rgba(24,25,27,.055); --fort: rgba(24,25,27,.11);
  background:
    repeating-linear-gradient(to left, var(--fort) 0 1px, transparent 1px 120px) left top / 1001px 100% no-repeat,
    repeating-linear-gradient(to left, var(--fin) 0 1px, transparent 1px 24px) left top / 1001px 100% no-repeat,
    repeating-linear-gradient(to right, var(--fort) 0 1px, transparent 1px 120px) right top / 1001px 100% no-repeat,
    repeating-linear-gradient(to right, var(--fin) 0 1px, transparent 1px 24px) right top / 1001px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--fort) 0 1px, transparent 1px 120px) left top / 100% var(--h-grille, 100%) no-repeat,
    repeating-linear-gradient(to bottom, var(--fin) 0 1px, transparent 1px 24px) left top / 100% var(--h-grille, 100%) no-repeat;
  /* --h-grille (socle.js) : les lignes horizontales s'arrêtent avant la dernière si elle tomberait à moins de 12 px du filet
     de la section suivante (sinon on verrait deux lignes collées) ; les lignes verticales, elles, vont jusqu'au bout */
  -webkit-mask-image: linear-gradient(to right, #000 1001px, transparent 1001px, transparent calc(100% - 1001px), #000 calc(100% - 1001px));
  mask-image: linear-gradient(to right, #000 1001px, transparent 1001px, transparent calc(100% - 1001px), #000 calc(100% - 1001px));
  /* le masque laisse passer la colonne des guides : chaque section redessine ses lignes de cadre par-dessus sa couleur */ }
.ouverture::after { top: -73px; }

/* Questions repliables (la réponse sort de derrière la question : socle.js) */
details { border-top: 1px solid var(--filet-fort); overflow: hidden; }
details:last-child { border-bottom: 1px solid var(--filet-fort); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: var(--font-weight-regular) 17px/1.3 var(--font-acidgrotesk); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 22px var(--font-inter); color: var(--encre-50); transition: transform .3s var(--ressort); }
details[open]:not(.fermeture) summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--ardoise); max-width: 620px; }
details a { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }

/* Pied de page */
footer { position: relative; padding-top: var(--spacing-24); padding-bottom: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--spacing-12);
  font: var(--font-weight-regular) var(--text-footer-body)/var(--leading-footer-body) var(--font-acidgrotesksubset); color: var(--encre-50); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { transition: color .2s; } footer a:hover { color: var(--encre); }
footer .langues a[aria-current] { color: var(--encre); }

@media (max-width: 900px) {
  :root { --marge: 20px; }
  .page { padding: 0 16px; }
  .guides { width: calc(100% - 32px); }
  .nav { height: 64px; justify-content: space-between; }
  .nav nav { display: none; }
  .affiche { font-size: var(--text-section-display); line-height: 1.05; }
  .section-titre { font-size: var(--text-hero-display); }
  .chapo { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .pilule, summary::after { transition: none; }
}
/* Allemand sur téléphone : les mots composés (Bildschirmaufnahme…) se coupent avec un trait d'union au lieu de déborder */
@media (max-width: 600px) {
  :lang(de) :is(h1, h2, h3, p, li, summary, dt, dd) { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}
/* Très petits écrans : une pilule trop longue pour la carte passe sur deux lignes au lieu de dépasser (« Essayer les apps sur le Mac de démonstration » à 320 px) */
@media (max-width: 400px) { .boutons .pilule { white-space: normal; text-align: center; max-width: 100%; } }
/* Très petits écrans : un mot trop long pour le grand titre se coupe avec un trait d'union (« temporizador » à 320 px) */
@media (max-width: 400px) { .affiche { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; } }
