/* Accueil vivant : section « La route aujourd'hui » et thèmes (Halloween, Noël, saisons). */

/* ---------- Thèmes : effets du héros ---------- */
[class*="theme-"] .hero{position:relative}
.season-fx{position:absolute;inset:-20px 0 0;z-index:5;pointer-events:none;overflow:hidden}
.season-fx canvas{position:absolute;inset:0;display:block}
.season-badge{position:absolute;z-index:3;top:20px;left:20px;right:20px;display:flex;align-items:center;gap:12px;width:fit-content;max-width:calc(100% - 40px);margin:0;padding:10px 16px 10px 10px;border-radius:40px;background:#0b1821d9;backdrop-filter:blur(8px);color:#fff;font-size:13.5px;line-height:1.35;box-shadow:0 14px 30px -12px #000a;animation:badge-in .8s cubic-bezier(.22,1,.36,1) .6s both}
.season-badge strong{display:block;font:700 15px/1.1 Barlow,'Arial Narrow',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--badge,#ffc93c)}
.season-badge-icon{width:36px;height:36px;flex-shrink:0;border-radius:50%;background:var(--badge,#ffc93c) center/22px no-repeat}
@keyframes badge-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}

/* Halloween : lueur orange et mauve, citrouille, chauves-souris. */
.theme-halloween{--badge:#ff8a1f}
.theme-halloween .hero-photo{filter:brightness(.8) saturate(.8) contrast(1.05) hue-rotate(-8deg)}
.theme-halloween2 .hero-photo{filter:brightness(.66) saturate(.72) contrast(1.06) hue-rotate(-10deg)}
/* Halloween 2 : le décor de nuit vu par le pare-brise suit le même zoom lent que la photo. */
.season-photo-fx.follows-photo{animation:ken-burns 18s ease-out both;transform-origin:60% 40%}
.theme-halloween .topbar{background:linear-gradient(90deg,#1a0f24,#3a1a08 50%,#1a0f24)}
.theme-halloween .hero-visual::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(80% 60% at 80% 100%,#ff7a1f29,transparent 60%),radial-gradient(70% 60% at 0 0,#6b2fb329,transparent 60%)}
.theme-halloween .season-badge-icon{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6c-1-2 0-3 1.5-3.5' stroke='%231c3a1c' stroke-width='2' fill='none'/%3E%3Cellipse cx='8' cy='14' rx='5' ry='7' fill='%23c2410c'/%3E%3Cellipse cx='16' cy='14' rx='5' ry='7' fill='%23c2410c'/%3E%3Cellipse cx='12' cy='14' rx='4.5' ry='7.5' fill='%23ea580c'/%3E%3Cpath d='M8 12l2 1.5L8 14Zm8 0-2 1.5 2 .5ZM8.5 17c2 1.5 5 1.5 7 0l-1 1.6h-5Z' fill='%23fde68a'/%3E%3C/svg%3E")}

/* Noël : guirlande lumineuse sous l'en-tête, neige, givre. */
.theme-noel{--badge:#2ed47a}
.theme-noel .hero-visual::after,.theme-hiver .hero-visual::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(#b9dcf526,#9fd3f00f 60%,transparent)}
.theme-noel .hero-photo,.theme-hiver .hero-photo{filter:saturate(.78) brightness(1.04) contrast(1.02)}
/* Décor de la photo (seasons.js) : un canvas posé sur la photo. Hiver : voile givré flou dans les coins en plus. */
.frost-glass,.season-photo-fx{position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit}
.season-photo-fx{width:100%;height:100%}
.frost-glass{background:#eef6ff59;-webkit-backdrop-filter:blur(5px) brightness(1.15) saturate(.6);backdrop-filter:blur(5px) brightness(1.15) saturate(.6);
  -webkit-mask:radial-gradient(55% 60% at 0 0,#000 20%,transparent),radial-gradient(55% 60% at 100% 0,#000 20%,transparent),radial-gradient(40% 45% at 0 100%,#000 10%,transparent),radial-gradient(40% 45% at 100% 100%,#000 10%,transparent);
  mask:radial-gradient(55% 60% at 0 0,#000 20%,transparent),radial-gradient(55% 60% at 100% 0,#000 20%,transparent),radial-gradient(40% 45% at 0 100%,#000 10%,transparent),radial-gradient(40% 45% at 100% 100%,#000 10%,transparent);
  animation:frost-in 8s ease-out both}
@keyframes frost-in{from{opacity:0}}
.theme-noel .season-badge-icon{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l4 6h-2.5l4 5.5H15l4.5 6h-15L9 13.5H6.5l4-5.5H8Z' fill='%23065f46'/%3E%3Crect x='10.7' y='19.5' width='2.6' height='3' fill='%2378350f'/%3E%3Ccircle cx='12' cy='2.5' r='1.6' fill='%23facc15'/%3E%3Ccircle cx='10' cy='11' r='1' fill='%23ef4444'/%3E%3Ccircle cx='14' cy='15' r='1' fill='%23facc15'/%3E%3Ccircle cx='9.5' cy='17.5' r='1' fill='%2338bdf8'/%3E%3C/svg%3E")}

/* Hiver */
.theme-hiver{--badge:#9fe3ff}
.theme-hiver .season-badge-icon{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%230b3b5a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3v18M4.2 7.5l15.6 9M19.8 7.5l-15.6 9M9.5 4.5 12 6l2.5-1.5M9.5 19.5 12 18l2.5 1.5'/%3E%3C/svg%3E")}

/* Printemps */
.theme-printemps{--badge:#86efac}
.theme-printemps .hero-photo{filter:saturate(1.1) brightness(1.04)}
.theme-printemps .hero-visual::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(70% 60% at 100% 0,#fbcfe84d,transparent 60%)}
.theme-printemps .season-badge-icon{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22V11' stroke='%23166534' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 13C12 8 8.5 5.5 4 6c0 4.5 3 7 8 7Z' fill='%2316a34a'/%3E%3Cpath d='M12 11c0-4.5 3-7.5 8-7.5 0 5-3.2 7.5-8 7.5Z' fill='%2322c55e'/%3E%3C/svg%3E")}

/* Été */
.theme-ete{--badge:#ffc93c}
.theme-ete .hero-visual::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(200deg,#ffd27a2e,transparent 55%)}
.theme-ete .hero-photo{filter:saturate(1.15) contrast(1.04) brightness(1.03)}
.theme-ete .season-badge-icon{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5' fill='%23b45309'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9 7 7M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1' stroke='%23b45309' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}

/* Automne */
.theme-automne{--badge:#fb923c}
.theme-automne .hero-photo{filter:saturate(1.12) sepia(.12) contrast(1.04)}
.theme-automne .hero-visual::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(80% 60% at 100% 100%,#ea580c40,transparent 60%)}
.theme-automne .season-badge-icon{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.6 4 3-1.5-.8 4 4-1-2 3.5 3 1.5-4.5 1.5 1 3.5-4.3-2V22h-2v-6.5l-4.3 2 1-3.5L3.2 12.5l3-1.5-2-3.5 4 1-.8-4 3 1.5Z' fill='%23c2410c'/%3E%3C/svg%3E")}

/* Cartes de succursales : touche de saison quand aucune photo de saison n'est fournie. */
.theme-noel .branch-card-media.is-default::before,.theme-hiver .branch-card-media.is-default::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(70% 55% at 0 0,#ffffffb3,transparent 60%),radial-gradient(60% 50% at 100% 0,#eef7ffa6,transparent 60%),linear-gradient(180deg,#dcefff2e,transparent 50%);mix-blend-mode:screen}
.theme-noel .branch-card-media.is-default img,.theme-hiver .branch-card-media.is-default img{filter:saturate(.62) brightness(1.08) contrast(.96) hue-rotate(-10deg)}
.theme-automne .branch-card-media.is-default img,.theme-halloween .branch-card-media.is-default img{filter:saturate(1.15) sepia(.18) hue-rotate(-12deg)}
.theme-ete .branch-card-media.is-default img{filter:saturate(1.15) brightness(1.04)}
.theme-printemps .branch-card-media.is-default img{filter:saturate(1.08) brightness(1.05) hue-rotate(6deg)}

@media(prefers-reduced-motion:reduce){.season-fx{display:none}}

[class*="theme-"] .photo-caption{z-index:2}

/* Guirlande de Noël (SVG construit par seasons.js) : fil en arcs, ampoules de verre qui scintillent. */
.garland{position:absolute;left:0;right:0;top:calc(100% - 3px);width:100%;height:34px;overflow:visible;pointer-events:none;z-index:2}
.garland-wire{fill:none;stroke:#23301f;stroke-width:1.6;filter:drop-shadow(0 1px 1px #0004)}
.garland-bulb{filter:drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 8px var(--c));animation:bulb-twinkle 2.4s ease-in-out infinite alternate}
@keyframes bulb-twinkle{0%{opacity:1;filter:drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 9px var(--c))}70%{opacity:.92}100%{opacity:.45;filter:drop-shadow(0 0 1px var(--c))}}

@media(prefers-reduced-motion:reduce){.garland-bulb,.frost-glass,.season-photo-fx.follows-photo{animation:none}}
