/* ======================================== */
/* 1. RESET ET STYLES DE BASE               */
/* ======================================== */

/* On garde votre reset et on ajoute la hauteur à html et body */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* Palette de couleurs (optionnel : CSS variables) */
:root {
    --color-black: #181818;
    --color-white: #FFFFFF;
    --color-gray-light: #f9f9f9;
    --color-gray-mid: #A9A9A9;
    --transition-fast: 0.3s;
}

/* Corps du document : Flex Layout pour pousser le footer en bas */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    transition: background var(--transition-fast), color var(--transition-fast);
}

/* Titres */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-black);
    margin-bottom: 10px;
}

/* Paragraphes */
p {
    font-size: 1rem;
    color: var(--color-black);
    margin-bottom: 1rem;
}

/* Liens */
a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

/* ======================================== */
/* 2. NAVIGATION                            */
/* ======================================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Section développeur */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #333;
    transition: transform 0.3s, opacity 0.3s;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

.developer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.developer-tagline {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0;
}

.developer-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

/* Liens de navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    padding: 5px 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: #e74c3c;
}

/* Menu hamburger (mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-black);
    margin-bottom: 5px;
    transition: all var(--transition-fast);
}

/* ======================================== */
/* 3. SECTION HERO (Accueil)                */
/* ======================================== */
.hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 100vh;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(rgba(0, 0, 0, 0),
            rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 2;
}

/* La vidéo de fond occupe toute la zone du hero */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Vidéo elle-même : prend 100% de la largeur et de la hauteur, avec un objet qui se couvre */
.background-video video {
    width: 100%;
    height: 95%;
    object-fit: cover;
}

/* Contenu par-dessus la vidéo */
.content-overlay {
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
    padding: 40px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    backdrop-filter: blur(3px);
    transition: all 0.3s;
}

.content-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.content-overlay p {
    color: var(--color-white);
}

.logo-animation {
    perspective: 1200px;
    margin-bottom: 20px;
}

.animated-logo {
    font-size: 5rem;
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    animation: fadeInScale 2s ease-in-out forwards;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

/* Effet 3D au survol */
.animated-logo:hover {
    transform: scale(1.05) rotateX(5deg);
}

/* Définition de l'animation d'apparition */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.intro-text {
    margin-bottom: 30px;
}

/* On peut ajouter une animation de dégradé subtil dans le texte */
#typing-effect {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #FFFFFF, #DDDDDD, #FFFFFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.btn-wrapper {
    margin-top: 30px;
    text-align: center;
}

.explore-btn {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--color-white);
    color: var(--color-white);
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.explore-btn:hover {
    background-color: white;
    color: var(--color-black);
    border-color: var(--color-black);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.4);
}

.explore-btn span {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

/* Effet de lumière qui glisse sur le bouton */
.explore-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    transition: left 0.4s ease;
    z-index: 1;
}

.explore-btn:hover::before {
    left: 100%;
}

/* Effet de zoom sur le texte au survol */
.explore-btn:hover span {
    transform: scale(1.1);
}

/* Pour ajouter un léger effet 3D au bouton dans son ensemble */
.explore-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ======================================== */
/* 4. BOUTONS                               */
/* ======================================== */


/* ======================================== */
/* 5. SECTION PORTFOLIO                     */
/* ======================================== */
.portfolio {
    padding: 50px 20px 100px;
    background: linear-gradient(180deg, #f9f9f9, #ffffff);
    text-align: center;
    margin-top: 20px;
    border-radius: 8px;
}

.portfolio h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #181818;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    /* Fond visible si l'image ne prend pas toute la place */
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: auto;
    /* Maintient le ratio d'aspect naturel de l'image */
    object-fit: contain;
    /* L'image reste entière même si elle ne remplit pas toute la hauteur */
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: #fff;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.project-info p {
    font-size: 0.95rem;
    color: #666;
}


/* ======================================== */
/* MODAL DÉTAILS AMÉLIORÉ                   */
/* ======================================== */

