/* Festi'Wouf · Contact, pages pratiques, 404 et pages « Être prévenu » (classe .fw-p-pratiques).
   Complète fw.css : ne garde de la maquette (fw-pages.css du projet « pratiques ») que ce qui manque.
   En-tête, pied, lien d'évitement et tokens viennent de fw.css. */

.fw-p-pratiques { --fw-erreur: #B42318; }
.fw-p-pratiques .fw-sombre { --fw-erreur: #FFB4A9; }

.fw-h1 { font-size: var(--fw-fs-h1); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }

/* Champ piège des formulaires (hors écran) */
.fw-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Boutons : petite patte du check (§ 4.5.1) ===== */
.fw-bouton .fw-patte { width: 22px; height: 22px; transform: rotate(-8deg); }

/* ===== Panneaux fléchés (§ 4.5.13) ===== */
.fw-panneaux { display: flex; flex-direction: column; align-items: flex-start; gap: var(--fw-e-4); }
.fw-panneau-lien {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; max-width: 100%;
  padding: 8px 52px 8px 10px; color: var(--fw-bleu) !important;
  font: 700 1rem/1.2 var(--fw-police); text-transform: uppercase; letter-spacing: .02em; text-decoration: none !important;
}
.fw-panneau-lien::before, .fw-panneau-lien::after { content: ""; position: absolute; z-index: -1; }
.fw-panneau-lien::before { inset: 0; background: var(--fw-bleu); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%); }
.fw-panneau-lien::after { inset: 2px; background: var(--fw-blanc); clip-path: polygon(0 0, calc(100% - 26.8px) 0, calc(100% - .8px) 50%, calc(100% - 26.8px) 100%, 0 100%); }
.fw-panneau-lien:hover::after { background: var(--fw-jaune-pale); }
.fw-panneau-lien img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.fw-panneaux > li:nth-child(1) .fw-panneau-lien { transform: rotate(-2deg); }
.fw-panneaux > li:nth-child(2) .fw-panneau-lien { transform: rotate(1deg); }
.fw-panneaux > li:nth-child(3) .fw-panneau-lien { transform: rotate(-1deg); }

/* ===== Contact (§ 5.13) ===== */
.fw-contact { display: grid; grid-template-columns: 1fr; gap: var(--fw-e-8); }
@container (min-width: 900px) { .fw-contact { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; } }
@container (min-width: 1200px) { .fw-contact { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 96px; } }
.fw-contact__gauche { display: flex; flex-direction: column; align-items: flex-start; }
.fw-contact__gauche .fw-h1 { margin-bottom: var(--fw-e-4); }
.fw-wouf { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--fw-e-4); row-gap: 0; margin-bottom: var(--fw-e-4) !important; }
.fw-wouf__mot { font: 800 2rem/1.1 var(--fw-police); color: var(--fw-titre); }
.fw-wouf__trad { color: var(--fw-titre); }
.fw-contact__gauche .fw-chapo { margin-bottom: var(--fw-e-6); }
.fw-raisons { margin-bottom: var(--fw-e-8); }
.fw-joindre { width: 100%; padding-top: var(--fw-e-6); border-top: 1px solid var(--fw-filet); display: flex; flex-direction: column; gap: var(--fw-e-4); }
.fw-joindre ul { display: flex; flex-direction: column; gap: var(--fw-e-3); }
.fw-joindre li { display: flex; gap: var(--fw-e-3); align-items: flex-start; font-size: var(--fw-fs-texte); line-height: 1.5; }
.fw-joindre li svg { width: 24px; height: 24px; flex: none; color: var(--fw-picto); margin-top: 2px; }
.fw-joindre a { font-weight: 600; }
.fw-contact__droite { display: flex; flex-direction: column; align-items: stretch; gap: var(--fw-e-5); }
.fw-contact__berger { display: flex; flex-direction: column; align-items: center; gap: var(--fw-e-4); }
.fw-contact__berger .fw-medaillon { --taille: 168px; }
.fw-contact__berger .fw-medaillon img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
@container (min-width: 900px) { .fw-contact__berger .fw-medaillon { --taille: 192px; } }

