/* =============================================================================
   LE FOURNIL — base : la remise à zéro, la typographie, le rythme des
   sections, et les deux objets communs à toutes les pages (le placeholder
   d'image et la grigne). Tout vient de tokens.css, rien n'est écrit en dur.
   ============================================================================= */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fo-fond);
  color: var(--fo-txt);
  font-family: var(--fo-texte);
  font-size: var(--fo-t-m);
  line-height: var(--fo-lh-texte);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Titres : la serif, serrée, jamais en gras lourd ── */
h1, h2, h3, h4 {
  font-family: var(--fo-titre);
  line-height: var(--fo-lh-titre);
  letter-spacing: var(--fo-suivi-titre);
  font-weight: 400;
  margin: 0 0 var(--fo-e-3);
  color: var(--fo-txt);
}
h1 { font-size: var(--fo-t-xxl); }
h2 { font-size: var(--fo-t-xl); }
h3 { font-size: var(--fo-t-l); }

p { margin: 0 0 var(--fo-e-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--fo-croute-fonce); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--fo-txt); }

/* Le focus se voit TOUJOURS : on navigue ce pack au clavier sans se perdre. */
:focus-visible {
  outline: 2px solid var(--fo-croute-fonce);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Lu par les lecteurs d'écran, invisible à l'œil. */
.fo-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Le premier lien de la page : sauter droit au contenu. */
.fo-skip {
  position: absolute; left: var(--fo-e-3); top: -100vh; z-index: 100;
  background: var(--fo-txt); color: var(--fo-txt-clair);
  padding: var(--fo-e-2) var(--fo-e-3); border-radius: var(--fo-rayon);
}
.fo-skip:focus { top: var(--fo-e-3); color: var(--fo-txt-clair); }

/* =============================================================================
   LE RYTHME : conteneur et sections
   ============================================================================= */

.fo-large {
  width: min(100% - 2 * var(--fo-e-4), var(--fo-large));
  margin-inline: auto;
}

.fo-section { padding-block: var(--fo-section); }
.fo-section-2 { background: var(--fo-fond-2); }
.fo-section-four {
  background: var(--fo-fond-3);
  color: var(--fo-txt-clair);
}
.fo-section-four h1, .fo-section-four h2, .fo-section-four h3 { color: var(--fo-txt-clair); }
.fo-section-four a { color: var(--fo-croute); }

/* Le sur-titre : petites capitales espacées, au-dessus du titre de section. */
.fo-sur {
  display: block;
  font-family: var(--fo-texte);
  font-size: var(--fo-t-xs);
  letter-spacing: var(--fo-suivi-sur);
  text-transform: uppercase;
  color: var(--fo-croute-fonce);
  margin-bottom: var(--fo-e-2);
}
.fo-section-four .fo-sur { color: var(--fo-croute); }

.fo-lecture { max-width: var(--fo-lecture); }

/* =============================================================================
   LA GRIGNE — la signature du pack (voir tokens.css)
   ============================================================================= */

.fo-grigne {
  height: 14px;
  background-image: var(--fo-grigne-bande);
  opacity: .45;
  border: 0;
  margin: 0;
}

/* Sous un titre : TROIS entailles dessinées, pas une règle pleine largeur. */
.fo-grigne-titre::after {
  content: '';
  display: block;
  width: 92px; height: 20px;
  margin-top: var(--fo-e-4);
  background: var(--fo-grigne-marque) left center / 92px 20px no-repeat;
}
.fo-grigne-titre.fo-centre::after { margin-inline: auto; }

.fo-centre { text-align: center; }

/* =============================================================================
   LE MOUVEMENT

   Pas de parallaxe : elle date les sites et ne dit rien. Ce qui vend, c'est
   qu'un élément ARRIVE, qu'il flotte, qu'il répond au survol.

   Tout est sous `.fo-js` : sans JavaScript rien n'est masqué, la page est
   simplement statique. Et tout s'annule si le visiteur a demandé moins
   d'animation.
   ============================================================================= */

.fo-js .fo-apparait {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.16, .8, .3, 1),
              transform .75s cubic-bezier(.16, .8, .3, 1);
  transition-delay: calc(var(--fo-rang, 0) * 110ms);
}
.fo-js .fo-apparait.fo-vu { opacity: 1; transform: none; }

/* Une variante qui monte depuis un masque : le texte sort d'une fente.
   Réservée aux titres, sinon l'effet se banalise. */
.fo-js .fo-masque { overflow: hidden; }
.fo-js .fo-masque > * {
  display: block;
  transform: translateY(105%);
  transition: transform .9s cubic-bezier(.16, .8, .3, 1);
  transition-delay: calc(var(--fo-rang, 0) * 110ms);
}
.fo-js .fo-masque.fo-vu > * { transform: none; }

