/* Variables globales pour centralisation des couleurs et styles */
:root {
    --font-family: 'San Francisco', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --primary-color: #ff6584;
    --secondary-color: #ff9671;
    --light-bg: rgba(255, 255, 255, 0.8);
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --gradient-bg: linear-gradient(to bottom right, #fdf2e9, #fdebd3);
    --btn-gradient: linear-gradient(45deg, #ff6f91, #ff9671);
    --btn-hover-gradient: linear-gradient(45deg, #ff9671, #ff6f91);
}

/* Global Reset */
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background: var(--gradient-bg);
    background-image: url("../4-files_pictures/custom_background_v2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
}

/* Header Contact Info */
.contact-info {
    background: #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    position: sticky;
    top: 0;
    z-index: 10;
}

.contact-info p {
    margin: 0;
}

/* Page d'accueil */
.welcome-page {
    text-align: center;
    margin: 50px auto;
    max-width: 700px;
    padding: 20px;
    border-radius: var(--border-radius);
    background: var(--light-bg);
    box-shadow: var(--box-shadow);
}

.large-photo {
    width: 300px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid #ddd;
}

.welcome-page h1 {
    font-size: 2rem;
    color: #444;
    margin-bottom: 10px;
}

.language-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    background: #007aff;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

/* Container principal */
.container {
    margin: 20px auto;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.9); 
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Section principale */
.section {
    background: rgba(255, 239, 239, 0.9);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Cartes */
.card {
    margin: 10px 0;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}

.card:hover {
    background: linear-gradient(45deg, #ffedea, #fff5e6);
    transform: translateY(-2px);
}

.card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Navigation */
.navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    padding: 0;
    gap: 5px; /* Réduit l'espace entre les éléments */
    visibility: visible !important;
}

.navigation ul li {
    flex: 1;  
    text-align: center;
    margin: 5px 0; /* Réduit l'espace vertical */
}

.navigation ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px 10px; /* Ajuste l'espace interne */
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    min-width: 120px; /* Ajustez selon vos besoins */
    display: inline-block; /* Permet à l'élément de gérer la largeur */
    white-space: nowrap; /* Empêche le texte de passer à la ligne suivante */
}

.navigation ul li a:hover {
    border-color: var(--secondary-color);
    background-color: #ffedea;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajout d'une ombre */
}

/* Afficher le menu sur petit écran */
@media (max-width: 768px) {
    .navigation ul {
        display: flex; /* Caché par défaut */
        flex-direction: column;
    }
}

/* Cacher le bouton burger sur grand écran */
@media (min-width: 769px) {
    .navigation ul {
        display: flex; /* Menu normal sur grand écran */
        position: static;
        flex-direction: row;
        justify-content: center;
        box-shadow: none;
        border: none;
    }
}

/* Boutons communs */
.download-btn, .back-to-home {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--btn-gradient);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: var(--box-shadow);
    transition: 0.3s ease;
}

.download-btn:hover, .back-to-home:hover {
    background: var(--btn-hover-gradient);
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    background: rgba(255, 239, 239, 0.8);
    border-top: 2px solid var(--secondary-color);
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer p {
    margin: 5px 0;
}

/* Liens retour */
.back-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(255, 101, 132, 0.1);
    transition: 0.3s ease;
}

.back-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Centrage des images */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center; /* Centrage du texte sous les images */
    margin-bottom: 20px;
}

.photo-container {
    text-align: center; /* Centre le texte sous l'image */
    margin: 10px; /* Ajoute un espacement autour de chaque conteneur d'image */
}
.photo-container img {
    max-width: 100%; /* Limite la largeur de l'image au conteneur */
    height: auto; /* Assure que l'image conserve son ratio */
    border: 1px solid #ccc; /* Optionnel : ajoute une bordure autour de l'image */
    border-radius: 5px; /* Optionnel : arrondit les coins de l'image */
}

.photo-container img, .profile-photo {
    display: block;
    margin: 0 auto; /* Centrage horizontal */
    max-width: 100%; /* Images réactives */
    height: auto;
}