/* ===== Formulaires (§ 5.13, champs du § 4.5.10) ===== */
.fw-carte-form { background: var(--fw-surface); border: 1px solid var(--fw-filet); border-radius: var(--fw-r-m); padding: var(--fw-carte-pad); display: flex; flex-direction: column; gap: var(--fw-e-5); }
.fw-carte-form .fw-champ { gap: var(--fw-e-2); }
.fw-champ select, .fw-champ textarea {
  border-radius: var(--fw-r-s); background: var(--fw-surface); color: var(--fw-texte);
  border: 2px solid var(--fw-champ-bord); font: 400 var(--fw-fs-texte)/1.4 var(--fw-police); width: 100%;
}
.fw-champ select { height: 52px; padding: 0 48px 0 var(--fw-e-4); appearance: none; -webkit-appearance: none; cursor: pointer; }
.fw-champ textarea { min-height: 176px; padding: 12px var(--fw-e-4); resize: vertical; line-height: 1.5; }
.fw-champ input:focus, .fw-champ select:focus, .fw-champ textarea:focus { border-color: var(--fw-accent); outline: 3px solid var(--fw-focus); outline-offset: 3px; }
.fw-select { position: relative; }
.fw-select svg { position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--fw-accent); pointer-events: none; }
.fw-carte-form .fw-aide { color: var(--fw-texte-2); font-size: var(--fw-fs-petit); line-height: 1.45; }
.fw-carte-form .fw-aide-sujet { background: var(--fw-fond-pratique); border-radius: var(--fw-r-s); padding: var(--fw-e-3) var(--fw-e-4); color: var(--fw-texte); }
.fw-champ--erreur input, .fw-champ--erreur textarea, .fw-champ--erreur select { border-color: var(--fw-erreur); }
.fw-erreur-msg { display: flex; gap: 8px; align-items: flex-start; color: var(--fw-erreur); font-size: var(--fw-fs-petit); line-height: 1.4; font-weight: 500; }
.fw-erreur-msg svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.fw-case { display: flex; gap: var(--fw-e-3); align-items: flex-start; font: 400 var(--fw-fs-petit)/1.5 var(--fw-police); color: var(--fw-texte); }
.fw-case input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--fw-bleu); }
.fw-case label { font: 400 var(--fw-fs-petit)/1.5 var(--fw-police); color: var(--fw-texte); }
.fw-case--erreur input { outline: 2px solid var(--fw-erreur); outline-offset: 2px; }
.fw-mention-form { font-size: var(--fw-fs-petit); line-height: 1.5; color: var(--fw-texte-2); }
.fw-alerte { display: flex; gap: var(--fw-e-3); align-items: flex-start; border: 2px solid var(--fw-erreur); border-radius: var(--fw-r-s); padding: var(--fw-e-3) var(--fw-e-4); font-size: var(--fw-fs-petit); line-height: 1.5; background: var(--fw-surface); color: var(--fw-texte); }
.fw-alerte svg { width: 22px; height: 22px; flex: none; color: var(--fw-erreur); margin-top: 1px; }

/* Les champs qui dépendent du sujet. Sans :has(), le serveur montre ceux du sujet choisi
   (ou tous, avec la mention du sujet, quand aucun n'est choisi) ; avec :has(), la liste les montre au choix. */
