/* Site de Samuel ABENA : n'utilise que les variables de tokens.css */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--fond);
  color: var(--texte);
  font: 400 var(--corps)/var(--ligne) var(--police-texte);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lien); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--rayon-petit); }
h1, h2, h3 { font-family: var(--police-titre); color: var(--titre); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }

.conteneur { width: 100%; max-width: var(--largeur-max); margin: 0 auto; padding: 0 var(--esp-2); }
@media (min-width: 768px) { .conteneur { padding: 0 var(--esp-4); } }

.lien-evitement { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: var(--esp-1) var(--esp-2); z-index: 20; }
.lien-evitement:focus { left: 8px; }

/* Étiquette mono */
.et {
  font: 500 var(--etiquette)/1.3 var(--police-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* ---------- En-tête ---------- */
.entete { background: var(--surface); border-bottom: var(--trait); position: sticky; top: 0; z-index: 10; }
.entete .conteneur { display: flex; align-items: center; gap: var(--esp-3); min-height: 68px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--titre); }
.marque img { width: 40px; height: 40px; }
.marque span { font: 700 1.1rem/1 var(--police-titre); }
.bouton-menu {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: var(--trait); border-radius: var(--rayon-petit);
  background: var(--surface); color: var(--titre); cursor: pointer;
}
.bouton-menu svg { width: 24px; height: 24px; }
.menu { display: none; }
.menu.ouvert {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: var(--trait);
  padding: var(--esp-2) var(--esp-2) var(--esp-3);
}
.menu a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 var(--esp-1);
  color: var(--texte); text-decoration: none; font-weight: 400;
}
.menu a[aria-current="page"] { font-weight: 600; color: var(--titre); }
.menu .btn { margin-top: var(--esp-1); justify-content: center; }
@media (min-width: 1100px) {
  .bouton-menu { display: none; }
  .menu, .menu.ouvert {
    display: flex; flex-direction: row; align-items: center; gap: var(--esp-3);
    position: static; padding: 0; border: 0; margin-left: auto; background: none;
  }
  .menu a:not(.btn) { padding: 0; min-height: 68px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
  .menu a:not(.btn):hover { color: var(--titre); }
  .menu a[aria-current="page"] { border-bottom-color: var(--action); }
  .menu .btn { margin: 0 0 0 var(--esp-1); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--hauteur-bouton); padding: 0 var(--esp-3);
  border-radius: var(--rayon-petit); border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--police-texte); text-decoration: none; cursor: pointer;
  transition: background-color var(--duree), color var(--duree);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-action { background: var(--action); color: var(--action-texte); }
.btn-action:hover { background: var(--action-survol); }
.btn-action:active { background: var(--action-appui); }
.btn-second { border-color: var(--titre); color: var(--titre); background: transparent; }
.btn-second:hover { background: var(--surface); }
.sur-bandeau .btn-second { border-color: var(--bandeau-texte); color: var(--bandeau-texte); }
.sur-bandeau .btn-second:hover { background: var(--encre-700); }
.sur-bandeau a:focus-visible { outline-color: var(--accent-300); }
.boutons { display: flex; flex-wrap: wrap; gap: var(--esp-2); }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; }
.lien-fleche svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.section { padding: var(--esp-6) 0; }
.section-alterne { background: var(--fond-alterne); }
@media (min-width: 768px) { .section { padding: var(--esp-7) 0; } }
.tete-section { display: grid; gap: var(--esp-2); margin-bottom: var(--esp-5); max-width: 720px; }
.tete-section h2 { font-size: var(--titre-2); line-height: 1.15; letter-spacing: -.01em; }
.tete-section p:not(.et) { font-size: var(--texte-grand); color: var(--texte-doux); }

