:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-blur: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

/* === Splash mobile plein écran (compatible Safari) === */
#mobile-splash{
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;   /* au lieu de inset */
  width: 100vw;
  height: 100vh;                           /* fallback */
  height: calc(var(--vh, 1vh) * 100);      /* fix iOS Safari */
  z-index: 5000;                           /* au-dessus de tout */
  background: #5b16c9;
  display: grid;
  align-items: center;
  justify-items: center;                   /* place-items sans risque */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
  -webkit-tap-highlight-color: transparent;
  will-change: opacity, visibility;
}
#mobile-splash.show{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#mobile-splash img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* empêche le scroll derrière le splash (iOS ok) */
body.splash-open{ overflow: hidden; }

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  height: auto;                 /* ✨ hauteur auto */
  background: #000;             /* fond neutre derrière l'image */
}

.hero-track {
  width: 100%;
  display: flex;
  transform: translateX(0%);
  transition: transform 500ms ease-in-out;
}

.hero-slide {
  flex: 0 0 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: auto;                 /* ✨ conserve les proportions */
  object-fit: contain;          /* ✨ montre l’image entière */
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Liseré doux en bas pour lire les points/commandes */
.hero-carousel::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; cursor: pointer;
  font-size: 1.4rem; line-height: 1;
  padding: .5rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  z-index: 2;
}
.hero-nav:hover { background: rgba(255,255,255,.95); }
.hero-nav:active { transform: translateY(-50%) scale(.98); }
.hero-nav.prev { left: .75rem; }
.hero-nav.next { right: .75rem; }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: .5rem;
  display: flex; gap: .4rem; justify-content: center; z-index: 2;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.2);
  cursor: pointer;
}
.hero-dot[aria-selected="true"] { background: rgba(255,255,255,.95); }

/* Accessibilité : sombre & contraste élevé */
body.dark-mode .hero-nav { background: rgba(30,30,30,.75); color: #fff; }
body.dark-mode .hero-nav:hover { background: rgba(30,30,30,.95); }
body.high-contrast .hero-carousel,
body.high-contrast .hero-slide img {
  border: 2px solid #000 !important;
}
body.high-contrast .hero-nav {
  background: #f5f5f5 !important; border: 2px solid #000 !important; color: #000 !important;
}
body.high-contrast .hero-dot {
  background: #f5f5f5 !important; border: 2px solid #000 !important;
}
body.high-contrast .hero-dot[aria-selected="true"] { background: #000 !important; }

/* Mobile tweaks */
@media (max-width: 600px) {
  .hero-nav { font-size: 1.2rem; padding: .4rem .6rem; }
  .hero-carousel { height: clamp(150px, 28vw, 260px); }
}

/* --- Fix mobile : pas de bande noire, hauteur auto --- */
@media (max-width: 768px){
  .hero-carousel{
    height: auto !important;       /* ne force plus une hauteur */
    background: transparent !important; /* enlève le fond noir */
  }
  .hero-carousel::after{           /* enlève le liseré sombre */
    display: none !important;
  }
  .hero-slide img{
    width: 100%;
    height: auto;                  /* laisse l’image décider */
    object-fit: contain;           /* pas de recadrage */
    display: block;
  }
}

/* === Mise en page du header en 3 colonnes === */
.masthead {
  padding: 1.25rem 1rem 0.75rem;     /* un peu de respiration */
}

.mast-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* gauche / centre (logo) / droite */
  align-items: center;
  gap: 1rem;
}

.mast-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* colle bien à gauche */
  gap: .5rem;
}

.mast-logo {
  justify-self: center;
  max-height: 14vh;
  width: auto;
}

/* La zone accessibilité n'est plus en absolu */
header .toggle-theme {
  position: static !important;
  margin: 0;
  justify-self: end;       /* colonne droite */
  display: inline-flex;
  gap: .5rem;
}

/* Les trois boutons à gauche (dans le flux) */
.mast-left .zone-admin,
.mast-left .bouton-sondage-fixe {
  position: static;
  margin: 0;
  display: inline-flex;
  gap: .5rem;
}

