/* Base CSS Styles for MVP */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styles */
header {
    background: #333; /* To be adjusted with your colour palette */
    color: #fff; 
    padding: 1rem 2%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}
.header-logo img {
    height: 50px; 
    width: auto;
    margin-left: 20px; 
}
.header-title-nav {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    flex-grow: 1; 
}
header h1 {
    margin: 0 0 0.5rem 0; 
    font-size: 1.8em; 
}

/* Navigation Styles */
nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    margin: 0;
}
nav ul li {
    display: inline;
    margin: 0 10px; 
}
nav ul li a {
    color: #fff; 
    text-decoration: none;
    font-size: 0.95em;
}
nav ul li a:hover {
    color: #ddd; /* To be adjusted */
}

/* Responsive adjustments for Header */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    .header-logo {
        margin-top: 10px;
        margin-left: 0; /* Center logo on small screens if header is column */
        /* text-align: center; /* might be needed on .header-logo itself */
    }
     nav ul li {
        margin: 0 5px; 
    }
}

/* Main Container Styles */
.container {
    width: 80%;
    max-width: 1200px; 
    margin: 20px auto; 
    overflow: auto; /* Important for containing floats */
    padding: 20px;
    background-color: #fff;
}
main h1 { /* Main page title style (e.g., "À Propos de Moi", "My Engagements") */
    margin-bottom: 25px;
    font-size: 1.8em; /* Example, adjust as needed */
}

/* Tab System Styles */
.tab-container { 
    width: 100%;
}
.tab-buttons {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex; 
    flex-wrap: wrap; 
    border-bottom: 2px solid #ccc; 
}
.tab-buttons li {
    padding: 10px 18px;
    cursor: pointer;
    background-color: #e9e9e9; 
    color: #555;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 5px;
    margin-bottom: -2px; 
    border-radius: 5px 5px 0 0; 
    position: relative; 
}
.tab-buttons li.active {
    background-color: #fff; 
    color: #333;
    border-bottom: 2px solid #fff; 
    position: relative; /* Kept for consistency if needed */
    top: 2px; /* Adjusted to align with the border-bottom of .tab-buttons */
}
.tab-content {
    display: none; 
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none; 
}
.tab-content.active {
    display: block !important; /* Kept !important from your version, ensure it's needed */
}
/* Titles within tab content (e.g., for skills or engagement categories) */
.tab-content h2 { 
    margin-top: 0; 
    margin-bottom: 15px;
    font-size: 1.2em; 
}
.tab-content h3 { 
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
    padding-bottom: 5px;
}
/* Ensure no extra margin for first heading in a tab content if not needed */
.tab-content > *:first-child { 
    margin-top: 0;
}

/* Styles for index.html */
.portrait { 
    float: left; 
    width: 120px; 
    height: auto; 
    border-radius: 50%; 
    margin-right: 20px; 
    margin-bottom: 10px; 
    border: 2px solid #333; 
}
.about-me-quote { 
    text-align: center;
    font-style: italic;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #555;
    clear: both; 
}

/* Styles for competences.html */
.skills-list { 
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}
.skills-list li {
    margin-bottom: 8px;
}

/* Styles for engagements.html */
.engagement-item {
    margin-bottom: 20px; 
}
.engagement-item:last-child {
    margin-bottom: 0;
}
.engagement-item strong { 
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #222; 
}
.engagement-details { 
    font-style: italic;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

/* Styles for contact.html */
.contact-info {
    line-height: 1.8; 
}
.contact-info p {
    margin-bottom: 12px; 
    font-size: 1.05em; 
}
.contact-info strong { 
    display: inline-block; /* Was block, but strong is inline by default. Adjusted as per contact page context. */
    width: 110px;        /* If you want labels and values on same line with fixed width for label */
    font-weight: bold;
    color: #555; 
}
.contact-info a {
    color: #007bff; 
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}
.consultation-button {
    display: inline-block;
    background-color: #28a745; 
    color: white;
    padding: 10px 18px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.consultation-button:hover {
    background-color: #218838; 
}
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio for embedded maps */
    height: 0;
    margin-top: 20px;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.details-button {
    display: inline-block;
    background-color: #555; 
    color: white;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/*bouton experience reliee au projet correspondant */
.details-button:hover {
  background-color: #777;
}
/* Vous pouvez aussi ajouter un style pour la classe .experience-item si vous voulez plus d'espacement ou une bordure */
.experience-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
}
.experience-item:not(:last-child) { /* Pour ne pas avoir de double bordure si vous utilisez aussi <hr> */
  /* border-bottom: 1px solid #eee; /* Alternative à <hr> */
}
.experience-details { 
  font-style: italic;
  font-size: 0.9em;
  color: #555;
  margin-bottom: 5px;
}

 /* Bouton experience pour relier avec les projet correspondant*/
    .details-button {
    display: inline-block;
    background-color: #555; 
    color: white;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    }
  
    .details-button:hover {
    background-color: #777;
    }

    /*gestion du calendrier google workspace enterprise calendar for meeting booking*/
/* Styles for Embedded Google Calendar */
.calendar-container {
    position: relative;
    overflow: hidden;
    /* Vous pouvez ajuster padding-top pour le ratio hauteur/largeur. 
       75% est un ratio 4:3. Google Calendar a souvent une hauteur fixe par défaut.
       Une alternative est de définir une hauteur fixe et max-width:100% pour l'iframe.
       Pour commencer, nous allons utiliser une approche similaire à celle de la carte.
       Si le calendrier apparaît trop petit en hauteur, nous pourrons ajuster. */
    padding-top: 70%; /* Ajustez ce pourcentage pour obtenir la hauteur désirée */
    height: 0;
    margin-top: 25px; /* Espace au-dessus du calendrier */
    border: 1px solid #ccc; /* Bordure optionnelle autour du calendrier */
}
.calendar-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/*Recommendation letters*/
.recommendation-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.recommendation-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.recommendation-details {
    font-style: italic;
    color: #555;
    margin-bottom: 5px;
}
.recommendation-extract {
    background-color: #f9f9f9;
    border-left: 3px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    font-style: italic;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background: #333; 
    color: #fff;
    margin-top: 20px;
}

.menu-lang {
    /* Exemple: si vous le mettez en haut à droite du header */
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex; /* Pour aligner les drapeaux */
    gap: 5px; /* Espace entre les drapeaux */
}

.menu-lang img {
    height: 20px; /* Ou la taille que vous souhaitez */
    width: auto;
    border-radius: 3px; /* Coins légèrement arrondis */
    transition: transform 0.2s ease-in-out, border 0.2s ease-in-out; /* Pour l'effet de survol/sélection */
}

.menu-lang img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}