.modal {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 1000;
    width: 80%;
    max-width: 800px;
    max-height: 90%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    margin-bottom: 5%;
}

.modal-content {
    padding: 20px;
}

/* Pour l'effet d'obscurcissement de l'arrière-plan */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel img {
    width: 100%;
    flex-shrink: 0;
    height: 400px;
    object-fit: cover;
    scroll-snap-align: center;
}

.project-detail {
    padding: 25px;
    text-align: left;
}

.project-detail h3 {
    font-family: 'Playfair Display', serif;
    color: #222;
    margin-bottom: 15px;
}

.project-detail p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.close-button,
.cv-close-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff4d4d, #e74c3c);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.close-button:hover,
.cv-close-button:hover {
    background: linear-gradient(135deg, #e74c3c, #ff4d4d);
}

.project-detail .btn {
    margin-top: 15px;
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #181818, #333);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-detail .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section Technologie */
.tech-stack {
    margin-bottom: 20px;
}

.tech-stack h4,
.lighthouse-compact h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.tech-stack ul,
.lighthouse-compact ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tech-stack li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    color: #444;
}

.tech-stack i {
    font-size: 1rem;
    color: #555;
}

/* Section Lighthouse compacte */
.lighthouse-compact li {
    font-size: 0.9rem;
    color: #555;
}

.lighthouse-compact strong {
    color: #222;
}

/* ======================================== */
/* 6. SECTION TECHNOLOGIES                  */
/* ======================================== */
.technologies-selectable {
    padding: 20px 5px;
}

.technologies-selectable h2 {
    text-align: center;
}

/* Grille de présentation minimaliste */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Style de base pour chaque vignette */
.tech-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Effet original : soulignement animé en bas de la vignette */
.tech-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 0;
    height: 2px;
    background: #333;
    transition: width 0.3s ease, left 0.3s ease;
}

.tech-item:hover::after {
    width: 100%;
    left: 0;
}

/* Animation de la vignette au survol */
.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style des icônes */
.tech-item i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #333;
    transition: transform 0.3s ease;
}

/* Style du texte descriptif */
.tech-item p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: #333;
    transition: color 0.3s ease;
}

.tech-item:hover p {
    color: #111;
}

.tech-details {
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ======================================== */
/* 6a. SECTION AVANTAGES DES TECHNOLOGIES   */
/* ======================================== */
.tech-benefits {
    padding: 60px 20px;
    text-align: center;
    background: var(--color-white);
    margin-top: 20px;
    border-radius: 8px;
}

.tech-benefits h2 {
    margin-bottom: 20px;
}

.tech-benefits p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--color-black);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-item {
    background: var(--color-gray-light);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 10px;
    display: block;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    font-family: 'Poppins', sans-serif;
    color: var(--color-black);
}

.benefit-item p {
    font-size: 1rem;
    margin: 0;
    color: var(--color-black);
}

/* ======================================== */
/* 6b. SECTION SCORES LIGHTHOUSE            */
/* ======================================== */
.lighthouse-scores {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
    margin-top: 20px;
}

.lighthouse-scores h2 {
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.lighthouse-scores p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--color-black);
}

/* Grille des scores */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Carte de chaque score */
.score-item {
    background: var(--color-gray-light);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.score-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.score-item h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    color: var(--color-black);
}

/* Cercle affichant le score avec inner shadow et dégradé attractif */
.score-circle {
    margin: 0 auto 10px;
    width: 95px;
    height: 95px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    background: linear-gradient(145deg, #DFF1DF, #AEDFAE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    position: relative;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.score-circle:hover {
    transform: scale(1.05);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2), 0 6px 8px rgba(0, 0, 0, 0.2);
}

.score-circle span {
    position: relative;
    z-index: 2;
}