/* Responsive : on empile proprement */
@media (max-width: 768px) {
  .mast-grid {
    grid-template-columns: 1fr;  /* une seule colonne */
    gap: .75rem;
    text-align: center;
  }
  .mast-left { align-items: center; }
  header .toggle-theme { justify-self: center; }
}

.main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100vh;
  padding: 1rem;
  flex: 1;
}

.formulaire form {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.formulaire h2 {
  font-size: 1.2rem;
  color: #3f51b5;
  margin-bottom: 0.5rem;
}

.formulaire input[type="email"],
.formulaire input[type="password"] {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background: white;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}

.formulaire input:focus {
  outline: none;
  border-color: #3f51b5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

.double-form {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.bloc-formulaire {
  flex: 1 1 300px;
  max-width: 400px;
}

@media screen and (max-width: 768px) {
  .double-form {
    flex-direction: column;
    align-items: center;
  }
}

.btn-inscription, .btn-connexion {
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn-inscription:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.btn-connexion:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

a[href*="logout"] {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #d32f2f;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

a[href*="logout"]:hover {
  background: #b71c1c;
  transform: scale(1.03);
}

@media screen and (max-width: 768px) {
  .formulaire form {
    width: 100%;
    max-width: 90%;
  }
}

.message-remerciement h2 {
  margin-top: 1rem;
}

.contributions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.contribution-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #ccc;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  max-width: 700px;
  width: 100%;
  transition: transform 0.2s;
}

.contribution-card:hover {
  transform: scale(1.01);
}

.contribution-meta p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: #444;
}

.contribution-meta .emoji {
  margin-right: 0.5rem;
}

.contribution-text {
  margin-top: 1rem;
  padding: 1rem;
  font-style: italic;
  background: #f5f7fb;
  border-left: 4px solid #3f51b5;
  border-radius: 8px;
}

.contribution-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-modifier, .btn-supprimer {
  margin-top: 0.8rem;
  width: 100%;
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn-modifier {
  background: #3f51b5;
}

.btn-modifier:hover {
  background: #313f90;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.btn-supprimer {
  background: #d32f2f;
}

.btn-supprimer:hover {
  background: #a92525;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.formulaire .btns-mdp {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.btn-lienmdp, .btn-retour {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-lienmdp {
  background: #3f51b5;
}

.btn-retour {
  background: #d32f2f;
}

.btn-lienmdp:hover {
  background: #303f9f;
  transform: scale(1.03);
}

.btn-retour:hover {
  background: #a92525;
  transform: scale(1.03);
}

#form-mdp-oublie {
  min-width: 500px;
}

.btn-reinit {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-reinit {
  background: #3f51b5;
}

.btn-reinit:hover {
  background: #303f9f;
  transform: scale(1.03);
}

.zone-admin,
.bouton-sondage-fixe {
  position: static;      /* ✨ plus d’absolu au dessus du carrousel */
  margin: .25rem 1rem;   /* petit espace */
  display: inline-flex;
  gap: .5rem;
}

.zone-admin button {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  color: #111;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-moncompte {
  font-size: 85%;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  color: #111;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.zone-admin button:hover {
  background-color: #d32f2f;
  color: white;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.btn-moncompte:hover {
  background-color: #303f9f;
  color: white;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.btn-sondage-lien {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 10px;
  font-weight: bold;
  color: #111;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-sondage-lien:hover {
  background-color: #47a14a;
  color: white;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

#admin-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 2px solid #3f51b5;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  width: 90%;
  max-width: 326px;
  overflow: visible; /* important pour que le bouton dépasse si besoin */
}

/* Bouton de fermeture en haut à droite */
#admin-panel .btn-fermer-panel {
  z-index: 100;
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  line-height: 22px;
  text-align: center;
  font-weight: bold;
  font-size: 0.7rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#admin-panel .btn-fermer-panel:hover {
  background: #b71c1c;
}

#admin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.admin-hidden {
  display: none;
}

#admin-panel input {
  padding: 0.5rem;
  width: 162px;
  margin-right: 0.5rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background: white;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#admin-panel input:focus {
  outline: none;
  border-color: #3f51b5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

#admin-panel button {
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background-color 0.3s;
  background-color: #47a14a;
}

.admin-hidden {
  display: none;
}

.admin-inputs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

#btn-valider {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  background-color: #378339;
}

#btn-valider:hover {
  background-color: #28622b;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

#admin-panel .btn-deconnexion {
  margin-top: 0.8rem;
  background-color: #d32f2f;
  width: 100%;
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  border: none;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

#admin-panel .btn-deconnexion:hover {
  background-color: #b72929;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

#admin-panel .btn-print {
  margin-top: 0.8rem;
  background-color: #3f51b5;
  width: 100%;
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  border: none;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

#admin-panel .btn-print:hover {
  background-color: #303f9f;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

#admin-panel .btn-csv {
  margin-top: 0.8rem;
  background-color: #3f51b5;
  width: 100%;
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  border: none;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

#admin-panel .btn-csv:hover {
  background-color: #303f9f;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

#admin-pdf-download {
  display: none;
}

#admin-pdf-download select {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: 'Montserrat', sans-serif;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

#admin-pdf-download select:focus {
  outline: none;
  border-color: #3f51b5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

#propositions-admin {
  margin: 2rem auto;
  max-width: 900px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-align: left;
}

