
:root {
    --primary-color: #0d47a1;
    --accent-color: #ebf8ff;
    --text-color: #2d3748;
    --light-text: #718096;
    --border-color: #e2e8f0;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}
/************************* BASE STYLES *************************/

body {
font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e8f1fc;
    color: black;
    line-height: 1.6;

}

.header {
    display: flex;
    flex-direction: column; 
    text-align: center;
    background-color: #2779bd;
    padding: 8px 15px;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}
.header-top {
    display: flex;
    align-items: center;
    padding: 0px 20px;
    justify-content: left; /* Centre horizontalement */
}

/* Logo */
.logo {
    margin-right: 20px; /* Garde l'espacement original */
}

.logo img {
    height: 45px;
}

header .title {
    font-size: 20px;
    font-weight: bold;
    color: white;
}


/* View mode button */
#viewmode {
    position: absolute;
    right: 20px;
    top: 20px;
    margin: 0;
}

#viewmode img {
    width: 25px;
    height: auto;
    cursor: pointer;
}

/* Navigation */
.menu {
    position: static;
    width: 100%;
    background-color: #2779bd;
    padding: 0;
    margin-top: auto;
    border-top: none;
    box-shadow: none;
}

/* Liste de navigation */
.menu ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-top: none;
}

/* Éléments de navigation */
.menu > ul > li {
    position: relative;
    margin-right: 30px;
}

/* Liens du menu */
.menu > ul > li > a {

    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 15px;
    position: relative;
}

/* Effet de survol pour les liens du menu */
.menu ul li a:hover {
    color: black;
}


/* Section intro */
.intro {
    background-color: white;
    padding: 30px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contenu principal */
main {
    padding: 25px;
}

/* Titres */
h1 {
    text-align: left;
    font-weight: bold;
}

h2{
    text-align: center;
    font-weight: bold;
    color: #0d47a1;


}
h3 {
    text-align: left;
    font-weight: bold;
    color: black;

}
/* Section */
section {
    background-color: #edf4fa;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
}

section h2 {
    color: #0d47a1;
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-align: center;


}




/* Tableaux */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    text-align: center;
    border: 1px solid black;
    background-color: #fff;
}

th, td {
    border: 1px solid black;
    padding: 10px;
}

thead th {
    background-color: #6299de;
    color: white;
    font-weight: bold;
}

/********** Pied de page ***********/

