/*
Theme Name: ECS Lyon
Theme URI: https://ecslyon.fr
Description: Thème du CFA ECS Lyon (Vaulx-en-Velin). Noyau : en-tête, menu, accueil, pied de page, gabarits de pages. Les données (formations, sessions, actualités) viennent de l'extension Loop Formations.
Author: [À CONFIRMER : prestataire]
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.2
License: Propriétaire
Text Domain: ecs-lyon
*/

/*
 * Feuille principale du thème.
 * Sommaire :
 *   1. Base et utilitaires
 *   2. Bandeau supérieur et en-tête
 *   3. Menu principal et panneaux déroulants
 *   4. Recherche et menu mobile
 *   5. Accueil (hero, accès rapides, bento, secteurs, etc.)
 *   6. Pages intérieures (gabarit page, actualités, 404)
 *   7. Pied de page et bandeau cookies
 *
 * Couleurs, rayons et polices : tokens.css. Composants : components.css.
 * Paliers : 760 px (tablette), 1080 px (menu large), 1240 px (conteneur).
 * Mobile d'abord : les règles de base valent pour 320 px.
 */

/* ==================================================================
 * 1. Base et utilitaires
 * ================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ecs-bg);
  color: var(--ecs-text);
  font-family: var(--ecs-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ecs-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ecs-link-hover);
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* Lien d'évitement : invisible sauf au clavier (RGAA) */
.ecs-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--ecs-radius-pill);
  background: var(--ecs-yellow);
  color: var(--ecs-on-yellow);
  font-weight: 700;
  text-decoration: none;
}
.ecs-skip:focus {
  left: 16px;
}

.ecs-container {
  box-sizing: border-box;
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 0 var(--ecs-gutter);
}

/* ==================================================================
 * 2. Bandeau supérieur et en-tête
 * ================================================================== */
.ecs-topbar {
  background: var(--ecs-footer-bg);
  color: var(--ecs-on-violet-muted);
  font-size: 13px;
}
.ecs-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 8px var(--ecs-gutter);
}
.ecs-topbar__liens {
  display: none;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ecs-topbar a {
  color: #fff;
  text-decoration: none;
}
.ecs-topbar a:hover {
  text-decoration: underline;
}
.ecs-topbar__signature {
  font-weight: 600;
  letter-spacing: .01em;
}
.ecs-topbar__tel {
  color: #fff;
  font-weight: 600;
}

.ecs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ecs-bg);
  border-bottom: 1px solid var(--ecs-border);
}
/* Mobile : logo et outils sur la première ligne, Connexion et Préinscription sur la seconde */
.ecs-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 8px var(--ecs-gutter);
}
.ecs-header__cta {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

/* Logo ECS et logo Qualiopi : deux images séparées, jamais fusionnées (cahier § 17.7) */
.ecs-brand {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.ecs-brand__img {
  height: 44px;
  width: auto;
}
.ecs-brand--qualiopi {
  display: none;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--ecs-border);
}
.ecs-brand--qualiopi .ecs-brand__img {
  height: 40px;
}

.ecs-header__actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ecs-header__btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 8px;
  font-size: 14px;
  white-space: nowrap;
}

/* Interrupteur du menu mobile (sans JavaScript) */
.ecs-menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ecs-menu-bouton {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ecs-lilac-050);
  cursor: pointer;
}
.ecs-menu-bouton__barre {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ecs-violet);
}
.ecs-menu-bouton__barre--court {
  width: 14px;
  background: var(--ecs-yellow);
}

/* ==================================================================
 * 3. Menu principal et panneaux déroulants
 * ================================================================== */
/* Mobile : menu replié sous l'en-tête, déplié par la case à cocher */
.ecs-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 75vh;
  overflow-y: auto;
  background: var(--ecs-bg);
  border-top: 1px solid var(--ecs-border);
  box-shadow: var(--ecs-shadow-panel);
}
.ecs-menu-toggle:checked ~ .ecs-header__inner .ecs-nav {
  display: block;
}
.ecs-menu-toggle:focus-visible ~ .ecs-header__inner .ecs-menu-bouton {
  outline: 3px solid var(--ecs-focus);
  outline-offset: 2px;
}

.ecs-nav__liste {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 12px var(--ecs-gutter) 24px;
  list-style: none;
}
.ecs-nav__item {
  border-bottom: 1px solid var(--ecs-border);
}
.ecs-nav__lien,
.ecs-nav__item details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 0;
  color: var(--ecs-heading);
  font: 700 18px/1.25 var(--ecs-font-title);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.ecs-nav__item details > summary::-webkit-details-marker {
  display: none;
}
.ecs-nav__item details > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ecs-violet);
  border-bottom: 2px solid var(--ecs-violet);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--ecs-duration) var(--ecs-ease);
}
.ecs-nav__item details[open] > summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* Panneau du menu : sur mobile, liste simple sous la rubrique */
.ecs-mega {
  display: grid;
  gap: 24px;
  padding: 0 0 20px;
}
.ecs-mega__accroche {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background: var(--ecs-violet);
  color: var(--ecs-on-violet);
}
.ecs-mega__accroche strong {
  font: 700 20px/1.2 var(--ecs-font-title);
}
.ecs-mega__intro {
  margin: 0;
  color: var(--ecs-on-violet-muted);
  font-size: 14px;
}
.ecs-mega__colonne {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ecs-mega__titre {
  margin: 0 0 8px;
  color: var(--ecs-ink-soft);
  font: 700 12px/1.2 var(--ecs-font-title);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ecs-mega__lien {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ecs-heading);
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.ecs-mega__lien:hover {
  background: var(--ecs-lilac-050);
  transform: translateX(4px);
}
.ecs-mega__puce {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ecs-violet);
}
.ecs-mega__nom {
  font: 600 16px/1.3 var(--ecs-font-title);
  color: var(--ecs-heading);
}
.ecs-mega__desc {
  grid-column: 2;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ecs-text-muted);
}