.bloc-theme h2 {
  font-size: 1.2rem;
  color: #3f51b5;
  margin-bottom: 0.5rem;
}

.bloc-theme p {
  background: #f0f0f5;
  padding: 0.6rem;
  border-radius: 8px;
  margin: 0.4rem 0;
  line-height: 1.5;
}

.aucune-proposition {
  background-color: #fff9c4;
  color: #795548;
  border-left: 5px solid #fbc02d;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#admin-nouveau-sondage {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

#admin-nouveau-sondage h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #333;
  font-weight: 600;
}

#admin-nouveau-sondage input[type="text"] {
  padding: 0.5rem 1rem;
  min-width: 242px;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  cursor: not-allowed;
  opacity: 0.5;
  border-radius: 8px;
  margin-right: 0px;
}

#admin-nouveau-sondage .btn-sondage {
  margin-top: 0.8rem;
  background-color: #378339;
  width: 100%;
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  border: none;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

#admin-nouveau-sondage .btn-sondage:hover {
  background-color: #28622b;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

#admin-suppression-sondage {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

#admin-suppression-sondage h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #333;
  font-weight: 600;
}

#liste-sondages {
  padding: 0.5rem 1rem;
  min-width: 100%;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: not-allowed;
  opacity: 0.5;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

#liste-sondages:focus {
  outline: none;
  border-color: #3f51b5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

#admin-suppression-sondage .btn-supprimer {
  width: 100%;
  padding: 0.6rem 1rem;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

#admin-suppression-sondage .btn-supprimer:hover {
  background-color: #a92525;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f0f0f5, #fafafa);
    color: #111;
    text-align: center;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

header {
    padding: 2rem 1rem 1rem;
    animation: fadeInUp 1.2s ease-out forwards;
    opacity: 0;
}

header img {
    max-height: 14vh;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

h1 {
    font-size: calc(1.6rem + 1vw);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin: 0.5rem 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid #3f51b5;
  outline-offset: 2px;
}

h3 {
  font-size: 1rem;
  margin: 0.2rem 0 1.5rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.4s forwards;
}

.slogan {
    font-size: calc(0.9rem + 0.5vw);
    margin: 0.2rem 0;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.4s forwards;
}

/* Grille des actions : mieux pour Safari */
.actions{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* un poil plus large, au besoin remets 180px */
  grid-auto-rows: 1fr;             /* chaque rangée a la même hauteur de base */
  align-items: stretch;             /* étire les items pour remplir la cellule */
  gap: 0.5rem;
  padding: 0.2rem 1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.8s forwards;
}

.actions a{
  /* height: 100%;  <-- ❌ à supprimer */
  height: auto;                     /* ✅ */
  min-height: 64px;                 /* un minimum confortable */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem;
  text-align: center;
  text-decoration: none;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); /* ✅ prefix Safari */
  backdrop-filter: blur(var(--glass-blur));
  color: #111;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.actions a:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* ===== Réseaux sociaux sous les boutons ===== */
.social-links{
  display: inline-flex;
  gap: .5rem;
  margin-top: .25rem;
  flex-wrap: wrap;
}

.social-links .social{
  width: 63px;
  height: 63px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  color: #111; /* les SVG héritent via currentColor */
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}

.social-links .social svg{
  width: 35px;
  height: 35px;
  fill: currentColor;
  display: block;
}

.social-links .social:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.35);
}

