/* START OF FILE pays-M.css */

/* Styles généraux */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --background-color: #f9f9f9;
    --footer-background: #2c3e50;
    --footer-text: #ecf0f1;
    --btn-green: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Added consistency for images */
}

/* Header */
header {
    background-color: #a0cdd9;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.logo {
    max-height: 60px;
}

nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
}

.intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Les deux conteneurs centrés */
.featured-containers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.planif-container {
    width: 400px; /* Largeur sur PC */
    height: 280px;
    background-color: #f0f0f0; /* Couleur de fond neutre après suppression de l'image */
    border-radius: 8px;
    display: flex; /* Utiliser flex pour centrer le contenu textuel */
    align-items: center; /* Centrer verticalement */
    justify-content: center; /* Centrer horizontalement */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Les styles liés à l'image et au bouton "Découvrez ce site" sont supprimés */
    /* .planif-container::before est aussi supprimé */
}

.planif-text-content {
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(44, 62, 80, 0.9); /* Fond semi-transparent pour la lisibilité */
    color: white;
    border-radius: 8px; /* Assurer le même arrondi que le conteneur parent */
}

.planif-text-content p {
    color: white; /* Assurer que le texte du paragraphe est blanc */
    margin-bottom: 0.5rem;
    padding: 0 0.5rem; /* Petit padding pour éviter que le texte ne touche les bords */
}

.planif-text-content p:last-of-type {
    margin-bottom: 0; /* Pas de marge en bas pour le dernier paragraphe */
}

.eeat-signature {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 0.5rem;
}


.ads-container {
    width: 340px;
    height: 280px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.2rem;
    text-align: center;
}

.content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.pays-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    transition: all 0.3s ease; /* Moved transition here */
}

.pays-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1rem 0;
}

.pays-image-container { /* Added container for better control */
    flex: 1;
    min-width: 250px; /* Adjusted min-width */
}

.pays-image {
    width: 100%; /* Ensure image fills container */
    height: auto;
    object-fit: cover; /* Ensure image covers space well */
    border-radius: 8px;
    display: block;
}


.pays-details {
    flex: 1;
    min-width: 250px;
}

.pays-details p {
    margin-bottom: 0.5rem;
}
.pays-details strong {
    color: var(--secondary-color); /* Style strong tags */
}

/* Footer */
footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 3rem 2rem;
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 250px;
}

footer h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer a {
    color: var(--light-color);
}

footer a:hover {
    color: var(--primary-color);
}

footer ul {
    list-style: none;
    padding: 0; /* Remove default padding */
}

footer li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .featured-containers {
        flex-direction: column;
        align-items: center;
    }

    .planif-container {
        width: 80%; /* Largeur sur smartphone comme demandé */
        max-width: 400px; /* Empêche de devenir trop grand sur des écrans intermédiaires */
    }

    .ads-container {
        width: 90%; /* Make ads container wider on mobile, keeping its nature */
        max-width: 340px; /* But not too wide for typical ad sizes */
    }

    .pays-info {
        flex-direction: column;
    }

     .pays-image-container {
        min-width: 100%; /* Image takes full width */
    }
		

    footer {
        flex-direction: column;
        text-align: center; /* Center footer content */
    }

     .footer-left, .footer-center, .footer-right {
        min-width: 100%;
    }
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero, .content, .featured-containers {
    animation: fadeIn 0.8s ease-in;
}

/* Amélioration de l'expérience utilisateur */
.pays-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Styles pour améliorer l'accessibilité */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.faq-section {
  margin: 30px 0;
}

.faq-question {
  cursor: pointer;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.3s;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 15px;
  font-weight: bold;
}

.faq-question.active::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 12px;
  background: #fff;
  border-left: 3px solid #0073e6;
  margin-bottom: 10px;
}

.faq-answer.open {
  padding: 12px;
  max-height: 500px; /* assez grand pour contenir le texte */
}

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0073e6;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  display: none; /* caché au départ */
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.2s;
  z-index: 999;
}

#backToTop:hover {
  background: #005bb5;
  transform: scale(1.1);
}

/* END OF FILE pays-M.css */