/* Style général */
body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* Jaune sable chaleureux */
    background-color: #fcf4d9; 
    /* Gris très foncé pour une lecture confortable */
    color: #2c2c2c; 
}

/* En-tête avec le titre */
header {
    background-color: #4b3621; /* Brun terreux */
    color: #fcf4d9;
    padding: 2.5rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Menu horizontal */
nav {
    background-color: #5d4037; 
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li a {
    display: block;
    color: #fcf4d9;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    background-color: #8d6e63;
}

/* --- SECTION MODIFIÉE : Marges à 90% --- */
main {
    width: 90%;          /* Utilise 90% de la largeur de l'écran */
    max-width: 1600px;   /* Limite pour ne pas être trop large sur les écrans géants */
    margin: 2rem auto;   /* Centre le bloc avec 5% de marge de chaque côté */
    padding: 1rem;
}

h2 {
    color: #4b3621;
    border-bottom: 1px solid #d2b48c;
    padding-bottom: 0.5rem;
}

/* Styles pour les images */
.img-base {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    /* Bordure ivoire pour s'harmoniser avec le fond */
    border: 5px solid #fffdf5; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mise en page "Les phrases de morale" */
.bloc-phrase {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0d4b0;
}

.cote-a-cote {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 1.5rem;
}

.cote-a-cote p {
    flex: 1; /* Le texte prend l'espace restant */
}

.cote-a-cote img {
    width: 50%; /* L'image prend la moitié du bloc */
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .cote-a-cote {
        flex-direction: column; /* Empile le texte et l'image sur téléphone */
    }
    .cote-a-cote img {
        width: 100%;
    }
}


.mon-bouton {
  background-color: #3498db;
  color: white;
  padding: 5px 25px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
}

.mon-bouton:hover {
  background-color: #2980b9;
}

.bordNoir{
    border: solid black 1px;
    border-radius: 15px;
}
.bordBlanc{
    border: solid white 1px;
    border-radius: 15px;
}


/* Le conteneur de l'icône et du texte */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 10px;
}

/* Le texte de l'explication (caché par défaut) */
.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Positionne le texte au-dessus de l'ampoule */
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    font-weight: normal;
    line-height: 1.4;
}

/* La petite flèche sous la bulle */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Affiche le texte quand on survole l'ampoule */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}






    /* text-decoration-color: white; */
}

nav > ul{
    margin: 0px;
    padding: 0px;
}

nav > ul::after {     /* cela couine*/
    content: "";
    display: block;
    clear :both;
}

nav > ul > li{ /* il y a selection avec le symbole > */ 
    float: left;
    position: relative;

}

nav > ul >li >a{
    padding: 6px 30px;  /* hauteur puis   écart */
    color:white;
}

nav a{
    display: inline-block;
    text-decoration: none;/* enlève le souligné */
}

nav li{
    list-style-type: none;
}


/* *******************  LES SOUS MENUS ******************* */
.sousmenu{
     display: none; 
}

nav li:hover .sousmenu{   /* cela fonctionne même si hover reste en blanc */
    display :inline-block;
    position:absolute;
    top: 100%;
    left : 0px;
    padding: 0px;
    z-index: 1000;
    border-top: 1px solid white; 
}


.sousmenu li{
    border-top: 0px solid white; /* separation des sous menu */
    border-right: 1px solid white;
    border-left: 1px solid white;
    border-bottom: 1px solid white;
}

.sousmenu li a{
    padding: 4px 20px;
    font-size: 16px;
    color: white;
    width:200px;
    background-color: #2c2c2c; 
}


/* *********** pour mettre une image à coté d'un texte ************ */
.container {
  display: flex; /* Active le mode flex */
  align-items: center; /* Aligne verticalement le texte et l'image */
  gap: 20px; /* Ajoute un espace entre le texte et l'image */
}

.container p {
  flex: 1; /* Permet au texte de prendre l'espace disponible */
}