@import url('navbar.css') ;


/* Styles de base */
body {
    font-family: Arial, sans-serif;
    font-size: 16px; /* Taille de base */
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
	color: #2563EB; /* Bleu vif */
	text-decoration: none; /* Supprime le soulignement par défaut */
	font-weight: 500;
	transition: color 0.2s ease-in-out, border-bottom 0.2s ease-in-out;
	border-bottom: 1px dashed #2563EB; /* Soulignement discret */
}

a:hover,
a:focus {
	color: #1E40AF; /* Bleu foncé au survol */
	border-bottom: 1px solid #1E40AF; /* Soulignement renforcé au survol */
}



.container {
    max-width: 1200px;
    text-align: center;
    padding: 2em;
}

.paragraph {
    line-height: 1.6;
    text-align: left;
    text-indent: 20px;
    margin: 2em auto;
    font-size: 1rem; /* Équivalent à 16px */
    max-width: 600px;
}

.disclaimer {
    font-size: 0.75rem; /* Caractères plus petits */
    color: #666; /* Couleur grise discrète */
    line-height: 1.4; /* Espacement entre les lignes pour la lisibilité */
    text-align: left; /* Texte justifié à gauche */
    margin-top: 2em; /* Espacement au-dessus */
    margin-bottom: 1em; /* Espacement en dessous */
    padding: 1em; /* Espacement interne pour aérer */
    border-top: 1px solid #ddd; /* Ligne fine pour séparer visuellement */
    background-color: #f9f9f9; /* Fond clair pour démarquer */
    border-radius: 6px; /* Coins légèrement arrondis */
}


.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-bottom: 1em;
}

.header h1,
h1 {
    color: #004466;
    font-size: 1.8rem; /* Ajusté à 28.8px */
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

h1 span {
    display: block;
    font-size: 1.2rem; /* 19.2px */
    margin-top: 0.5em;
}

h2 {
    margin-top: 0.5em;
    color: #333;
    font-size: 1.4rem; /* 22.4px */
}

h2 span {
    font-style: italic;
    color: #006680;
}

.subtitle {
    display: block;
    font-size: 0.9rem; /* 14.4px */
    color: #666;
    margin-top: 0.3em;
}

/* Grille pour les cards */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    align-items: stretch;
    gap: 1.5em;
    margin: 3em 1em;

    max-width: 1200px;
    padding: 0 1em; 
}



/* Styles pour les cards */
.card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1.5em;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: #005580;
    border-bottom: 2px solid #004466;
}

.card a {
    text-decoration: none;
}

.card-content {
    padding: 15px;
}

.cardTitle1 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.cardTitle2 {
    font-size: 1.0rem;
    color: #005580;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 8px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.1;
}

.card-text {
    font-size: 0.95rem; /* 15.2px */
    color: #555;
    line-height: 1.6;
}

.card-link {
	text-decoration: none;
}

.card-image {
    display: block; /* Supprime les espaces blancs autour de l'image */
    max-width: 100%; /* L'image s'adapte à la largeur de la card */
    height: auto; /* Maintient les proportions de l'image */
    border-radius: 8px; /* Bordures arrondies */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
    margin: 0 auto 1em auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Effets de transition */
}

.card-image:hover {
    transform: scale(1.05); /* Agrandissement au survol */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Augmentation de l'ombre au survol */
}



/* Section et boutons supplémentaires */
.nav-buttons .button,
.resource-link,
.nav-button {
    font-size: 1rem; /* Assure une taille uniforme sur les boutons */
    padding: 0.8em 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.footer,
.evaluation p,
.sommaire p {
    font-size: 0.95rem;
    line-height: 1.6;
}



/* Centrage de l'illustration */
.illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 2em auto; /* Assure un centrage horizontal dans le conteneur principal */
    padding: 1em 0;
}

.illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}


/* Bouton de retour */
.back-button {
    text-align: left;
    margin-bottom: 1em;
}

