/* Ajustements propres au site statique (chargés après le CSS Webflow). */

/* Titres rétrogradés (un seul h1 par page) : même rendu que l'ancien h1.
   :where() garde la spécificité d'un sélecteur d'élément, les classes Webflow restent prioritaires. */
h2:where(.h1-look), div:where(.h1-look) { margin-top: 20px; margin-bottom: 10px; font-size: 38px; line-height: 44px; font-weight: 700; }

/* Texte réservé aux lecteurs d'écran */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Lien d'évitement : visible seulement au focus clavier */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10000; padding: .75rem 1.25rem; border-radius: 8px; background: #111; color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* L'en-tête collant (bandeau + menu) ne doit pas masquer l'élément qui reçoit le focus */
html { scroll-padding-top: 200px; }
@media (max-width: 991px) { html { scroll-padding-top: 120px; } }
html:has(.camping-chrome) { scroll-padding-top: 100px; }
@media (max-width: 850px) { html:has(.camping-chrome) { scroll-padding-top: 88px; } }

/* /realisations : cases de filtre masquées par Webflow (display:none) mais nécessaires au clavier */
.w-checkbox-input.tags-chekbox { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tag-chekbox-field:has(.tags-chekbox:focus-visible) { outline: 2px solid #0f59be; outline-offset: 2px; }

/* Éléments rendus activables au clavier (role="button") : focus visible */
[role="button"]:focus-visible, .client-card:focus-visible { outline: 2px solid #0f59be; outline-offset: 3px; }

/* Réduction des animations demandée par le système : les interactions Webflow sont neutralisées
   par data-wf-ix-vacation (sur <body>), les défilements CSS des pages partenaires sont arrêtés ici. */
@media (prefers-reduced-motion: reduce) {
  .scrolling-container { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Pop-up newsletter : bouton de fermeture (un vrai <button>) et texte d'information sous le champ. */
.pop-up-exit-button { background: none; border: 0; padding: 4px; line-height: 0; }
.pop-up-exit-button:hover, .pop-up-exit-button:focus-visible { opacity: 1; }
.pop-up-exit-button:focus-visible, .pop-up-box:focus-visible { outline: 2px solid #0a6ebd; outline-offset: 2px; }
.pop-up-box:focus:not(:focus-visible) { outline: none; }
.newsletter-info { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: #595959; }
.newsletter-info a { color: inherit; text-decoration: underline; }
/* Webflow place la pop-up (z-index 300) sous le menu et le bandeau (999) : sur mobile ils masquaient le bouton Fermer. */
.popup-overlay { z-index: 1500; }
.pop-up-box { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; }

/* Sélecteur de langue FR / EN du menu */
.lang-switch { display: inline-flex; flex: none; align-items: center; margin-right: 12px; }
.lang-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 8px 10px; border: 1px solid rgba(5, 109, 159, .3); border-radius: 999px; color: #056d9f; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; line-height: 1; text-decoration: none; transition: background-color .2s, border-color .2s; }
.lang-link:hover { border-color: #056d9f; background: #eaf7ff; }
.lang-link:focus-visible { outline: 2px solid #28a5ff; outline-offset: 2px; }
@media (max-width: 991px) { .lang-switch { align-self: flex-start; margin: 0 0 16px; } }

/* Accueil : largeur du cadre du mot animé, mesurée par site.js (voir « pour votre Festival »). */
.animated-header .animated-text-wrapper > .heading-style-h1 { white-space: nowrap; }
.animated-header.is-measured { width: var(--word-width) !important; transition: width .5s ease-in-out; }
