/*
 * « En direct » : bloc de widgets de l'accueil (21/11/2026, [etika_en_direct]).
 * Miroir de l'aperçu du dashboard (pages/enDirect/enDirect.css, thème clair) : cadre blanc
 * avec le titre manuscrit, tuiles gris très clair à bord fin, en-tête icône et titre en
 * capitales, valeur en gras ; grands widgets visuels illustrés comme les fiches sans photo.
 * Différences voulues avec l'aperçu : aucun texte coupé (libellés complets), rangées plus
 * basses dont la hauteur suit le contenu, une colonne sur téléphone.
 */
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/caveat-latin-700.woff2') format('woff2');
}
/* Quicksand (21/11/2026, choix de Lucie) : police du bloc, ronde et chaleureuse. Police
   variable (graisses 300 à 700), hébergée dans le plugin : aucun appel à Google (RGPD).
   Licence SIL OFL 1.1 (fonts/quicksand-OFL.txt). */
@font-face {
  font-family: 'Quicksand'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/quicksand-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Quicksand'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/quicksand-latin-ext-wght-normal.woff2') format('woff2-variations');
  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;
}

.edr-site {
  --edr-bord: #e4e4e7;
  --edr-encre: #27272a;
  --edr-gris: #52525b;
  --edr-fond-case: #f6f7f9;
  --edr-accent: #6366f1;
  --edr-lien: #3f45c4;
  /* Mêmes marges que « À la une » (.el-alaune : 1440 px au plus, 20 px de chaque côté),
     corrigé le 21/11/2026 : sans elles, le bloc touchait les bords des grands écrans */
  max-width: 1440px; width: 100%; margin: 2.5rem auto; padding: 0 20px; color: var(--edr-encre); box-sizing: border-box;
  font-family: 'Quicksand', system-ui, sans-serif;
}
.edr-site *, .edr-site *::before, .edr-site *::after { box-sizing: border-box; }
/* Pas de cadre (21/11/2026, demande de Lucie) : le bloc reste dans le style de la page,
   comme « En un clic », « À ne pas manquer » et « À la une » (ni bord, ni fond, ni ombre) */
.edr-site .edr-site-cadre { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.edr-site .edr-site-titre {
  display: block; margin: 0 0 1.2rem; padding: 0; border: 0; background: none; text-align: center;
  font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1;
  letter-spacing: normal; text-transform: none; color: #1f2328;
}

/* Plan : les places du dashboard ; rangées basses qui grandissent avec le contenu */
.edr-site .edr-site-grille {
  display: grid; gap: 12px;
  grid-template-columns: repeat(var(--edr-colonnes, 2), minmax(0, 1fr));
  grid-template-rows: repeat(var(--edr-rangees, 3), minmax(64px, auto));
}
.edr-site .edr-site-tuile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0;
  padding: 10px 12px; border: 1px solid var(--edr-bord); border-radius: 14px; background: var(--edr-fond-case); color: var(--edr-encre);
}
.edr-site .edr-site-grand { border-color: var(--edr-accent); }