.explore-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #181818, #333);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.explore-btn-light span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.explore-btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.explore-btn-light i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.explore-btn-light:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ======================================== */
/* 7. SECTION À PROPOS                      */
/* ======================================== */
.about {
    padding: 80px 20px;
    text-align: left;
    background: linear-gradient(180deg, #ffffff, #f9f9f9);
    border-radius: 8px;
}

.about h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    color: #181818;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlide 1s ease-out forwards;
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
    font-style: italic;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.about-text {
    flex: 1;
    max-width: 650px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #444;
}

.key-points {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.key-points li {
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.key-points i {
    color: #2980b9;
    font-size: 1.2rem;
}

.btn.download-cv,
.btn.generate-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #181818, #333);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn.download-cv:hover,
.btn.generate-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.about-image {
    flex: 0 1 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Conteneur général du CV compact */
.cv-modal {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

/* Lorsqu'on veut afficher le modal, on ajoute la classe active */
.cv-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}

.cv-compact {
    max-width: 900px;
    background: #fff;
    padding: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* En-tête du CV */
.cv-header {
    text-align: center;
    margin-bottom: 1rem;
}

.cv-header h1 {
    font-size: 2rem;
    margin: 0;
}

.cv-close {
    background-color: transparent;
    box-shadow: none;
    border: none;
    color: #fff
}

.cv-close:hover {
    color: #ff4d4d;
    background-color: transparent;
}

.cv-tagline {
    font-size: 1rem;
    color: #666;
}

/* Grille de mise en page à deux colonnes */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

/* Conteneur global de la sidebar */
.cv-sidebar {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

/* Titres de sections dans la sidebar */
.cv-sidebar h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--color-black);
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Liste de contact */
.cv-info {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.obfuscated-email,
.obfuscated-phone {
    color: #2980b9;
    font-style: italic;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.obfuscated-email:hover,
.obfuscated-phone:hover {
    text-decoration: underline;
    color: #1c5a92;
}

.obfuscated-email.revealed,
.obfuscated-phone.revealed {
    color: #333;
    font-style: normal;
    text-decoration: none;
}


.cv-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-black);
    transition: color 0.3s;
}

.cv-info li i {
    color: var(--color-gray-mid);
    font-size: 1.1rem;
}

/* Effet de survol sur les items de contact */
.cv-info li:hover {
    color: var(--color-black);
}

/* Liste de compétences */
.cv-skills ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-skills li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-black);
    padding: 8px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, background 0.3s;
}

.cv-skills li i {
    color: var(--color-gray-mid);
    font-size: 1.2rem;
}

/* Survol pour dynamiser les compétences */
.cv-skills li:hover {
    background: #eaeaea;
    transform: translateX(5px);
}

/* Outils bureautiques */
.office-tools h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--color-black);
    margin-top: 20px;
    margin-bottom: 10px;
}

.office-tools ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.office-tools li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-black);
    padding: 8px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, background 0.3s;
}

.office-tools li i {
    color: var(--color-gray-mid);
    font-size: 1.2rem;
}

/* Survol pour dynamiser les outils bureautiques */
.office-tools li:hover {
    background: #eaeaea;
    transform: translateX(5px);
}


/* Bloc Langues dans le Sidebar */
.language-levels {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.language-levels h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--color-black);
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.languages {
    list-style: none;
    padding: 0;
    margin: 0;
}

.languages li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-black);
}

.languages li .flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    background-size: cover;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.languages li strong {
    font-weight: 600;
}

/* Section Réseaux Sociaux */
.social-networks h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--color-black);
    margin-top: 20px;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-mid);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    transition: all 0.3s;
}

.social-link i {
    color: var(--color-black);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-link:hover {
    background: var(--color-black);
}

.social-link:hover i {
    color: var(--color-white);
}


/* Zone principale : Profil, Expériences et Formations */
.cv-main {
    margin-top: 0;
}

.cv-main .cv-section {
    margin-bottom: 1rem;
}

.cv-section h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #181818;
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

/* ======================== */
/* Timeline Experiences     */
/* ======================== */
.experiences .timeline {
    position: relative;
    margin: 40px 0;
    padding: 0;
}

.experiences .timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e0e0e0;
}

.experiences .timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 70px;
}

