/* Écran d'entrée de l'accueil (FR et EN), validé par la propriétaire le 21/10/2026 :
   animation du logo (sur un modèle Pinterest qu'elle a choisi), « Bienvenue sur notre site »
   écrit à la main (police Allison, hébergée dans le site), trois boutons en verre dépoli et
   un bouton rond « marche » « Entrer sur le site » (sans compte à rebours). Une seule fois par visite.
   Comportement : js/ecran-entree.js. */
@font-face { font-family: 'Allison'; font-weight: 400; font-display: swap; src: url('../assets/polices/allison-latin-400-normal.woff2') format('woff2'); }

/* Dès le <head> (avant que la page se dessine), un voile du même fond cache l'accueil :
   pas d'éclair de la page avant l'écran. Retiré dès que l'écran est construit. */
html.ee-actif::after { content: ''; position: fixed; inset: 0; z-index: 2147483000; background: #E6E0D9; }
html.ee-actif.ee-pret::after { content: none; }

.ee { position: fixed; inset: 0; z-index: 2147483001; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; overflow: hidden; font-family: var(--mag-texte, 'Work Sans', system-ui, sans-serif); color: #1B1817;
  background: radial-gradient(120% 90% at 50% 40%, #EEE9E3 0%, #DCD6CF 60%, #CFC8C0 100%);
  transition: opacity 0.45s ease; }
.ee.ee-sortie { opacity: 0; pointer-events: none; }
.ee:focus { outline: none; }

/* --- Bienvenue : lettres animées --- */
.ee-accueil { position: relative; margin: 0 0 64px; letter-spacing: 0; text-transform: none; font-family: 'Allison', cursive; font-weight: 400; font-size: 100px; line-height: 1.05; color: #141110; text-align: center; }
.ee-accueil .ee-mot { display: inline-block; white-space: nowrap; }
.ee-accueil .ee-l { display: inline-block; transform-origin: 50% 80%; will-change: transform; }
.ee-accueil .ee-pt { position: absolute; left: 0; top: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #141110; transform: scale(0); will-change: transform; }

/* --- Trois boutons en verre --- */
.ee-rangee { display: flex; gap: 30px; justify-content: center; }
.ee-bouton { position: relative; display: flex; align-items: center; gap: 16px; height: 76px; padding: 0 38px 0 26px; border-radius: 999px;
  text-decoration: none; color: #2A2624; font-weight: 500; font-size: 21px; letter-spacing: 0.01em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.38) 55%, rgba(255,255,255,0.22) 100%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: inset 0 1px 0 #fff, inset 0 -10px 18px -10px rgba(120,110,100,0.35), 0 1px 2px rgba(0,0,0,0.06), 0 22px 36px -16px rgba(60,50,40,0.38), 0 0 40px -6px rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; -webkit-tap-highlight-color: transparent; }
.ee-bouton::after { content: ''; position: absolute; left: 14%; right: 14%; top: 3px; height: 40%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0)); pointer-events: none; }
.ee-bouton:focus-visible, .ee-entree:focus-visible { outline: 2px solid #B00E28; outline-offset: 4px; }
.ee-point { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.95), rgba(255,255,255,0.35)); box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0,0,0,0.12); }
.ee-point::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #C8102E; box-shadow: 0 0 10px 2px rgba(200,16,46,0.55); transition: background 0.15s ease, box-shadow 0.15s ease; }
/* à l'appui : le bouton s'enfonce et le rond passe au vert */
.ee-bouton.ee-appui { transform: translateY(3px) scale(0.985); background: linear-gradient(180deg, rgba(235,230,224,0.9) 0%, rgba(245,242,238,0.7) 100%);
  box-shadow: inset 0 4px 10px rgba(60,50,40,0.28), inset 0 -1px 0 rgba(255,255,255,0.9), 0 4px 10px -8px rgba(60,50,40,0.3); }
.ee-bouton.ee-appui::after { opacity: 0.35; }
.ee-bouton.ee-appui .ee-point::before { background: #1FA35B; box-shadow: 0 0 14px 4px rgba(31,163,91,0.7); }

/* --- « Entrer sur le site » : bouton rond « marche » à longue ombre (modèle Pinterest) --- */
.ee-entree { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 44px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ee-entree-libelle { font-weight: 600; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: #1B1817; }
.ee-zone-marche { position: relative; width: 92px; height: 92px; }
.ee-zone-marche::before { content: ''; position: absolute; left: 50%; top: 50%; width: 92px; height: 170px; margin-left: -46px; transform-origin: 50% 0; transform: rotate(45deg);
  background: linear-gradient(to bottom, rgba(70,60,50,0.2), rgba(70,60,50,0)); border-radius: 46px 46px 0 0; }
.ee-marche { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F4F1EC 55%, #E4DFD8 100%);
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 6px rgba(120,110,100,0.18), 0 2px 4px rgba(60,50,40,0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease; }
.ee-marche svg { width: 40px; height: 40px; stroke: #7A736C; fill: none; stroke-width: 3.2; stroke-linecap: round; transition: stroke 0.15s ease, filter 0.15s ease; }
.ee-entree.ee-appui .ee-marche { transform: translateY(3px) scale(0.97); box-shadow: inset 0 4px 10px rgba(60,50,40,0.28), inset 0 -1px 0 rgba(255,255,255,0.9); }
.ee-entree.ee-appui .ee-marche svg { stroke: #1FA35B; filter: drop-shadow(0 0 6px rgba(31,163,91,0.7)); }

/* --- Animation du logo --- */
.ee-intro { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 40%, #EEE9E3 0%, #DCD6CF 60%, #CFC8C0 100%); }
.ee-scene { position: relative; width: min(560px, 82vw); aspect-ratio: 1496 / 400; }
.ee-morceau { position: absolute; inset: 0; background: url('../assets/logo-intro-clair.png') center / 100% 100% no-repeat; will-change: transform, opacity; }
.ee-forme { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; box-sizing: border-box; will-change: transform, opacity; opacity: 0; }
.ee-forme.ee-plein-forme { background: #C8102E; }
.ee-forme.ee-plein-forme::after { content: ''; position: absolute; inset: 35%; background: #E8E2DB; }
.ee-forme.ee-contour { border: 11px solid #C8102E; }
.ee-forme.ee-fantome { border: 8px solid rgba(200,16,46,0.35); }
.ee-forme.ee-onde { border: 2px solid rgba(200,16,46,0.5); }
.ee-tige { position: absolute; left: 50%; top: 50%; width: 13px; height: 0; margin-left: -6.5px; background: #C8102E; border-radius: 6px; opacity: 0; }
.ee-arcs { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; overflow: visible; pointer-events: none; }
.ee-arcs path { fill: none; stroke: rgba(27,24,23,0.55); stroke-width: 3; stroke-linecap: round; }

/* --- Tablette : boutons côte à côte, plus compacts --- */
@media (min-width: 641px) and (max-width: 900px) {
  .ee-rangee { gap: 14px; }
  .ee-bouton { font-size: 16px; padding: 0 20px 0 14px; gap: 10px; height: 56px; }
  .ee-point { width: 26px; height: 26px; }
  .ee-point::before { inset: 9px; }
}
/* --- Téléphone : boutons en colonne, « Bienvenue » sur deux lignes --- */
@media (max-width: 640px) {
  .ee-accueil { font-size: 80px; margin-bottom: 36px; line-height: 0.85; }
  .ee-accueil .ee-mot:first-child { display: block; }
  .ee-accueil .ee-pt { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .ee-rangee { flex-direction: column; width: 100%; max-width: 320px; gap: 18px; }
  .ee-bouton { justify-content: flex-start; height: 62px; font-size: 18px; padding: 0 24px 0 18px; gap: 14px; }
  .ee-point { width: 30px; height: 30px; }
  .ee-point::before { inset: 10px; }
}
/* Écran bas (téléphone couché) : tout tient sans défiler */
@media (max-height: 520px) {
  .ee-accueil { font-size: 56px; margin-bottom: 18px; }
  .ee-accueil .ee-mot:first-child { display: inline-block; }
  .ee-rangee { flex-direction: row; max-width: none; gap: 10px; }
  .ee-bouton { height: 48px; font-size: 14px; padding: 0 14px 0 10px; gap: 8px; }
  .ee-point { width: 22px; height: 22px; }
  .ee-point::before { inset: 7px; }
  .ee-entree { margin-top: 16px; gap: 8px; }
  .ee-zone-marche, .ee-marche { width: 64px; height: 64px; }
  .ee-zone-marche::before { width: 64px; margin-left: -32px; height: 100px; }
  .ee-marche svg { width: 28px; height: 28px; }
}
