/* ==========================================================================
   Plateforme INNOV'events
   Système visuel repris du site principal agence-evenementielle-innovevents.fr :
   noir #0a0a0a, cartes #111, Unbounded pour les titres, DM Sans pour le texte,
   vert #86BD4A et son dégradé vers #c8ff00.
   ========================================================================== */

/* ---------- Polices (auto-hébergées, aucun appel externe) ---------- */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin-etendu.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dmsans-latin-etendu.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/material-symbols-rounded.woff2') format('woff2');
}

/* ---------- Jetons ---------- */

:root {
  --noir: #0a0a0a;
  --carbone: #111111;
  --graphite: #161616;
  --blanc: #ffffff;
  --papier: #f5f5f3;

  --vert: #86bd4a;
  --vert-clair: #b8e86e;
  --acide: #c8ff00;
  /* #86BD4A sur fond blanc ne donne que 2,2:1 de contraste : sur les sections
     claires, on passe à cette nuance assombrie, lisible par tous. */
  --vert-sur-blanc: #4a7a1c;
  --degrade: linear-gradient(135deg, #86bd4a 0%, #c8ff00 100%);
  --halo: 0 4px 20px rgba(134, 189, 74, 0.35);
  --halo-fort: 0 8px 32px rgba(134, 189, 74, 0.5);

  --texte: rgba(255, 255, 255, 0.72);
  --texte-doux: rgba(255, 255, 255, 0.5);
  --texte-pale: rgba(255, 255, 255, 0.36);
  --trait: rgba(255, 255, 255, 0.08);
  --trait-fort: rgba(255, 255, 255, 0.18);

  --rayon: 16px;
  --rayon-grand: 20px;
  --pilule: 100px;

  --police-titre: 'Unbounded', system-ui, sans-serif;
  --police-texte: 'DM Sans', system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.ico {
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Texte en dégradé : la signature du site principal (titres, chiffres clés). */
.degrade,
.stat__valeur {
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:focus-visible {
  outline: 2px solid var(--acide);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Logo ---------- */

.logo-lien { display: inline-flex; flex: none; }
.logo { display: block; height: 40px; width: auto; }
.logo--pied { height: 26px; opacity: 0.8; }

/* ---------- Boutons ---------- */

.bouton-action,
.bouton-google {
  background: var(--degrade);
  color: var(--noir);
  font-family: var(--police-titre);
  font-weight: 500;
  box-shadow: var(--halo);
  transition: box-shadow 0.2s, transform 0.2s;
}
.bouton-action:hover,
.bouton-google:hover { box-shadow: var(--halo-fort); transform: translateY(-1px); }
.bouton-action:active,
.bouton-google:active { transform: translateY(0); }

.bouton-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--pilule);
  font-size: 12.5px;
  white-space: nowrap;
}
.bouton-action .ico { font-size: 20px; margin-left: -6px; }

.bouton-secondaire,
.bouton-deconnexion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--trait-fort);
  border-radius: var(--pilule);
  color: var(--texte);
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: 12px;
  transition: border-color 0.2s, color 0.2s;
}
.bouton-secondaire:hover,
.bouton-deconnexion:hover { border-color: var(--vert); color: var(--blanc); }
.bouton-secondaire { padding: 15px 28px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Connexion ---------- */

.connexion {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--noir);
}
/* Halo vert discret en haut à droite, en écho à la photo assombrie teintée de
   vert qui ouvre le site principal. */
.connexion__filigrane {
  position: absolute;
  top: -30vw;
  right: -20vw;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(134, 189, 74, 0.16) 0%, rgba(10, 10, 10, 0) 62%);
  pointer-events: none;
}
.connexion__entete {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 48px;
}
.connexion__aide { font-size: 14px; color: var(--texte-doux); }
.connexion__aide a { color: var(--vert-clair); }
.connexion__aide a:hover { text-decoration: underline; }

.connexion__corps {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  padding: 24px 48px 64px;
}
.connexion__hero { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

.connexion__sur-titre {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vert-clair);
}
.connexion__sur-titre::before {
  content: '';
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--vert);
}

.connexion__titre {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.connexion__titre .degrade { display: block; }

.connexion__chapo {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--texte);
  max-width: 54ch;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding-top: 28px;
  border-top: 1px solid var(--trait);
}
.stat__valeur {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}
.stat__libelle {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-pale);
}

.carte-connexion {
  display: flex;
  flex-direction: column;
  padding: 40px 36px 30px;
  background: var(--carbone);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
}
.carte-connexion__sur-titre {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-clair);
}
.carte-connexion__titre {
  margin: 14px 0 0;
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.carte-connexion__texte {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--texte);
}
.carte-connexion__filet { height: 1px; margin: 28px 0; background: var(--trait); }

.bouton-google {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 8px 22px 8px 8px;
  border: 0;
  border-radius: var(--pilule);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.bouton-google__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blanc);
}
.bouton-google__logo svg { width: 20px; height: 20px; }
.bouton-google__texte { flex: 1; }
.bouton-google .ico { font-size: 20px; }

.mention-chiffree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--texte-doux);
}
.mention-chiffree .ico { font-size: 18px; color: var(--vert); }

