/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(90deg, rgba(255, 124, 144, 1) 0%, rgba(255, 225, 164, 1) 100%);
    color: black;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUpButton {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulseButton {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 1; }
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== HEADER & NAV ========== */
header {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, rgba(255, 124, 144, 0.95) 0%, rgba(255, 225, 164, 0.95) 100%);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: black;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: black;
    transition: width 0.3s ease, left 0.3s ease;
}

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

.nav-links li a:hover::before {
    width: 100%;
    left: 0;
}

/* ========== TITLE SECTION ========== */
#title {
    padding: 10px 50px;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

#title img {
    width: 100%;
    max-width: 1500px;
    height: auto;
    animation: fadeInDown 1s ease-out forwards;
}

/* ========== BUTTONS ========== */
.btn-primary {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    background-color: transparent;
    color: black;
    border: 3px solid black;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    animation: fadeInUpButton 1s ease-out forwards;
    animation-delay: 0.3s;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: black;
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary.pulse {
    animation: pulseButton 2s infinite;
}

.btn-gradient {
    display: block;
    margin: 25px auto 0;
    padding: 18px 35px;
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(255, 124, 144, 1) 0%, rgba(255, 225, 164, 1) 100%);
    color: black;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-gradient:hover::before {
    width: 350px;
    height: 350px;
}

.btn-gradient:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.btn-full {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 700;
    background: black;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards 0.3s;
    isolation: isolate;
}

.btn-full::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-full:hover::before {
    width: 800px;
    height: 800px;
}

.btn-full:hover {
    color: black;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ========== SECTIONS ========== */
section {
    scroll-margin-top: 80px;
}

.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== BIO SECTION ========== */
#bio {
    background: url(img/fond.png);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 120px;
}

#bio h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

#bio h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 124, 144, 1) 0%, rgba(255, 225, 164, 1) 100%);
    transition: width 0.8s ease 0.3s;
}

#bio.visible h1::after {
    width: 80%;
}

.bio {
    display: flex;
    gap: 50px;
    margin-top: 30px;
    align-items: center;
}

.bio-img {
    width: 300px;
    height: auto;
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

#bio.visible .bio-img {
    animation: slideInLeft 0.8s ease-out;
}

.bio-img:hover {
    transform: rotate(0deg) scale(1.05);
}

.textebio {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#bio.visible .textebio {
    animation: slideInRight 0.8s ease-out;
}

.bio p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
}

/* ========== PROJETS SECTION (compact) ========== */
#projets {
    background: url(img/fond2.png);
    background-size: cover;
    background-position: center;
    color: white;
    box-sizing: border-box;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
}

#projets h1 {
    color: black;
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 800;
}

.projets-container {
    text-align: center;
    gap: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
}

.project-card {
    width: 100%;
    max-width: 320px;
    background-color: white;
    color: black;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
    opacity: 0;
}

.project-card.visible {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-20px) rotate(2deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.15) rotate(2deg);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 124, 144, 0.7) 0%, rgba(255, 225, 164, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.project-content {
    padding: 24px 20px;
}

.project-card h2 {
    font-size: 1.4rem;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    font-weight: 700;
    line-height: 1.3;
}

.project-card h4 {
    font-size: 1rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    color: #666;
}

.project-card:hover h2 {
    color: #ff7c90;
}

.project-card p {
    font-size: 1rem;
    text-align: center;
    padding: 0 8px;
    margin-top: 8px;
    line-height: 1.5;
    color: #333;
}

/* ========== SKILLS SECTION (compact) ========== */
#skills {
    background: url(img/fond.png);
    background-size: cover;
    background-position: center;
    color: black;
    box-sizing: border-box;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#skills h1 {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 800;
}

.skills {
    display: grid;
    grid-template-columns: 1.3fr 1.8fr 0.9fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.section-block {
    margin-bottom: 24px;
}

.skills h2 {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 18px;
    border-bottom: 3px solid #ff7c90;
    padding-bottom: 8px;
    position: relative;
    font-weight: 700;
}

.skills h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: #ffe1a4;
    transition: width 0.8s ease 0.3s;
}