footer {
    background: linear-gradient(to right, #12184a, #1e3c72, #2a5298,#12184a);
    color: white;
    padding: 20px 15px 10px 15px; /* Moins de padding */
    margin-top: 20px;
    font-size: 13px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

/* Style pour les liens rapides horizontaux */
.footer-section h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #facc15;
}

/* Style pour transformer la liste en ligne horizontale */
.horizontal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.horizontal-links li {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

/* Ajout du séparateur ">" après chaque lien sauf le dernier */
.horizontal-links li:not(:last-child):after {
    content: ">";
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.horizontal-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Effet hover orange */
.horizontal-links a:hover {
    color: #ff8c00; /* Orange pour le hover */
    text-decoration: none;
}

.footer-section p {
    line-height: 1.6;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    text-align: center;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
}

.visitor-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Adaptation pour mobile */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-separator {
        display: none;
    }
}

/****************************** page Plan du site **********************/

.plan {
    padding: 20px;
    background-color: #fff;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.plan h2 {
    color: #0d47a1; 
    text-align: center;
}
.plan p {
    text-align: center;
    font-size: 1em;
    margin-bottom: 20px;
}

/* Liste de navigation */
.site-map {
    list-style: none;
    padding: 0;
    text-align: center;
}

.site-map li {
    margin: 10px 0;
}

.site-map a {
    text-decoration: none;
    color: #0056b3; /* Bleu */
    font-size: 1em;
    transition: color 0.3s;
}

.site-map a:hover {
    color: #004080; /* Bleu plus foncé au survol */
}

/************************************ Page Tech ****************************/




.apod h2,
.apod h3,
.apod strong {
    text-align: center;
    font-size: 1.3rem;
    color: #005691; 
}


.apod p {
    font-size: 1rem;
    line-height: 1.6;
    color: black;
    margin-bottom: 1rem;
}


.apod-image-container {
    text-align: center;
    margin: 1.5rem 0;
}

.apod-image {
    max-width: 80%;
    max-height: 600px; 
    height: auto;
    border-radius: 10px;
    border: 3px solid #1a9ef0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}


.apod video {
    max-width: 80%;
    display: block;
    margin: 0 auto 1.5rem auto;
    border-radius: 10px;
    border: 2px solid #1a9ef0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.apod section {
    margin-bottom: 3rem;
}


.apod strong {
    color: #1b3b5f;
}


/************************************* page Accueil****************************/


/* Contenu actualité*/
.contenu {
    padding: 10px;
}
.educational-content {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
}

.educational-content h2 {
    font-size: 26px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;

}

.articles {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.articles article {
    background: #fff;
    padding: 20px;
    text-align: center;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.articles article h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
    text-align: center;

}

.articles article p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.articles article a {
    display: inline-block;
    background: #333;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.articles article a:hover {
    background: #2779bd;

}
/****** banniere image aleatoire*******/
.banner-image {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
.banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover; 
}
.banner h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #0d47a1;
    font-size: 1.6rem;

}

/**************************** PAGE french / english *******************************/

/* Style pour la section météo */
.weather-section {
    padding: 50px 20px;
    text-align: center;
}

.weather-section h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #333; 
    text-align: center;

}

.weather-section span {
    display: block;
    margin-bottom: 30px;
    color: #555;
}

.weather-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grille de cartes */
.card-grid {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 30px;
}

/* Style des cartes */
.weather-card {
    background: #fff;
    padding: 20px;
    text-align: center;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.weather-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: black;
    text-align: center;

}

.weather-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;

}

.card-button {
    display: inline-block;
    background: #333;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.card-button:hover {
    background: #2779bd;
}

/* Style pour les icônes avec cercles colorés */
.icon-container {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px;
}
/* Styles communs pour toutes les icônes */
.meteo-icon,
.tech-icon,
.stats-icon,
.contact-icon {
    background-color: #e6f2ff;
}

.meteo-icon i,
.tech-icon i,
.stats-icon i,
.contact-icon i {
    color: #0078d4;
}

/* Effet d'ombre pour donner du relief */
.icon-container {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Animation au survol */
.icon-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}


/*************************************** PAGE  Méteo *******************************/


/* En-tête et introduction */
.meteo-intro {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);


}

.meteo-intro h2 {
  
    font-size: 1.6rem;
    color: #0d47a1;
    margin-bottom: 10px;
    text-align: center;

}

.meteo-intro p {
    text-align: left;
    font-size: 1rem;
    color: black;

}


/* Navigation par onglets */
.onglets-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}
.onglet-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.onglet-btn:hover {
    color: var(--primary-color);
}

.onglet-btn.actif {
    color: var(--primary-color);
    font-weight: 600;
}

.onglet-btn.actif::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.contenu-onglet {
    padding: 20px 0;
}

/* Formulaires */
.formulaire-meteo, .formulaire-recherche {
    margin-bottom: 20px;
}

.groupe-formulaire {
    margin-bottom: 15px;
}

.groupe-formulaire label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.groupe-formulaire select,
.champ-recherche input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-color);
    background-color: white;
    box-shadow: var(--box-shadow);
}