/* Le flottement : lent, ample, jamais nerveux. Un seul élément par écran. */
@keyframes fo-flotte {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.fo-flotte { animation: fo-flotte 5.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .fo-js .fo-apparait { opacity: 1; transform: none; transition: none; }
  .fo-js .fo-masque > * { transform: none; transition: none; }
  .fo-flotte { animation: none; }
}

/* =============================================================================
   LE PLACEHOLDER D'IMAGE — pour les emplacements VIDES, et rien d'autre.
   Le pack livre bien ses propres photos (Jonas, 2026-08-05) ; celles-ci
   sont là pour le jour où le client en retire une sans la remplacer :
   l'emplacement annonce alors la DIMENSION attendue au lieu de s'effondrer.
   Zéro fichier, zéro requête : tout est dessiné ici.
   ============================================================================= */

.fo-ph {
  position: relative;
  width: 100%;
  border-radius: var(--fo-rayon-img);
  background:
    var(--fo-grigne-bande),
    linear-gradient(145deg, var(--fo-fond-2), var(--fo-trait));
  background-blend-mode: soft-light, normal;
  border: 1px dashed var(--fo-trait-fort);
  display: grid;
  place-items: center;
}

/* La dimension conseillée, lisible sans être criarde. */
.fo-ph::after {
  content: attr(data-dim);
  font-family: var(--fo-texte);
  font-size: var(--fo-t-xs);
  letter-spacing: .08em;
  color: var(--fo-txt-3);
  background: var(--fo-fond);
  padding: var(--fo-e-1) var(--fo-e-2);
  border-radius: 999px;
  box-shadow: var(--fo-ombre);
}

.fo-media { border-radius: var(--fo-rayon-img); width: 100%; object-fit: cover; }

/* Les ratios, partagés par le placeholder et les vraies images. */
.fo-ph-16-9 { aspect-ratio: 16 / 9; }
.fo-ph-4-3  { aspect-ratio: 4 / 3; }
.fo-ph-3-2  { aspect-ratio: 3 / 2; }
.fo-ph-1-1  { aspect-ratio: 1 / 1; }
.fo-ph-3-4  { aspect-ratio: 3 / 4; }

/* =============================================================================
   LES BOUTONS

   En PILULE : dans une page où le menu, la languette, la pastille et la
   vignette sont tous ronds, un bouton presque carré jure.

   L'ANIMATION : le fond MONTE DU BAS, comme la pâte lève. Un seul geste,
   emprunté au métier, plutôt qu'un effet de site générique. Il est porté par
   un pseudo-élément mis à l'échelle, donc rien ne bouge dans le flux et le
   survol reste fluide.
   ============================================================================= */

.fo-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: var(--fo-e-2);
  padding: .9em 1.9em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--fo-texte);
  font-size: var(--fo-t-m);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--fo-transition), border-color var(--fo-transition),
              transform var(--fo-transition);
}

/* La pâte qui lève : le fond monte du bas, en s'étirant depuis sa base. */
.fo-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .42s cubic-bezier(.22, .7, .25, 1);
}
.fo-btn:hover::before { transform: scaleY(1); }
.fo-btn:active { transform: translateY(1px); }

/* La flèche : seulement sur le bouton principal, pour marquer la hiérarchie.
   Elle glisse vers la droite au survol. */
.fo-btn-plein::after {
  content: '';
  width: .62em; height: .62em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
  transition: transform .32s cubic-bezier(.22, .7, .25, 1);
}
.fo-btn-plein:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* ── Les variantes ── */
.fo-btn-plein {
  background: var(--fo-braise);
  color: #fff;
}
.fo-btn-plein::before { background: var(--fo-txt); }
.fo-btn-plein:hover { color: #fff; }

.fo-btn-trait {
  background: transparent;
  color: var(--fo-txt);
  border-color: var(--fo-trait-fort);
}
.fo-btn-trait::before { background: var(--fo-txt); }
.fo-btn-trait:hover { color: var(--fo-fond); border-color: var(--fo-txt); }

.fo-section-four .fo-btn-trait { color: var(--fo-txt-clair); border-color: var(--fo-txt-2); }
.fo-section-four .fo-btn-trait::before { background: var(--fo-txt-clair); }
.fo-section-four .fo-btn-trait:hover { color: var(--fo-fond-3); border-color: var(--fo-txt-clair); }

/* Sur une photo : contour clair, il se remplit de blanc. */
.fo-btn-clair {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(2px);
}
.fo-btn-clair::before { background: #fff; }
.fo-btn-clair:hover { color: var(--fo-txt); border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .fo-btn::before { transition: none; }
  .fo-btn-plein::after { transition: none; }
}
