/* Site FESTIV FUN — reprend la maquette (mêmes couleurs, polices, tailles et espacements). */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { background: #0a0810; }
body { margin: 0; background: #0a0810; color: #f5f2fa; font-family: Outfit, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #2ee6f0; text-decoration: none; }
a:hover { color: #ffd23f; }
img { display: block; }
:focus-visible { outline: 2px solid #2ee6f0; outline-offset: 3px; }
[hidden] { display: none !important; }

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 255, .18), transparent 60%), radial-gradient(700px 400px at -10% 20%, rgba(255, 61, 154, .12), transparent 60%), #0a0810;
}
.site > main { flex: 1; }

/* ── En-tête ── */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(10, 8, 16, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.entete-in { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 12px; color: #f5f2fa; }
.marque:hover { color: #f5f2fa; }
.marque img { width: 60px; height: 60px; border-radius: 50%; }
.marque span { font: 600 20px/1 Fredoka, sans-serif; letter-spacing: .02em; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-lien { background: transparent; color: #b8b1c7; border: 1px solid transparent; font: 500 16px/1 Outfit, sans-serif; padding: 11px 18px; border-radius: 999px; white-space: nowrap; }
.nav-lien:hover { color: #ffffff; }
.nav-lien[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #ffffff; border-color: rgba(255, 255, 255, .18); }
.bouton-agenda { background: #ffd23f; color: #0a0810; font: 600 16px/1 Outfit, sans-serif; padding: 12px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 20px rgba(255, 210, 63, .35); }
.bouton-agenda:hover { color: #0a0810; background: #ffe27a; }
.agenda-mobile { display: none; }

/* ── Barre admin ── */
.barre-admin { background: #1a1030; border-bottom: 1px solid rgba(139, 92, 255, .45); }
.barre-admin-in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge-admin { display: flex; align-items: center; gap: 8px; font: 600 14px/1 Outfit, sans-serif; color: #c4adff; white-space: nowrap; }
.badge-admin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8b5cff; box-shadow: 0 0 10px #8b5cff; }
.statut { font: 500 13px/1 Outfit, sans-serif; color: #7d7690; }
.statut[data-etat="erreur"] { color: #ff3d9a; }
.espace { flex: 1; }
.btn-contour-petit { background: transparent; border: 1px solid rgba(255, 255, 255, .2); color: #b8b1c7; font: 500 14px/1 Outfit, sans-serif; padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.btn-contour-petit:hover { color: #ffffff; border-color: rgba(255, 255, 255, .4); }
.btn-violet-petit { background: #8b5cff; border: 0; color: #ffffff; font: 600 14px/1 Outfit, sans-serif; padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.btn-violet-petit:hover { background: #9d75ff; }

/* ── Accueil ── */
.hero { max-width: 1200px; margin: 0 auto; padding: 72px 24px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.hero-texte { display: flex; flex-direction: column; gap: 24px; }
.surtitre { font: 600 13px/1 Outfit, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--c, #2ee6f0); }
.hero h1 { margin: 0; font: 700 clamp(44px, 7vw, 84px)/.98 Fredoka, sans-serif; letter-spacing: -.01em; }
.arc { background: linear-gradient(90deg, #ff3d9a, #ff7a2f 30%, #ffd23f 55%, #2ee6f0 80%, #8b5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; font: 400 19px/1.6 Outfit, sans-serif; color: #c9c3d6; max-width: 540px; text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-rose { background: #ff3d9a; color: #0a0810; font: 600 17px/1 Outfit, sans-serif; padding: 16px 26px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 28px rgba(255, 61, 154, .45); }
.btn-rose:hover { color: #0a0810; background: #ff5aab; }
.btn-contour { background: transparent; color: #f5f2fa; border: 1px solid rgba(255, 255, 255, .22); font: 600 17px/1 Outfit, sans-serif; padding: 16px 26px; border-radius: 999px; white-space: nowrap; }
.btn-contour:hover { color: #f5f2fa; border-color: #2ee6f0; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(100%, 480px); height: auto; aspect-ratio: 1; border-radius: 50%; }

.bloc { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.grille-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.carte-theme { padding: 32px 28px; border-radius: 24px; background: #14111c; border: 1px solid var(--bord); display: flex; flex-direction: column; gap: 12px; }
.point { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.carte-theme h3 { margin: 0; font: 600 28px/1.1 Fredoka, sans-serif; color: var(--c); }
.carte-theme p { margin: 0; font: 400 16px/1.55 Outfit, sans-serif; color: #b8b1c7; }

.bloc-actus { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; }
.titre-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.titre-ligne h2 { margin: 0; font: 600 36px/1.1 Fredoka, sans-serif; }
.lien-tout { color: #2ee6f0; font: 500 16px/1 Outfit, sans-serif; }
.grille-actus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.carte-actu { background: #14111c; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; color: #f5f2fa; }
.carte-actu:hover { color: #f5f2fa; border-color: rgba(255, 255, 255, .25); }
.carte-actu .meta { font: 600 12px/1 Outfit, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.carte-actu .titre { font: 600 22px/1.25 Fredoka, sans-serif; }
.vide { margin: 0; font: 400 17px/1.6 Outfit, sans-serif; color: #7d7690; }

/* ── Pages ── */
.page-etroite { max-width: 860px; margin: 0 auto; padding: 72px 24px 96px; }
.page-titre { margin: 16px 0 40px; font: 700 clamp(40px, 6vw, 64px)/1 Fredoka, sans-serif; }

/* Actualité : frise qui se remplit au défilement */
.frise { position: relative; display: flex; flex-direction: column; margin-left: 6px; }
.frise-fond { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .07); }
.frise-ligne { position: absolute; left: -1px; top: 0; width: 2px; height: 0; background: linear-gradient(180deg, #ff3d9a, #ffd23f 35%, #2ee6f0 70%, #8b5cff); box-shadow: 0 0 12px rgba(255, 61, 154, .5); border-radius: 2px; }
.article { position: relative; padding: 0 0 48px 36px; display: flex; flex-direction: column; gap: 14px; }
.article-point { position: absolute; left: -9px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); opacity: .3; transition: opacity .4s ease; }
.article-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.article time { font: 500 15px/1 Outfit, sans-serif; color: #a9a3b8; }
.puce { font: 600 12px/1 Outfit, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--c); border: 1px solid var(--c); padding: 5px 10px; border-radius: 999px; }
.article h2 { margin: 0; font: 600 30px/1.2 Fredoka, sans-serif; overflow-wrap: anywhere; }
.galerie { display: grid; gap: 8px; border-radius: 18px; overflow: hidden; }
.cadre { position: relative; display: block; width: 100%; overflow: hidden; background: #14111c; }
.galerie-seule .cadre { max-height: min(75vh, 640px); }
.galerie .cadre-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.5); transform: scale(1.2); }
.galerie .cadre-image { position: relative; width: 100%; height: 100%; object-fit: contain; transition: scale .4s ease; }
.cadre:hover .cadre-image { scale: 1.02; }
.article p { margin: 0; font: 400 17px/1.65 Outfit, sans-serif; color: #c9c3d6; text-wrap: pretty; white-space: pre-line; overflow-wrap: anywhere; }

/* Qui sommes-nous */
.about-haut { max-width: 1200px; margin: 0 auto; padding: 72px 24px 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; }
.colonne { display: flex; flex-direction: column; gap: 16px; }
.about-haut h1 { margin: 0; font: 700 clamp(40px, 6vw, 64px)/1 Fredoka, sans-serif; }
.about-texte { margin: 0; font: 400 21px/1.6 Outfit, sans-serif; color: #dcd6e8; text-wrap: pretty; white-space: pre-line; }
.valeurs { max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; }
.grille-valeurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.carte-valeur { padding: 28px; border-radius: 24px; background: #14111c; border-top: 3px solid var(--c); display: flex; flex-direction: column; gap: 8px; }
.carte-valeur h3 { margin: 0; font: 600 24px/1.2 Fredoka, sans-serif; }
.carte-valeur p { margin: 0; font: 400 16px/1.55 Outfit, sans-serif; color: #b8b1c7; }
.membres { max-width: 1200px; margin: 0 auto; padding: 32px 24px 96px; }
.membres h2 { margin: 0 0 24px; font: 600 36px/1.1 Fredoka, sans-serif; }
.grille-membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.membre { display: flex; flex-direction: column; gap: 10px; }
.membre-photo { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--c); background: repeating-linear-gradient(135deg, #14111c 0 10px, #191522 10px 20px); display: flex; align-items: center; justify-content: center; overflow: hidden; font: 600 clamp(24px, 4vw, 34px)/1 Fredoka, sans-serif; color: var(--c); }
.membre-photo img { width: 100%; height: 100%; object-fit: cover; }
.membre-nom { font: 600 18px/1.2 Fredoka, sans-serif; text-align: center; overflow-wrap: anywhere; }
.membre-role { font: 400 14px/1.2 Outfit, sans-serif; color: #a9a3b8; text-align: center; }

/* FAQ */
.faq-item { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 10px; }
.faq-item h2 { margin: 0; font: 600 24px/1.3 Fredoka, sans-serif; color: var(--c); }
.faq-item p { margin: 0; font: 400 17px/1.65 Outfit, sans-serif; color: #c9c3d6; text-wrap: pretty; white-space: pre-line; overflow-wrap: anywhere; }

/* ── Édition (admin) ── */
.edition { display: flex; flex-direction: column; gap: 16px; }
.carte-edit { background: #14111c; border: 1px dashed rgba(139, 92, 255, .5); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.champs-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.etiquette { font: 600 12px/1 Outfit, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #7d7690; }
.saisie { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: #0a0810; color: #f5f2fa; font: 400 16px/1.4 Outfit, sans-serif; outline: none; }
.saisie:focus { border-color: #8b5cff; }
textarea.saisie { resize: vertical; }
.saisie-titre { font: 600 20px/1.3 Fredoka, sans-serif; }
.saisie-nom { font: 600 17px/1.3 Fredoka, sans-serif; }
.saisie-about { font-size: 18px; line-height: 1.6; }
select.saisie { border-color: var(--c); color: var(--c); font-weight: 600; cursor: pointer; }
select.saisie option { color: #f5f2fa; background: #14111c; }
.vignettes { display: flex; gap: 10px; flex-wrap: wrap; }
.vignette { position: relative; width: 110px; height: 80px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.retirer { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(10, 8, 16, .85); color: #ff3d9a; font: 700 14px/1 Outfit, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ajout-image { width: 110px; height: 80px; border-radius: 10px; border: 1px dashed rgba(139, 92, 255, .7); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: #c4adff; font: 500 13px/1.2 Outfit, sans-serif; text-align: center; }
.ajout-image b { font: 600 22px/1 Fredoka, sans-serif; }
.ajout-image:hover { border-color: #8b5cff; color: #ffffff; }
.ajout-image[aria-busy="true"] { opacity: .6; pointer-events: none; }
.ajout-image input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-edit { display: flex; align-items: center; gap: 12px; }
.photo-edit .membre-photo { width: 64px; flex: none; font-size: 20px; }
.btn-supprimer { align-self: flex-start; background: transparent; border: 1px solid rgba(255, 61, 154, .5); color: #ff3d9a; font: 500 14px/1 Outfit, sans-serif; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.btn-supprimer:hover { border-color: #ff3d9a; }
.btn-ajouter { align-self: flex-start; background: #8b5cff; border: 0; color: #ffffff; font: 600 15px/1 Outfit, sans-serif; padding: 13px 20px; border-radius: 999px; cursor: pointer; }
.btn-ajouter:hover { background: #9d75ff; }
.erreur { font: 500 13px/1.3 Outfit, sans-serif; color: #ff3d9a; }
.grille-membres-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }

/* Liens (admin) */
.page-liens { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.page-liens .page-titre { margin: 16px 0 12px; }
.intro-liens { margin: 0 0 36px; font: 400 17px/1.6 Outfit, sans-serif; color: #b8b1c7; }
.liste-champs { display: flex; flex-direction: column; gap: 20px; }
.champ-lien { display: flex; flex-direction: column; gap: 8px; }
.champ-lien-tete { display: flex; align-items: center; gap: 10px; }
.icone { width: 30px; height: 30px; border-radius: 8px; background: #ffffff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.icone-coeur { background: #ff3d9a; color: #0a0810; font: 700 16px/1 Fredoka, sans-serif; }

/* ── Pied de page ── */
.pied { border-top: 1px solid rgba(255, 255, 255, .08); background: #07060b; }
.pied-arc { height: 3px; background: linear-gradient(90deg, #ff3d9a, #ff7a2f, #ffd23f, #2ee6f0, #8b5cff); }
.pied-haut { max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.pied-marque { display: flex; gap: 16px; align-items: center; }
.pied-marque img { width: 84px; height: 84px; border-radius: 50%; }
.pied-marque .nom { display: block; font: 600 22px/1 Fredoka, sans-serif; margin-bottom: 6px; }
.pied-marque .devise { font: 400 15px/1.4 Outfit, sans-serif; color: #a9a3b8; }
.pied-colonnes { display: flex; gap: 48px; flex-wrap: wrap; }
.pied-col { display: flex; flex-direction: column; gap: 10px; }
.pied-lien { display: flex; align-items: center; gap: 10px; font: 500 17px/1.3 Outfit, sans-serif; overflow-wrap: anywhere; }
.pied-icone { width: 34px; height: 34px; border-radius: 10px; background: #ffffff; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.pied-icone.coeur { background: #ff3d9a; color: #0a0810; font: 700 18px/1 Fredoka, sans-serif; }
.pied-bas { max-width: 1200px; margin: 0 auto; padding: 0 24px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font: 400 13px/1.4 Outfit, sans-serif; color: #6f6981; }
.pied-bas.seul { padding-top: 28px; }
.pied-legal { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.pied-legal a { color: #6f6981; }
.pied-legal a:hover { color: #b8b1c7; }
.secret { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #8b5cff; background: transparent; cursor: pointer; }
.secret:hover { background: #8b5cff; box-shadow: 0 0 10px #8b5cff; }

/* ── Admin : bouton flottant et fenêtre de connexion ── */
.deconnexion-flottante { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 10px; background: #8b5cff; color: #ffffff; border: 0; font: 600 15px/1 Outfit, sans-serif; padding: 14px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; box-shadow: 0 8px 30px rgba(139, 92, 255, .45); }
.deconnexion-flottante:hover { background: #9d75ff; }
.deconnexion-flottante::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; }
.voile { position: fixed; inset: 0; z-index: 50; background: rgba(7, 6, 11, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialogue { width: min(100%, 420px); background: #14111c; border: 1px solid rgba(139, 92, 255, .4); border-radius: 24px; padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 0 60px rgba(139, 92, 255, .2); }
.dialogue label { font: 600 24px/1.2 Fredoka, sans-serif; color: #f5f2fa; }
.dialogue input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: #0a0810; color: #f5f2fa; font: 500 17px/1 Outfit, sans-serif; outline: none; }
.dialogue input:focus { border-color: #8b5cff; }
.dialogue .erreur { margin-top: -8px; font-size: 14px; }
.dialogue-actions { display: flex; gap: 12px; }
.dialogue-actions button { flex: 1; height: 48px; border-radius: 999px; font: 600 16px/1 Outfit, sans-serif; cursor: pointer; }
.btn-connecter { border: 0; background: #8b5cff; color: #ffffff; }
.btn-connecter:hover { background: #9d75ff; }
.btn-sortir { border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #f5f2fa; }
.btn-sortir:hover { border-color: #ffffff; }

/* ── Pages légales ── */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 24px 88px; }
.doc h1 { margin: 16px 0 8px; font: 700 clamp(36px, 6vw, 52px)/1.05 Fredoka, sans-serif; }
.doc .maj { margin: 0 0 32px; font: 400 14px/1.4 Outfit, sans-serif; color: #a9a3b8; }
.doc h2 { margin: 36px 0 10px; font: 600 24px/1.25 Fredoka, sans-serif; }
.doc p, .doc li { font: 400 17px/1.65 Outfit, sans-serif; color: #c9c3d6; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: #f5f2fa; font-weight: 600; }

/* ── Téléphone ── */
@media (max-width: 640px) {
  .entete-in { padding: 8px 16px; gap: 8px 12px; }
  .marque img { width: 46px; height: 46px; }
  .marque span { font-size: 18px; }
  .agenda-mobile { display: inline-block; padding: 10px 14px; font-size: 15px; }
  .nav { order: 3; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .bouton-agenda { display: none; }
  .nav-lien { padding: 10px 14px; font-size: 15px; }
  .barre-admin-in { padding: 12px 16px; gap: 10px; }
  .hero { padding: 40px 16px 24px; gap: 32px; }
  .hero p { font-size: 17px; }
  .hero-logo img { width: min(78%, 320px); }
  .bloc { padding: 24px 16px 56px; }
  .carte-theme { padding: 24px 22px; }
  .bloc-actus { padding: 0 16px 64px; }
  .titre-ligne h2, .membres h2 { font-size: 30px; }
  .page-etroite, .page-liens { padding: 48px 16px 72px; }
  .page-titre { margin-bottom: 28px; }
  .article { padding-left: 26px; padding-bottom: 40px; }
  .article h2 { font-size: 25px; }
  .about-haut { padding: 48px 16px 32px; gap: 24px; }
  .about-texte { font-size: 18px; }
  .valeurs { padding: 0 16px 32px; }
  .membres { padding: 24px 16px 72px; }
  .grille-membres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-item h2 { font-size: 21px; }
  .pied-haut { padding: 36px 16px 24px; gap: 28px; }
  .pied-colonnes { gap: 22px 32px; }
  .pied-bas { padding: 0 16px 24px; }
  .deconnexion-flottante { right: 16px; bottom: 16px; padding: 12px 16px; }
  .dialogue { padding: 28px 22px; }
  .doc { padding: 40px 16px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-point { transition: none; }
}

/* ── Animations festives ─────────────────────────────────────────────────── */

/* Apparition douce au défilement (activée par site.js, jamais en mode admin) */
.anime .apparait { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.anime .apparait.vu { opacity: 1; transform: none; }

/* « célébrer » : l'arc-en-ciel glisse lentement */
.arc-anime { background-image: linear-gradient(90deg, #ff3d9a, #ff7a2f, #ffd23f, #2ee6f0, #8b5cff, #ff3d9a); background-size: 200% 100%; animation: arc-glisse 7s linear infinite; }
@keyframes arc-glisse { to { background-position: -200% 0; } }

/* Logo de l'accueil : halo arc-en-ciel qui tourne, logo qui flotte, étoiles qui scintillent */
.hero-logo { position: relative; }
/* Le halo et les étoiles peuvent dépasser : on coupe sans casser l'en-tête collant (clip ≠ hidden). */
.site { overflow-x: clip; }
.halo { position: absolute; left: 50%; top: 50%; width: min(78%, 380px); aspect-ratio: 1; margin: 0; translate: -50% -50%; border-radius: 50%; background: conic-gradient(from 0deg, #ff3d9a, #ff7a2f, #ffd23f, #2ee6f0, #8b5cff, #ff3d9a); filter: blur(70px); opacity: .32; animation: tourne 16s linear infinite; pointer-events: none; will-change: rotate; }
@keyframes tourne { to { rotate: 360deg; } }
.logo-fete { position: relative; display: block; width: min(100%, 480px); padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.logo-fete img { position: relative; width: 100%; animation: flotte 6s ease-in-out infinite; transition: scale .3s ease; will-change: translate; }
.logo-fete:hover img { scale: 1.04; }
.logo-fete:active img { scale: .97; }
div.logo-fete { cursor: default; }
div.logo-fete:hover img, div.logo-fete:active img { scale: 1; }
@keyframes flotte { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -14px; rotate: 1.5deg; } }
.etincelle { position: absolute; width: 16px; height: 16px; background: var(--c); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: scintille 3.4s ease-in-out infinite; pointer-events: none; }
.etincelle:nth-child(3n) { width: 10px; height: 10px; }
.etincelle:nth-child(4n) { width: 22px; height: 22px; }
@keyframes scintille { 0%, 100% { opacity: 0; scale: .3; rotate: 0deg; } 45%, 55% { opacity: 1; scale: 1; rotate: 45deg; } }

/* Boutons qui brillent */
.btn-rose { position: relative; isolation: isolate; transition: translate .25s ease, background .25s ease; }
.btn-rose::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 0 38px rgba(255, 61, 154, .75), 0 0 70px rgba(255, 61, 154, .25); opacity: 0; animation: lueur 2.8s ease-in-out infinite; pointer-events: none; }
.btn-rose:hover { translate: 0 -2px; }
@keyframes lueur { 50% { opacity: 1; } }
.btn-contour { transition: border-color .25s ease, translate .25s ease, box-shadow .25s ease; }
.btn-contour:hover { translate: 0 -2px; box-shadow: 0 0 22px rgba(46, 230, 240, .25); }
.bouton-agenda { position: relative; overflow: hidden; transition: translate .25s ease, background .25s ease; }
.bouton-agenda:hover { translate: 0 -1px; }
.bouton-agenda::after { content: ""; position: absolute; inset: -20% auto -20% 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: translateX(-150%) skewX(-20deg); animation: reflet 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes reflet { 0%, 65% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(330%) skewX(-20deg); } }
.nav-lien { transition: color .2s ease, background .2s ease, border-color .2s ease; }

/* Logo de l'en-tête : petit tour sur lui-même au survol */
.marque img { transition: rotate .8s cubic-bezier(.3, 1.4, .5, 1); }
.marque:hover img { rotate: 360deg; }

/* Cartes Sport / Loisir / Culture */
.carte-theme { transition: translate .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.carte-theme:hover { translate: 0 -6px; border-color: var(--c); box-shadow: 0 14px 40px -12px var(--bord), 0 0 0 1px var(--bord); }
.icone-theme { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, var(--bord), transparent 70%); color: var(--c); }
.icone-theme svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--c)); overflow: visible; }
.icone-sport svg { animation: trophee 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes trophee { 0%, 100% { rotate: 0deg; translate: 0 0; } 25% { rotate: -6deg; } 50% { translate: 0 -3px; } 75% { rotate: 6deg; } }
.icone-sport .eclat { animation: clignote 1.6s ease-in-out infinite; }
.icone-loisir svg { animation: secoue 2.6s ease-in-out infinite; transform-origin: 20% 85%; }
@keyframes secoue { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -10deg; } 84% { rotate: 8deg; } 92% { rotate: -4deg; } }
.icone-loisir .eclats { animation: eclate 2.6s ease-out infinite; transform-origin: 9px 15px; }
@keyframes eclate { 0%, 68% { opacity: 0; scale: .4; } 80% { opacity: 1; scale: 1.1; } 100% { opacity: 0; scale: 1.25; } }
.icone-culture svg { animation: balance 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes balance { 0%, 100% { rotate: -7deg; translate: 0 0; } 50% { rotate: 7deg; translate: 0 -3px; } }
@keyframes clignote { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.carte-theme:hover .icone-theme svg { animation-duration: 1.1s; }

/* Actualités, valeurs, membres, FAQ : réactions au survol */
.carte-actu { transition: translate .3s ease, border-color .3s ease, box-shadow .3s ease; }
.carte-actu:hover { translate: 0 -4px; border-color: var(--c); box-shadow: 0 12px 34px -14px var(--c); }
.carte-valeur { transition: translate .3s ease, box-shadow .3s ease; }
.carte-valeur:hover { translate: 0 -4px; box-shadow: 0 -6px 30px -14px var(--c); }
.membre-photo { transition: translate .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s ease; }
.membre:hover .membre-photo { translate: 0 -6px; box-shadow: 0 0 26px -4px var(--c); }
.faq-item h2 { transition: text-shadow .3s ease; }
.faq-item:hover h2 { text-shadow: 0 0 18px var(--c); }

/* Pied de page : arc-en-ciel qui coule, icônes qui sautillent */
.pied-arc { background: linear-gradient(90deg, #ff3d9a, #ff7a2f, #ffd23f, #2ee6f0, #8b5cff, #ff3d9a); background-size: 200% 100%; animation: arc-glisse 8s linear infinite; }
.pied-icone { transition: translate .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease; }
.pied-lien:hover .pied-icone { translate: 0 -4px; rotate: -6deg; box-shadow: 0 6px 18px -4px rgba(255, 255, 255, .45); }
.pied-marque img { filter: drop-shadow(0 0 10px rgba(255, 61, 154, .35)); }

/* Confettis (canvas posé par-dessus la page le temps de l'animation) */
.confettis { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* Appareil réglé sur « réduire les animations » : on retire les mouvements, on garde lumières et couleurs. */
@media (prefers-reduced-motion: reduce) {
  .anime .apparait { transform: none; transition: opacity .8s ease; transition-delay: calc(var(--i, 0) * 110ms); }
  .logo-fete img, .icone-theme svg, .icone-theme .eclat, .icone-theme .eclats { animation: none; }
  .etincelle { animation-name: scintille-doux; }
  .marque:hover img { rotate: 0deg; }
  .carte-theme:hover, .carte-actu:hover, .carte-valeur:hover, .btn-rose:hover, .btn-contour:hover { translate: none; }
  .membre:hover .membre-photo, .pied-lien:hover .pied-icone { translate: none; rotate: none; }
}
@keyframes scintille-doux { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

@media (max-width: 640px) {
  .logo-fete { width: min(78%, 320px); }
  .halo { filter: blur(50px); }
  .icone-theme { width: 46px; height: 46px; }
}

/* ── Easter egg : la nuit des loups-garous ───────────────────────────────── */

/* Petite pleine lune au bout de la frise : n'apparaît que quand on a tout fait défiler. */
.lune-cachee { position: absolute; left: -12px; bottom: -14px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6cf, #ffd23f 60%, #e8a92a); box-shadow: 0 0 14px rgba(255, 210, 63, .7); opacity: 0; scale: .3; pointer-events: none; cursor: pointer; transition: opacity .8s ease, scale .6s cubic-bezier(.3, 1.6, .5, 1); }
.lune-cachee.pleine { opacity: 1; scale: 1; pointer-events: auto; }
.lune-cachee::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 28px 4px rgba(255, 210, 63, .9); opacity: 0; pointer-events: none; }
.lune-cachee.pleine::after { animation: lueur 2.6s ease-in-out infinite; }
.lune-cachee.pleine:hover { scale: 1.3; }


.nuit { position: fixed; inset: 0; z-index: 58; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; padding: max(13vh, 90px) 24px 24px; background: radial-gradient(ellipse at 75% 18%, #1d2a58 0%, #0b1230 45%, #03050d 100%); opacity: 0; transition: opacity 1.2s ease; }
.nuit.visible { opacity: 1; }
.nuit-etoiles { position: absolute; inset: 0; opacity: .85; animation: ciel 5s ease-in-out infinite alternate; background-image:
  radial-gradient(1.6px 1.6px at 8% 14%, #fff, transparent), radial-gradient(1px 1px at 18% 32%, #fff, transparent),
  radial-gradient(1.4px 1.4px at 30% 8%, #fff, transparent), radial-gradient(1px 1px at 42% 24%, #fff, transparent),
  radial-gradient(1.8px 1.8px at 55% 12%, #ffe9a8, transparent), radial-gradient(1px 1px at 64% 38%, #fff, transparent),
  radial-gradient(1.2px 1.2px at 88% 46%, #fff, transparent), radial-gradient(1px 1px at 12% 58%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 36% 50%, #fff, transparent), radial-gradient(1px 1px at 94% 8%, #fff, transparent),
  radial-gradient(1.3px 1.3px at 6% 40%, #ffe9a8, transparent), radial-gradient(1px 1px at 50% 62%, #fff, transparent); }
@keyframes ciel { from { opacity: .45; } to { opacity: .95; } }
.nuit-lune { position: absolute; right: 6%; top: 7%; width: min(26vw, 200px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6cf, #ffd23f 55%, #e8a92a); box-shadow: 0 0 90px rgba(255, 210, 63, .55); opacity: 0; translate: 0 60vh; transition: translate 3.2s cubic-bezier(.2, .8, .2, 1), opacity 2s ease; }
.nuit-lune::before, .nuit-lune::after { content: ""; position: absolute; border-radius: 50%; background: rgba(214, 150, 40, .35); }
.nuit-lune::before { width: 22%; height: 22%; left: 56%; top: 30%; }
.nuit-lune::after { width: 13%; height: 13%; left: 30%; top: 62%; }
.nuit.lune-levee .nuit-lune { opacity: 1; translate: 0 0; }
.nuit-loup { position: absolute; bottom: -2px; left: 50%; width: min(62vw, 320px); translate: -50% 105%; transition: translate 1.6s cubic-bezier(.2, .9, .3, 1.1); }
.nuit.loup-leve .nuit-loup { translate: -50% 0; }
.nuit-loup svg { display: block; width: 100%; height: auto; transform-origin: 55% 92%; }
.loup-corps, .loup-rocher { fill: #03040a; }
.loup-oeil { fill: #ffd23f; opacity: 0; transition: opacity .8s ease .6s; }
.nuit.loup-leve .loup-oeil { opacity: 1; }
.nuit.hurle .nuit-loup svg { animation: hurle 2.4s ease-in-out; }
@keyframes hurle { 0%, 100% { rotate: 0deg; } 18% { rotate: -5deg; } 30%, 82% { rotate: -8deg; } }
.nuit.hurle .nuit-recit { animation: tremble .4s linear 4; }
@keyframes tremble { 0%, 100% { translate: 0 0; } 25% { translate: -6px 3px; } 50% { translate: 5px -4px; } 75% { translate: -3px -2px; } }
.nuit-recit { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 700px; text-align: center; }
.nuit-texte { margin: 0; font: 700 clamp(24px, 4.6vw, 46px)/1.2 Fredoka, sans-serif; color: #f5f2fa; text-shadow: 0 0 28px rgba(139, 92, 255, .7); opacity: 0; translate: 0 10px; transition: opacity .45s ease, translate .45s ease; }
.nuit-texte.montre { opacity: 1; translate: 0 0; }
.nuit-badge { margin: 0; padding: 8px 16px; border: 1px solid rgba(255, 210, 63, .5); border-radius: 999px; background: rgba(10, 8, 16, .55); color: #ffd23f; font: 600 14px/1.3 Outfit, sans-serif; letter-spacing: .02em; }
.nuit-fermer { padding: 13px 22px; border: 0; border-radius: 999px; background: #ffd23f; color: #0a0810; font: 600 16px/1 Outfit, sans-serif; cursor: pointer; box-shadow: 0 0 24px rgba(255, 210, 63, .45); }
.nuit-fermer:hover { background: #ffe27a; }
@media (max-width: 640px) {
  .nuit { padding-top: 26vh; }
  .nuit-lune { right: 7%; top: 5%; width: 26vw; }
}
@media (prefers-reduced-motion: reduce) {
  .nuit-lune, .nuit-loup { transition: opacity 1.2s ease; translate: none; }
  .nuit-loup { translate: -50% 0; opacity: 0; }
  .nuit.loup-leve .nuit-loup { opacity: 1; }
  .nuit.hurle .nuit-loup svg, .nuit.hurle .nuit-recit { animation: none; }
}

/* Pendant les confettis, les animations de décor se mettent en pause : tout le téléphone est pour la fête. */
.fete-en-cours .halo, .fete-en-cours .etincelle, .fete-en-cours .logo-fete img, .fete-en-cours .arc-anime,
.fete-en-cours .icone-theme svg, .fete-en-cours .icone-theme .eclat, .fete-en-cours .icone-theme .eclats,
.fete-en-cours .btn-rose::after, .fete-en-cours .bouton-agenda::after, .fete-en-cours .pied-arc { animation-play-state: paused; }
