/* Réinitialisation de base et configuration de la police */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* Conteneur principal du CV */
.container {
    display: flex;
    max-width: 1100px;
    margin: 30px auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Panneau de gauche (contact, compétences, etc.) */
.left-panel {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px;
    width: 35%;
}

.left-panel h2 {
    color: #1abc9c;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.left-panel h2 i {
    margin-right: 10px;
}

.left-panel a {
    color: #ecf0f1;
    text-decoration: none;
}

.left-panel a:hover {
    color: #1abc9c;
    text-decoration: underline;
}

.left-panel section {
    margin-bottom: 30px;
}

.contact ul, .skills ul, .interests ul, .languages ul {
    list-style: none;
}

.contact li, .interests li {
    margin-bottom: 10px;
}

.contact i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.skill-category {
    margin-bottom: 20px;
}

.skill-category h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
}

.skills ul li {
    margin-bottom: 8px;
    font-weight: 300;
}

.language p {
    margin: 0;
}

.language span {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

/* Panneau de droite (profil, expériences, etc.) */
.right-panel {
    padding: 40px;
    width: 65%;
}

.main-header {
    text-align: center;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.main-header h2 {
    font-size: 1.5rem;
    color: #1abc9c;
    margin: 0;
    font-weight: 400;
}

.right-panel h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.right-panel h3 i {
    margin-right: 15px;
    color: #1abc9c;
}

.right-panel section {
    margin-bottom: 30px;
    opacity: 0; /* Pour l'animation JS */
    transform: translateY(20px); /* Pour l'animation JS */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.right-panel section.visible {
    opacity: 1;
    transform: translateY(0);
}

.profile p {
    margin-bottom: 15px;
}

.job, .degree {
    margin-bottom: 25px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.job-header h4, .degree h4 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
    margin: 0;
}

.date {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

.company {
    font-weight: 700;
    color: #1abc9c;
}

.right-panel ul {
    list-style-position: inside;
    padding-left: 5px;
}

.right-panel ul li {
    margin-bottom: 8px;
}

/* --- STYLE DE LA PHOTO DE PROFIL --- */
.profile-picture-container {
    text-align: center;
    margin-bottom: 25px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #1abc9c;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* --- STYLE DES LOGOS D'ENTREPRISE --- */
.company {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.company-logo {
    width: 40px;
    height: auto;
    margin-right: 15px;
    object-fit: contain;
}

/* Responsive Design pour les écrans plus petits */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
    }
    .left-panel, .right-panel {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .main-header h1 {
        font-size: 2rem;
    }
    .main-header h2 {
        font-size: 1.2rem;
    }
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .date {
        margin-top: 5px;
    }
}

/* ================================================================ */
/* STYLES DES BOUTONS FLOTTANTS (FAB)                               */
/* ================================================================ */

/* --- Conteneur pour les boutons --- */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column; /* Aligne les boutons verticalement */
    gap: 15px; /* Espace entre les boutons */
}

/* --- Style de base pour TOUS les boutons flottants --- */
.fab {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.2s;
}

.fab:hover {
    transform: scale(1.1);
}

/* --- Style spécifique du bouton PDF --- */
.pdf-fab {
    background-color: #e74c3c; /* Rouge */
}

.pdf-fab:hover {
    background-color: #c0392b; /* Rouge plus foncé au survol */
}

/* --- Style spécifique du bouton FEEDBACK --- */
.feedback-fab {
    background-color: #1abc9c;
    animation: pulse-animation 1.5s infinite;
}

.feedback-fab:hover {
    background-color: #16a085;
}

/* --- STYLE DE LA FENÊTRE POP-UP (MODALE) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Classe pour afficher la modale via JS */
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #333;
}

/* --- STYLE DU FORMULAIRE DANS LA MODALE --- */
.modal-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.95rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    margin-bottom: 5px;
    font-weight: 700;
    color: #555;
    font-size: 0.9rem;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 5px rgba(26, 188, 156, 0.5);
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content button[type="submit"] {
    align-self: center;
    width: 50%;
    padding: 12px 20px;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.modal-content button[type="submit"]:hover {
    background-color: #16a085;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  50% {
    transform: scale(1.05); /* Réduction de l'effet pour être plus subtil */
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
}

/* Masquer les éléments non désirés à l'impression */
@media print {
    .fab-container, .modal-overlay {
        display: none !important;
    }
    body {
        font-size: 12px; /* Adapter la taille de la police pour l'impression */
    }
    .container {
        margin: 0;
        box-shadow: none;
    }
}