.back-button .button {
    background-color: #004466;
    color: #fff;
    padding: 0.5em 0.8em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-button .button:hover {
    background-color: #00334d;
}

/* Boutons de navigation */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 1em 0; /* Plus d'espacement par rapport au titre */
}

.small-button {
    font-size: 0.9em; /* Taille de police plus petite */
    padding: 0.5em 1em; /* Réduction du rembourrage */
}

.button {
    background-color: #004466;
    color: #fff;
    padding: 0.8em 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #00334d;
}

.button[disabled] {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}





/* Barre de navigation en haut */
.top-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Boutons de navigation */
.top-navigation .button {
    background-color: #004466;
    color: #fff;
    padding: 0.6em 1.2em;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.top-navigation .button:hover {
    background-color: #00334d;
}

/* Conteneur de la fiche */
/* 
.fiche-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
 */

.fiche-container {
    max-width: 95%; /* Adapte la largeur pour les petits écrans */
    width: 1000px; /* Taille par défaut augmentée pour les écrans standard */
    margin: 2em auto;
    padding: 2em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Titre et illustration */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-bottom: 1em;
}

.header h1 {
    color: #004466;
    font-size: 1.8em;
    margin: 0;
}

.fiche-illustration {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
}

/* Section d'informations principales */
.info-section {
    font-size: 1em;
    margin-bottom: 1em;
    display: flex;
    gap: 1.5em;
    color: #666;
}

/* Sommaire */
.sommaire {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.sommaire h2 {
    color: #004466;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.ficheItem {
    color: #004466;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.sommaire p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

/* Liens vers les ressources */
.resources {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin: 10px;
    margin-bottom: 1.5em;
}

.resource-link {
    display: inline-block;
    padding: 0.8em;
    background-color: #004466;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.resource-link:hover {
    background-color: #00334d;
}

/* Boutons de navigation */
.nav-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1em;
    margin-bottom: 1.5em;
}

.nav-button {
    padding: 0.6em 1.2em;
    background-color: #004466;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #00334d;
}

.nav-button[disabled] {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}


/* Section Auto-évaluation / QCM */
.evaluation {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
}

.evaluation h2 {
    color: #004466;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.evaluation p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    margin-bottom: 1em;
}



.image-container {
    text-align: center;
    margin: 1em auto;
    max-width: 95%; /* Limite la largeur pour les petits écrans */
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;   /* largeur max de la vidéo */
  margin: 2em auto;   /* centrage horizontal + espace vertical */
  overflow: hidden;
  border-radius: 12px; /* coins arrondis */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-sect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Pour garder un ratio 16/9 responsive */
.video-container::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* ratio 16:9 (9/16 = 0.5625) */
}

.video-caption {
  margin-top: 0.5em;       /* espace entre la vidéo et la légende */
  text-align: center;      /* centrer le texte */
  font-size: 0.9rem;       /* taille de police un peu réduite */
  color: #555;             /* gris pour rester discret */
  font-style: italic;      /* style légende */
  max-width: 100%;         /* ne déborde pas */
  word-wrap: break-word;   /* force le retour à la ligne si besoin */
}

/* Miniatures d'images */
.thumbnail {
    max-width: 100%; /* Permet aux images de s'adapter à leur conteneur */
    width: 300px; /* Taille par défaut pour les écrans standard */
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05); /* Effet au survol */
}

/* Titre de l'image */
.image-title {
    color: #004466;
    font-size: 1.2em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}


.image-link {
    text-decoration: none;
}

/* Styles pour les vignettes */



.modal {
    display: none; /* Masqué par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    object-fit: contain; /* Conserver les proportions sans déformation */
    margin: auto; /* Centrer l'image dans la fenêtre */
    min-width: 70%;  /* Donne une taille minimale de 50% de la largeur de la fenêtre */
    min-height: 90%; /* Donne une taille minimale de 50% de la hauteur de la fenêtre */
}

.modal-content:hover {
    cursor: pointer;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Conteneur principal du tableau */
.table-container {
    margin: 2em auto;
    max-width: 100%;
    text-align: center;
}

/* Titre du tableau */
.table-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 1em;
    color: #004466;
}

/* Contenu du tableau : Grille */
.table-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Colonnes adaptables */
    gap: 1em; /* Espacement entre les cellules */
    justify-items: center; /* Centre les éléments horizontalement */
    align-items: center; /* Centre les éléments verticalement */
}

