/* ./css/cv.css */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: 'Nunito', sans-serif;
}

/* couleur LI + a*/

li {
    color: #ccc; /* plus neutre que rouge */
}

a {
    color: #D43F52;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* Animation de fondu */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation de glissement de gauche */
@keyframes slide-in-left {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Animation de glissement de droite */
@keyframes slide-in-right {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Animation de zoom */
@keyframes zoom-in {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Animation de remplissage de la barre de progression */
@keyframes fill-bar {
    from { width: 0; }
    to { width: var(--progress-width); }
}

/* Layout principal */

/* Ajuster les marges des sous-titres */
.sub-title {
    padding-top: 1.5rem; /* Ajuster la marge en haut */
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #f7f7f7;
}

.main-content {
    min-height: 100vh;
    width: 90%;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    animation: fade-in 1s ease-in;
}

/* Section de gauche */
.left-section {
    grid-column: span 2;
    height: 100%;
    background-color: #1a1a1a; /* Couleur de fond similaire au premier CSS */
    animation: slide-in-left 1s ease-out;
}

/* Section de droite */
.right-section {
    grid-column: span 5;
    background-color: #000000; /* Couleur de fond similaire au premier CSS */
    height: 100%;
    animation: slide-in-right 1s ease-out;
}

/* Profil */
.left-content {
    padding: 2rem 1.5rem;
}
.profile {
    width: 100%;
    border-bottom: 1px solid #D43F52; /* Couleur de bordure similaire au premier CSS */
}
.image {
    width: 100%;
    text-align: center;
}
.profile img {
    width: 100%;
    border-radius: 50%;
    border: 8px solid #D43F52; /* Couleur de bordure similaire au premier CSS */
    animation: zoom-in 1.2s ease-in-out;
}
.name {
    font-size: 2rem;
    color: white; /* Texte en blanc */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.2rem 0;
    margin-top: 1rem; /* Marge en haut */
}
.career {
    font-size: 1.2rem;
    color: #aaa; /* adoucissement visuel */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 1rem;
    margin-top: 1rem;
}
/* Ajuster les marges des titres principaux */
.main-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    padding-top: 3rem;
    margin-top: 1rem;
    margin-bottom: 1rem; /* Réduire la marge en bas */
}

/* Informations de contact */
.contact-info ul {
    padding-top: 2rem;
}
.contact-info ul li {
    padding: .4rem 0;
    display: flex;
    align-items: center;
    color: #aaa; /* neutre et lisible */
}
.contact-info ul li i {
    color: #D43F52; /* on garde la couleur ici pour les icônes */
}

.contact-info a {
    text-decoration: none;
    color: #D43F52;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #ffffff;
}


/* Compétences */
.skills-section ul {
    padding-top: 2rem;
}
.skills-section ul li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.6rem 0;
}
.skill-title {
    text-transform: uppercase;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
    background-color: antiquewhite;
}
.progress {
    width: 0;
    background-color: #D43F52; /* Couleur de la barre de progression similaire au premier CSS */
    height: 6px;
    border-radius: 12px;
    animation: fill-bar 2s ease-out forwards;
}

/* Références */
.references-section li {
    color: #D43F52; /* Texte en rouge */
    padding: .2rem 0;
    animation: fade-in 1.2s ease;
}
.references-section li i {
    padding-right: .5rem;
    font-size: 1.2rem;
    color: #D43F52; /* Couleur de l'icône similaire au premier CSS */
}

/* Titres */
.right-main-content {
    padding: 2rem 3rem;
}

/* Ajuster les marges des titres de droite */
.right-title {
    width: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0.8rem; /* Réduire la marge en bas */
    position: relative;
    margin-top: 1rem;
}

.right-title::after {
    content: "";
    position: absolute;
    width: 60%;
    height: .2rem;
    background-color: #ccc;
    border-radius: 12px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.para {
    line-height: 1.6rem;
    color: #ccc;
    font-size: 1.1rem;
}

/* Timeline */
.timeline {
    flex: 1;
    padding: 10px;
}
/* Ajuster les marges des titres de timeline */
.tl-title,
.tl-title-2 {
    letter-spacing: 1px;
    font-size: 1.3rem;
    color: white;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 0.5rem; /* Réduire la marge en bas */
}

.tl-content {
    border-left: 1px solid #ccc;
    padding-left: 2rem;
    position: relative;
    padding-bottom: 2rem;
}
.tl-title-2::before {
    content: "";
    position: absolute;
    width: .7rem;
    height: .7rem;
    background-color: #D43F52; /* Couleur de fond similaire au premier CSS */
    border-radius: 50%;
    transform: translateX(-50%);
    left: 0;
}

/* Spécifiques à Éducation */
.education {
    text-align: center;
}
.education .right-title::after,
.education .tl-title-2::before {
    display: none !important;
}

/* Divers */
.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}
.net_bg {
    width: 100%;
}

/* Media Queries pour adaptation mobile */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: repeat(1, 1fr);
    }
    .profile img {
        width: 40%;
    }
}
@media (max-width: 800px) {
    .grouped-timelines {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .left-section, .right-section {
        grid-column: span 1;
        width: 100%;
    }
    .profile img {
        width: 60%;
    }
    .name { font-size: 1.5rem; }
    .career { font-size: 1rem; }
    .main-title { font-size: 1.3rem; }
    .skills-section ul li,
    .skills-list li,
    .para,
    .sub-para { font-size: 0.9rem; }
    .right-title { font-size: 1.3rem; }
    .tl-title,
    .tl-title-2 { font-size: 1rem; }
    .left-content,
    .right-main-content { padding: 1.5rem; }
    .grouped-timelines {
        flex-direction: column;
        gap: 20px;
    }
}
@media (max-width: 700px) {
    .profile img {
        width: 60%;
    }
}
@media (max-width: 681px) {
    .right-title::after { width: 30%; }
}
@media (max-width: 600px) {
    .main-content {
        width: 98%;
        margin: 0.5rem auto;
    }
    .right-main-content {
        padding: 1rem;
    }
}
@media (max-width: 400px) {
    .main-content {
        width: 100%;
        margin: 0.2rem auto;
    }
    .right-main-content {
        padding: 0.3rem;
    }
}


/*correction*/

.right-main-content {
    padding: 3rem 3rem; /* Augmentez le padding en haut pour éloigner le contenu du bord supérieur */
}

.about, .experince, .education, .awards, .experience {
    margin-bottom: 3rem; /* Ajoutez une marge en bas de chaque section pour un meilleur espacement */
    margin-top: 40px;
}


abbr {
  text-decoration: underline dotted;
  position: relative;
}

abbr[data-shown="true"]::after {
  content: attr(title);
  position: absolute;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  top: 130%;
  left: 0;
  white-space: nowrap;
  z-index: 10;
  font-size: 0.9em;
}