/* Responsive: centré quand la grille passe en 1 colonne */
@media (max-width: 768px){
  .mast-left { align-items: center; }
  .social-links { justify-content: center; }
}

/* Thème sombre */
body.dark-mode .social-links .social{
  color: #fff !important;
  border-color: #333 !important;
  box-shadow: 0 4px 10px rgba(255,255,255,0.05);
}

/* Contraste élevé */
body.high-contrast .social-links .social{
  background: #f5f5f5 !important;
  color: #111 !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
}

footer {
    background-color: #f8f8f8;
    font-size: 0.8rem;
    padding: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 3.5s forwards;
}

@keyframes fadeInUp {
    from {
    transform: translateY(40px);
    opacity: 0;
    }
    to {
    transform: translateY(0);
    opacity: 1;
    }
}

@keyframes fadeIn {
    to {
    opacity: 1;
    }
}

@keyframes slideIn {
    to {
    transform: translateX(0);
    }
}

@media (max-width: 600px) {
    h1 {
    font-size: 1.8rem;
    }
    .slogan {
    font-size: 1.1rem;
    }
}

.toggle-theme {
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.toggle-theme button {
    padding: 0.68rem;
    text-decoration: none;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    color: #111;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.toggle-theme button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.toggle-theme button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.dark-mode {
  background: #121212 !important;
  color: #ffffff !important;
}

body.dark-mode #propositions-admin,
body.dark-mode #section-sondages {
  background: #171717 !important;
  border-color: #202020 !important;
  color: #ffffff !important;
}

body.dark-mode #admin-panel,
body.dark-mode .aucune-proposition,
body.dark-mode .bloc-theme p,
body.dark-mode .contribution-card,
body.dark-mode .sondage,
body.dark-mode .sondage .resultats,
body.dark-mode .mur-contributions {
  background: #222222 !important;
  border-color: #1e1e1e !important;
  color: #ffffff !important;
}

body.dark-mode #admin-nouveau-sondage,
body.dark-mode #admin-suppression-sondage,
body.dark-mode .mur-contributions .mur-liste .bloc-proposition {
  background: #272727 !important;
  border-color: #202020 !important;
  color: #ffffff !important;
}

body.dark-mode .bloc-theme h2,
body.dark-mode .contribution-meta p,
body.dark-mode .formulaire h2,
body.dark-mode #admin-nouveau-sondage h3,
body.dark-mode #admin-suppression-sondage h3,
body.dark-mode #section-sondages h2,
body.dark-mode .mur-contributions .mur-liste .bloc-proposition blockquote {
  color: #ffffff !important;
}

body.dark-mode header img {
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.2)) !important;
}

