
/*======= Beamer Box ========*/

.beamer-box {
    border-radius: 12px;    /* on garde l’arrondi si tu veux */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
/*    box-shadow: none; */       /* supprime l’ombre si nécessaire */
    margin: 1.5rem 0;
    overflow: hidden;
    border: none;           /* supprime le contour global */
    font-family: inherit;        /* hérite de la police du site */
    background-color: #eaeafa; /* couleur du corps */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beamer-box:hover {
    transform: scale(1.03); /* agrandissement léger */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* ombre portée */
}

.beamer-title {
    border: none;           /* supprime le trait sous le titre */
    background-color: #0011ff;   /* couleur CambridgeUS (bleu foncé) */
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    position: relative;
}

/* Transition douce au bas de l’en-tête */
.beamer-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;          /* commence exactement à la limite du titre */
    height: 8px;         /* zone de transition */
    background: linear-gradient(to bottom, #0011ff 0%, #eaeafa 100%);
    pointer-events: none; /* pour ne pas gêner la sélection du texte */
}

.beamer-body {
    background-color: #eaeafa; /* bleu clair comme dans texte=darkred!10 */
    color: #000;
    padding-top: 0.3rem;  /* diminue pour remonter le texte */
    padding-right: 1.2rem;
    padding-bottom: 1rem;
    padding-left: 1.2rem;
    font-size: 1.5rem;
}

.beamer-body ul {
    margin-top: 0.5rem;
}

/*============== Beamer Table ============*/

.beamer-body table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 1 auto;
}

.beamer-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 1rem auto;
}

.beamer-body th, .beamer-body td {
    border: 1px solid #0011ff;
    padding: 0.5rem 0.75rem;
}

.beamer-body th {
    background-color: #d0e1f5; /* un bleu clair pour l'entête */
    font-weight: bold;
}

/* Lignes horizontales */
.beamer-table tr.top-border th,
.beamer-table tr.bottom-border td {
    border-top: 3px solid #0011ff; /* bordure supérieure ou inférieure en gras */
    border-bottom: 3px solid #0011ff;
}

.beamer-table tr.mid-border.single th,
.beamer-table tr.mid-border.single td {
    border-bottom: 1px solid #0011ff; /* ligne simple */
}

.beamer-table tr.mid-border.double th,
.beamer-table tr.mid-border.double td {
    border-bottom: 3px double #0011ff; /* ligne double */
}

/* Lignes horizontales */
.beamer-table-segmented tr.top-border th {
    border-top: 3px solid #0011ff;
}
.beamer-table-segmented tr.bottom-border td {
    border-bottom: 3px solid #0011ff;
}
.beamer-table-segmented tr.mid-border.single th,
.beamer-table-segmented tr.mid-border.single td {
    border-bottom: 1px solid #0011ff;
}
.beamer-table-segmented tr.mid-border.double th,
.beamer-table-segmented tr.mid-border.double td {
    border-bottom: 3px double #0011ff;
}

/* Bordures verticales : Supprime toutes les bordures gauche et droite (border-left: 0, border-right: 0) */
.beamer-table th, 
.beamer-table td {
    border-left: 0px;  /* par défaut on supprime la gauche */
    border-right: 0px; /* par défaut on supprime la droite */
    padding: 0.5rem;
}

/* Lignes verticales : Ajoute une bordure droite bleue uniquement sur les cellules marquées .vline */
.beamer-table td.vline,
.beamer-table th.vline {
    border-right: 1px solid #0011ff;
}

/* Facultatif : ajouter verticales sur certaines colonnes */
.beamer-table td.has-left-border {
    border-left: 2px solid #0011ff;
}
.beamer-table td.has-right-border {
    border-right: 2px solid #0011ff;
}

/* Optionnel : mettre la dernière colonne avec une ligne verticale */
.beamer-table td:last-child {
    border-right: 0;
}

/* CSS pour les segments verticaux */

.beamer-table-segmented {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    text-align: center;
    margin: 1rem auto;
}

/* Segment vertical uniquement via pseudo-élément */
.vline-segment {
    position: relative;
}

/* Segment vertical */
.vline-segment::after {
    content: '';
    position: absolute;
    top: 4px;       /* commence juste après la ligne horizontale supérieure */
    bottom: 4px;    /* finit juste avant la ligne horizontale inférieure */
    right: 0;
    width: 1px;
    background-color: #0011ff;
}

/* On supprime toutes les bordures verticales classiques */
.beamer-table-segmented th,
.beamer-table-segmented td {
    border-left: 0;
    border-right: 0;
    padding: 0.5rem;
}

@media (max-width: 900px) {
  /* ===== Beamer-box ===== */
  .beamer-box {
    width: 100% !important;
    padding: 0.5rem 0.8rem !important;
    margin: 0.8rem 0 !important;
    border-radius: 8px !important;
  }

  /* Box hover pour mobile */
  .beamer-box:hover,
  .beamer-box.hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  }

  .beamer-title {
    font-size: 1.2rem !important;
    padding: 0.5rem 0.8rem !important;
  }

  .beamer-body {
    font-size: 14px !important;
    padding: 0.6rem 0.8rem !important;
  }
}