/* Lien simple du menu (sans panneau) */
.ecs-nav__lien {
  color: var(--ecs-heading);
}

/* ==================================================================
 * 4. Recherche
 * ================================================================== */
.ecs-recherche {
  position: static;
}
.ecs-recherche > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ecs-border);
  border-radius: 50%;
  background: var(--ecs-bg);
  cursor: pointer;
  list-style: none;
}
.ecs-recherche > summary::-webkit-details-marker {
  display: none;
}
.ecs-recherche > summary:hover {
  border-color: var(--ecs-violet);
}
.ecs-recherche__loupe {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--ecs-violet);
  border-radius: 50%;
}
.ecs-recherche__loupe::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -6px;
  width: 8px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ecs-violet);
  transform: rotate(45deg);
}
.ecs-recherche__panneau {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ecs-bg);
  border-top: 1px solid var(--ecs-border);
  box-shadow: var(--ecs-shadow-panel);
  padding: 20px var(--ecs-gutter) 24px;
}
.ecs-recherche__panneau .ecs-container {
  padding: 0;
}
.ecs-recherche__suggestions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}
.ecs-recherche__suggestions span.titre {
  font: 700 12px/1 var(--ecs-font-title);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ecs-ink-soft);
}
.ecs-recherche__suggestions a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ecs-link);
  font-weight: 600;
  text-decoration: none;
}
.ecs-recherche__suggestions a:hover {
  background: var(--ecs-lilac-050);
}

/* Menu large (à partir de 1080 px) */
@media (min-width: 1080px) {
  .ecs-header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .ecs-header__actions {
    grid-column: auto;
    grid-row: auto;
    margin-left: 0;
  }
  .ecs-header__cta {
    display: flex;
    grid-column: auto;
    grid-row: auto;
    gap: 10px;
  }
  .ecs-header__btn {
    width: auto;
    padding: 11px 16px;
  }
  .ecs-brand--qualiopi {
    display: flex;
  }
  .ecs-menu-bouton {
    display: none;
  }
  .ecs-nav {
    display: flex;
    position: static;
    flex: 1;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .ecs-nav__liste {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 0;
    font-size: 15px;
  }
  .ecs-nav__item {
    position: static;
    border: 0;
  }
  .ecs-nav__lien,
  .ecs-nav__item details > summary {
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ecs-violet);
    font: 600 15px/1.2 var(--ecs-font-body);
  }
  .ecs-nav__item details > summary:hover,
  .ecs-nav__lien:hover,
  .ecs-nav__item details[open] > summary {
    background: var(--ecs-lilac-050);
  }
  .ecs-nav__item details > summary::after {
    width: 6px;
    height: 6px;
    margin-top: -3px;
  }
  .ecs-nav__item details[open] > summary::after {
    transform: rotate(-135deg) translateY(0);
  }
  .ecs-nav__item details[open] > .ecs-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    max-width: var(--ecs-container);
    margin: 0 auto;
    padding: 24px var(--ecs-gutter) 32px;
    background: var(--ecs-bg);
    border-top: 1px solid var(--ecs-border);
    box-shadow: var(--ecs-shadow-panel);
  }
  .ecs-mega__accroche {
    min-height: 300px;
    border-radius: 24px 24px 24px 90px;
    padding: 28px;
    justify-content: flex-end;
  }
  .ecs-mega__accroche strong {
    font-size: 26px;
    line-height: 1.15;
    max-width: 240px;
  }
  .ecs-mega__titre {
    padding-top: 12px;
  }
}

/* Panneau de menu : on ne peut pas ouvrir deux rubriques à la fois sur grand écran */
@media (min-width: 1080px) {
  .ecs-nav__item:has(details[open]) {
    position: static;
  }
}

/* Recherche : panneau sous l'en-tête sur tous les écrans */
@media (min-width: 1080px) {
  .ecs-recherche__panneau {
    top: 100%;
  }
}

/* ==================================================================
 * 5. Accueil
 * ================================================================== */
.ecs-section {
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 64px var(--ecs-gutter);
  position: relative;
}
@media (min-width: 960px) {
  .ecs-section {
    padding: 88px 24px;
  }
}
.ecs-section--alt {
  background: var(--ecs-surface-alt);
  max-width: none;
}
.ecs-section--alt > .ecs-section__interieur {
  max-width: var(--ecs-container);
  margin: 0 auto;
}
.ecs-section--sombre {
  background: var(--ecs-footer-bg);
  color: #fff;
  max-width: none;
}