#skills.visible .skills h2::before {
    width: 100%;
}

.skills-two-cols {
    display: flex;
    gap: 16px;
}

.skills-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill {
    display: grid;
    grid-template-columns: 40px 110px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill.visible {
    opacity: 1;
    transform: translateX(0);
}

.skill-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill:hover .skill-icon {
    transform: scale(1.2) rotate(5deg);
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: #ffe1a4;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.skill-level {
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-level p {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
}

.skill-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff7c90, #ff9fa8);
    border-radius: 10px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 124, 144, 0.5);
}

.skill-progress::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid black;
    box-shadow: 0 0 10px rgba(255, 124, 144, 0.8);
}

/* ========== EXPERIENCE & EDUCATION ========== */
.exp {
    position: relative;
    padding-left: 110px;
}

.exp::before {
    content: '';
    position: absolute;
    left: 55px;
    top: 10px;
    width: 4px;
    height: 90%;
    background: linear-gradient(180deg, #ff7c90 0%, #ffe1a4 100%);
}

.exp-item {
    position: relative;
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.exp-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.exp-date {
    position: absolute;
    left: -85px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff7c90, #ff9fa8);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 124, 144, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.exp-item:hover .exp-date {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 25px rgba(255, 124, 144, 0.6);
}

.exp-content {
    padding-left: 20px;
    transition: transform 0.3s ease;
}

.exp-item:hover .exp-content {
    transform: translateX(10px);
}

.exp-content h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #ff7c90;
    font-weight: 700;
}

.exp-content p {
    font-size: 14px;
    color: black;
    line-height: 1.5;
}

.reseauxsociaux {
    display: flex;
    flex-wrap: wrap;
    gap: 45px;
    justify-content: center;
    margin-top: 15px;
}

.reseauxsociaux img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.reseauxsociaux img:hover {  
    transform: scale(1.2) rotate(5deg);
}

/* ========== HOBBIES ========== */
.hobbies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.hobby-item {
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hobby-item.visible {
    opacity: 1;
    transform: scale(1);
}

.hobby-icon {
    width: 60px;
    height: 60px;
    border: 4px solid #ff7c90;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.4s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(255, 124, 144, 0.2);
}

.hobby-item:hover .hobby-icon {
    transform: rotate(360deg) scale(1.15);
    border-color: #ffe1a4;
    box-shadow: 0 10px 30px rgba(255, 124, 144, 0.4);
}

.hobby-icon img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.hobby-item:hover .hobby-icon img {
    transform: scale(1.2);
}

.hobby-item p {
    font-size: 14px;
    font-weight: 600;
}

.colonne-droite .section-block p {
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
}

/* ========== CONTACT SECTION ========== */
#contact {
    background: url(img/fond2.png);
    background-size: cover;
    background-position: center;
    color: black;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#contact h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
}

form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#contact.visible .form-group:nth-child(1) {
    animation: fadeInUp 0.6s ease forwards;
}

#contact.visible .form-group:nth-child(2) {
    animation: fadeInUp 0.6s ease forwards 0.1s;
}