.carte-connexion__pied {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--trait);
  font-size: 12.5px;
  color: var(--texte-pale);
}
.carte-connexion__pied a:hover { color: var(--blanc); }

.alerte {
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 110, 90, 0.35);
  border-radius: 12px;
  background: rgba(255, 110, 90, 0.1);
  font-size: 14px;
  line-height: 1.45;
  color: #ffb8ab;
}
.alerte--info {
  border-color: rgba(134, 189, 74, 0.35);
  background: rgba(134, 189, 74, 0.1);
  color: var(--vert-clair);
}

/* ---------- Accueil ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--noir);
}

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 40px;
  background: rgba(10, 10, 10, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trait);
}
.entete .logo { height: 34px; }
.entete__espace { flex: 1; }
.entete__droite { display: flex; align-items: center; gap: 14px; }
.entete__identite {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  min-width: 0;
}
.entete__agence { font-size: 14px; font-weight: 500; }
.entete__email { font-size: 12.5px; color: var(--texte-doux); }

.entete__avatar {
  position: relative;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--degrade);
  color: var(--noir);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 13px;
}
/* La photo Google se pose par-dessus les initiales, qui restent dans le flux :
   si l'URL expire ou échoue, elles réapparaissent sans une ligne de JavaScript. */
.entete__avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bouton-deconnexion { height: 40px; padding: 0 18px; }
.bouton-deconnexion .ico { font-size: 18px; }

.titre-page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 56px 40px 28px;
}
.titre-page h1 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.titre-page__compte { margin: 12px 0 0; font-size: 15px; color: var(--texte-doux); }

/* ---------- Grille des modules ---------- */

.grille-modules {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(236px, auto);
  gap: 16px;
  padding: 0 40px 64px;
}

.box {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--carbone);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  color: var(--blanc);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.box:hover { border-color: rgba(134, 189, 74, 0.45); background-color: var(--graphite); }
.box--l3 { grid-column: span 3; padding: 28px 28px 24px; }
.box--l2 { grid-column: span 2; padding: 24px 24px 20px; }

/* La box primaire est le seul aplat de dégradé de la grille : c'est elle qu'on
   voit en premier, tout le reste reste sobre. */
.box--primaire {
  background: var(--degrade);
  border-color: transparent;
  color: var(--noir);
}
.box--primaire:hover {
  background: var(--degrade);
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(134, 189, 74, 0.32);
}

/* Accent : bordure d'un pixel en dégradé, fond carbone. */
.box--accent {
  border-color: transparent;
  background:
    linear-gradient(var(--carbone), var(--carbone)) padding-box,
    var(--degrade) border-box;
}
.box--accent:hover {
  border-color: transparent;
  background:
    linear-gradient(var(--graphite), var(--graphite)) padding-box,
    var(--degrade) border-box;
}

.box__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.box__reperes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.box__categorie { font-size: 14px; font-weight: 500; color: var(--texte-doux); }
.box--primaire .box__categorie { color: rgba(10, 10, 10, 0.68); }

.box__une {
  padding: 5px 10px;
  border-radius: var(--pilule);
  background: rgba(134, 189, 74, 0.14);
  color: var(--vert-clair);
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: 10px;
}
.box--primaire .box__une { background: var(--noir); color: var(--acide); }

.box__fleche {
  font-size: 22px;
  color: var(--texte-pale);
  transition: transform 0.2s, color 0.2s;
}
.box:hover .box__fleche { color: var(--vert); transform: translate(2px, -2px); }
.box--primaire .box__fleche,
.box--primaire:hover .box__fleche { color: var(--noir); }

.box__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-top: 22px;
  border-radius: 14px;
  background: rgba(134, 189, 74, 0.12);
  color: var(--vert);
}
.box__icone .ico { font-size: 28px; }
.box--l2 .box__icone { width: 46px; height: 46px; margin-top: 20px; border-radius: 12px; }
.box--l2 .box__icone .ico { font-size: 24px; }
.box--primaire .box__icone { background: rgba(10, 10, 10, 0.12); color: var(--noir); }
.box--accent .box__icone { background: var(--degrade); color: var(--noir); }

.box__titre {
  margin: 18px 0 0;
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.box--l2 .box__titre { margin-top: 16px; font-weight: 700; font-size: 19px; line-height: 1.2; }

.box__desc {
  margin: 10px 0 0;
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--texte);
}
.box--l2 .box__desc { font-size: 14.5px; }
.box--primaire .box__desc { color: rgba(10, 10, 10, 0.78); }

.box__ressort { flex: 1; min-height: 16px; }

.box__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--trait);
}
.box--primaire .box__pied { border-top-color: rgba(10, 10, 10, 0.18); }

.box__domaine {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--texte-pale);
}
.box--primaire .box__domaine { color: rgba(10, 10, 10, 0.6); }