/* Cellules de tableau */
.table-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 200px; /* Largeur fixe pour chaque cellule */
    height: 250px; /* Hauteur fixe pour chaque cellule */
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Images dans les cellules */
.table-item img.thumbnail {
    max-width: 100%;
    max-height: 120px; /* Limite la hauteur des images */
    margin-top: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Texte dans les cellules */
.table-item span {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0.5em;
}





/* Responsivité */
@media (max-width: 768px) {
    .top-navigation {
        flex-direction: column;
        gap: 0.5em;
    }
    .top-navigation .button {
        width: 100%;
        text-align: center;
    }
    .card-grid {
        flex-direction: column;
        align-items: center;
    }
    .footer {
        font-size: 0.8rem;
        padding: 0.8em;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .resources {
        gap: 0.8em;
    }
}

/* Médias queries pour ajuster la largeur sur différents écrans */
@media (min-width: 768px) {
    .fiche-container {
        width: 1100px; /* Plus large pour les tablettes et petits écrans standard */
    }
}

@media (min-width: 1200px) {
    .fiche-container {
        max-width: 80%; /* Ajuste la largeur pour les grands écrans */
        width: 1200px; /* Largeur fixe pour écrans standard */
    }
}

@media (min-width: 1600px) {
    .fiche-container {
        max-width: 70%; /* Largeur relative pour très grands écrans */
    }
}

/* Médias queries pour adapter les dimensions */
@media (min-width: 768px) {
    .thumbnail {
        width: 500px; /* Plus large sur tablettes */
    }
    .image-title {
        font-size: 1.4em; /* Texte légèrement plus grand */
    }
}

@media (min-width: 1024px) {
    .thumbnail {
        width: 600px; /* Taille maximale pour les écrans larges */
    }
    .image-title {
        font-size: 1.5em; /* Texte adapté aux grands écrans */
    }
}

        .body-sect {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .container-sect {
            width: 80%;
            margin: 20px auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        }
        


.h1-sect {
	color: #1D3557; /* Bleu foncé profond */
	font-size: 1.75rem;
	font-weight: bold;
	text-transform: uppercase;
	border-bottom: 2px solid #1D3557;
	padding-bottom: 5px;
	margin-top: 40px;
}

.h2-sect {
	background-color: #FFEDD5; /* Pêche clair */
	border-left: 8px solid #F97316; /* Orange vif */
	padding: 12px 20px;
	margin: 40px 0 20px 0;
	font-size: 1.5rem;
	font-weight: bold;
	color: #9A3412;
	border-radius: 6px;
	box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
}

.h3-sect {
	background-color: #DCFCE7; /* Vert pâle */
	border-left: 6px solid #22C55E; /* Vert */
	padding: 10px 18px;
	margin: 30px 0 15px 10px;
	font-size: 1.25rem;
	font-weight: 600;
	color: #166534; /* Vert foncé */
	border-radius: 5px;
}

.h4-sect {
	background-color: #E0E7FF; /* Bleu lavande clair */
	border-left: 5px solid #6366F1; /* Indigo */
	padding: 8px 16px;
	margin: 25px 0 12px 20px;
	font-size: 1.1rem;
	font-weight: 500;
	color: #3730A3; /* Indigo foncé */
	border-radius: 4px;
}

.h5-sect {
	background-color: #FEF9C3; /* Jaune très pâle */
	border-left: 4px solid #EAB308; /* Jaune doré */
	padding: 6px 14px;
	margin: 20px 0 10px 30px;
	font-size: 1rem;
	font-style: italic;
	color: #854D0E; /* Marron doré foncé */
	border-radius: 4px;
}

        





/*        
.image-sect {
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); 
}
*/

.image-sect {
    max-width: 100%;
    max-height: 80vh; /* Limite la hauteur de l'image à 80% de la hauteur de la fenêtre */
    width: auto;
    height: auto;

    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    display: block; /* Évite les marges indésirables autour des images en ligne */
    margin: 1em auto; /* Centre l'image horizontalement */
    object-fit: contain; /* Préserve l'intégralité de l'image sans la rogner */
}


.image-caption {
    font-style: italic;
    font-size: 0.9em;
    color: #555; /* Couleur légèrement atténuée pour la légende */
    margin-top: 0.5em;
}


.button-icon-sect {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.3em;
}

.button-icon-sect img {
  height: 1.2em;           /* adapte à la taille du texte */
  width: auto;             /* garde les proportions */
  vertical-align: middle;
  border-radius: 4px;      /* optionnel, pour un effet plus doux */
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15); /* optionnel, effet discret */
}

/* ============================================================================== */

.table-container {
    width: 80%;  /* Ajuste la largeur du container */
    margin: 0 auto;  /* Centre le container horizontalement */
    padding: 20px;  /* Optionnel : ajoute un peu d'espacement autour du tableau */
    overflow-x: auto;  /* Optionnel : ajoute une barre de défilement horizontale si le tableau est trop large */
}

table {
    width: 100%;
    border-collapse: collapse; /* Supprime les espaces entre les cellules */
    margin: 20px 0; /* Espace au-dessus et en-dessous de la table */
    font-family: Arial, sans-serif; /* Choix de la police */
    background-color: #f9f9f9; /* Couleur de fond claire */
}

/* Style des en-têtes de table (tr et th) */
th {
    background-color: #357ABD ;
    color: white; /* Texte blanc */
    padding: 12px 15px; /* Espacement interne */
    text-align: left; /* Alignement du texte à gauche */
    font-weight: bold; /* Texte en gras */
}

/* Style des lignes de la table (tr) */
tr:nth-child(even) {
    background-color: #f2f2f2; /* Fond gris clair pour les lignes paires */
}

tr:nth-child(odd) {
    background-color: #ffffff; /* Fond blanc pour les lignes impaires */
}

/* Style des cellules de table (td) */
td {
    padding: 10px 15px; /* Espacement interne */
    border: 1px solid #ddd; /* Bordure grise claire */
    text-align: left; /* Alignement du texte à gauche */
}

/* Ajout d'un effet au survol des lignes */
tr:hover {
    background-color: #ddd; /* Fond gris clair lors du survol */
}

/* Style pour les bordures de la table */
table, th, td {
    border: 1px solid #ddd; /* Bordure grise pour toutes les cellules */
}

/* Ajout d'un rayon de bordure pour un effet arrondi */
table {
    border-radius: 8px; /* Coins arrondis pour la table */
    overflow: hidden; /* Empêche les bords arrondis d'être coupés */
}

/* ============================================================================== */

        
.source-sect {
    font-size: 0.9em;  /* Légèrement plus petit que le texte normal */
    font-style: italic;  /* Italique pour distinguer */
    color: #555;  /* Couleur gris foncé */
}

.source-sect a {
    color: #0077cc;  /* Bleu pour le lien */
    text-decoration: none;  /* Supprime le soulignement */
    font-weight: bold;  /* Met en valeur le lien */
}

.source-sect a:hover {
    text-decoration: underline;  /* Ajoute un soulignement au survol */
    color: #005599;  /* Assombrit la couleur au survol */
}

/* Listes non ordonnées */
.ul-sect {
  list-style-type: disc;       /* pastille standard */
  padding-left: 2em;           /* décalage à gauche */
  margin-bottom: 1em;
  line-height: 1.6;
	text-align: left;
}

/* Listes ordonnées */
.ol-sect {
  list-style-type: decimal;    /* numérotation standard */
  padding-left: 2em;
  margin-bottom: 1em;
  line-height: 1.6;
}

/* Éléments de liste communs */
.li-sect {
  margin-bottom: 0.5em;        /* espace entre les items */
  text-align: justify;         /* alignement du texte */
  text-indent: 1em;            /* indentation première ligne */
text-align: left;
}


.pre-sect {
	background: #eee;
	padding: 10px;
	border-radius: 5px;
	overflow-x: auto;
}
.footer-sect {
	text-align: center;
	margin-top: 20px;
	font-size: 0.9em;
	color: #666;
}


.resources0 {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin: 20px;
}

/* Style carte */
.card0 {
  display: block;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card0:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Image */
.card-image0 {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Contenu texte */
.card-content0 {
  padding: 1em 1.2em;
}

.card-title0 {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.4em;
  color: #004466;
}

.card-text0 {
  font-size: 1em;
  color: #555;
}


.cards-container1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin: 20px;
}

.card1 {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  width:  100%;
  height: 100%;   /* prend toute la hauteur de la cellule de la grille */
}


/* Tablettes : 2 colonnes */
@media (min-width: 600px) {
  .cards-container1 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Écrans larges : 4 colonnes */
@media (min-width: 1200px) {
  .cards-container1 {
    grid-template-columns: repeat(4, 1fr);
  }
}


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

.card-image1 {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.card-content1 {
  padding: 1em;
}

.card-title1 {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.4em;
  color: #004466;
}

.card-text1 {
  font-size: 1em;
  color: #555;
}

.qa-header { margin-bottom: 1.2rem; }
.qa-subtitle { opacity: .85; margin-top: .6rem; line-height: 1.35; }

.qa-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0 1.2rem; }
.qa-search { flex: 1 1 260px; padding: .6rem .75rem; border-radius: .8rem; border: 1px solid rgba(0,0,0,.15); }
.qa-btn { padding: .55rem .75rem; border-radius: .8rem; border: 1px solid rgba(0,0,0,.15); background: rgba(0,0,0,.03); cursor: pointer; }
.qa-btn:hover { transform: translateY(-1px); }
.qa-counter { margin-left: auto; opacity: .75; font-size: .95em; }

.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.qa-card { border: 1px solid rgba(0,0,0,.12); border-radius: 1rem; background: rgba(255,255,255,.6); overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.qa-question { width: 100%; text-align: left; padding: .85rem .9rem; display: flex; gap: .65rem; align-items: flex-start; background: transparent; border: 0; cursor: pointer; }
.qa-question:focus { outline: 2px solid rgba(0,0,0,.25); outline-offset: 2px; }
.qa-badge { flex: 0 0 auto; font-weight: 700; font-size: .9em; padding: .15rem .5rem; border-radius: .7rem; border: 1px solid rgba(0,0,0,.12); background: rgba(0,0,0,.03); }
.qa-qtext { flex: 1 1 auto; line-height: 1.25; }
.qa-chevron { flex: 0 0 auto; opacity: .7; margin-top: .15rem; transition: transform .18s ease; }
.qa-card[data-open="1"] .qa-chevron { transform: rotate(180deg); }

.qa-answer { padding: .2rem .9rem .95rem; }
.qa-atext { border-top: 1px dashed rgba(0,0,0,.15); padding-top: .75rem; line-height: 1.35; opacity: .95; }
.qa-hidden { display: none !important; }

.code-sect {
    margin: 1em 0;
}

.code-sect pre {
    background-color: #f5f5f5;
    border: 1px solid #cccccc;
    padding: 0.8em 1em;
    overflow-x: auto;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95em;
    line-height: 1.4;
    color: #1f3a5f;
    white-space: pre;
}