/* Hero */
.ecs-hero {
  position: relative;
  overflow: hidden;
  background: var(--ecs-violet);
  color: var(--ecs-on-violet);
}
.ecs-hero__interieur {
  position: relative;
  display: grid;
  gap: 40px;
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 48px var(--ecs-gutter) 56px;
  align-items: center;
}
@media (min-width: 760px) {
  .ecs-hero__interieur {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    padding: 64px 24px 72px;
  }
}
.ecs-hero__texte {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.ecs-hero__titre {
  margin: 0;
  color: #fff;
  font: 700 clamp(34px, 4.6vw, 56px)/1.08 var(--ecs-font-title);
  letter-spacing: -.02em;
}
.ecs-hero__titre-mot {
  display: block;
  color: var(--ecs-yellow);
}
.ecs-hero__accroche {
  margin: -8px 0 0;
  max-width: 560px;
  color: #fff;
  font: 500 clamp(18px, 2vw, 20px)/1.45 var(--ecs-font-body);
}

/* Onglets « Je suis » en boutons radio (fonctionnent sans JavaScript) */
.ecs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
  padding: 6px;
  border-radius: var(--ecs-radius-pill);
  background: var(--ecs-footer-bg);
}
.ecs-tabs__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ecs-tabs__onglet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--ecs-radius-pill);
  color: #fff;
  font: 600 15px/1.2 var(--ecs-font-body);
  cursor: pointer;
}
.ecs-tabs__onglet:hover {
  background: var(--ecs-violet-700);
}
#ecs-tab-candidat:checked ~ .ecs-tabs label[for="ecs-tab-candidat"],
#ecs-tab-entreprise:checked ~ .ecs-tabs label[for="ecs-tab-entreprise"] {
  background: var(--ecs-yellow);
  color: var(--ecs-on-yellow);
}
#ecs-tab-candidat:focus-visible ~ .ecs-tabs label[for="ecs-tab-candidat"],
#ecs-tab-entreprise:focus-visible ~ .ecs-tabs label[for="ecs-tab-entreprise"] {
  outline: 3px solid var(--ecs-focus);
  outline-offset: 2px;
}

.ecs-hero__panneau {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#ecs-tab-candidat:checked ~ .ecs-hero__panneau--entreprise,
#ecs-tab-entreprise:checked ~ .ecs-hero__panneau--candidat {
  display: none;
}
.ecs-hero__panneau p {
  margin: 0;
  max-width: 540px;
  color: var(--ecs-on-violet-muted);
  font-size: 19px;
  line-height: 1.5;
}
.ecs-hero__recherche {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 560px;
  padding: 6px;
  border-radius: var(--ecs-radius-pill);
  background: #fff;
}
.ecs-hero__recherche input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ecs-ink);
  font: 500 16px var(--ecs-font-body);
}
.ecs-hero__recherche input::placeholder {
  color: var(--ecs-ink-soft);
}
.ecs-hero__recherche button {
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--ecs-radius-pill);
  background: var(--ecs-yellow);
  color: var(--ecs-on-yellow);
  font: 700 15px var(--ecs-font-body);
  cursor: pointer;
}
.ecs-hero__recherche button:hover {
  background: var(--ecs-yellow-hover);
}
.ecs-hero__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ecs-hero__suggestions a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid #6b3fa6;
  border-radius: var(--ecs-radius-pill);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.ecs-hero__suggestions a:hover {
  background: #4a1784;
}
.ecs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ecs-hero__note {
  margin: 0;
  color: var(--ecs-on-violet-soft);
  font-size: 14px;
}
.ecs-hero__note a {
  color: #fff;
  font-weight: 600;
}
.ecs-hero__visuel {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 28px 28px 28px 120px;
  background: repeating-linear-gradient(135deg, #4a1784 0 12px, #521b8f 12px 24px);
  overflow: hidden;
}
.ecs-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ecs-hero__decor span {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.ecs-hero__decor .d1 {
  right: -140px;
  bottom: -180px;
  width: 560px;
  height: 560px;
  background: #4a1784;
  opacity: .7;
}
.ecs-hero__decor .d2 {
  left: -90px;
  top: -110px;
  width: 300px;
  height: 300px;
  border: 2px dashed #6b3fa6;
}
.ecs-hero__decor .d3 {
  left: 42%;
  top: 40px;
  width: 18px;
  height: 18px;
  background: var(--ecs-yellow);
}
.ecs-hero__parents {
  margin: 0;
  color: var(--ecs-on-violet-soft);
  font-size: 14px;
}
.ecs-hero__parents a {
  color: #fff;
  font-weight: 600;
}

/* Bandeau défilant (CSS seul) */
.ecs-marquee {
  overflow: hidden;
  background: var(--ecs-yellow);
  color: var(--ecs-on-yellow);
  padding: 16px 0;
}
.ecs-marquee__piste {
  display: inline-flex;
  width: max-content;
  font: 700 22px/1.2 var(--ecs-font-title);
  animation: ecs-defile 28s linear infinite;
}
.ecs-marquee--inverse {
  background: var(--ecs-violet);
  color: #fff;
  padding: 18px 0;
  transform: rotate(-1.5deg);
  margin: 20px -20px 40px;
}
.ecs-marquee--inverse .ecs-marquee__piste {
  font: 600 20px/1.2 var(--ecs-font-title);
  animation-duration: 40s;
  animation-direction: reverse;
}
.ecs-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  white-space: nowrap;
}
.ecs-marquee__item::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ecs-violet);
}
.ecs-marquee--inverse .ecs-marquee__item::after {
  background: var(--ecs-yellow);
}
@keyframes ecs-defile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Accès rapides (superposés sous le hero) */
.ecs-acces {
  max-width: var(--ecs-container);
  margin: 36px auto 0;
  padding: 0 var(--ecs-gutter);
  position: relative;
  z-index: 2;
}
.ecs-acces__liste {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .ecs-acces__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .ecs-acces__liste {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ecs-acces__pastille {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--ecs-violet);
  position: relative;
}
.ecs-acces__pastille::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ecs-yellow);
}
.ecs-acces__pastille--carre {
  border-radius: 14px;
}