body.dark-mode .actions a,
body.dark-mode .toggle-theme button,
body.dark-mode .formulaire textarea,
body.dark-mode .recherche-code input[type="text"],
body.dark-mode .code-personnel,
body.dark-mode .message-remerciement,
body.dark-mode .retour-accueil a,
body.dark-mode .zone-admin button,
body.dark-mode #admin-panel .admin-inputs input,
body.dark-mode #admin-panel button,
body.dark-mode .impression-zone button,
body.dark-mode button[type="submit"],
body.dark-mode button[name="supprimer"],
body.dark-mode .btn-modifier,
body.dark-mode .btn-supprimer,
body.dark-mode a,
body.dark-mode .contribution-text,
body.dark-mode .formulaire form,
body.dark-mode .formulaire input,
body.dark-mode .sondage button,
body.dark-mode .mur-contributions button {
  background-color: #1e1e1e !important;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  color: #ffffff !important;
  border-color: #333 !important;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

body.dark-mode #admin-pdf-download select,
body.dark-mode #admin-suppression-sondage select,
body.dark-mode .formulaire select {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border: 1px solid #333 !important;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

body.dark-mode .recherche-code input::placeholder,
body.dark-mode textarea::placeholder,
body.dark-mode #admin-panel .admin-inputs input::placeholder,
body.dark-mode .formulaire input::placeholder {
  color: #cccccc;
}

body.dark-mode footer {
  background-color: #1a1a1a;
  color: #ffffff;
}

body.dark-mode .retour-accueil a svg {
  fill: white !important;
}

body.high-contrast {
  background-color: #ffffff !important;
  color: #111111 !important;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast p,
body.high-contrast span,
body.high-contrast a,
body.high-contrast .slogan,
body.high-contrast .message-remerciement,
body.high-contrast .code-personnel {
  color: #111 !important;
}

body.high-contrast .actions a,
body.high-contrast .toggle-theme button,
body.high-contrast .formulaire textarea,
body.high-contrast .recherche-code input[type="text"],
body.high-contrast .code-personnel,
body.high-contrast .message-remerciement,
body.high-contrast .retour-accueil a,
body.high-contrast .zone-admin button,
body.high-contrast #admin-panel .admin-inputs input,
body.high-contrast #admin-panel button,
body.high-contrast .impression-zone button,
body.high-contrast #propositions-admin,
body.high-contrast #propositions-admin p,
body.high-contrast button[type="submit"],
body.high-contrast button[name="supprimer"],
body.high-contrast .btn-modifier,
body.high-contrast .btn-supprimer,
body.high-contrast a,
body.high-contrast .contribution-text,
body.high-contrast .formulaire form,
body.high-contrast .formulaire input,
body.high-contrast #admin-nouveau-sondage,
body.high-contrast #admin-suppression-sondage,
body.high-contrast #section-sondages,
body.high-contrast .sondage,
body.high-contrast .sondage button,
body.high-contrast .barre-sondage,
body.high-contrast .mur-contributions button,
body.high-contrast .mur-contributions,
body.high-contrast .mur-contributions .mur-liste .bloc-proposition {
  background-color: #f5f5f5 !important;
  color: #111 !important;
  border: 2px solid #000 !important;
}

body.high-contrast .mur-contributions .mur-liste .bloc-proposition hr {
  background-color: #f5f5f5 !important;
  color: #111 !important;
  border: 1px solid #000 !important;
}

body.high-contrast #admin-pdf-download select,
body.high-contrast #admin-suppression-sondage select,
body.high-contrast .formulaire select {
  background-color: #f5f5f5 !important;
  color: #111 !important;
  border: 2px solid #000 !important;
}

body.high-contrast ::placeholder {
  color: #555 !important;
}

body.high-contrast svg {
  fill: #111 !important;
  stroke: #111 !important;
}

.recherche-code {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-out 1.1s forwards;
  opacity: 0;
}

.recherche-code form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.recherche-code input[type="text"] {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: 'Montserrat', sans-serif;
  min-width: 270px;
  max-width: 400px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background: white;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.recherche-code input[type="text"]:focus {
  outline: none;
  border-color: #3f51b5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

.recherche-code button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #3f51b5;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.recherche-code button svg {
  fill: white;
}

.recherche-code button:hover {
  background-color: #303f9f;
  transform: translateY(-1px);
}

.formulaire {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem;
}

.formulaire select {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: 'Montserrat', sans-serif;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.formulaire select:focus {
  outline: none;
  border-color: #3f51b5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

textarea {
  width: 300%;
  height: 200px;
  resize: vertical;
  padding: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

button[type="submit"] {
  background-color: #3f51b5;
  color: white;
  padding: 0.68rem;
  text-decoration: none;
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

button[type="submit"]:hover {
  background-color: #303f9f;
}

.admin-propo-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}

.btn-toggle-public{
  min-width: 120px;
  padding: .4rem .8rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .08s ease, background .2s ease, color .2s ease;
  background:#fff;
  border:1px solid #ccc;
}
.btn-toggle-public:hover{ transform: translateY(-1px); }

.btn-toggle-public.is-public{
  background: #1b5e20;     /* vert foncé */
  color: #fff;
  border-color: #1b5e20;
}
.btn-toggle-public:not(.is-public){
  background: #b71c1c;     /* rouge foncé */
  color: #fff;
  border-color: #b71c1c;
}

/* Accessibilité */
body.high-contrast .btn-toggle-public{
  background:#f5f5f5 !important;
  color:#111 !important;
  border:2px solid #000 !important;
}

.section-sondages {
  background: #f5f7fb;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 700px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-sondages h2 {
  font-size: 1.4rem;
  color: #3f51b5;
  margin-bottom: 1rem;
}

.sondage {
  background: white;
  border-left: 4px solid #3f51b5;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.sondage p {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.sondage button {
  margin-right: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background: #3f51b5;
  color: white;
  transition: background 0.3s ease;
}

.sondage button:hover {
  background: #303f9f;
}

.btn-supprimer-vote {
  background-color: #d32f2f;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-supprimer-vote:hover {
  background-color: #a92525;
}

.resultats {
  margin-top: 0.6rem;
  font-style: italic;
  color: #444;
}

.barre-sondage {
  width: 100%;
  height: 16px;
  display: flex;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.barre-oui {
  background-color: #4caf50; /* vert */
  height: 100%;
  transition: width 0.5s ease-in-out;
}

.barre-non {
  background-color: #f44336; /* rouge */
  height: 100%;
  transition: width 0.5s ease-in-out;
}

.message-remerciement {
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  max-width: 600px;
  background-color: #e6ffe6;
  color: #2e7d32;
  border-left: 5px solid #4caf50;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  animation: fadeIn 0.6s ease-out;
}

.retour-accueil {
  text-align: left;
  margin: 1rem 2rem 0;
  animation: fadeIn 1s ease-out 1.2s forwards;
  opacity: 0;
}

.retour-accueil a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1rem;
  color: #3f51b5;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.3s, transform 0.3s;
}

.retour-accueil a:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-3px);
}

.retour-accueil svg {
  display: inline-block;
  vertical-align: middle;
}

.code-personnel {
  margin: 1rem auto;
  padding: 1rem;
  background: #fff3cd;
  color: #856404;
  border-left: 5px solid #ffc107;
  border-radius: 8px;
  max-width: 600px;
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeIn 0.6s ease-out;
}

button[type="submit"][name="supprimer"] {
  background-color: #c62828; /* contraste renforcé */
  color: #fff;
  padding: 0.68rem;
  text-decoration: none;
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

button[type="submit"][name="supprimer"]:hover {
  background-color: #b71c1c;
}

.impression-zone {
  text-align: center;
}

.impression-zone button {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  background-color: #1b5e20; /* ✅ Vert très foncé */
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.impression-zone button:hover {
  background-color: #0d3b13; /* encore plus foncé au survol */
}

.mur-contributions {
  margin-top: 2rem;
  padding: 1rem;
  background: #f5f7fb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mur-contributions #mur-mobilite {
  margin-top: 1rem;
}

.bloc-proposition {
  padding: 1rem;
  margin: 1rem;
  background: #ffffff;
  border-left: 4px solid #3f51b5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

blockquote {
  font-style: italic;
  margin: 0.5rem 0;
  color: #333;
}

.btn-push {
  margin-top: 1rem;
  background-color: #47a14a;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.btn-push:hover {
  background-color: #347933;
}

/* Cacher les éléments inutiles à l’impression */
@media print {
  .retour-accueil,
  form,
  footer,
  .impression-zone,
  .message-remerciement {
    display: none !important;
  }

  .slogan, h1 {
    margin-top: 2rem;
  }

  textarea {
    all: unset;
    display: block;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-top: 1rem;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 8px;
    background: #f9f9f9;
  }
}

@media screen and (max-width: 768px) {
  header {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  header img {
    max-width: 80%;
    height: auto;
  }

  .toggle-theme {
    position: static;
    margin-top: 0.5rem;
  }

  .recherche-code {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .recherche-code input[type="text"] {
    width: 90%;
    max-width: none;
  }

  .recherche-code button {
    width: 90%;
    justify-content: center;
  }

  .actions {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .actions a {
    padding: 1rem;
    font-size: 1rem;
  }

  .formulaire {
    width: 100%;
    padding: 1rem;
  }

  .formulaire textarea {
    width: 100% !important;
    font-size: 1rem;
  }

  button[type="submit"] {
    width: 100%;
    font-size: 1rem;
  }

  .retour-accueil {
    margin: 1rem;
    text-align: center;
  }

  .retour-accueil a {
    justify-content: center;
    width: 100%;
    font-size: 1rem;
    padding: 0.5rem;
  }

  .code-personnel,
  .message-remerciement {
    width: 90%;
    font-size: 1rem;
  }

  .impression-zone button {
    width: 90%;
    font-size: 1rem;
    margin: 1rem auto;
  }

  footer {
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
  }

  h1 {
    font-size: 1.4rem;
  }

  .slogan {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

@media screen and (max-width: 768px) {
  .zone-admin,
  .bouton-sondage-fixe {
    position: static;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: -7px;
    z-index: initial;
  }

  .zone-admin a,
  .zone-admin button,
  .bouton-sondage-fixe a {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media screen and (max-width: 600px) {
  #admin-panel {
    width: 95%;
    max-width: 320px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .btn-fermer-panel {
    display: block;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
  }

  .btn-fermer-panel:hover {
    background-color: #b71c1c;
  }
}

@media screen and (max-width: 600px) {
  .sondage {
    display: flex;
    flex-direction: column;
  }

  .sondage .btn-non {
    margin-top: 0.8rem;
    display: block;
  }
  
  .sondage .btn-supprimer-vote {
    margin-top: 0.8rem;
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .double-form {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .double-form .bloc-formulaire {
    width: 90%;
    max-width: 500px;
  }
}

@media screen and (max-width: 600px) {
  .double-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.5rem !important;
    width: 100% !important;
    padding: 0 1rem;
  }

  .double-form .bloc-formulaire {
    width: 95% !important;
    max-width: none !important;
  }

  .formulaire form {
    width: 100% !important;
    max-width: none !important;
  }

  .formulaire input,
  .formulaire button {
    font-size: 1rem !important;
  }
}

/* ========= Q/R dans la page compte ========= */
/* Bloc texte libre (inchangé) */
.contribution-text {
  margin-top: 1rem;
  padding: 1rem;
  font-style: italic;
  background: #f5f7fb;
  border-left: 4px solid #3f51b5;
  border-radius: 8px;
  text-align: left;        /* assure l'alignement du contenu */
}

/* Bloc Q/R : neutre, pas d'indentation parasite */
.contribution-qa {
  margin-top: 1rem;
  padding: 0;              /* IMPORTANT: pas de padding qui décale */
  background: transparent; /* pas de fond ici, c'est chaque carte qui en a */
  border: none;            /* pas de bord gauche bleu ici */
}

/* Liste des Q/R */
.qa-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

/* Carte Q/R */
.qa-item {
  border: 1px solid #e6e6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.qa-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* En-tête Q/R */
.qa-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem .2rem 1rem;
}
.qa-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  background: #3f51b5;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(63,81,181,0.25);
}
.qa-q {
  margin: 0;              /* empêche un “saut” vertical */
  font-size: 1rem;
  font-weight: 700;
  color: #2c2c34;
}

/* Réponse */
.qa-a {
  margin: .4rem 1rem 1rem 1rem;
  padding: .8rem 1rem;
  background: #f5f7fb;
  border-left: 4px solid #3f51b5;
  border-radius: 8px;
  color: #333;
  text-align: left;
}

.qa-a { font-style: normal; }  /* empêche d'hériter de l’italique */

/* Responsive */
@media (max-width: 640px) {
  .qa-header { grid-template-columns: 28px 1fr; gap: .5rem; }
  .qa-q { font-size: .95rem; }
  .qa-a { font-size: .95rem; }
}

/* Modes accessibilité */
body.dark-mode .contribution-qa { background: transparent !important; }
body.dark-mode .qa-item { background: #222 !important; border-color: #1e1e1e !important; }
body.dark-mode .qa-q, body.dark-mode .qa-a { color: #fff !important; }
body.dark-mode .qa-a { background: #1e1e1e !important; border-left-color: #6f83ff !important; }
body.dark-mode .qa-num { background: #6f83ff !important; box-shadow: 0 2px 6px rgba(111,131,255,0.25); }

body.high-contrast .qa-item,
body.high-contrast .qa-a {
  background: #f5f5f5 !important;
  color: #111 !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
}
body.high-contrast .qa-num { background: #000 !important; color: #fff !important; box-shadow: none !important; }
body.high-contrast .qa-a { border-left: 6px solid #000 !important; }