#contact.visible .form-group:nth-child(3) {
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.contact-info {
    width: 800px;
    margin: 40px auto 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-info p {
    font-size: 1rem;
    text-align: center;
    color: black;
    font-weight: 500;
    margin: 10px 0;
}

label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

input, textarea {
    padding: 15px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 15px;
    width: 100%;
    background-color: #fff7f1;
    color: black;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #ff7c90;
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 124, 144, 0.3);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== FOOTER ========== */
footer {
    background: url(img/fond2.png);
    background-size: cover;
    background-position: center;
    color: black;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    border-top: 2px solid black;
}

footer p {
    transition: transform 0.3s ease;
}

/* ========== MODAL PROJET (SANS RESPONSIVE) ========== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: #fff7f1;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff7c90, #ff9fa8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 124, 144, 0.4);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 124, 144, 0.6);
}

.modal-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 0;
}

/* Colonne gauche scrollable */
.modal-left {
    padding: 60px 50px;
    overflow-y: auto;
    background: linear-gradient(135deg, #fff7f1 0%, #ffe9e1 100%);
    border-right: 3px solid #ff7c90;
    max-height: 100%;
}

.modal-left::-webkit-scrollbar {
    width: 8px;
}

.modal-left::-webkit-scrollbar-track {
    background: #ffe1a4;
    border-radius: 10px;
}

.modal-left::-webkit-scrollbar-thumb {
    background: #ff7c90;
    border-radius: 10px;
}

.modal-left::-webkit-scrollbar-thumb:hover {
    background: #ff9fa8;
}

.modal-left h2 {
    font-size: 2.5rem;
    color: #ff7c90;
    margin-bottom: 30px;
    font-weight: 800;
    border-bottom: 4px solid #ff7c90;
    padding-bottom: 15px;
}

.modal-left p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.modal-left ul {
    margin-left: 25px;
    margin-top: 15px;
    list-style: none;
}

.modal-left li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
    position: relative;
}

.modal-left li::before {
    content: '→';
    position: absolute;
    left: -25px;
    color: #ff7c90;
    font-weight: 700;
}

.modal-left strong {
    color: #ff7c90;
    font-weight: 700;
}

/* Colonne droite carousel */
.modal-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #ffe9e1 0%, #ffd9d1 100%);
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/10;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff7f1, #ffe9e1);
}

.carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-image:hover {
    filter: brightness(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff7c90, #ff9fa8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 124, 144, 0.4);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 124, 144, 0.6);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffe1a4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    transform: scale(1.3);
}

.indicator.active {
    background: #ff7c90;
    width: 35px;
    border-radius: 10px;
}

/* ========== RESPONSIVE ==========
   Tablet ≤ 1024px
==================================*/
@media (max-width: 1024px) {

    /* NAV */
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li a {
        font-size: 1.1rem;
    }

    /* BIO */
    #bio {
        padding: 60px 60px;
    }

    .bio {
        flex-direction: column;
        text-align: center;
    }

    .bio-img {
        width: 250px;
    }

    .bio-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

    .bio-actions .btn-gradient {
        margin: 0;
        font-size: 1rem;
        padding: 12px 22px;
    }


    /* PROJETS */
    #projets {
        padding: 40px 30px;
    }

    .projets-container {
        gap: 25px;
        max-width: 1000px;
    }

    .project-card {
        max-width: 320px;
    }

    /* SKILLS */
    #skills {
        padding: 40px 30px;
    }

    .skills {
        grid-template-columns: 1fr 1fr;   /* 2 colonnes : gauche + milieu, droite en dessous */
        gap: 30px;
    }

    .colonne-droite {
        grid-column: 1 / -1;
    }

    .exp {
        padding-left: 90px;
    }

    .exp::before {
        left: 45px;
    }

    .exp-date {
        left: -70px;
        width: 55px;
        height: 55px;
        font-size: 10px;
    }

    /* CONTACT */
    #contact {
        padding: 60px 30px;
    }
}

