/* ==========================================================================
   FORMATION RGESN - Feuille de style de la version NON écoconçue
   Repères [x.y] : critères RGESN 2024 (docs/non-conformites-rgesn.md)
   ========================================================================== */

/* [4.8] 4 familles de polices et de nombreuses variantes réellement utilisées */
body { font-family: "open-sans-eco", "roboto-eco", system-ui, sans-serif; font-weight: 300; }
h1 { font-family: "playfair-display-eco", Georgia, serif; font-weight: 900; font-style: italic; }
h2 { font-family: "montserrat-eco", sans-serif; font-weight: 700; }
h3, .btn, button { font-family: "roboto-eco", sans-serif; font-weight: 700; }
strong, b { font-family: "montserrat-eco", sans-serif; font-weight: 900; }
em, i { font-family: "playfair-display-eco", serif; font-style: italic; font-weight: 400; }

/* [4.6][2.2] Dégradé animé en continu dans l'en-tête (décoratif, sollicite le processeur graphique) */
.site-header { background: linear-gradient(120deg, #ffffff, #eef5fb, #ffffff, #e6f4f8); background-size: 400% 400%;
    animation: eco-aurora 6s ease infinite; }
@keyframes eco-aurora { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.eco-section { margin-block: 2rem; }
.eco-small { font-size: .85rem; color: var(--color-muted); }
.eco-center { text-align: center; }

/* Chiffres en direct */
.eco-live { background: #0a3f75; color: #fff; font-size: .85rem; padding: .5rem 0; }
.eco-live .container { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.eco-ai { font-style: italic; opacity: .9; }

/* Assistant (service tiers simulé) */
.eco-chat { position: fixed; right: 1rem; bottom: 1rem; z-index: 900; }
.eco-chat__bubble { display: flex; gap: .75rem; align-items: center; max-width: 20rem; padding: .75rem 1rem;
    background: #fff; border-radius: 1rem; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.25); }
.eco-chat__bubble img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.eco-chat__bubble p { margin: 0; font-size: .9rem; }

/* Notifications à l'écran */
.eco-toasts { position: fixed; top: 1rem; right: 1rem; z-index: 950; display: grid; gap: .5rem; }
.eco-toast { max-width: 20rem; padding: .75rem 1rem; background: #1a1a1a; color: #fff; border-radius: .5rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.3); }

/* [4.14][2.4] Bandeau cookies bloquant : visible par défaut, seul le module JavaScript récent peut le fermer */
.eco-cookies { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(0,0,0,.55); padding: 1rem; }
.eco-cookies.is-closed { display: none; }
.eco-cookies__box { max-width: 40rem; padding: 1.5rem; background: #fff; border-radius: .75rem; }
.eco-cookies__accept { width: 100%; padding: 1rem; border: 0; border-radius: .5rem; background: #2e8540; color: #fff; font-size: 1.125rem; cursor: pointer; }
.eco-cookies__refuse { text-align: right; margin: .5rem 0 0; font-size: .7rem; }
.eco-cookies__refuse a { color: #b0b0b0; }

/* Accueil */
.eco-hero-video { position: relative; max-height: 32rem; overflow: hidden; }
.eco-hero-video video { display: block; width: 100%; height: auto; }
.eco-hero-video__text { position: absolute; left: 0; right: 0; bottom: 2rem; text-align: center; color: #fff;
    font: 900 2rem "montserrat-eco", sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.eco-promo { display: grid; gap: .5rem; margin-bottom: 2rem; }
.eco-promo__old { padding: .75rem 1rem; background: #fdecea; border-radius: .5rem; }
.eco-countdown { padding: .75rem 1rem; background: #fff4e5; border-radius: .5rem; }
.eco-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1rem; }
/* [6.4] Images de 1600 px réduites à l'affichage */
.eco-gallery img { width: 100%; height: 12rem; object-fit: cover; border-radius: .5rem; }
.eco-text-image { width: 100%; max-width: 48rem; height: auto; border: 1px solid #ddd; }
.eco-news { display: grid; gap: 1.5rem; }
.eco-news__item { display: grid; grid-template-columns: minmax(0, 14rem) 1fr; gap: 1rem; align-items: start; }
.eco-news__item img { width: 100%; height: 9rem; object-fit: cover; border-radius: .5rem; grid-row: span 2; }
.eco-news__item h3 { margin: 0; }
.eco-loading { padding: 2rem; text-align: center; color: var(--color-muted); }

/* Écran d'attente imposé */
.eco-splash { position: fixed; inset: 0; z-index: 980; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; background: linear-gradient(135deg, #0a3f75, #2297b8); color: #fff; font-size: 1.25rem; }
.eco-splash.is-closed { display: none; }
.eco-splash__logo { font-size: 5rem; }

.eco-advisor { display: flex; gap: 1rem; align-items: center; }
.eco-advisor img { border-radius: 50%; object-fit: cover; }
.eco-chart { max-width: 50rem; }
.eco-card { border-radius: .75rem; object-fit: cover; }
.eco-checks { display: grid; gap: .5rem; margin: 1rem 0; font-size: .9rem; }
.eco-extra-fields { margin: 1rem 0; padding-top: 1rem; border-top: 1px dashed var(--color-border-light); }
.eco-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; float: right; }
/* L'assistant est masqué jusqu'à son ouverture automatique, mais son image de 3,2 Mo est déjà téléchargée [6.5] */
.eco-chat { display: none; }
.eco-chat.is-open { display: block; }
