/* ==========================================================================
   CORPS DE PAGE
   ========================================================================== */
html, body {
  height: auto;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #fafafa;
  color: #1c1c1e;
  display: flex;
  flex-direction: column;
  /* --- AJOUT POUR CENTRER LE CONTENU --- */
  align-items: center; 
  /* -------------------------------------- */
  padding-bottom: 120px; 
}

/* ==========================================================================
   HEADER (Titre et Signature)
   ========================================================================== */
.main-header {
  width: 100%; /* Prend toute la largeur pour permettre le centrage du texte */
  text-align: center; /* Centre le texte PhysicSensei et la signature */
  padding: 30px 20px 10px;
}

h1 {
  font-weight: 700;
  font-size: 2.4rem;
  margin: 0;
}

.instructor {
  color: #86868b;
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ==========================================================================
   BENTO GRID
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 15px;
  padding: 20px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box; /* Assure que le padding ne casse pas la largeur */
}
.bento-item {
  background: #ffffff;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;      /* Centre horizontalement les blocs enfants */
  justify-content: center;   /* Centre verticalement les blocs enfants */
  text-align: center;        /* Centre le texte à l'intérieur des balises p, h2, span */
  padding: 50px;             /* Important pour que le texte ne touche pas les bords */
  box-sizing: border-box;    /* Garantit que le padding ne réduit pas la zone de clic */
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  min-height: 160px;
}

/* Définition des tailles pour que le scroll fonctionne selon la structure */
.wide { grid-column: span 2; min-height: 160px; }
.tall { grid-row: span 2; min-height: 335px; }
.big-square { 
  grid-column: span 2; 
  grid-row: span 2; 
  min-height: 335px; /* Hauteur de deux lignes + le gap */
}

/* ==========================================================================
   BARRE DE NAVIGATION AFFINÉE 
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 1px;       /* Décollée du bas pour l'effet "flottant" */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;         /* Largeur réduite */
  max-width: 540px;   /* Largeur max fine */
  height: 60px;       /* Hauteur fixe réduite */
  background-color: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 30px; /* Bords très arrondis style pilule */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  padding: 0 10px;
}

.nav-item {
  color: #bbbbbb;
  text-decoration: none;
  font-size: 0.6rem;   /* Texte plus petit */
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.nav-item .emoji {
  font-size: 20px;     /* Emojis plus petits */
  margin-bottom: 2px;
}

/* Vidéos */
.video-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Style de base du texte "Simulations" */
.video-block .overlay {
  /* Décalage de 0.5cm vers le bas (environ 19px) */
  transform: translateY(19px); 
  transition: all 0.3s ease;
  z-index: 2; /* S'assure que le texte passe devant la vidéo */
}

/* Effets au survol du bloc */
.video-block:hover video {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.video-block:hover .overlay {
    /* On garde le décalage vers le bas tout en augmentant la taille */
  transform: translateY(19px) scale(1.1); 
  font-size: 1.2rem;
}

/* Effet au survol : Change la couleur du texte et de l'icône */
.nav-item:hover {
  color: #007aff; /* Bleu Apple vif */
  transition: all 0.3s ease;
}

/* Effet sur l'emoji au survol : il s'anime légèrement vers le haut */
.nav-item:hover .emoji {
  transform: translateY(-3px); /* Petit saut vers le haut */
  filter: grayscale(0%) brightness(100%); /* Redonne des couleurs si tu avais un filtre gris */
  transition: transform 0.2s ease;
}

/* Optionnel : Ajoute un petit retour tactile au clic (Feedback) */
.nav-item:active {
  transform: scale(0.92); /* Rétrécit très légèrement l'icône sous le doigt */
}




/* Effet de survol sur n'importe quel bloc cliquable du Bento */
.bento-item:hover {
  transform: translateY(-5px); /* La boîte monte légèrement */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* L'ombre s'accentue */
  background-color: #ffffff; /* S'assure que le fond reste blanc pur */
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Animation fluide style Apple */
}

/* Animation de l'emoji à l'intérieur de la boîte */
.bento-item:hover .emoji-large {
  transform: scale(1.1); /* L'emoji grossit très légèrement */
  transition: transform 0.3s ease;
}

/* Effet de clic (retour tactile) */
.bento-item:active {
  transform: scale(0.96) translateY(0); /* La boîte s'écrase sous le clic */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.1s ease;
}

/* Style pour le bloc image */
.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* L'image remplit la case sans se déformer */
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* On s'assure que le contenu texte passe devant l'image */
.image-block .overlay {
  z-index: 2;
}

/* Optionnel : un léger zoom sur l'image au survol */
.image-block:hover img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}


/* Conteneur pour espacer le bouton du Bento */
.back-container {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

/* Style du bouton "Retour" façon iOS/Glassmorphism */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px); /* Effet de flou derrière le bouton */
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50px; /* Forme pilule */
  color: #1c1c1e;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet au survol */
.back-link:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: #007aff; /* Devient bleu au survol */
}