/* ========== Mobiles ≤ 768px ========== */
@media (max-width: 768px) {

    /* NAV */
    .nav-links {
        gap: 12px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nav-links li a {
        font-size: 0.95rem;
    }

    /* TITLE */
    #title {
        padding: 20px 20px;
        height: auto;
    }

    #title img {
        max-width: 320px;
    }

    #title .btn-primary {
        font-size: 0.8rem;
        padding: 12px 25px;
    }

    /* BIO */
    #bio {
        padding: 50px 20px;
    }

    #bio h1 {
        font-size: 2.4rem;
    }

    .bio-img {
        width: 220px;
    }

    .bio p {
        font-size: 1.05rem;
    }

    .bio-actions {
        justify-content: center;
    }

    /* PROJETS */
    #projets {
        padding: 40px 20px;
    }

    #projets h1 {
        font-size: 2.4rem;
        margin-bottom: 25px;
    }

    .project-card {
        max-width: 100%;
    }

    .project-img-wrapper {
        height: 200px;
    }

    .project-card h2 {
        font-size: 1.3rem;
    }

    .project-card p {
        font-size: 1rem;
    }

    /* SKILLS */
    #skills {
        padding: 40px 20px;
    }

    #skills h1 {
        font-size: 2.4rem;
    }

    .skills {
        grid-template-columns: 1fr;   /* une seule colonne */
        gap: 30px;
    }

    .skills-two-cols {
        flex-direction: row;
    }

    .skill {
        grid-template-columns: 36px 1fr;
        gap: 10px;
    }

    .skill-icon {
        width: 36px;
        height: 36px;
    }

    .skill-name {
        font-size: 15px;
    }

    .skill-bar {
        grid-column: 1 / -1;
    }

    .skill-level p {
        font-size: 13px;
    }

    .langue {
        display: flex;
        justify-content: space-between;
    }

    .reseauxsociaux {
        justify-content: center;
        gap: 52px;
    }

    .hobbies {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .hobby-icon {
        width: 70px;
        height: 70px;
    }

    .hobby-icon img {
        width: 40px;
        height: 40px;
    }

    /* CONTACT */
    #contact {
        padding: 50px 20px;
    }

    form {
        gap: 20px;
    }

    .contact-info {
        width: 100%;
        padding: 15px;
    }
}

/* ========== Petits mobiles ≤ 480px ========== */
@media (max-width: 480px) {

    header {
        height: auto;
    }

    .navbar {
        padding: 12px 10px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links li a {
        font-size: 0.8rem;
    }

    #title img {
        max-width: 260px;
    }

    #bio,
    #projets,
    #skills,
    #contact {
        padding: 40px 16px;
    }

    #bio h1,
    #projets h1,
    #skills h1,
    #contact h1 {
        font-size: 2rem;
    }

    .project-img-wrapper {
        height: 180px;
    }

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

    .exp {
        padding-left: 70px;
    }

    .exp::before {
        left: 38px;
        height: 80%;
    }

    .exp-date {
        left: -52px;
        width: 46px;
        height: 46px;
        font-size: 9px;
    }
}

/* ========== RESPONSIVE MODAL ========== */

@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr;   /* une seule colonne */
    }

    .modal-left {
        border-right: none;
        border-bottom: 3px solid #ff7c90;
        max-height: 50vh;             /* limite la hauteur du texte */
    }

    .modal-right {
        padding: 30px;
    }

    .carousel {
        aspect-ratio: 4/3;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-left {
        padding: 40px 30px;
        max-height: 40vh;
    }

    .modal-left h2 {
        font-size: 2rem;
    }

    .modal-left p {
        font-size: 1rem;
    }

    .modal-left li {
        font-size: 0.95rem;
    }

    .modal-right {
        padding: 20px;
    }

    .carousel {
        aspect-ratio: 1/1;
        max-width: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .modal-close {
        width: 45px;
        height: 45px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        grid-template-columns: 1fr;
        overflow-y: auto;              /* scroll global sur petit écran */
    }

    .modal-left {
        padding: 30px 20px;
        max-height: none;              /* pas de limite de hauteur */
        overflow-y: visible;           /* pas de scroll interne */
    }

    .modal-left h2 {
        font-size: 1.6rem;
    }

    .modal-left p,
    .modal-left li {
        font-size: 0.95rem;
    }

    .modal-right {
        padding: 20px;
    }

    .carousel {
        max-width: 300px;
        aspect-ratio: 1/1;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 25px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
