/* Festival du Fjord : ajouts du thème WordPress aux feuilles de la maquette (assets/m/). */

/* FR seulement au lancement (Q-075) : le choix de langue est caché tant que l'anglais n'est pas activé
   (Options du thème > Général). Les traductions de la maquette restent dans assets/m/i18n. */
body:not(.fdf-anglais) .langue { display: none !important; }

/* Barre d'administration WordPress (connecté) : l'en-tête fixe passe dessous */
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }

/* Retour en haut (absent de la maquette) : pastille nuit à liseré accent, comme les boutons du site */
.fdf-haut {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--nuit); color: var(--blanc); box-shadow: 0 6px 18px rgba(20, 27, 40, .28), inset 0 0 0 2px var(--accent);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ease, ease), transform .25s var(--ease, ease), visibility 0s linear .25s, background-color .2s;
}
.fdf-haut.on { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease, ease), transform .25s var(--ease, ease), visibility 0s, background-color .2s; }
.fdf-haut svg { width: 22px; height: 22px; }
.fdf-haut:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }
@media (hover: hover) { .fdf-haut:hover { background: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .fdf-haut, .fdf-haut.on { transition: none; transform: none; } }

/* Envoi d'un formulaire refusé (serveur injoignable) */
.fdf-echec { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r, 10px); background: #FDECE7; color: var(--accent-fonce); font-weight: 600; }

/* Pages hors maquette (politique de confidentialité) : colonne de texte lisible */
.fdf-doc__corps { padding-block: clamp(40px, 6vw, 80px); }
.fdf-doc__texte { width: min(100% - 32px, 760px); margin-inline: auto; color: var(--encre); line-height: 1.65; }
.fdf-doc__texte h2, .fdf-doc__texte h3 { margin: 1.6em 0 .5em; font-family: var(--f-titre); line-height: 1.15; color: var(--encre); }
.fdf-doc__texte h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.fdf-doc__texte h3 { font-size: 1.25rem; }
.fdf-doc__texte p, .fdf-doc__texte ul, .fdf-doc__texte ol { margin: 0 0 1em; }
.fdf-doc__texte ul, .fdf-doc__texte ol { padding-left: 1.3em; }
.fdf-doc__texte a { color: var(--accent-fonce); text-decoration: underline; text-underline-offset: 3px; }
.fdf-doc__texte table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.fdf-doc__texte th, .fdf-doc__texte td { padding: 8px 10px; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.fdf-doc__texte { overflow-wrap: anywhere; }

/* Page 404 */
.fdf-404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }

/* Contraste AA (exigé par le brief du client : « contraste AA sur le rendu ») : là où du petit texte blanc est posé sur
   l'orange de la maquette (3,7:1), l'orange est foncé (--accent-fonce, 5:1) ; gris des soirs non inclus foncé (2,2 → 5,3:1). */
.pied__infolettre, .vedette__legende, .pastille-surprise { background: var(--accent-fonce); }
.pied__infolettre .surtitre { color: var(--blanc); opacity: 1; }
.jour__date { color: var(--accent-fonce); }
.soir:not(.est-inclus) { color: #6F6858; }
@media (hover: hover) { .pastille-surprise:hover em { color: var(--accent-fonce); } }