.experiences .timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    background: #181818;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.experiences .timeline-icon i {
    font-size: 1.2rem;
}

.experiences .timeline-content {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experiences .timeline-content:hover {
    transform: translateY(-3px);
}

.experiences .timeline-content h3 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    cursor: pointer;
    font-size: 1rem;
    color: #2980b9;
    transition: color 0.3s;
}

.info-icon:hover {
    color: #181818;
}

/* Bloc d'infos supplémentaires caché par défaut */
.timeline-extra-info {
    margin-top: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 6px;
    display: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Optionnel : effet d'animation lors du toggle */
.timeline-extra-info.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.experiences .timeline-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
}

.cv-section ul li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-section ul li i {
    color: #2980b9;
}

/* ======================== */
/* Cartes de Formations     */
/* ======================== */

/* Conteneur global de la section formations */
.formation-cards {
    margin-top: 2rem;
}

.formation-cards h2 {
    font-size: 1.3rem;
    border-bottom: 2px solid #181818;
    padding-bottom: 0.3rem;
    margin-bottom: 1.5rem;
}

/* Grille pour afficher les cartes */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Style de base pour chaque carte */
.formation-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Icône au sommet de la carte */
.card-icon {
    background: #2980b9;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    color: #fff;
    font-size: 1.2rem;
}

/* Titre et date de la formation */
.formation-card h3 {
    font-size: 0.9rem;
    margin: 0 0 5px;
    color: #333;
}

.formation-date {
    font-size: 0.9rem;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

/* Description courte */
.formation-description {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Effet de survol */
.formation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* ======================================== */
/* 8. SECTION CONTACT                       */
/* ======================================== */
.contact {
    padding: 50px 20px 100px;
    text-align: center;
    border-radius: 8px;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #181818;
    margin-bottom: 15px;
}

.contact-intro {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 10px;
    border: 2px solid #e0e0e0;
    background: transparent;
    font-size: 1rem;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #333;
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 14px;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -12px;
    font-size: 0.85rem;
    color: #333;
    background: #ffffff;
    padding: 0 5px;
}

.submit-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #181818, #333);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn i {
    margin-right: 8px;
}

/* ======================= */
/* Toast Notification Modern */
/* ======================= */
#toastContainer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInOut 5s forwards;
    z-index: 9999;
    overflow: hidden;
}

/* Style de succès */
.toast.success {
    border-left: 5px solid #4CAF50;
}

/* Style d'erreur */
.toast.error {
    border-left: 5px solid #E74C3C;
}

/* Animation élégante d'apparition et disparition */
@keyframes slideInOut {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    15% {
        opacity: 1;
        transform: translateX(0);
    }

    85% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Style du texte du toast */
#toastContainer p {
    margin: 0;
    color: #333;
}

/* Amélioration visuelle avec icônes */
.toast-icon {
    font-size: 1.2rem;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ======================================== */
/* 9. PIED DE PAGE (Footer)                 */
/* ======================================== */
footer {
    padding: 30px 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--color-black);
    background-color: var(--color-white);
}

footer p {
    margin: 0;
    line-height: 1.4;
}

/* ======================================== */
/* 10. MEDIA QUERIES (Responsive)           */
/* ======================================== */
@media (max-width: 768px) {
    .modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .modal-content {
        padding: 5px;
    }

    .cv-modal-content {
        padding: 0;
    }

    .cv-grid {
        grid-template-columns: 1fr;
    }

    .modal-buttons {
        justify-content: center;
    }

    .cv-close-button {
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--color-white);
        position: absolute;
        top: 60px;
        right: 20px;
        border: 1px solid var(--color-gray-mid);
        padding: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
    }

    .about-content {
        flex-direction: column;
    }
}

/* ======================================== */
/* 11. RÈGLES SPÉCIFIQUES AU LAYOUT FLEX    */
/* ======================================== */

/* Le main prend tout l'espace restant, et on ajoute 
   un margin-top pour ne pas recouvrir le header fixe */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 0;
    box-sizing: border-box;
}