.statut {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: var(--pilule);
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: 10.5px;
}
.statut--plein { background: var(--degrade); color: var(--noir); }
.statut--accent { background: rgba(134, 189, 74, 0.14); color: var(--vert-clair); }
.statut--discret { padding-left: 0; padding-right: 0; color: var(--texte-pale); }
.box--primaire .statut--plein,
.box--primaire .statut--accent { background: var(--noir); color: var(--acide); }
.box--primaire .statut--discret { color: rgba(10, 10, 10, 0.6); }

/* ---------- Notifications ---------- */

.cloche { position: relative; }
.cloche__bouton {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--trait-fort);
  border-radius: 50%;
  color: var(--texte);
  transition: border-color 0.2s, color 0.2s;
}
.cloche__bouton:hover { border-color: var(--vert); color: var(--blanc); }
.cloche__bouton .ico { font-size: 20px; }
.cloche__pastille {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--pilule);
  background: var(--degrade);
  color: var(--noir);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.cloche__panneau {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: 360px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--carbone);
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.cloche__panneau[hidden] { display: none; }
.cloche__titre {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--trait);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 13px;
}
.cloche__item {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--trait);
  transition: background-color 0.2s;
}
.cloche__item:last-child { border-bottom: 0; }
.cloche__item:hover { background: var(--graphite); }
.cloche__item--non-lu { background: rgba(134, 189, 74, 0.07); box-shadow: inset 3px 0 0 var(--vert); }
.cloche__vide { padding: 20px; font-size: 14px; color: var(--texte-doux); }

/* Notification : style de base pour le panneau sombre de la cloche. */
.notif__entete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.notif__etiquette {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 12px;
  color: var(--vert-clair);
}
.notif__message { margin: 8px 0 6px; font-size: 14.5px; line-height: 1.5; color: var(--blanc); }
.notif__date { font-size: 12.5px; color: var(--texte-pale); }

.badge {
  padding: 3px 9px;
  border-radius: var(--pilule);
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: 10px;
}
.badge--plein { background: var(--degrade); color: var(--noir); }
.badge--contour { border: 1px solid var(--trait-fort); color: var(--texte-doux); }

/* Bandeau Nouveautés : section blanche, comme l'alternance noir / blanc du
   site principal. */
.nouveautes {
  padding: 64px 40px 72px;
  background: var(--blanc);
  color: var(--noir);
}
.nouveautes__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 32px;
}
.nouveautes__titre {
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.nouveautes__chapo { font-size: 15px; color: rgba(10, 10, 10, 0.55); }
.nouveautes__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nouveautes .notif { padding: 24px; border-radius: var(--rayon); background: var(--papier); }
.nouveautes .notif__etiquette { color: var(--vert-sur-blanc); }
.nouveautes .notif__message { margin: 12px 0 10px; font-size: 16px; color: var(--noir); }
.nouveautes .notif__date { color: rgba(10, 10, 10, 0.5); }
.nouveautes .badge--contour { border-color: rgba(10, 10, 10, 0.2); color: rgba(10, 10, 10, 0.65); }

/* ---------- Pied ---------- */

.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding: 28px 40px;
  background: var(--noir);
  border-top: 1px solid var(--trait);
  font-size: 13.5px;
  color: var(--texte-pale);
}
.pied__espace { flex: 1; }
.pied a { color: var(--texte-doux); }
.pied a:hover { color: var(--blanc); }

/* ---------- Accès refusé ---------- */

.refus {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  background: var(--noir);
  text-align: center;
}
.refus__carte {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 40px;
  background: var(--carbone);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
}
.refus__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(134, 189, 74, 0.12);
  color: var(--vert);
}
.refus__icone .ico { font-size: 32px; }
.refus__titre {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.refus__texte { margin: 0; font-size: 16px; line-height: 1.6; color: var(--texte); }
.refus__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- Écrans moyens ---------- */

@media (max-width: 1080px) {
  .connexion__corps { grid-template-columns: 1fr; gap: 40px; }
  .grille-modules { grid-template-columns: repeat(2, 1fr); }
  .box--l2 { grid-column: span 1; }
  .box--l3 { grid-column: span 2; }
  .nouveautes__grille { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Téléphones ---------- */

@media (max-width: 680px) {
  .connexion__entete { padding: 18px 16px; }
  .connexion__corps { padding: 12px 16px 40px; }
  .carte-connexion { padding: 32px 22px 24px; }
  .stats { gap: 20px 32px; }

  .entete { gap: 10px; padding: 12px 16px; }
  .entete .logo { height: 28px; }
  .entete__identite { display: none; }
  .entete__droite { gap: 8px; }
  .bouton-deconnexion { padding: 0 14px; }

  .titre-page { padding: 36px 16px 20px; }
  .grille-modules { grid-template-columns: 1fr; gap: 12px; padding: 0 16px 40px; }
  .box--l2,
  .box--l3 { grid-column: span 1; }
  .box--l3 { padding: 24px 22px 20px; }
  .box__titre { font-size: 24px; }

  .nouveautes { padding: 44px 16px 52px; }
  .nouveautes__grille { grid-template-columns: 1fr; }
  .pied { padding: 24px 16px; }

  /* Le panneau de la cloche prend toute la largeur plutôt que de déborder. */
  .cloche__panneau { position: fixed; top: 66px; left: 12px; right: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; }
}