/* Bento « L'alternance » */
.ecs-bento {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ecs-bento__carte {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 280px;
  padding: 32px;
  border-radius: var(--ecs-radius-xl);
  transition: transform var(--ecs-duration) var(--ecs-ease);
}
.ecs-bento__carte:hover {
  transform: translateY(-4px);
}
.ecs-bento__carte h3 {
  margin: 0;
  font: 700 clamp(24px, 2.4vw, 30px)/1.15 var(--ecs-font-title);
  max-width: 440px;
}
.ecs-bento__carte p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 440px;
}
.ecs-bento__carte--violet {
  background: var(--ecs-violet);
  color: #fff;
  min-height: 300px;
}
.ecs-bento__carte--violet p {
  color: var(--ecs-on-violet-muted);
}
.ecs-bento__carte--jaune {
  background: var(--ecs-yellow);
  color: var(--ecs-on-yellow);
}
.ecs-bento__carte--jaune p {
  color: var(--ecs-on-yellow-muted);
  font-size: 15px;
}
.ecs-bento__carte--doux {
  background: var(--ecs-lilac-050);
  color: var(--ecs-text);
}
.ecs-bento__carte--doux h3 {
  color: var(--ecs-heading);
}
.ecs-bento__carte--doux p {
  color: var(--ecs-text-muted);
  font-size: 15px;
}
.ecs-bento__carte--blanc {
  background: var(--ecs-surface);
  border: 1.5px solid var(--ecs-border);
  color: var(--ecs-text);
  min-height: 280px;
}
.ecs-bento__carte--blanc h3 {
  color: var(--ecs-heading);
}
.ecs-bento__carte--blanc p {
  color: var(--ecs-text-muted);
}
.ecs-bento__carte--blanc:hover {
  border-color: var(--ecs-violet);
}
.ecs-bento__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ecs-bento__decor span {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.ecs-bento__decor--salaire span {
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: #4a1784;
}
.ecs-bento__barres {
  position: absolute;
  right: 36px;
  top: 32px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
}
.ecs-bento__barres span {
  display: block;
  width: 26px;
  border-radius: 10px;
  background: #5a2a94;
  height: 100%;
}
.ecs-bento__barres span:last-child {
  background: var(--ecs-yellow);
}
@media (min-width: 760px) {
  .ecs-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ecs-bento__carte--large {
    grid-column: span 2;
  }
}

/* Secteurs */
.ecs-secteurs {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .ecs-secteurs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .ecs-secteurs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ecs-secteurs > li {
  display: flex;
  min-width: 0;
}
.ecs-secteurs > li > .ecs-card {
  flex: 1;
}
.ecs-secteur__visuel {
  height: 170px;
  padding: 14px;
  align-items: flex-end;
  background: repeating-linear-gradient(135deg, var(--ecs-lilac-050) 0 10px, var(--ecs-lilac-100) 10px 20px);
  position: relative;
  overflow: hidden;
}
.ecs-secteur__diplomes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ecs-secteur__diplomes li {
  padding: 6px 10px;
  border-radius: var(--ecs-radius-pill);
  background: var(--ecs-lilac-050);
  color: var(--ecs-violet);
  font-size: 13px;
  font-weight: 600;
}
.ecs-secteurs .ecs-card--lien:hover {
  box-shadow: var(--ecs-shadow-lift);
}

/* Bandeau quiz */
.ecs-quiz {
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 0 var(--ecs-gutter) 64px;
}
@media (min-width: 960px) {
  .ecs-quiz {
    padding: 0 24px 88px;
  }
}
.ecs-quiz__carte {
  display: grid;
  gap: 28px;
  padding: 40px clamp(24px, 4vw, 56px);
  border-radius: var(--ecs-radius-xl);
  background: var(--ecs-yellow);
  color: var(--ecs-on-yellow);
}
@media (min-width: 760px) {
  .ecs-quiz__carte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}
.ecs-quiz__texte {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ecs-quiz__titre {
  margin: 0;
  color: var(--ecs-on-yellow);
  font: 700 clamp(26px, 3vw, 36px)/1.15 var(--ecs-font-title);
}
.ecs-quiz__texte p {
  margin: 0;
  color: var(--ecs-on-yellow-muted);
  font-size: 16px;
  line-height: 1.55;
}
.ecs-quiz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Devenir apprenti : texte à gauche, étapes à droite */
.ecs-apprenti {
  display: grid;
  gap: 40px;
  padding: 64px var(--ecs-gutter);
  max-width: var(--ecs-container);
  margin: 0 auto;
}
@media (min-width: 960px) {
  .ecs-apprenti {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    padding: 80px 24px;
  }
}
.ecs-apprenti__texte {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ecs-apprenti__texte p {
  margin: 0;
  color: var(--ecs-text-muted);
  font-size: 17px;
  line-height: 1.6;
}
.ecs-apprenti__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.ecs-etapes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.ecs-etapes li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--ecs-surface);
}
.ecs-etapes__numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ecs-violet);
  color: var(--ecs-yellow);
  font: 700 18px var(--ecs-font-title);
}
.ecs-etapes__corps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ecs-etapes__titre {
  color: var(--ecs-heading);
  font: 600 17px/1.3 var(--ecs-font-title);
}
.ecs-etapes__texte {
  color: var(--ecs-text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Agenda : réunions et portes ouvertes (données Loop) */
.ecs-agenda {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .ecs-agenda {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .ecs-agenda {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ecs-agenda__carte {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--ecs-border);
  border-radius: 20px;
  background: var(--ecs-surface);
}
.ecs-agenda__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  border-radius: 14px;
  background: var(--ecs-violet);
  color: #fff;
}
.ecs-agenda__jour {
  font: 700 30px/1 var(--ecs-font-title);
}
.ecs-agenda__mois {
  margin-top: 4px;
  color: var(--ecs-yellow);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}
.ecs-agenda__corps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ecs-agenda__type {
  color: var(--ecs-violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ecs-agenda__titre {
  color: var(--ecs-text);
  font: 600 17px/1.3 var(--ecs-font-title);
}
.ecs-agenda__meta {
  color: var(--ecs-text-muted);
  font-size: 14px;
}

/* Actualités */
.ecs-actus {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .ecs-actus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .ecs-actus {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ecs-actus__lien {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ecs-text);
  text-decoration: none;
  border-radius: var(--ecs-radius-lg);
  transition: transform .3s var(--ecs-ease);
}
.ecs-actus__lien:hover {
  transform: translateY(-4px);
  color: var(--ecs-text);
}
.ecs-actus__visuel {
  aspect-ratio: 16 / 10;
  border-radius: var(--ecs-radius-lg);
}
.ecs-actus__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ecs-ink-soft);
}
.ecs-actus__cat {
  padding: 4px 10px;
  border-radius: var(--ecs-radius-pill);
  background: var(--ecs-yellow);
  color: var(--ecs-on-yellow);
  font-weight: 700;
}
.ecs-actus__titre {
  color: var(--ecs-heading);
  font: 600 19px/1.3 var(--ecs-font-title);
  text-wrap: pretty;
}

/* Entreprises : bloc sombre */
.ecs-entreprises {
  position: relative;
  overflow: hidden;
  display: grid;
  border-radius: var(--ecs-radius-xl);
  background: var(--ecs-footer-bg);
  color: #fff;
}
@media (min-width: 860px) {
  .ecs-entreprises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ecs-entreprises__texte {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4vw, 56px);
}
.ecs-entreprises__texte .ecs-h2 {
  color: #fff;
}
.ecs-entreprises__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ecs-on-violet-muted);
  font-size: 16px;
  line-height: 1.5;
}
.ecs-entreprises__points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ecs-entreprises__points li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--ecs-yellow);
}
.ecs-entreprises__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.ecs-entreprises__legal {
  margin: 0;
  color: var(--ecs-on-violet-soft);
  font-size: 13px;
  line-height: 1.5;
}
.ecs-entreprises__visuel {
  min-height: 300px;
  background: repeating-linear-gradient(135deg, var(--ecs-violet) 0 12px, #3d0c76 12px 24px);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

/* Direction : portrait et message */
.ecs-direction {
  position: relative;
  background: var(--ecs-surface-alt);
}
.ecs-direction__interieur {
  display: grid;
  gap: 48px;
  align-items: center;
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 64px var(--ecs-gutter);
}
@media (min-width: 760px) {
  .ecs-direction__interieur {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    padding: 80px 24px;
  }
}
.ecs-direction__portrait {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 50% 50% 50% 16px;
  justify-self: center;
}
.ecs-direction__corps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.ecs-direction__message {
  margin: 0;
  color: var(--ecs-text);
  font: 500 clamp(19px, 2vw, 24px)/1.5 var(--ecs-font-body);
}
.ecs-direction__signature {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ecs-direction__signature strong {
  color: var(--ecs-heading);
  font: 600 16px var(--ecs-font-title);
}
.ecs-direction__signature span {
  color: var(--ecs-text-muted);
  font-size: 14px;
}
.ecs-valeurs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ecs-valeurs li {
  padding: 7px 14px;
  border: 1.5px solid var(--ecs-border-strong);
  border-radius: var(--ecs-radius-pill);
  color: var(--ecs-violet);
  font-size: 14px;
  font-weight: 600;
}

/* La vie de l'école : grille de photos (cadres à remplacer) */
.ecs-vie-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 20px;
}
@media (min-width: 760px) {
  .ecs-vie-photos {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 200px 200px;
  }
  .ecs-vie-photos > :first-child {
    grid-row: span 2;
  }
  .ecs-vie-photos > :last-child {
    grid-column: span 2;
  }
}
.ecs-vie-photos > .ecs-placeholder {
  min-height: 180px;
  border-radius: var(--ecs-radius-lg);
  padding: 16px;
}

/* Témoignages */
.ecs-temoignages {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .ecs-temoignages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .ecs-temoignages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ecs-temoignage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin: 0;
  overflow: hidden;
  border: 1.5px solid var(--ecs-border);
  border-radius: var(--ecs-radius-lg);
  background: var(--ecs-surface);
}
.ecs-temoignage__auteur {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--ecs-border);
}
.ecs-temoignage__avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: repeating-linear-gradient(135deg, var(--ecs-lilac-100) 0 6px, var(--ecs-border-strong) 6px 12px);
}
.ecs-temoignage__identite {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ecs-temoignage__nom {
  color: var(--ecs-heading);
  font: 600 16px var(--ecs-font-title);
}
.ecs-temoignage__profil {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: var(--ecs-radius-pill);
  background: var(--ecs-yellow);
  color: var(--ecs-on-yellow);
  font-size: 12px;
  font-weight: 700;
}
.ecs-temoignage__texte {
  margin: 0;
  padding: 22px;
  color: var(--ecs-text);
  font-size: 16px;
  line-height: 1.6;
}
.ecs-temoignage__pied {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 22px;
  background: var(--ecs-surface-alt);
  font-size: 13px;
}
.ecs-temoignage__pied strong {
  color: var(--ecs-violet);
  font-weight: 600;
}
.ecs-temoignage__pied span {
  color: var(--ecs-ink-soft);
}

/* Qualité, résultats, handicap */
.ecs-qualite {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .ecs-qualite {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .ecs-qualite {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ecs-qualite > .ecs-card {
  padding: 28px;
  gap: 14px;
}
.ecs-qualite__logo {
  height: 72px;
  width: auto;
  align-self: flex-start;
}
.ecs-qualite__mention {
  color: var(--ecs-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.ecs-qualite > .ecs-card--violet {
  background: var(--ecs-violet);
  color: #fff;
  border-color: var(--ecs-violet);
}
.ecs-qualite > .ecs-card--violet .ecs-h3 {
  color: #fff;
}
.ecs-qualite > .ecs-card--violet .ecs-card__texte {
  color: var(--ecs-on-violet-muted);
}
.ecs-qualite .ecs-card__suite {
  color: inherit;
}
.ecs-qualite > .ecs-card--violet .ecs-card__suite {
  color: var(--ecs-yellow);
}

/* Espace apprenant */
.ecs-espace {
  position: relative;
  background: var(--ecs-surface-alt);
  overflow: hidden;
}
.ecs-espace__interieur {
  display: grid;
  gap: 56px;
  align-items: center;
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 64px var(--ecs-gutter);
}
@media (min-width: 960px) {
  .ecs-espace__interieur {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 88px 24px;
  }
}
.ecs-espace__texte {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ecs-espace__texte > p {
  margin: 0;
  color: var(--ecs-text-muted);
  font-size: 17px;
  line-height: 1.6;
}
.ecs-espace__liste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ecs-text);
  font-size: 16px;
  line-height: 1.45;
}
.ecs-espace__liste li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ecs-espace__puce {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ecs-violet);
  position: relative;
}
.ecs-espace__puce::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--ecs-yellow);
}
.ecs-espace__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.ecs-espace__actions small {
  color: var(--ecs-ink-soft);
  font-size: 13px;
}
.ecs-espace__apercu {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
}

/* Demandes en ligne */
.ecs-demandes {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .ecs-demandes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .ecs-demandes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ecs-demande {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  padding: 20px 22px;
  border: 1.5px solid var(--ecs-border);
  border-radius: 20px;
  background: var(--ecs-surface);
  color: var(--ecs-text);
  text-decoration: none;
  transition: transform .25s var(--ecs-ease), border-color .25s;
}
.ecs-demande:hover {
  border-color: var(--ecs-violet);
  transform: translateY(-3px);
  color: var(--ecs-text);
}
.ecs-demande__titre {
  color: var(--ecs-heading);
  font: 600 18px/1.3 var(--ecs-font-title);
}
.ecs-demande__fleche {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ecs-yellow);
  color: var(--ecs-on-yellow);
  font-weight: 700;
  font-size: 18px;
}
.ecs-demande__texte {
  color: var(--ecs-text-muted);
  font-size: 14px;
}

/* ==================================================================
 * 6. Pages intérieures
 * ================================================================== */
.ecs-page {
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 24px var(--ecs-gutter) 88px;
}
.ecs-page__titre {
  margin: 0 0 24px;
  color: var(--ecs-heading);
  font: 700 clamp(30px, 4vw, 48px)/1.12 var(--ecs-font-title);
  letter-spacing: -.01em;
}
.ecs-page__corps {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
}
.ecs-page__corps h2 {
  margin: 2.2em 0 .6em;
  color: var(--ecs-heading);
  font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--ecs-font-title);
}
.ecs-page__corps h3 {
  margin: 1.8em 0 .5em;
  color: var(--ecs-heading);
  font: 600 20px/1.3 var(--ecs-font-title);
}
.ecs-page__corps p,
.ecs-page__corps ul,
.ecs-page__corps ol {
  margin: 0 0 1em;
}
.ecs-page__corps img {
  height: auto;
  border-radius: var(--ecs-radius-md);
}
.ecs-page__maj {
  margin: 32px 0 0;
  color: var(--ecs-ink-soft);
  font-size: 13px;
}
.ecs-page__vide {
  max-width: 640px;
  color: var(--ecs-text-muted);
}

/* Liste d'actualités (page d'index) */
.ecs-liste-actus {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .ecs-liste-actus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .ecs-liste-actus {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Pagination simple */
.ecs-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.ecs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--ecs-border-strong);
  border-radius: var(--ecs-radius-pill);
  color: var(--ecs-violet);
  font-weight: 600;
  text-decoration: none;
}
.ecs-pagination .page-numbers.current {
  background: var(--ecs-violet);
  border-color: var(--ecs-violet);
  color: #fff;
}

/* Page 404 */
.ecs-404 {
  display: grid;
  gap: 20px;
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 72px var(--ecs-gutter) 96px;
}
.ecs-404__code {
  margin: 0;
  color: var(--ecs-violet);
  font: 700 clamp(64px, 12vw, 120px)/1 var(--ecs-font-title);
}
.ecs-404__texte {
  max-width: 560px;
  margin: 0;
  color: var(--ecs-text-muted);
  font-size: 18px;
}
.ecs-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ecs-404__recherche {
  max-width: 560px;
}

/* ==================================================================
 * 7. Pied de page et bandeau cookies
 * ================================================================== */
.ecs-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ecs-footer-bg);
  color: var(--ecs-footer-text);
  font-size: 14px;
}
.ecs-footer__interieur {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: var(--ecs-container);
  margin: 0 auto;
  padding: 56px var(--ecs-gutter) 28px;
}
.ecs-footer__grille {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .ecs-footer__grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .ecs-footer__grille {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ecs-footer__bloc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ecs-footer__bloc-titre {
  margin: 0;
  color: #fff;
  font: 600 15px/1.3 var(--ecs-font-title);
}
.ecs-footer__liens {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ecs-footer a {
  color: var(--ecs-footer-text);
  text-decoration: none;
}
.ecs-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.ecs-footer__logo-ecs {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
}
.ecs-footer__logo-ecs img {
  height: 52px;
  width: auto;
}
.ecs-footer__coordonnees {
  line-height: 1.6;
}
.ecs-footer__contact {
  color: var(--ecs-yellow);
  font-weight: 700;
}
.ecs-footer__reseaux {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ecs-footer__reseaux-titre {
  margin-right: 6px;
  color: #fff;
  font: 600 15px var(--ecs-font-title);
}
.ecs-footer__reseaux a {
  padding: 9px 16px;
  border: 1px solid #4d2a75;
  border-radius: var(--ecs-radius-pill);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.ecs-footer__reseaux a:hover {
  background: var(--ecs-violet);
  color: var(--ecs-yellow);
}
.ecs-footer__qualiopi {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--ecs-footer-line);
}
.ecs-footer__qualiopi-lien {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
}
.ecs-footer__qualiopi-lien img {
  height: 52px;
  width: auto;
}
.ecs-footer__mentions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ecs-footer-text-soft);
  font-size: 13px;
  line-height: 1.6;
}
.ecs-footer__mentions p {
  margin: 0;
}
.ecs-footer__mentions a {
  color: #fff;
  text-decoration: underline;
}

/* Le bandeau cookies est rendu par le lot consentement (inc/cmp.php, classes ecs-cmp__). */

/* Visibilité de la topbar : utilitaires visibles à partir de 760 px */
@media (min-width: 760px) {
  .ecs-topbar__liens {
    display: flex;
  }
  .ecs-header__inner {
    padding: 12px 24px;
  }
  .ecs-brand__img {
    height: 56px;
  }
  .ecs-header__actions {
    gap: 10px;
  }
  .ecs-header__btn {
    padding: 11px 16px;
    font-size: 14px;
  }
}

/* Impression : pied et en-tête simples */
@media print {
  .ecs-topbar,
  .ecs-header,
  .ecs-skip {
    display: none !important;
  }
}

/* ==================================================================
 * Bureau (à partir de 1080 px) : en-tête sur une ligne, comme la maquette.
 * Ordre des colonnes : logo | menu | recherche | Connexion | Préinscription
 * ================================================================== */
@media (min-width: 1080px) {
  .ecs-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    gap: 0 16px;
    padding: 10px var(--ecs-gutter);
  }
  .ecs-brand:not(.ecs-brand--qualiopi) { grid-column: 1; grid-row: 1; }
  .ecs-brand__img { height: 56px; }
  .ecs-brand--qualiopi { display: none; }
  .ecs-nav {
    grid-column: 2;
    grid-row: 1;
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .ecs-nav__liste {
    flex-direction: row;
    justify-content: center;
    gap: 2px;
    padding: 0;
  }
  .ecs-nav__item { border: 0; }
  .ecs-header__actions { grid-column: 3; grid-row: 1; }
  .ecs-header__cta { display: contents; }
  .ecs-header__btn { grid-row: 1; width: auto; }
  .ecs-header__cta > :nth-child(1) { grid-column: 4; }
  .ecs-header__cta > :nth-child(2) { grid-column: 5; }
  .ecs-menu-bouton { display: none; }
}

/* Pastilles de la carte du hero (maquette) : gratuité et Qualiopi, sans photo inventée */
.ecs-hero__visuel { position: relative; }
.ecs-hero__badge {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ecs-violet);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.ecs-hero__badge small { font-size: 12px; font-weight: 400; color: #5b4d6e; }
.ecs-hero__badge--gratuit { left: 24px; top: 28px; }
.ecs-hero__badge--qualiopi { right: 24px; bottom: 28px; background: var(--ecs-yellow); }

/* ==================================================================
 * Pages de contenu (gabarit templates/parts/ecs-page-contenu.php)
 * ================================================================== */
.ecs-page-contenu { padding: 0 0 72px; }
.ecs-page-wrap { max-width: var(--ecs-container); margin: 0 auto; padding: 0 var(--ecs-gutter); }
.ecs-fil ol {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 24px 0 0; padding: 0;
  font-size: 14px; color: var(--ecs-text-muted);
}
.ecs-fil li + li::before { content: "›"; margin-right: 6px; }
.ecs-fil a { color: var(--ecs-violet); }
.ecs-page-entete { padding: 36px 0 28px; border-bottom: 1px solid var(--ecs-border); margin-bottom: 8px; }
.ecs-page-entete h1 {
  margin: 0 0 16px; color: var(--ecs-heading);
  font: 700 clamp(32px, 4vw, 46px)/1.12 var(--ecs-font-title);
}
.ecs-chapo { margin: 0; max-width: 72ch; font-size: 18px; line-height: 1.6; color: var(--ecs-text); }
.ecs-page-contenu .ecs-section { padding: 32px 0; border-bottom: 1px solid var(--ecs-border); }
.ecs-page-contenu .ecs-section > h2 { margin: 0 0 16px; color: var(--ecs-heading); font: 700 28px/1.2 var(--ecs-font-title); }
.ecs-page-contenu .ecs-section > p, .ecs-page-contenu .ecs-section > .ecs-falc p, .ecs-page-contenu .ecs-section > div > p { max-width: 72ch; line-height: 1.7; }
.ecs-liste { padding-left: 22px; line-height: 1.7; }
.ecs-liste li { margin: 6px 0; }
.ecs-glossaire dt { margin-top: 14px; font-weight: 700; color: var(--ecs-heading); }
.ecs-glossaire dd { margin: 4px 0 0; line-height: 1.6; }
.ecs-faq details { padding: 14px 0; border-bottom: 1px solid var(--ecs-border); }
.ecs-faq summary { cursor: pointer; font: 600 18px/1.3 var(--ecs-font-title); color: var(--ecs-heading); }
.ecs-faq details p { margin: 10px 0 0; line-height: 1.7; }
.ecs-falc { margin: 20px 0; padding: 20px 24px; border-radius: 16px; background: var(--ecs-lilac-050); }
.ecs-falc h3 { margin: 0 0 10px; color: var(--ecs-heading); font: 700 20px/1.25 var(--ecs-font-title); }
.ecs-table-wrap { overflow-x: auto; margin: 16px 0; }
.ecs-tableau { width: 100%; border-collapse: collapse; }
.ecs-tableau th, .ecs-tableau td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ecs-border); }
.ecs-tableau th { background: var(--ecs-lilac-050); color: var(--ecs-heading); }
.ecs-alerte { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--ecs-yellow); border-radius: 12px; background: #fff9db; }
.ecs-alerte p { margin: 0; }
.ecs-cartes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; margin: 16px 0; padding: 0; }
.ecs-carte { padding: 18px; border: 1px solid var(--ecs-border); border-radius: 16px; background: var(--ecs-surface); }
.ecs-carte a { font-weight: 700; color: var(--ecs-heading); text-decoration: none; }
.ecs-carte a:hover { color: var(--ecs-violet); text-decoration: underline; }
.ecs-a-confirmer { padding: 0 4px; border-radius: 4px; background: #fff3a8; color: var(--ecs-heading); }
.ecs-note { font-style: italic; color: var(--ecs-text-muted); }
.ecs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.ecs-maj { margin-top: 40px; font-size: 14px; color: var(--ecs-text-muted); }
.ecs-kicker { margin: 0 0 8px; color: var(--ecs-violet); font: 700 13px/1.2 var(--ecs-font-title); letter-spacing: .08em; text-transform: uppercase; }

/* Titre du hero (maquette) : seul le mot qui change est jaune, les autres mots restent blancs */
.ecs-hero__titre-mot { display: block; color: #fff; }
.ecs-hero__rotation { display: inline-grid; color: var(--ecs-yellow); }
.ecs-hero__rotation > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: ecs-rotation 12s infinite;
}
.ecs-hero__rotation > span:nth-child(2) { animation-delay: 3s; }
.ecs-hero__rotation > span:nth-child(3) { animation-delay: 6s; }
.ecs-hero__rotation > span:nth-child(4) { animation-delay: 9s; }
@keyframes ecs-rotation {
  0% { opacity: 0; }
  2% { opacity: 1; }
  23% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ecs-hero__rotation > span { animation: none; opacity: 0; }
  .ecs-hero__rotation > span:first-child { opacity: 1; }
}

/* Formes décoratives de la carte du hero (maquette) */
.ecs-hero__disque, .ecs-hero__pastille, .ecs-hero__barre { position: absolute; display: block; }
.ecs-hero__disque { top: 18px; right: 36px; width: 64px; height: 64px; border-radius: 50%; background: var(--ecs-yellow); }
.ecs-hero__pastille { top: 108px; right: 60px; width: 16px; height: 16px; border-radius: 50%; background: var(--ecs-lilac-200, #cdbfe0); }
.ecs-hero__barre { left: 0; bottom: 40px; width: 146px; height: 22px; border-radius: 0 12px 12px 0; background: var(--ecs-yellow); }