.groupe-formulaire select:focus,
.champ-recherche input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.conteneur-selection {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.conteneur-selection h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Recherche par ville */
.recherche-ville-form {
    margin-bottom: 20px;
}

.champ-recherche {
    display: flex;
    gap: 10px;
}

.champ-recherche input {
    flex-grow: 1;
}

.bouton-recherche {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bouton-recherche:hover {
    background-color: #2c5282;
}

.exemples-villes {
    margin-top: 15px;
    font-size: 14px;
}

.exemples-villes a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 8px;
}

.exemples-villes a:hover {
    text-decoration: underline;
}

.message-erreur {
    color: #e53e3e;
    padding: 10px;
    margin: 15px 0;
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    border-radius: var(--border-radius);
}

/* Carte interactive */
.france-map-container {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

#main-france-map {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Résultats météo */
.meteo-resultats {
    margin-top: 30px;
}

.meteo-actuelle {
    background: linear-gradient(to right, #3498db, #2980b9);

    color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.meteo-actuelle h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color : white;
    text-align: left;

    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);



}

.meteo-actuelle-contenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.meteo-icone {
    text-align: center;
}

.meteo-icone img {
    width: 100px;
    height: auto;
}

.meteo-icone p {
    margin: 5px 0 0;
    font-weight: 500;
}

.meteo-details {
    flex-grow: 1;
}

.temperature-principale {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 10px;
}

.unite {
    font-size: 22px;
    vertical-align: top;
}

.details-secondaires {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.detail, .detail-supp, .jour-detail-supp {
    display: flex;
    flex-direction: column;
}

.label, .info-label, .detail-label {
    font-size: 14px;
    opacity: 0.8;
}

.valeur, .info-valeur, .detail-valeur {
    font-weight: 500;
}

.meteo-details-supplementaires {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    width: 100%;
    margin-top: 20px;
}

/* Prévisions journalières */
.meteo-journaliere {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.meteo-journaliere h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.journaliere-liste {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.jour-meteo {
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.jour-meteo:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.jour-entete {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f1f5f9;
}

.jour-date {
    flex: 1;
}

.jour-nom {
    font-weight: 600;
    display: block;
    font-size: 16px;
}

.jour-numero {
    color: var(--light-text);
    font-size: 14px;
}

.jour-icone {
    margin: 0 15px;
}

.jour-icone img {
    width: 50px;
    height: auto;
}

.jour-temperatures {
    text-align: right;
    min-width: 80px;
}

.temp-max {
    font-weight: 600;
    color: red;
}

.temp-min {
    color: blue;
}

.jour-details {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.jour-meteo.ouvert .jour-details {
    padding: 15px;
    max-height: 500px;
}

.jour-description {
    font-weight: 500;
    margin-bottom: 15px;
}

.jour-infos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.jour-details-supplementaires {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 15px;
    background-color: #f1f5f9;
    border-radius: var(--border-radius);
}

/* Prévisions sur 5 jours */
.previsions-jours {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.previsions-jours h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.previsions-liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.prevision-jour {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    text-align: center;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.prevision-jour:hover {
    transform: translateY(-5px);
}

.jour {
    font-weight: 600;
    margin-bottom: 10px;
}

.date {
    font-weight: normal;
    font-size: 14px;
    color: var(--light-text);
}

.temperature {
    margin: 10px 0;
}

.max {
    color: #e53e3e;
    font-weight: 600;
}

.min {
    color: #0d47a1;
}

.description {
    font-size: 14px;
    color: var(--light-text);
}

/* Dernière ville consultée */
.derniere-consultation {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--secondary-color);
}

.derniere-consultation h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.derniere-ville-details {
    margin-bottom: 15px;
}

.ville-nom {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-color);
}

.ville-localisation {
    margin: 0 0 5px;
    color: var(--light-text);
}

.ville-localisation span {
    font-weight: 500;
}

.date-consultation {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
}

.derniere-ville-actions {
    margin-top: 15px;
}

.bouton-primaire {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bouton-primaire:hover {
    background-color: #2c5282;
}

/* Responsive */
@media (max-width: 768px) {
    .onglets-navigation {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .meteo-actuelle-contenu {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .meteo-details {
        width: 100%;
    }
    
    .details-secondaires {
        justify-content: center;
    }
    
    .prevision-jour {
        min-width: calc(50% - 15px);
    }
    
    .champ-recherche {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .prevision-jour {
        min-width: 100%;
    }
    
    .meteo-details-supplementaires,
    .jour-infos,
    .jour-details-supplementaires {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Styles pour les prévisions horaires */
.details-horaires-toggle {
    margin: 20px 0;
    text-align: center;
}

.bouton-toggle {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.bouton-toggle:hover {
    background-color: #2980b9;
}

.meteo-horaire {
    margin-top: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.horaire-liste {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
}

.prevision-heure {
    min-width: 120px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.prevision-heure:hover {
    transform: translateY(-5px);
}

.prevision-heure .heure {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.jour-prevision {
    display: block;
    font-size: 0.8em;
    color: #666;
}

.details-heure {
    margin-top: 10px;
    text-align: left;
    font-size: 0.9em;
}

.detail-heure {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    color: #555;
}

.message-info {
    width: 100%;
    padding: 10px;
    background-color: #e3f2fd;
    border-radius: 5px;
    color: #0d47a1;
    margin-bottom: 15px;
    text-align: center;
}


/************************************* page statistique *******************************/

/* Styles spécifiques pour la page de statistiques */



.stats-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.stats-header h2 {
    font-size: 1.6rem;
    color: #0d47a1;
    margin-bottom: 10px;
    text-align: center;

}

.stats-header p {
    color: black;
    font-size: 1rem;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #2980b9);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #3498db;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.view-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

.view-tabs {
    display: flex;
    background-color: #e9ecef;
    border-radius: 50px;
    padding: 5px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-tab {
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #7f8c8d;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    min-width: 120px;
}

.view-tab.active {
    color: white;
}

.tab-indicator {
    position: absolute;
    height: calc(100% - 10px);
    top: 5px;
    left: 5px;
    background: linear-gradient(to right, #3498db, #2980b9);
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 1;
}

.data-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.chart-container {
    height: 450px;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.percentage-bar {
    height: 16px;
    background: #ecf0f1;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin-top: 5px;
}


.percentage-value {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, #3498db, #2980b9);
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .data-container {
        padding: 15px;
    }

    .chart-container {
        height: 350px;
    }

    .view-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 3.5rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-message {
    font-size: 1rem;
    color: #7f8c8d;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}
/************************** contact ********************/
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

/* Section */
section {
    background-color: #edf4fa;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
}
        .page-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        h2 {
    font-size: 1.6rem;
    color: #0d47a1;
    margin-bottom: 10px;
    text-align: center;

}

        /* Grille principale */
        .content-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }

        @media (max-width: 768px) {
            .content-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Bloc d'informations */
        .info-block {
            background-color: #f5f7fa;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        }

        .block-heading {
            font-size: 1.5rem;
            color: #2c3e50;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #3498db;
        }

        .block-text {
            margin-bottom: 25px;
            color: #555;
            line-height: 1.7;
        }

        /* Liste de contacts */
        .info-list {
            list-style: none;
            margin-bottom: 30px;
        }

        .info-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .info-icon {
            width: 40px;
            height: 40px;
            background-color: #ebf5fb;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
            color: #3498db;
        }

        .info-content {
            flex-grow: 1;
        }

        .info-label {
            display: block;
            font-weight: 600;
            margin-bottom: 5px;
            color: #2c3e50;
        }

        .info-value {
            display: block;
            color: #555;
        }

        
        /* Formulaire */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
        }

        .form-input,
        .form-textarea,
        .form-select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-input:focus,
        .form-textarea:focus,
        .form-select:focus {
            border-color: #3498db;
            outline: none;
        }

        .form-textarea {
            min-height: 150px;
            resize: vertical;
        }

        .form-button {
            background-color: #3498db;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .form-button:hover {
            background-color: #2980b9;
        }
/* FAQ Styles */
.faq {
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
}

.faq h2 {
    color: #0d47a1;
    margin-bottom: 25px;
    font-size: 1.6rem;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e3f2fd;
}

details {
    background: #ffffff;
    border-left: 4px solid #1e88e5;
    padding: 18px 24px;
    border-radius: 6px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

details:hover {
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.15);
}

details[open] {
    background-color: #f5f9ff;
}

summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #0d47a1;
    padding: 6px 0;
    position: relative;
    list-style: none;
    outline: none;
    display: flex;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary:before {
    content: '➤';
    color: #1e88e5;
    font-size: 0.9rem;
    margin-right: 12px;
    display: inline-block;
    transition: transform 0.3s;
}

details[open] summary:before {
    transform: rotate(90deg);
}

details p {
    margin-top: 15px;
    margin-left: 24px;
    color: black;
    line-height: 1.6;
    font-size: 1rem;

}

details ul {
    margin-left: 45px;
    margin-top: 10px;
    margin-bottom: 15px;

}

details li {
    margin-bottom: 8px;
    color: #546e7a;
    line-height: 1.5;
}

details strong {
    color: #1e88e5;
    font-weight: 600;
}

@media (max-width: 768px) {
    .faq {
        padding: 20px;
    }
    
    details {
        padding: 15px 18px;
    }
    
    summary {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq h2 {
        font-size: 1.5rem;
    }
    
    details ul {
        margin-left: 25px;
    }
}
        /* Icônes (en utilisant caractères ou entités HTML comme alternative aux images) */
        .icon-email::before { content: "✉"; }
        .icon-location::before { content: "📍"; }
        .icon-phone::before { content: "📞"; }
        .icon-clock::before { content: "🕒"; }
        .icon-github::before { content: "G"; }


        /********* actu **************/

         /* Images */
   .actu {
       margin-top: 1rem;
       text-align: center;
   }
   
   .actu img {
       width: 400px; 
       height: 400px;
       object-fit: cover;
       border-radius: 10px;
       border: 1px solid #ccc;
   }