/* En-tête : icône et nom du widget en capitales */
.edr-site .edr-site-tete {
  display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; background: none;
  font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; color: var(--edr-gris);
}
.edr-site .edr-site-icone { flex: none; display: inline-flex; color: var(--edr-encre); }
.edr-site .edr-site-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.edr-site .edr-site-corps p { margin: 0; }
.edr-site .edr-site-valeur { font-size: clamp(16px, 2.2vw, 24px); font-weight: 700; line-height: 1.15; color: var(--edr-encre); overflow-wrap: anywhere; }
.edr-site .edr-site-detail { font-size: 13px; line-height: 1.4; color: var(--edr-gris); overflow-wrap: anywhere; }
.edr-site .edr-site-petit { font-size: 12.5px; }
.edr-site .edr-site-source { font-size: 12px; color: var(--edr-gris); }
.edr-site .edr-site-paire { display: inline-flex; gap: .5rem; align-items: baseline; }
.edr-site .edr-site-paire strong { font-size: clamp(16px, 2vw, 20px); color: var(--edr-encre); }
.edr-site .edr-site-quand { display: inline-block; min-width: 6.5em; font-weight: 600; color: var(--edr-encre); }
.edr-site .edr-site-tel { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.edr-site .edr-site-lien {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 2px;
  color: var(--edr-lien); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
/* Bouton-lien (21/11/2026) : pastille à bord fin, prend la couleur du texte de la tuile */
.edr-site .edr-site-bouton {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; margin-top: 6px; min-height: 32px;
  padding: 4px 12px; border: 1.5px solid currentColor; border-radius: 999px; background: transparent;
  color: var(--edr-lien); font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background .15s;
}
.edr-site .edr-site-bouton:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.edr-site .edr-site-bouton:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.edr-site .edr-site-lien:focus-visible, .edr-site .edr-site-tel:focus-visible { outline: 3px solid var(--edr-accent); outline-offset: 2px; border-radius: 3px; }

/* Grande case (2 colonnes et 2 rangées ou plus) : widget texte agrandi, comme au dashboard */
.edr-site .edr-site-fG .edr-site-valeur { font-size: clamp(24px, 3.6vw, 44px); }
.edr-site .edr-site-fG .edr-site-tete { font-size: 13px; }

/* Météo (21/11/2026, choix de Lucie) : petit paysage selon le temps. Ciel en dégradé
   (étoiles, pluie ou neige dessinées en CSS), collines en bas, icône du ciel en haut à
   droite. Couleurs du texte choisies pour un contraste suffisant sur chaque ciel (RGAA 3.2). */
.edr-site .edr-meteo-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.edr-site .edr-meteo-ciel { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ciel-haut), var(--ciel-bas)); }
.edr-site .edr-meteo-icone { position: absolute; top: 8px; right: 10px; display: flex; color: var(--ciel-icone); }
.edr-site .edr-site-fP .edr-meteo-icone svg { width: 40px; height: 40px; }
.edr-site .edr-meteo-collines { position: absolute; left: 0; bottom: 0; width: 100%; height: 34%; max-height: 56px; }
.edr-site .edr-site-fP .edr-meteo-collines { height: 22px; }
.edr-site .edr-meteo-colline-loin { fill: var(--colline-loin); }
.edr-site .edr-meteo-colline-pres { fill: var(--colline-pres); }
.edr-site .edr-meteo-jour  { --ciel-haut: #8cc6ef; --ciel-bas: #d8eefc; --ciel-icone: #e0a400; --colline-loin: #7cb867; --colline-pres: #4e8f43; }
.edr-site .edr-meteo-nuit  { --ciel-haut: #0d1a38; --ciel-bas: #2c3f72; --ciel-icone: #f3e6a8; --colline-loin: #213f3e; --colline-pres: #132b2a; }
.edr-site .edr-meteo-pluie { --ciel-haut: #3d4a59; --ciel-bas: #5d6b7b; --ciel-icone: #cfe4fa; --colline-loin: #54774f; --colline-pres: #3c5a3a; }
.edr-site .edr-meteo-neige { --ciel-haut: #93a9bf; --ciel-bas: #e2eaf2; --ciel-icone: #ffffff; --colline-loin: #f4f7fa; --colline-pres: #dbe4ec; }
.edr-site .edr-meteo-effet {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* Surtout côté icône, effacé derrière le texte (lisibilité) */
  -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 75%); mask-image: linear-gradient(to right, transparent 25%, #000 75%);
}
.edr-site .edr-meteo-nuit .edr-meteo-effet { fill: #ffffff; }
.edr-site .edr-meteo-neige .edr-meteo-effet { fill: #ffffff; }
.edr-site .edr-meteo-pluie .edr-meteo-effet { stroke: #d6e8fb; stroke-linecap: round; }
/* Petite animation (21/11/2026, demande de Lucie) : la pluie et la neige tombent, les
   étoiles scintillent. CSS seul, léger. RGAA 13.8 (WCAG 2.2.2) : elle s'arrête d'elle-même
   en moins de 5 secondes ; le survol de la tuile la relance (nom d'animation changé) ;
   aucune animation si le visiteur a demandé moins de mouvement. */
.edr-site .edr-meteo-effet > * { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .edr-site .edr-meteo-pluie .edr-meteo-effet > * { animation: edr-pluie .9s linear 5; }
  .edr-site .edr-meteo-pluie .edr-meteo-effet > :nth-child(3n) { animation-duration: .75s; animation-delay: -.3s; }
  .edr-site .edr-meteo-pluie .edr-meteo-effet > :nth-child(4n+1) { animation-duration: 1.05s; animation-delay: -.6s; }
  .edr-site .edr-meteo-neige .edr-meteo-effet > * { animation: edr-neige 2.4s ease-in-out 2; }
  .edr-site .edr-meteo-neige .edr-meteo-effet > :nth-child(3n) { animation-duration: 2s; animation-delay: -1s; }
  .edr-site .edr-meteo-neige .edr-meteo-effet > :nth-child(4n+1) { animation-duration: 2.3s; animation-delay: -.5s; }
  .edr-site .edr-meteo-nuit .edr-meteo-effet > :nth-child(2n) { animation: edr-etoile 1.6s ease-in-out 3; }
  .edr-site .edr-meteo-nuit .edr-meteo-effet > :nth-child(3n) { animation: edr-etoile 1.2s ease-in-out .4s 3; }
  /* Relance au survol : mêmes mouvements, autre nom d'animation */
  .edr-site .edr-site-tuile:hover .edr-meteo-pluie .edr-meteo-effet > * { animation-name: edr-pluie-bis; }
  .edr-site .edr-site-tuile:hover .edr-meteo-neige .edr-meteo-effet > * { animation-name: edr-neige-bis; }
  .edr-site .edr-site-tuile:hover .edr-meteo-nuit .edr-meteo-effet > :nth-child(2n),
  .edr-site .edr-site-tuile:hover .edr-meteo-nuit .edr-meteo-effet > :nth-child(3n) { animation-name: edr-etoile-bis; }
}
@keyframes edr-pluie { from { transform: translate(4px, -14px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-4px, 14px); opacity: 0; } }
@keyframes edr-pluie-bis { from { transform: translate(4px, -14px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-4px, 14px); opacity: 0; } }
@keyframes edr-neige { 0% { transform: translate(0, -6px); } 50% { transform: translate(3px, 2px); } 100% { transform: translate(-1px, 10px); } }
@keyframes edr-neige-bis { 0% { transform: translate(0, -6px); } 50% { transform: translate(3px, 2px); } 100% { transform: translate(-1px, 10px); } }
@keyframes edr-etoile { 50% { opacity: .15; } }
@keyframes edr-etoile-bis { 50% { opacity: .15; } }
/* Texte et titre de la tuile aux couleurs du ciel ; place pour les collines en bas */
.edr-site .edr-site-tuile:has(.edr-meteo-decor) { border-color: transparent; padding-bottom: clamp(26px, 30%, 50px); }
.edr-site .edr-site-fP:has(.edr-meteo-decor) { padding-bottom: 20px; }
.edr-site .edr-site-tuile:has(.edr-meteo-jour)  { --edr-encre: #0b2740; --edr-gris: #1d3b57; --edr-lien: #0b2740; }
.edr-site .edr-site-tuile:has(.edr-meteo-neige) { --edr-encre: #0f2438; --edr-gris: #22384d; --edr-lien: #0f2438; }
.edr-site .edr-site-tuile:has(.edr-meteo-nuit), .edr-site .edr-site-tuile:has(.edr-meteo-pluie) { --edr-encre: #ffffff; --edr-gris: #e6edf5; --edr-lien: #ffffff; }
/* Icône du widget plus grande, logée dans l'angle haut gauche (21/11/2026, demande de Lucie) */
.edr-site .edr-site-tuile:has(.edr-meteo-decor) .edr-site-tete { padding-left: 38px; min-height: 26px; }
.edr-site .edr-site-tuile:has(.edr-meteo-decor) .edr-site-icone {
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 14px 0 14px 0; background: color-mix(in srgb, var(--edr-encre) 14%, transparent);
}
.edr-site .edr-site-tuile:has(.edr-meteo-decor) .edr-site-icone svg { width: 26px; height: 26px; }
@media (forced-colors: active) { .edr-site .edr-meteo-decor { display: none; } }

/* Grands widgets visuels : illustration des fiches sans photo (index.css du dashboard, .tuile-illustration) */
.edr-site .edr-site-illustre { padding: 0; gap: 0; }
.edr-site .edr-site-ecran {
  position: relative; isolation: isolate; overflow: hidden; flex: 1; min-height: 110px;
  display: flex; align-items: center; justify-content: center; color: #ffffff;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(135deg, var(--illu-clair) 0%, var(--illu-fonce) 100%);
}
.edr-site .edr-site-cercle {
  display: flex; align-items: center; justify-content: center; height: 46%; max-height: 72px; min-height: 40px; aspect-ratio: 1;
  border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .35);
}
.edr-site .edr-site-filigrane { position: absolute; z-index: -1; display: flex; opacity: .10; pointer-events: none; }
.edr-site .edr-site-filigrane-bas { right: -14px; bottom: -18px; }
.edr-site .edr-site-filigrane-haut { left: -18px; top: -16px; opacity: .07; transform: rotate(-12deg); }
.edr-site .edr-site-legende { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; }
.edr-site .edr-site-titre-illu { margin: 0; padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--edr-encre); text-transform: none; letter-spacing: 0; }

/* Vigilance : pastille de couleur avec son nom écrit (la couleur seule ne suffit pas) */
.edr-site .edr-site-pastille { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid rgba(0, 0, 0, .15); }
.edr-site .edr-vig-verte { background: #d3f2d8; color: #14532d; }
.edr-site .edr-vig-jaune { background: #fff1a8; color: #5c4a00; }
.edr-site .edr-vig-orange { background: #ffd2a6; color: #7a2e00; }
.edr-site .edr-vig-rouge { background: #ffc9c9; color: #7f1010; }
/* Qualité de l'air (indice ATMO) : teintes claires des six couleurs officielles, texte foncé (contraste > 7:1) */
.edr-site .edr-air-1 { background: #d4f8f5; color: #0b4f4a; }
.edr-site .edr-air-2 { background: #d3efe6; color: #0f4d3a; }
.edr-site .edr-air-3 { background: #fbf6c2; color: #5c5300; }
.edr-site .edr-air-4 { background: #ffd6d6; color: #7f1010; }
.edr-site .edr-air-5 { background: #f2ccd6; color: #5e001f; }
.edr-site .edr-air-6 { background: #e9d3ef; color: #4b1158; }

.edr-site .edr-visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Téléphone et petite tablette : une colonne, tuiles dans l'ordre de lecture du plan */
@media (max-width: 720px) {
  .edr-site .edr-site-grille { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; }
  .edr-site .edr-site-tuile { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 72px; }
}

/* Listes de lignes (numéros utiles, réseaux sociaux) : pas de puces, lignes aérées */
.edr-site .edr-site-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.edr-site .edr-site-liste > li { margin: 0; }
.edr-site .edr-site-liens { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }

/* Webcam (21/11/2026) : dernière image copiée sur le site, au format paysage ; masquée
   dans une petite case (le lien « Voir en direct » reste) */
.edr-site .edr-site-webcam { margin: 0 0 .5rem; }
.edr-site .edr-site-webcam img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #e4e4e7; }
.edr-site .edr-site-fP .edr-site-webcam { display: none; }
/* Info trafic et presse : un lien par ligne, sa précision dessous */
.edr-site .edr-site-catalogue > li { display: flex; flex-direction: column; gap: 1px; }

/* Numéros (21/11/2026) : un numéro ne se coupe jamais ; dans une case étroite, l'intitulé
   passe au-dessus du numéro au lieu de le pousser à la ligne en morceaux */
.edr-site .edr-site-tel { white-space: nowrap; }
.edr-site .edr-site-liste > .edr-site-paire { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 .75rem; }
.edr-site .edr-site-liste > .edr-site-paire strong { font-size: clamp(15px, 1.6vw, 18px); }

/* Célébration annulée (21/11/2026) : barrée, et « Annulée » écrit en clair (RGAA : le
   barré seul n'est pas restitué par les lecteurs d'écran) */
.edr-site-annule { text-decoration: line-through; opacity: .75; }
.edr-site-annulee { color: #b42318; font-weight: 700; }

/* ─── Habillage des widgets (21/11/2026, maquette validée par Lucie) ─────────────
   Fond doux par thème, illustration en bas à droite (décor), données centrées en
   hauteur ; petites tuiles : nom, valeur et une ligne (le reste « en plus » caché,
   sauf les sources exigées par une licence). Textes foncés sur fonds très clairs :
   contrastes supérieurs à 7:1 (RGAA 3.2). */
.edr-site .edr-site-corps { flex: 1; justify-content: center; }
/* Profondeur sobre (21/11/2026, choix A de Lucie) : halo clair en haut à gauche, reflet de
   la couleur du widget en bas à droite, ombre portée teintée, liseré clair en haut */
.edr-site .edr-site-habille {
  border-color: transparent;
  background:
    radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--theme-accent) 13%, transparent) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 0%, rgba(255, 255, 255, .8) 0%, transparent 60%),
    linear-gradient(160deg, var(--theme-haut), var(--theme-bas));
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 24px -12px color-mix(in srgb, var(--theme-accent) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.edr-site .edr-site-habille .edr-site-corps { padding-right: 84px; }
.edr-site .edr-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Illustration à taille fixe (200 × 120 au plus), dans l'angle bas droit : elle ne
   grandit pas avec la tuile, donc reste dans la marge de droite réservée au texte */
.edr-site .edr-decor svg { position: absolute; right: 0; bottom: 0; width: min(100%, 200px); height: min(100%, 120px); }
/* Vagues (rivière, baignade) : toute la largeur, en bas ; marge du bas pour le texte */
.edr-site .edr-decor-large svg { width: 100%; height: 42px; }
.edr-site .edr-site-habille:has(.edr-decor-large) .edr-site-corps { padding-right: 0; }
.edr-site .edr-site-habille:has(.edr-decor-large) { padding-bottom: 46px; }
/* Petites tuiles : pas de place pour l'illustration */
.edr-site .edr-site-fP .edr-decor { display: none; }
.edr-site .edr-site-habille.edr-site-fP .edr-site-corps { padding-right: 0; }
.edr-site .edr-site-habille.edr-site-fP:has(.edr-decor-large) { padding-bottom: 10px; }
.edr-site .edr-site-fP .edr-site-plus { display: none; }
.edr-site .edr-site-fP .edr-site-plus:has(.edr-site-paire),
.edr-site .edr-site-fP.edr-site-air .edr-site-plus:has(.edr-site-source),
.edr-site .edr-site-fP.edr-site-riviere .edr-site-plus:has(.edr-site-source),
.edr-site .edr-site-fP.edr-site-forets .edr-site-plus:has(.edr-site-source) { display: block; }
.edr-site .edr-site-fG .edr-site-valeur { font-size: clamp(28px, 4vw, 48px); }
.edr-site .edr-theme-soleil { --theme-accent: #f59e0b; --theme-haut: #fde7c8; --theme-bas: #fff6ea; --edr-encre: #4a1f05; --edr-gris: #6b3a12; --edr-lien: #4a1f05; }
.edr-site .edr-theme-eau    { --theme-accent: #2563eb; --theme-haut: #e0efff; --theme-bas: #f3f8ff; --edr-encre: #0c2d5c; --edr-gris: #1e3f70; --edr-lien: #0c2d5c; }
.edr-site .edr-theme-air    { --theme-accent: #14b8a6; --theme-haut: #e6fbf9; --theme-bas: #f6fffe; --edr-encre: #0f2f2c; --edr-gris: #23443f; --edr-lien: #0f2f2c; }
.edr-site .edr-theme-vert   { --theme-accent: #16a34a; --theme-haut: #e7f7ec; --theme-bas: #f6fcf8; --edr-encre: #0f3a20; --edr-gris: #22502f; --edr-lien: #0f3a20; }
.edr-site .edr-theme-lagon  { --theme-accent: #0d9488; --theme-haut: #dcf7f2; --theme-bas: #f2fcfa; --edr-encre: #063d36; --edr-gris: #155049; --edr-lien: #063d36; }
.edr-site .edr-theme-mairie { --theme-accent: #6366f1; --theme-haut: #eceefe; --theme-bas: #f8f8ff; --edr-encre: #1e1b4b; --edr-gris: #34307a; --edr-lien: #1e1b4b; }
.edr-site .edr-theme-rose   { --theme-accent: #ec4899; --theme-haut: #fdeef6; --theme-bas: #fff8fb; --edr-encre: #500724; --edr-gris: #6e1a3d; --edr-lien: #500724; }
.edr-site .edr-theme-jaune  { --theme-accent: #eab308; --theme-haut: #fef9e3; --theme-bas: #fffdf4; --edr-encre: #422006; --edr-gris: #5c3410; --edr-lien: #422006; }
.edr-site .edr-theme-ciel   { --theme-accent: #0ea5e9; --theme-haut: #e6f6fd; --theme-bas: #f5fbfe; --edr-encre: #082f49; --edr-gris: #1a4566; --edr-lien: #082f49; }
.edr-site .edr-theme-pierre { --theme-accent: #78716c; --theme-haut: #f3f1ee; --theme-bas: #fbfaf8; --edr-encre: #292524; --edr-gris: #44403c; --edr-lien: #292524; }
.edr-site .edr-theme-ardoise{ --theme-accent: #475569; --theme-haut: #eef1f5; --theme-bas: #f8f9fb; --edr-encre: #0f172a; --edr-gris: #334155; --edr-lien: #0f172a; }
.edr-site .edr-theme-corail { --theme-accent: #f43f5e; --theme-haut: #ffeef1; --theme-bas: #fff8f9; --edr-encre: #4c0519; --edr-gris: #6b1430; --edr-lien: #4c0519; }
.edr-site .edr-theme-orange { --theme-accent: #fb923c; --theme-haut: #fff1e6; --theme-bas: #fffaf5; --edr-encre: #431407; --edr-gris: #62250d; --edr-lien: #431407; }
.edr-site .edr-theme-bleu   { --theme-accent: #1877f2; --theme-haut: #e8f1fe; --theme-bas: #f6f9ff; --edr-encre: #0b2a5b; --edr-gris: #1f4378; --edr-lien: #0b2a5b; }
@media (forced-colors: active) { .edr-site .edr-decor { display: none; } }

/* Ligne précédée d'une icône (météo, 21/11/2026) */
.edr-site .edr-site-ligne-icone { display: inline-flex; align-items: center; gap: .45rem; }
.edr-site .edr-site-ligne-icone > svg { flex: none; }

/* ─── Styles d'essai (21/11/2026, demande de Lucie) ──────────────────────────────
   Base de travail à affiner avec Alex. Le style se choisit avec les boutons au-dessus
   du bloc (visibles seulement pour les personnes connectées qui peuvent modifier le
   site) ; sans choix : « Clair » (le style actuel). Les tuiles Météo gardent leur ciel.
   Contrastes à revérifier style par style avant d'en retenir un (RGAA 3.2). */
.edr-site .edr-styles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; }
.edr-site .edr-styles-titre { font-weight: 700; margin-right: 4px; }
.edr-site .edr-styles button {
  min-height: 32px; padding: 4px 12px; border: 1.5px solid #27272a; border-radius: 999px; background: #ffffff; color: #27272a;
  font: inherit; font-weight: 600; cursor: pointer;
}
.edr-site .edr-styles button[aria-pressed="true"] { background: #27272a; color: #ffffff; }
.edr-site .edr-styles button:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }

/* Noir fumé : tuiles sombres translucides, icônes et illustrations à la couleur du widget */
.edr-site[data-style="fume"] .edr-site-habille {
  background: rgba(24, 20, 28, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .55);
  --edr-encre: #ffffff; --edr-gris: #d6d3dd; --edr-lien: #ffffff;
}
.edr-site[data-style="fume"] .edr-site-habille .edr-site-icone { color: var(--theme-accent); }
.edr-site[data-style="fume"] .edr-site-habille .edr-decor { opacity: .9; }

/* Funky : aplats saturés de la couleur du widget, illustration en blanc (comme les fiches sans photo) */
.edr-site[data-style="funky"] .edr-site-habille {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, .25) 0%, transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 82%, #000000), color-mix(in srgb, var(--theme-accent) 55%, #000000));
  border: 0; border-radius: 20px; box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--theme-accent) 80%, #000000);
  --edr-encre: #ffffff; --edr-gris: #f1f1f4; --edr-lien: #ffffff;
}
.edr-site[data-style="funky"] .edr-site-habille .edr-decor svg { filter: brightness(0) invert(1); opacity: .3; width: min(100%, 260px); height: min(100%, 156px); }
.edr-site[data-style="funky"] .edr-site-habille .edr-site-valeur { letter-spacing: -.01em; }

/* Verre dépoli : taches de couleur derrière le bloc, tuiles blanches translucides et floues */
.edr-site[data-style="verre"] .edr-site-habille {
  /* Taches de couleur dans la tuile, voilées de blanc (effet verre sans fond derrière le bloc) */
  background:
    linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)),
    radial-gradient(60% 70% at 10% 15%, color-mix(in srgb, var(--theme-accent) 55%, #ffffff) 0%, transparent 70%),
    radial-gradient(50% 60% at 90% 20%, #f9a8d4 0%, transparent 70%),
    radial-gradient(60% 60% at 75% 100%, #67e8f9 0%, transparent 70%), #f8fafc; -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 20px; box-shadow: 0 8px 24px -12px rgba(30, 41, 59, .35), inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* Néo-brutal : bord noir épais, ombre décalée pleine, couleurs franches */
.edr-site[data-style="brutal"] .edr-site-tuile { border: 2.5px solid #111111; border-radius: 10px; box-shadow: 5px 5px 0 #111111; }
.edr-site[data-style="brutal"] .edr-site-habille { background: color-mix(in srgb, var(--theme-accent) 28%, #ffffff); --edr-encre: #111111; --edr-gris: #222222; --edr-lien: #111111; }
.edr-site[data-style="brutal"] .edr-site-habille .edr-site-valeur { font-weight: 800; }
.edr-site[data-style="brutal"] .edr-site-grille { gap: 16px; }
/* Aurore : dégradés pastel « en nuage » mêlés, comme les fonds abstraits doux (capture de Lucie) */
.edr-site[data-style="aurore"] .edr-site-habille {
  border: 0; border-radius: 24px;
  background:
    radial-gradient(55% 60% at 18% 22%, color-mix(in srgb, var(--theme-accent) 45%, #ffffff) 0%, transparent 70%),
    radial-gradient(50% 55% at 88% 18%, #fbcfe8 0%, transparent 70%),
    radial-gradient(60% 60% at 80% 95%, color-mix(in srgb, var(--theme-accent) 30%, #bae6fd) 0%, transparent 72%),
    radial-gradient(55% 50% at 10% 95%, #fef3c7 0%, transparent 70%),
    #f5f3ff;
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--theme-accent) 70%, transparent);
}
.edr-site[data-style="aurore"] .edr-site-habille .edr-decor { opacity: .75; mix-blend-mode: multiply; }

/* Paysage dessiné : le paysage (collines, soleil) en fond de chaque tuile, voilé de clair
   en haut pour le texte */
.edr-site[data-style="paysage"] .edr-site-habille {
  background: linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .5) 55%, rgba(255, 255, 255, .15)), #f3e6dc url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201200%20600%22%20preserveAspectRatio%3D%22xMidYMax%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22c%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23bcd7f5%22/%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f8dcd0%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fbe9c9%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width%3D%221200%22%20height%3D%22600%22%20fill%3D%22url%28%23c%29%22/%3E%3Ccircle%20cx%3D%22880%22%20cy%3D%22250%22%20r%3D%2270%22%20fill%3D%22%23fff3c4%22%20opacity%3D%22.9%22/%3E%3Cpath%20d%3D%22M0%20380%20Q120%20300%20240%20350%20T480%20330%20Q560%20250%20640%20320%20T860%20300%20Q980%20260%201080%20320%20T1200%20310%20V600%20H0Z%22%20fill%3D%22%23b9c7e6%22/%3E%3Cpath%20d%3D%22M0%20440%20Q150%20380%20300%20430%20T600%20410%20Q720%20360%20840%20420%20T1200%20400%20V600%20H0Z%22%20fill%3D%22%239db8a6%22/%3E%3Cpath%20d%3D%22M0%20500%20Q200%20450%20400%20495%20T800%20480%20T1200%20470%20V600%20H0Z%22%20fill%3D%22%236f9a7e%22/%3E%3Cpath%20d%3D%22M0%20560%20Q300%20525%20600%20555%20T1200%20545%20V600%20H0Z%22%20fill%3D%22%234f7d61%22/%3E%3C/svg%3E") center bottom / cover no-repeat;
  border: 0; border-radius: 18px; box-shadow: 0 10px 24px -14px rgba(31, 41, 55, .45);
}
.edr-site[data-style="paysage"] .edr-site-habille .edr-decor { opacity: .9; }

/* Photo de fond : une photo par tuile (pour l'essai : les photos de la page, en-direct.js ;
   à terme, choisie par la mairie), assombrie en bas, texte blanc ; sans photo : le paysage */
.edr-site[data-style="photo"] .edr-site-habille {
  background: linear-gradient(rgba(10, 15, 30, .35), rgba(10, 15, 30, .72)), var(--edr-photo, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201200%20600%22%20preserveAspectRatio%3D%22xMidYMax%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22c%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23bcd7f5%22/%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f8dcd0%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fbe9c9%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width%3D%221200%22%20height%3D%22600%22%20fill%3D%22url%28%23c%29%22/%3E%3Ccircle%20cx%3D%22880%22%20cy%3D%22250%22%20r%3D%2270%22%20fill%3D%22%23fff3c4%22%20opacity%3D%22.9%22/%3E%3Cpath%20d%3D%22M0%20380%20Q120%20300%20240%20350%20T480%20330%20Q560%20250%20640%20320%20T860%20300%20Q980%20260%201080%20320%20T1200%20310%20V600%20H0Z%22%20fill%3D%22%23b9c7e6%22/%3E%3Cpath%20d%3D%22M0%20440%20Q150%20380%20300%20430%20T600%20410%20Q720%20360%20840%20420%20T1200%20400%20V600%20H0Z%22%20fill%3D%22%239db8a6%22/%3E%3Cpath%20d%3D%22M0%20500%20Q200%20450%20400%20495%20T800%20480%20T1200%20470%20V600%20H0Z%22%20fill%3D%22%236f9a7e%22/%3E%3Cpath%20d%3D%22M0%20560%20Q300%20525%20600%20555%20T1200%20545%20V600%20H0Z%22%20fill%3D%22%234f7d61%22/%3E%3C/svg%3E")) center / cover no-repeat;
  border: 0; border-radius: 18px; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .5);
  --edr-encre: #ffffff; --edr-gris: #eef0f4; --edr-lien: #ffffff;
}
.edr-site[data-style="photo"] .edr-site-habille .edr-decor { display: none; }

/* Contour (transparence) : tuiles sans fond, fin contour et icône de la couleur du widget ;
   le bloc se fond dans la page */
.edr-site[data-style="contour"] .edr-site-habille {
  background: transparent; border: 1.5px solid color-mix(in srgb, var(--theme-accent) 55%, transparent); border-radius: 16px; box-shadow: none;
}
.edr-site[data-style="contour"] .edr-site-habille .edr-site-icone { color: var(--theme-accent); }
.edr-site[data-style="contour"] .edr-site-habille .edr-decor { opacity: .55; }
@media (forced-colors: active) { .edr-site .edr-site-habille { backdrop-filter: none; } }

/* Libellé et heure d'une paire jamais coupés au milieu (« Coucher », « 17 h 05 ») */
.edr-site .edr-site-paire > * { white-space: nowrap; }

/* Vignette YouTube (21/11/2026) : copie sur le site, bouton lecture décoratif au centre */
.edr-site .edr-site-video { position: relative; }
.edr-site .edr-site-lecture {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
  width: 52px; height: 36px; border-radius: 10px; background: rgba(220, 38, 38, .92); color: #ffffff; pointer-events: none;
}

/* ─── Groupe météo (21/11/2026, décision de Lucie) ────────────────────────────────────
   Fixé en haut du bloc, hors du plan. Un seul paysage (assets/en-direct-meteo.js) posé sous
   les tuiles et découpé à leur forme : il continue d'une tuile à l'autre. Un voile clair (un
   seul dégradé pour tout le groupe) et un léger halo gardent le texte lisible. */
.edr-meteo { position: relative; display: grid; gap: 14px; margin: 0 0 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto minmax(250px, auto) auto; }
.edr-meteo-fresque { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(#8cc4ee, #cfe8fb); }
.edr-meteo-scene, .edr-meteo-voile, .edr-meteo-effets, .edr-meteo-vent3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.edr-meteo-voile { background: linear-gradient(170deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .22) 45%, rgba(255, 255, 255, .12) 100%); }
.edr-mnuit .edr-meteo-voile { background: linear-gradient(170deg, rgba(10, 16, 36, .5) 0%, rgba(10, 16, 36, .3) 45%, rgba(10, 16, 36, .2) 100%); }
.edr-meteo-vent3d { pointer-events: none; }
.edr-mtuile { position: relative; z-index: 1; min-width: 0; min-height: 118px; padding: 14px 18px; border-radius: 18px; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; gap: 4px; color: #13203a; background: transparent;
  box-shadow: 0 12px 26px -16px rgba(20, 30, 60, .6); }
.edr-mt-meteo { justify-content: flex-start; }
/* Couleurs du texte : sombres de jour, claires la nuit (les pastilles gardent les leurs) */
.edr-site .edr-meteo { --edr-encre: #13203a; --edr-gris: #2b3a55; --edr-lien: #0b2740; }
.edr-site .edr-meteo.edr-mnuit { --edr-encre: #ffffff; --edr-gris: #e6edf5; --edr-lien: #ffffff; }
.edr-site .edr-mtuile .edr-site-tete { color: var(--edr-encre); }
.edr-mtuile .edr-site-tete, .edr-mtuile .edr-site-corps { text-shadow: 0 0 10px rgba(255, 255, 255, .75), 0 0 2px rgba(255, 255, 255, .6); }
.edr-mnuit .edr-mtuile { color: #f3f6ff; }
.edr-mnuit .edr-mtuile .edr-site-tete, .edr-mnuit .edr-mtuile .edr-site-corps { text-shadow: 0 0 10px rgba(10, 16, 36, .8), 0 0 2px rgba(10, 16, 36, .6); }
.edr-mnuit .edr-mtuile a { color: #cfe3ff; }
/* Animations du paysage (rivière qui coule, lac qui frémit, étoiles) */
.edr-meteo-scene .courant { animation: edr-coule 4.1s linear infinite; }
.edr-meteo-scene .courant.lent { animation: edr-coule2 6.36s linear infinite; }
.edr-meteo-scene .ride { animation: edr-ride 5s ease-in-out infinite alternate; }
.edr-meteo-scene .ride2 { animation-duration: 3.6s; animation-delay: -1.8s; }
.edr-meteo-scene .etoile { animation: edr-scintille ease-in-out infinite alternate; }
@keyframes edr-coule { to { stroke-dashoffset: -112; } }
@keyframes edr-coule2 { to { stroke-dashoffset: -108; } }
@keyframes edr-ride { 50% { opacity: .18; } to { opacity: .55; transform: translateX(14px); } }
@keyframes edr-scintille { to { opacity: .2; } }
/* Règle des 5 secondes (RGAA 13.8) et réglage « moins d'animations » : tout s'arrête */
.edr-meteo-fige .edr-meteo-scene *, .edr-meteo-fige .edr-meteo-scene { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .edr-meteo-scene * { animation: none !important; } }
/* Mobile : une colonne, dans l'ordre de lecture ; le paysage suit */
@media (max-width: 720px) {
  .edr-meteo { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none !important; }
  .edr-meteo > .edr-mtuile { grid-area: auto !important; min-height: 96px; }
}