/* Effet au clic */
.back-link:active {
  transform: scale(0.95);
}

.onisep-block {
    padding: 40px; /* Plus la valeur est grande, plus l'image sera petite */
    box-sizing: border-box;
    background-color: white; /* Fond blanc pour que le logo soit propre */
}

.onisep-block img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garde les proportions sans couper le logo */
}

.bento-section-title {
  grid-column: 1 / -1; /* Force le titre à prendre toute la largeur (les 2 colonnes) */
  font-size: 1.4rem;
  font-weight: 700;
  color: #1c1c1e;
  margin: 30px 0 10px 10px; /* Espace au-dessus et alignement léger à gauche */
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-bottom: 1px solid #e5e5e7; /* Petite ligne fine pour souligner la séparation */
  padding-bottom: 8px;
}

.bento-section-title {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #86868b; /* Gris secondaire */
  margin: 40px 0 15px 5px;
}

.quote-block {
  background-color: #f5f5f7; /* Un gris très léger pour la différencier */
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Aligné à gauche pour le style citation */
  text-align: left;
}

.quote-icon {
  font-family: serif;
  font-size: 3rem;
  color: #007aff; /* Bleu accentué */
  line-height: 0;
  margin-bottom: 15px;
  margin-top: 10px;
}

.quote-text {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1c1c1e;
  margin: 0 0 10px 0 !important; /* Force l'absence de marge basse */
}

.quote-block cite {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #86868b;
  font-style: normal;
  letter-spacing: 0.05em;
}

.joke-block {
  /* Un bleu doux mais lumineux pour le côté électronique */
  background-color: #e0f7fa; 
  border: 1px dashed #4dd0e1; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  position: relative;
  border-radius: 22px; /* Pour garder la cohérence avec le bento */
}

.joke-text {
  font-size: 0.95rem;
  color: #006064; /* Texte en bleu très foncé pour la lisibilité */
  margin-bottom: 10px !important;
  line-height: 1.4;
}

.joke-sep {
  border: none;
  border-top: 1px solid rgba(0, 96, 100, 0.1);
  margin: 10px 0;
}

.joke-punchline {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c1e;
  line-height: 1.3;
}

.joke-tag {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #00bcd4; /* Accentuation du tag */
  letter-spacing: 1.2px;
}

/* Le bloc conteneur */
.annales-block {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  position: relative;
  border: 1px solid #f0f0f2;
}

/* L'image centrée et réduite */
.annales-img {
  width: auto;
  height: 60px; /* Taille fixe pour ne pas déborder */
  max-width: 80%;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Le texte sous l'image */
.annales-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 !important;
  text-align: center;
}

/* Petit badge discret en haut à droite */
.badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f5f5f7;
  color: #86868b;
  font-size: 0.6rem;
  padding: 4px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Effet au survol */
.annales-block:hover .annales-img {
  transform: scale(1.1) translateY(-5px);
}

/* ==========================================================================
   PAGE CHAPITRE — CONTENU COURS
   ========================================================================== */

/* Header chapitre */
.chapter-header {
  width: 100%;
  max-width: 600px;
  padding: 30px 20px 10px;
}

.chapter-header h1 {
  font-size: 1.8rem;
  margin: 0;
}

.chapter-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #86868b;
  margin-top: 6px;
}

/* Ciblage de la classe exacte utilisée dans votre HTML */
.chapter-infos-row {
  display: flex;
  justify-content: center; /* Centre les badges horizontalement */
  align-items: center;     /* Centre les badges verticalement */
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px;
  min-height: auto !important; /* Évite que la case soit trop haute */
}

/* Style des badges à l'intérieur */
.chapter-infos-row .info-badge {
  background: #f5f5f7;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #1c1c1e;
  display: inline-flex;
  align-items: center;
  white-space: nowrap; /* Empêche le texte du badge de revenir à la ligne */
}

/* Optionnel : couleur spécifique pour le temps */
.info-badge.time {
  background: #fff9c4;
  color: #f57f17;
}

/* Carte principale Cours */
.course-main {
  padding: 25px;
  text-align: center;
}

.course-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #007aff;
  margin-bottom: 12px;
  font-weight: 700;
}

.course-main .course-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.course-description {
  font-size: 0.8rem;
  color: #86868b;
  line-height: 1.5;
  margin: 10px 0 15px;
}

/* Plan */
.plan-block {
  padding: 20px;
}