/* ---------- Bandeau marine (accroche) ---------- */
.bandeau { background: var(--bandeau); color: var(--bandeau-texte); }
.accroche { padding: var(--esp-5) 0 var(--esp-6); }
.accroche .conteneur { display: grid; gap: var(--esp-5); align-items: center; }
.accroche .et { color: var(--accent-300); }
.accroche h1 {
  color: var(--bandeau-texte); font-size: var(--titre-1); line-height: 1.06;
  letter-spacing: -.02em; margin: var(--esp-2) 0 var(--esp-3); max-width: 15ch;
}
.accroche .chapo { color: var(--bandeau-texte-doux); font-size: var(--texte-grand); max-width: 46ch; margin-bottom: var(--esp-4); }
.accroche-photo { position: relative; }
.accroche-photo img { border-radius: var(--rayon-grand); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.accroche-photo figcaption { margin-top: var(--esp-1); color: var(--bandeau-texte-doux); font-size: var(--petit); }
.accroche-photo::before {
  content: ""; position: absolute; width: 72px; height: 72px; border-radius: 50%;
  background: var(--action); top: -18px; right: -10px; z-index: 0;
}
.accroche-photo img { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .accroche { padding: var(--esp-7) 0; }
  .accroche .conteneur { grid-template-columns: 1.35fr 1fr; gap: var(--esp-6); }
}
.accroche-page { padding: var(--esp-6) 0 var(--esp-5); }
.accroche-page h1 { max-width: 20ch; }
.accroche-page .chapo { margin-bottom: 0; }

/* ---------- Cartes ---------- */
.grille { display: grid; gap: var(--esp-3); }
@media (min-width: 720px) { .grille-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 959px) { .grille-3 { grid-template-columns: repeat(2, 1fr); } }
.carte {
  background: var(--surface); border: var(--trait); border-radius: var(--rayon-grand);
  padding: var(--esp-4) var(--esp-3); display: flex; flex-direction: column; gap: var(--esp-2);
}
@media (min-width: 768px) { .carte { padding: var(--esp-4); } }
.carte .et { color: var(--accent-800); }
.carte h3 { font-size: var(--titre-3); font-weight: 500; line-height: 1.25; }
.carte p { color: var(--texte-doux); }
.carte ul { padding-left: 1.15em; color: var(--texte-doux); display: grid; gap: 4px; }
.carte .lien-fleche { margin-top: auto; padding-top: var(--esp-1); }
.carte-vedette { border-top: 4px solid var(--action); }

/* ---------- Ce qui me distingue ---------- */
.citation {
  font: 700 var(--titre-2)/1.2 var(--police-titre); color: var(--titre);
  letter-spacing: -.01em; max-width: 22ch;
}
.distingue { display: grid; gap: var(--esp-5); }
@media (min-width: 900px) { .distingue { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.regles { display: grid; gap: var(--esp-3); counter-reset: regle; }
.regle { border-top: 1.5px solid var(--bordure-forte); padding-top: var(--esp-2); }
.regle h3 { font-size: var(--titre-3); font-weight: 500; margin-bottom: 4px; }
.regle p { color: var(--texte-doux); }

/* ---------- Chiffres ---------- */
.chiffres { padding: var(--esp-5) 0; }
.chiffres .conteneur { display: grid; gap: var(--esp-4); }
@media (min-width: 720px) { .chiffres .conteneur { grid-template-columns: repeat(3, 1fr); } }
.chiffre { font: 700 clamp(2.75rem, 2rem + 3vw, 3.75rem)/1 var(--police-titre); color: var(--bandeau-texte); }
.chiffres p:not(.chiffre) { color: var(--bandeau-texte-doux); margin-top: var(--esp-1); }

/* ---------- Bloc parcours / photo ---------- */
.duo { display: grid; gap: var(--esp-5); align-items: center; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: var(--esp-6); } }
.duo figure img { border-radius: var(--rayon-grand); }
.duo figcaption { margin-top: var(--esp-1); font-size: var(--petit); color: var(--texte-doux); }
.texte-long { display: grid; gap: var(--esp-2); max-width: var(--largeur-texte); }
.texte-long h2 { font-size: var(--titre-2); line-height: 1.15; }
.texte-long h3 { font-size: var(--titre-3); font-weight: 500; margin-top: var(--esp-3); }
.texte-long strong { color: var(--titre); }
.conteneur.texte-long { max-width: var(--largeur-max); }
.conteneur.texte-long > * { max-width: var(--largeur-texte); }

/* ---------- Frise ---------- */
.frise { list-style: none; padding: 0 0 0 var(--esp-4); margin-left: 8px; border-left: 2px solid var(--bordure-forte); display: grid; gap: var(--esp-5); max-width: 760px; }
.frise > li { position: relative; }
.frise > li::before {
  content: ""; position: absolute; left: calc(-1 * var(--esp-4) - 9px); top: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--action); border: 3px solid var(--fond);
}
.section-alterne .frise > li::before { border-color: var(--fond-alterne); }
.frise h3 { font-size: var(--titre-3); font-weight: 500; line-height: 1.3; margin: 6px 0; }
.frise p, .frise ul { color: var(--texte-doux); }
.frise ul { padding-left: 1.15em; display: grid; gap: 4px; margin-top: 6px; }

/* ---------- Appel final ---------- */
.appel { padding: var(--esp-6) 0; }
.appel .conteneur { display: grid; gap: var(--esp-3); }
.appel h2 { color: var(--bandeau-texte); font-size: var(--titre-2); line-height: 1.15; max-width: 20ch; }
.appel p { color: var(--bandeau-texte-doux); font-size: var(--texte-grand); max-width: 52ch; }

/* ---------- Contact ---------- */
.moyens { display: grid; gap: var(--esp-2); }
@media (min-width: 720px) { .moyens { grid-template-columns: repeat(2, 1fr); } }
.moyen {
  display: flex; gap: var(--esp-2); align-items: center; text-decoration: none; color: var(--texte);
  background: var(--surface); border: var(--trait); border-radius: var(--rayon-grand);
  padding: var(--esp-3); min-height: 88px; transition: border-color var(--duree);
}
.moyen:hover { border-color: var(--titre); }
.moyen .icone { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--fond-alterne); color: var(--titre); }
.moyen-vedette .icone { background: var(--action); }
.moyen .icone svg { width: 22px; height: 22px; }
.moyen strong { display: block; font-family: var(--police-titre); font-weight: 500; font-size: 1.15rem; color: var(--titre); }
.moyen span { color: var(--texte-doux); font-size: var(--petit); }

