/* Définition des variables */
:root {
    --background-color: #e7dfd8; /* Beige clair */
    /* --primary-color: #8c7a5e;   */
    --primary-color: #D86A02;
    /* --text-color: #333;   */
    --text-color : #361B01;
    --link-hover-color: #A14F02; 
    --font-family: "Playfair Display", serif; /* Application de la police Playfair Display */
}

/* Styles généraux */
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color); /* Fond beige */
    color: var(--text-color); /* Texte foncé */
    line-height: 1.8;
    font-size: 18px;
    padding-bottom: 100px; /* Ajoute de l'espace en bas pour le footer fixe */
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-around;
    padding: 1em 5%;
    margin-bottom: 2em;
    font-size: 18px;
    background-color: transparent;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 1.5em;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--link-hover-color);
}

nav a.active {
    color: var(--link-hover-color); /* Change la couleur du texte */
    border-bottom: 2px solid var(--link-hover-color); /* Ajoute une ligne en bas */
    font-weight: bold; /* Met en gras pour plus de visibilité */
}

.centered-title {
    text-align: center;
    margin: 20px 0; /* Pour ajouter un peu d'espace autour du titre */
}


/* Section de présentation */
/* Section de présentation */
.intro-box {
    background-color: var(--background-color);
    border: 1px solid var(darkor);
    border-radius: 8px;
    padding: 2em;
    margin: 2em auto;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Contenu de la section présentation */
.intro-content {
    display: flex;
    justify-content: space-between;
    height: 100%;  /* S'assurer que le conteneur occupe toute la hauteur disponible */
}

/* Partie gauche avec le texte de présentation */
.intro-left {
    width: 60%;
}

/* Partie droite avec l'aperçu du CV */
.intro-right {
    width: 35%;
    display: flex;
    align-items: flex-start;  /* Alignement en haut de la section */
    justify-content: center;
    height: 100%;  /* S'assurer que l'élément occupe toute la hauteur */
}

/* Aperçu du CV - image qui occupe toute la hauteur disponible sans déformation */
.photo {
    width: 100%;
    height: 100%;  /* Prendre toute la hauteur du conteneur */
    object-fit: cover;
    border-radius: 8px;   /*Assurer que l'image garde son aspect sans se déformer */
}

/* Section de contact (mail + logo ENS) */
.contact-info {
    margin-top: 20px;
    display: flex;
    align-items: center; /* Aligner verticalement le texte et l'icône */
    font-size: 18px;
}

/* Icône mail */
.contact-info i {
    margin-right: 10px; /* Espacement entre l'icône et le texte */
}

/* Adresse mail */
.contact-info p {
    margin: 0;  /* Éviter les marges par défaut */
    margin-right: 20px; /* Espacement entre le mail et le logo ENS */
}

.contact-info a {
    margin: 0;  /* Éviter les marges par défaut */
    margin-right: 20px; 
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--link-hover-color);
    font-weight: bold;
}

/* Logo ENS */
.ens-logo {
    width: 25px;  /* Taille du logo ENS */
    height: auto;
}

/* Styles pour la ligne de séparation */
hr {
    border: 0;
    border-top: 1px solid #ccc; /* Ligne de séparation grise */
    margin: 20px 0;
}

.pdf-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 900px;
}

.pdf-item {
    text-align: center;
    width: 30%;
}


.pdf-item h3 a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.pdf-item h3 a:hover {
    color: var(--link-hover-color);
}

.pdf-container {
    background-color: #f4f4f4; /* Couleur de fond personnalisée */
    padding: 10px; /* Ajoute un espace autour du PDF */
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Effet d'ombre */
}

.pdf-preview {
    width: 100%;
    height: 300px; /* Ajuste selon tes besoins */
    border: none; /* Enlève les bordures par défaut */
    display: block;
}


footer {
    text-align: center;
    background-color: var(--background-color);
    color: white;
    padding: 1.2em 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}


/* Introduction */
.intro {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

/* Section du PDF principal */
.pdf-main {
    /* text-align: center; */
    max-width: 800px;
    margin: auto;
}

.pdf-main .pdf-link {
    max-width: 800px;
    margin: auto;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: 0.3s ease;
}

.pdf-main .pdf-link:hover {
    color: var(--link-hover-color);
}

/* Liste des PDF individuels */
.pdf-list {
    max-width: 800px;
    margin: auto;
    /* padding: 10px; */
}

.pdf-list ul {
    list-style: none;
    padding: 0;
}

.pdf-list li {
    margin: 15px 0;
}

.pdf-list a {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pdf-list a:hover {
    color: var(--link-hover-color);
}

/* Style pour les éléments <details> */
details {
    /* padding: 10px; */
    background: transparent; /* Pas de fond spécial, fond par défaut */
    border: none; /* Pas de bordure */
    transition: all 0.3s ease;
}

/* Style pour le résumé */
summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    align-items: center;
    color: var(--primary-color); /* Couleur du texte */
    text-decoration: none;
    padding-left: 20px;
}

summary a {
    color: inherit; /* Héritage de la couleur du résumé */
    text-decoration: none; /* Pas de soulignement sur les liens */
    
}


/* Quand le <details> est ouvert, la flèche tourne */
details[open] summary::after {
    transform: rotate(180deg);
}

/* Description cachée par défaut */
.pdf-description {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    padding-left: 20px;
    display: true; /* Description cachée initialement */
}

/* Quand le détail est ouvert, on montre la description */
details[open] .pdf-description {
    display: block;
}