.plan-block h3 {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.plan-block ol {
  font-size: 0.75rem;
  padding-left: 18px;
  color: #86868b;
}

/* Carte correction */
.correction-card {
  background-color: #f5f5f7;
  text-align: center;
  padding: 20px;
}

.correction-card h3 {
  font-size: 0.9rem;
  margin: 8px 0 4px;
}

.hint {
  font-size: 0.75rem;
  color: #86868b;
  text-align: center;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* --- Carte TP (Style Apple Centré) --- */
.TP-card {
  background: #fdfdff;
  border: 1px solid #e1e1e8;
  border-radius: 22px;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
  padding: 30px !important; /* Plus d'espace pour le centrage */
  display: flex;
  flex-direction: column;
  align-items: center;      /* Centre le contenu horizontalement */
  justify-content: center;   /* Centre le contenu verticalement */
  text-align: center;        /* Centre les lignes de texte entre elles */
}

/* L'intérieur de la carte */
.TP-inner {
  width: 100%;
}

/* On enlève l'icône générée précédemment (::before) */
.TP-inner::before {
  content: none !important;
}

/* Groupe de texte */
.text-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.main-label {
  font-weight: 700;
  font-size: 1.25rem; /* Un peu plus grand car seul au centre */
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.02em;
}

.sub-label {
  font-size: 0.95rem;
  color: #86868b;
  margin: 0;
  font-weight: 400;
}

/* --- EFFETS AU SURVOL (Hover) --- */
.TP-card:hover {
  background-color: #ffffff;
  border-color: #007aff; /* Bleu Apple classique */
  transform: scale(1.02); /* Grossit légèrement au lieu de monter */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.TP-card:hover .main-label {
  color: #007aff;
}
/* Groupe de texte */
.text-group {
  text-align: center; /* Alignement à gauche pour le style "liste" */
}

.main-label {
  font-weight: 700;
  font-size: 1.15rem;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.02em;
}

.sub-label {
  font-size: 0.9rem;
  color: #86868b;
  margin: 4px 0 0 0;
}

/* --- EFFETS AU SURVOL (Hover) --- */
.TP-card:hover {
  background-color: #ffffff;
  border-color: #5856d6; /* Violet/Indigo Apple */
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(88, 86, 214, 0.12); /* Ombre teintée */
}

.TP-card:hover .TP-inner::before {
  transform: scale(1.1) rotate(-5deg); /* Petit effet ludique sur l'icône */
}

.TP-card:hover .main-label {
  color: #5856d6; /* Le titre change de couleur */
}

/* --- Styles additionnels pour la page Cours --- */

/* Ligne de badges */
.chapter-infos-row {
  flex-direction: row !important;
  justify-content: flex-start !important;
  padding: 15px 25px;
  gap: 12px;
  min-height: auto !important;
}

.info-badge {
  background: #f2f2f7;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1c1c1e;
}

.info-badge.time { background: #fff9c4; color: #f57f17; }
.info-badge.level { background: #e1f5fe; color: #0288d1; }

/* Plan / Sommaire */
.plan-block {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 25px !important;
}

.plan-block ol {
  margin-top: 15px;
  padding-left: 20px;
  color: #48484a;
  line-height: 1.8;
  font-size: 0.9rem;
}

/* Carte de téléchargement principale */
.course-main-card {
  background: linear-gradient(145deg, #1c1c1e, #2c2c2e) !important;
  color: white !important;
  text-align: center;
}

.course-main-card .emoji-large { font-size: 4rem; margin-bottom: 10px; }
.course-main-card h3 { margin: 10px 0 5px; font-size: 1.2rem; }
.course-main-card .file-spec { 
  font-size: 0.7rem; 
  text-transform: uppercase; 
  opacity: 0.6; 
  margin-top: 15px;
  letter-spacing: 1px;
}

/* --- STYLE POUR LA BOÎTE ASTUCE / FORMULES --- */
.hint-block {
    position: relative;
    padding: 40px 20px 20px 20px !important;
    background-color: #fff3e0 !important;
    cursor: pointer;
    max-height: 160px; /* Taille d'une case bento standard */
    transition: max-height 0.5s ease-in-out, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    outline: none;
}

/* --- Style pour la boîte TD Supplémentaires --- */
.td-extra-block {
  background-color: #f8f9fa; /* Un gris très clair et propre */
  border: 1px solid #e5e5e7;
  display: flex;
  flex-direction: column;
  align-items: center;    /* Centre horizontalement le contenu */
  justify-content: center; /* Centre verticalement le contenu */
  text-align: center;      /* Centre les lignes de texte entre elles */
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.td-extra-content {
  display: flex;
  align-items: center;
  gap: 15px; /* Espace entre l'émoji et le texte */
}

.td-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1c1c1e;
  margin: 0;
}

.td-subtitle {
  font-size: 0.85rem;
  color: #86868b;
  margin: 4px 0 0 0;
}

.badge-extra {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #e8f0fe;
  color: #1967d2;
  font-size: 0.6rem;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Effet au survol */
.td-extra-block:hover {
  background-color: #ffffff;
  border-color: #007aff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Contenu des formules */
.hint-content {
    width: 100%;
    opacity: 0.9;
}

/* Petit texte en bas pour indiquer qu'on peut cliquer */
.expand-indicator {
    font-size: 0.7rem;
    color: #e65100;
    margin-top: 10px;
    font-weight: 600;
    opacity: 0.7;
}

/* --- L'EFFET D'OUVERTURE AU CLIC --- */
.hint-block:focus {
    max-height: 1000px; /* S'ouvre pour laisser passer tout le texte */
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Cache l'indicateur quand c'est ouvert */
.hint-block:focus .expand-indicator {
    display: none;
}

/* Style du badge (inchangé) */
.badge-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #ff9500;
    color: white;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Carte de Correction */
.correction-card {
  border: 1.5px solid #34c759;
  transition: all 0.3s ease;
}

.correction-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.correction-card .main-label { font-weight: 700; color: #1c1c1e; font-size: 1.1rem; }
.correction-card .sub-label { font-size: 0.85rem; color: #86868b; }

/* Utilitaires */
.emoji-medium { font-size: 1.5rem; }

/* --- Style pour la boîte Evaluations --- */
.exam-block {
  background-color: #ffffff;
  border: 1px solid #e5e5e7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.exam-content {
  text-align: center;
}

.exam-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1c1c1e;
  margin-top: 10px;
}

.exam-subtitle {
  font-size: 0.8rem;
  color: #86868b;
  margin-top: 4px;
}

.badge-archive {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #f2f2f7;
  color: #1d1d1f;
  font-size: 0.6rem;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Effet au survol spécifique */
.exam-block:hover {
  border-color: #ff9500; /* Orange Apple pour le côté "Examen/Attention" */
  background-color: #fffaf0;
}

.exam-block:hover .exam-title {
  color: #ff9500;
}

/* Grille spécifique pour les simulations */
.simu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  padding: 10px;
}

.simu-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.simu-card:active { transform: scale(0.95); } /* Feedback tactile */

/* Fenêtre Modale Plein Écran */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  background: #fff;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  color: white;
}

/* Grille spécifique pour les simulations */
.simu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  padding: 10px;
}

.simu-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.simu-card:active { transform: scale(0.95); } /* Feedback tactile */

/* Fenêtre Modale Plein Écran */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  background: #fff;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  color: white;
}

#p5-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #f0f0f0;
}

.close-btn {
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  padding: 0 10px;
}

/* ==========================================================================
   CARROUSELS DE SIMULATIONS — VERSION MOBILE CONFORT + FLÈCHES
   ========================================================================== */

.simu-section {
  width: 100%;
  margin: 25px 0 45px;
}

.simu-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #86868b;
  margin: 0 0 12px 12px;
  font-weight: 700;
}

/* Wrapper pour placer les flèches */
.simu-carousel-wrapper {
  position: relative;
  width: 100%;
}

/* Carrousel */
.simu-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 50px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.simu-carousel::-webkit-scrollbar {
  display: none;
}

/* Carte simulation */
.simu-card {
  min-width: 190px;
  max-width: 190px;
  flex-shrink: 0;
  scroll-snap-align: start;

  background: #ffffff;
  border-radius: 22px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.simu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.simu-card:active {
  transform: scale(0.96);
}

/* Miniature ronde */
.simu-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 1px solid #e5e5e7;
  background: white;
  transition: transform 0.3s ease;
}

.simu-card:hover .simu-thumb {
  transform: scale(1.1);
}

/* Titres */
.simu-card h3 {
  font-size: 0.95rem;
  margin: 8px 0 4px;
  color: #1c1c1e;
}

.simu-card p {
  font-size: 0.75rem;
  color: #86868b;
  margin: 0;
}

/* ==========================================================================
   FLÈCHES DE DÉFILEMENT — STYLE APPLE
   ========================================================================== */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #1c1c1e;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.simu-carousel-wrapper:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  background: #ffffff;
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.left {
  left: 8px;
}

.carousel-arrow.right {
  right: 8px;
}

@media (max-width: 768px) {

  .simu-carousel {
    gap: 16px;
    padding: 20px 40px;
  }

  .simu-card {
    min-width: 80vw;
    max-width: 80vw;
    height: 260px;
    font-size: 1.1em;
  }

  .simu-thumb {
    width: 120px;
    height: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .simu-title {
    font-size: 1.8em;
  }
}

.annales-block .emoji-large {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

/* Pour les descriptions sous le titre dans les colles */
.annales-block .instructor {
    font-size: 0.75rem;
    margin-top: 4px;
}