/* ---------- Pied de page ---------- */
.pied { padding: var(--esp-5) 0 var(--esp-4); border-top: 1px solid var(--encre-700); }
.pied .conteneur { display: grid; gap: var(--esp-4); }
@media (min-width: 900px) { .pied .conteneur { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied .marque { color: var(--bandeau-texte); }
.pied p, .pied li { color: var(--bandeau-texte-doux); font-size: var(--petit); }
.pied h2 { font: 500 var(--etiquette)/1.3 var(--police-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--accent-300); margin-bottom: var(--esp-2); }
.pied ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.pied a { color: var(--bandeau-texte); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.pied a:hover { text-decoration: underline; }
.pied a:focus-visible { outline-color: var(--accent-300); }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid var(--encre-700); padding-top: var(--esp-3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.menu a, .marque span, .menu .btn { white-space: nowrap; }
/* En-tête large : le nom respire, un trait le sépare du menu */
@media (min-width: 1100px) {
  .entete .conteneur { gap: var(--esp-5); }
  .marque { flex-shrink: 0; }
  .menu { font-size: .95rem; }
  .menu, .menu.ouvert { gap: var(--esp-3); }
  .menu a:first-child { position: relative; }
  .menu::before { content: ""; width: 1.5px; height: 28px; background: var(--bordure-forte); margin-right: var(--esp-1); }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .entete .conteneur { gap: var(--esp-4); }
  .menu, .menu.ouvert { gap: 20px; }
  .menu::before { display: none; }
}