.fw-selon-sujet--masque { display: none; }
@supports selector(:has(*)) {
  .fw-carte-form .fw-selon-sujet { display: none; }
  .fw-carte-form .fw-pour { display: none; }
  .fw-carte-form:has(#c-sujet option[value="exposant"]:checked) .fw-selon-sujet[data-sujets~="exposant"],
  .fw-carte-form:has(#c-sujet option[value="partenaire"]:checked) .fw-selon-sujet[data-sujets~="partenaire"],
  .fw-carte-form:has(#c-sujet option[value="presse"]:checked) .fw-selon-sujet[data-sujets~="presse"],
  .fw-carte-form:has(#c-sujet option[value="soutenir"]:checked) .fw-selon-sujet[data-sujets~="soutenir"],
  .fw-carte-form:has(#c-sujet option[value="temoignage"]:checked) .fw-selon-sujet[data-sujets~="temoignage"] { display: block; }
}

/* Formulaire « Être prévenu » réaffiché (§ 4.5.10) */
.fw-form--carte { width: 100%; max-width: 720px; gap: var(--fw-e-5); padding: var(--fw-e-6) 20px; border-radius: var(--fw-r-l); box-shadow: var(--fw-ombre-tampon); }
@container (min-width: 600px) { .fw-form--carte { padding: 40px; } }
@container (min-width: 900px) { .fw-form--carte { padding: 48px 56px; } }
.fw-form__tete { display: flex; flex-direction: column; gap: var(--fw-e-3); }
.fw-form__tete p { font-size: var(--fw-fs-chapo); line-height: 1.5; }
.fw-form fieldset.fw-champ { border: 0; margin: 0; padding: 0; min-width: 0; }
.fw-champ > legend { font: 600 var(--fw-fs-petit)/1.4 var(--fw-police); color: var(--fw-texte); padding: 0; margin-bottom: var(--fw-e-2); }
.fw-pilules { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-pilule { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--fw-r-pilule); border: 1.5px solid var(--fw-accent); color: var(--fw-accent); font: 600 var(--fw-fs-petit)/1 var(--fw-police); cursor: pointer; }
.fw-pilule input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fw-pilule svg { width: 16px; height: 16px; display: none; }
.fw-pilule:has(input:checked) { background: var(--fw-accent); color: var(--fw-fond); }
.fw-pilule:has(input:checked) svg { display: block; }
.fw-pilule:has(input:focus-visible) { outline: 3px solid var(--fw-focus); outline-offset: 3px; }
.fw-form .fw-bouton { justify-self: start; }

/* ===== Pages d'état : message envoyé, être prévenu (mise en page sobre) ===== */
.fw-etat { max-width: 40rem; }
.fw-etat-carte { background: var(--fw-surface); border: 1px solid var(--fw-filet); border-radius: var(--fw-r-m); padding: var(--fw-carte-pad); display: flex; flex-direction: column; align-items: flex-start; gap: var(--fw-e-4); }
@container (min-width: 600px) { .fw-etat-carte { padding: var(--fw-e-6); } }
.fw-page .fw-etat-carte:focus { outline: none; } /* focus posé au chargement (role="status"), pas par l'utilisateur */
.fw-etat-carte.fw-merci { border-color: transparent; border-radius: var(--fw-r-l); }
.fw-etat-carte .fw-check-disque { --taille: 96px; }
.fw-etat-carte .fw-h1 { font-size: var(--fw-fs-h2); line-height: 1.15; }
.fw-etat-carte .fw-chapo { color: var(--fw-texte); }
.fw-etat__picto { width: 40px; height: 40px; color: var(--fw-picto); }
.fw-etat__confettis { display: block; width: 100%; max-width: 300px; height: auto; }
.fw-etat-carte .fw-wouf { margin-bottom: 0 !important; }
.fw-etat-carte .fw-wouf b { font: 800 2rem/1.1 var(--fw-police); color: var(--fw-titre); }
.fw-etat-carte .fw-wouf .fw-main { color: var(--fw-titre); }

/* ===== Gabarit texte (mentions, vos données, accessibilité) ===== */
.fw-gabarit { display: flex; flex-direction: column; align-items: flex-start; }
.fw-gabarit > * { max-width: 46rem; }
.fw-gabarit > .fw-large { max-width: none; width: 100%; }
.fw-gabarit .fw-h1 { margin-bottom: var(--fw-e-3); }
.fw-maj-ligne { font-size: var(--fw-fs-petit); color: var(--fw-texte-2); margin-bottom: var(--fw-e-6) !important; }
.fw-gabarit > .fw-h2 { margin-top: var(--fw-e-8); margin-bottom: var(--fw-e-4); scroll-margin-top: 96px; }
.fw-gabarit > p + p, .fw-gabarit > ul + p, .fw-gabarit > p + ul { margin-top: var(--fw-e-4); }
.fw-gabarit > p { font-size: var(--fw-fs-texte); line-height: 1.6; }
.fw-gabarit > .fw-chapo { font-size: var(--fw-fs-chapo); line-height: 1.5; margin-bottom: var(--fw-e-6); }
.fw-gabarit > .fw-tableau-apres { margin-top: var(--fw-e-5); }
.fw-puces { list-style: disc !important; padding-left: 24px !important; display: flex; flex-direction: column; gap: 4px; }
.fw-puces li::marker { color: var(--fw-bleu-600); }
.fw-sommaire { width: 100%; background: var(--fw-surface); border: 1px solid var(--fw-filet); border-radius: var(--fw-r-m); padding: var(--fw-carte-pad); }
.fw-sommaire h2 { font: 700 var(--fw-fs-petit)/1.3 var(--fw-police); color: var(--fw-titre); margin-bottom: var(--fw-e-3) !important; }
.fw-sommaire ol { list-style: decimal !important; padding-left: 24px !important; display: grid; grid-template-columns: 1fr; column-gap: var(--fw-e-6); }
@container (min-width: 900px) { .fw-sommaire ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fw-sommaire li { padding-block: 2px; }
.fw-sommaire li::marker { color: var(--fw-texte-2); font-variant-numeric: tabular-nums; }
.fw-sommaire a { display: inline-flex; min-height: 40px; align-items: center; font-weight: 500; }

/* Tableau « Ce que nous collectons » : vrai tableau sur bureau, fiches sur mobile */
.fw-tableau-boite { margin-top: var(--fw-e-2); }
.fw-tableau { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--fw-surface); border: 1px solid var(--fw-filet); border-radius: var(--fw-r-m); overflow: hidden; font-size: var(--fw-fs-petit); line-height: 1.5; }
.fw-tableau th { text-align: left; vertical-align: bottom; background: var(--fw-bleu-100); color: var(--fw-titre); font-weight: 700; padding: 12px 16px; border-bottom: 2px solid var(--fw-bleu); }
.fw-tableau td { vertical-align: top; padding: 16px; border-top: 1px solid var(--fw-filet); }
.fw-tableau tbody tr:first-child td { border-top: 0; }
.fw-tableau td:first-child { font-weight: 700; color: var(--fw-titre); }
.fw-tableau col.c1 { width: 13%; } .fw-tableau col.c2 { width: 22%; } .fw-tableau col.c3 { width: 25%; } .fw-tableau col.c4 { width: 15%; } .fw-tableau col.c5 { width: 25%; }
@container (max-width: 899px) {
  .fw-tableau { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .fw-tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fw-tableau, .fw-tableau tbody, .fw-tableau tr, .fw-tableau td { display: block; width: 100%; }
  .fw-tableau tr { background: var(--fw-surface); border: 1px solid var(--fw-filet); border-radius: var(--fw-r-m); padding: 8px var(--fw-carte-pad) var(--fw-carte-pad); margin-bottom: var(--fw-e-4); }
  .fw-tableau td { border-top: 1px solid var(--fw-filet); padding: 12px 0 0; margin-top: 12px; }
  .fw-tableau td:first-child { border-top: 0; margin-top: 8px; padding-top: 8px; font-size: var(--fw-fs-texte); }
  .fw-tableau td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--fw-titre); margin-bottom: 2px; }
  .fw-tableau td:first-child::before { display: none; }
}

/* ===== Plan du site ===== */
.fw-plan { display: grid; grid-template-columns: 1fr; gap: var(--fw-e-7); margin-top: var(--fw-e-6); }
@container (min-width: 900px) { .fw-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--fw-e-8); } }
@container (min-width: 1200px) { .fw-plan { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fw-plan__groupe { display: flex; flex-direction: column; gap: var(--fw-e-3); padding-top: var(--fw-e-4); border-top: 2px solid var(--fw-bleu); }
.fw-plan__liste, .fw-plan__liste ul { display: flex; flex-direction: column; }
.fw-plan__liste ul { margin-left: 10px !important; padding-left: 18px !important; border-left: 2px solid var(--fw-filet); }
.fw-plan__liste a { display: inline-flex; min-height: 40px; align-items: center; font-weight: 500; line-height: 1.35; }
.fw-plan__liste > li > a { font-weight: 600; }
.fw-plan__annee { display: block; padding-top: 8px; font: 700 var(--fw-fs-petit)/1.3 var(--fw-police); color: var(--fw-titre); font-variant-numeric: tabular-nums; }
.fw-plan__date { color: var(--fw-texte-2); font-weight: 400; margin-left: .3em; }

/* ===== 404 ===== */
.fw-404 { position: relative; overflow: hidden; }
.fw-404__grille { display: grid; grid-template-columns: 1fr; gap: var(--fw-e-6); align-items: center; }
@container (min-width: 900px) { .fw-404__grille { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--fw-e-8); } }
.fw-mot-logo-404 { font: 800 clamp(4.5rem, 2rem + 9vw, 10.5rem)/.84 var(--fw-police); color: var(--fw-orange); text-transform: uppercase; letter-spacing: -.02em; margin: 0; }
.fw-404__texte { display: flex; flex-direction: column; align-items: flex-start; }
.fw-404__texte .fw-h1 { margin-bottom: 4px; }
.fw-404__texte .fw-main { color: var(--fw-titre); margin-bottom: var(--fw-e-5) !important; }
.fw-404__texte .fw-chapo { margin-bottom: var(--fw-e-6); }
.fw-404__nav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--fw-e-3); }
.fw-404__piste { position: relative; margin-top: var(--fw-e-8); display: flex; align-items: center; gap: var(--fw-e-5); }
.fw-404__piste .fw-check-disque { --taille: 112px; }
.fw-404__pattes { display: flex; gap: 28px; color: var(--fw-picto); opacity: .5; flex: 1; overflow: visible; white-space: nowrap; margin-right: -400px; }
.fw-404__pattes svg { width: 24px; height: 24px; flex: none; }
.fw-404__pattes svg:nth-child(odd) { transform: translateY(10px) rotate(-100deg); }
.fw-404__pattes svg:nth-child(even) { transform: translateY(-8px) rotate(-80deg); }
