/* Importation de la police moderne */
/*@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333; /* Texte foncé pour bon contraste */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 20px;
}

/* Style général des liens */
a {
    text-decoration: none; /* Retire le soulignement par défaut */
    color: inherit; /* Lien prend la couleur du texte de son parent */
}

/* --- HEADER --- */
header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* --- Header avec horloges --- */
.clock-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.clock {
    background: rgba(255, 255, 255, 0.8); /* Fond légèrement transparent */
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    width: 200px;
}

.clock .date {
    font-size: 14px; /* Taille plus petite pour la date */
    margin-bottom: 5px; /* Espace entre la date et l'heure */
    color: #555; /* Couleur douce pour la date */
}

.clock .time {
    font-size: 24px; /* Taille plus grande pour l'heure */
    font-weight: 700; /* Plus épais pour l'heure */
}


/* --- SECTION SERVICES --- */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

/* Boutons de service */
.service-btn, a.service-btn {
    display: flex;
    align-items: center;   /* Centrer verticalement le contenu */
    justify-content: center; /* Centrer horizontalement */
    gap: 10px;
    background: rgba(255, 255, 255, 0.8); /* Fond blanc légèrement transparent */
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center; /* Assurer que le texte est centré */
}

.service-btn img, a.service-btn img {
    width: 32px;
    height: 32px;
}

.service-btn:hover, a.service-btn:hover {
    background: rgba(255, 255, 255, 0.9); /* Effet de survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* --- FOOTER --- */
footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(229, 231, 235, 0.8); /* Gris clair avec transparence */
    border-radius: 12px;
}

.footer-content {
    text-align: center; /* Centrer le texte à l'intérieur de footer-content */
    font-size: 14px;
    color: #333;
}


.footer-logo {
    height: 40px;
}


/* --- Mode Sombre --- */
body.dark-mode {
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #f5f5f5;
}

.dark-mode .clock, 
.dark-mode .service-btn, 
.dark-mode footer {
    background: rgba(20, 20, 20, 0.8); /* Fond noir semi-transparent */
    color: #f5f5f5;
}

/* Application de couleur claire à la date en mode sombre */
.dark-mode .clock .date {
    color: #ddd; /* Couleur plus claire pour la date en mode sombre */
}

.dark-mode .clock .timezone {
    color: #bbb; /* Couleur plus claire pour le fuseau horaire en mode sombre */
}

.dark-mode .footer-content {
    color: #f5f5f5; /* Couleur du texte en mode sombre (blanc) */
}


.dark-mode .service-btn, .dark-mode a.service-btn {
    background: rgba(20, 20, 20, 0.8); /* Fond sombre pour le bouton */
    color: #f5f5f5;
}

.dark-mode .service-btn:hover, .dark-mode a.service-btn:hover {
    background: rgba(20, 20, 20, 0.9); /* Légère transparence au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Effet de survol : bouton --- */
.service-btn:hover, a.service-btn:hover {
    background: rgba(255, 255, 255, 0.9); /* Fond légèrement plus clair au survol */
    transform: translateY(-2px); /* Effet de déplacement lors du survol */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bouton de changement de mode */
#dark-mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.dark-mode #dark-mode-toggle {
    background: rgba(20, 20, 20, 0.8);
    color: #f5f5f5;
}

.logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.logo-center img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: clamp(80px, 15vh, 180px);
    height: clamp(80px, 15vh, 180px);
}


