/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs principales */
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --accent-purple: #533483;
    
    /* Couleurs d'accentuation */
    --cyan-color: #00d4ff;
    --white-color: #ffffff;
    --light-gray: #e2e8f0;
    --gray-color: #a1a1a1;
    
    /* Couleurs de statut */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Typographie */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Tailles */
    --h1-size: 3rem;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
    --body-size: 1rem;
    --small-size: 0.875rem;
    
    /* Espacements */
    --section-padding: 5rem 0;
    --container-padding: 1rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Ombres */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--cyan-color) 0%, var(--accent-purple) 100%);
    --gradient-text: linear-gradient(135deg, var(--cyan-color) 0%, var(--white-color) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--light-gray);
    background-color: var(--primary-color);
    overflow-x: hidden;
    user-select: none;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white-color) !important;
    text-decoration: none;
}

.brand-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--light-gray) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--cyan-color) !important;
    background: rgba(0, 212, 255, 0.1);
}

/* Réinitialise l’icône Bootstrap par défaut */
.navbar-toggler-icon {
    background-image: none;   /* retire le SVG par défaut */
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #fff;   /* barre centrale */
    transition: transform .4s cubic-bezier(.49,.13,.26,1.37);
  }
  
  /* Barres haute et basse créées en pseudo‑éléments */
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform .4s cubic-bezier(.49,.13,.26,1.37);
  }
  
  .navbar-toggler-icon::before { top: -8px; }   /* barre haute */
  .navbar-toggler-icon::after  { top:  8px; }   /* barre basse */
  
  /* — Effet “croix” quand le menu est ouvert — */
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(45deg);
  }
  
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: translateY(8px) rotate(-90deg);   /* devient la barre diagonale ▼ */
  }
  
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: translateY(-8px) rotate(90deg);   /* devient la barre diagonale ▲ */
  }
  
  /* Touches de style optionnelles */
  .navbar-toggler {
    border: none;           /* supprime le cadre Bootstrap */
    outline: none;
    box-shadow: none;
    width: 48px; height: 48px;
    display: flex; justify-content: center; align-items: center;
  }
  

.depuis {
display: block;
left: 40px;
letter-spacing: 5px;
position: fixed;
text-orientation: mixed;
top: calc(43%);
transform: translate(-50%, -50%);
white-space: pre;
writing-mode: vertical-lr;
z-index: 1000;
color: var(--gray-color);
opacity: 0.4;
}

/* ===== BOUTONS ===== */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white-color);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    color: var(--white-color);
}

.btn-outline-light {
    border: 2px solid var(--light-gray);
    color: var(--light-gray);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--cyan-color);
    color: var(--cyan-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--cyan-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== SECTION HERO ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -2;
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
    background: rgba(83, 52, 131, 0.1);
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
    background: rgba(0, 212, 255, 0.05);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--cyan-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    height: 6rem;
    align-content: center;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    padding-top: 1rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* .hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease-out;
} */

/* .model-container {
    width: 100%;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease-out;
}

#3d-model-container {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 767px) {
    .model-container {
        height: 250px;
    }
} */


.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-image {
    width: 300px;
    height: 300px;
    /* border-radius: 50%; */
    /* background: var(--gradient-text); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 auto 2rem; */
    /* font-size: 4rem; */
    /* color: var(--white-color); */
    /* box-shadow: var(--shadow-medium); */
}

.profile-image img {
    width: 80%;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyan-color);
    animation: floatIcon 4s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 200px; right: -30px; }
.floating-icon:nth-child(2) { bottom: 50%; left: -30px; }
.floating-icon:nth-child(3) { top: -8%; left: 30px; }
.floating-icon:nth-child(4) { bottom: -30px; right: 10%; }
.floating-icon:nth-child(5) { top: -25px; right: 10%; }
.floating-icon:nth-child(6) { bottom: -30px; left: 15%; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    color: var(--light-gray);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 992px) {
    .hero-content{
        padding-top: 6em;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .profile-card {
        padding: 2rem;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .profile-image img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .row.align-items-center {
        flex-direction: column;
    }

    .col-lg-6 {
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }



    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .floating-icon:nth-child(1) { top: 100px; right: -20px; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}


/* ===== SECTIONS COMMUNES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECTION À PROPOS ===== */
.about-section {
    background: var(--secondary-color);
    padding: var(--section-padding);
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.vision-box {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--cyan-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.vision-box h4 {
    color: var(--cyan-color);
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--cyan-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

@media (max-width: 668px) {
    .section-divider{
        margin-bottom: 0 !important;
    }
    .about-content p{
        padding: 0 1rem;
    }
}

/* ===== SECTION COMPÉTENCES ===== */
.skills-section {
    background: var(--primary-color);
    padding: var(--section-padding);
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skill-icon {
    font-size: 3rem;
    color: var(--cyan-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.skill-category h4 {
    color: var(--white-color);
    text-align: center;
    margin-bottom: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    color: var(--light-gray);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.skill-bar {
    background: var(--gradient-accent);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: var(--transition);
    min-width: 100px;
}

.tech-icon:hover {
    transform: translateY(-5px);
    background: rgba(0, 212, 255, 0.1);
}

.tech-icon i {
    font-size: 2rem;
    color: var(--cyan-color);
}

.tech-icon span {
    color: var(--gray-color);
    font-size: 0.8rem;
    text-align: center;
}

/* ===== SECTION SERVICES ===== */
.services-section {
    background: var(--secondary-color);
    padding: var(--section-padding);
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    font-size: 3rem;
    color: var(--cyan-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.feature-item i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.feature-item span {
    color: var(--light-gray);
}

.service-technologies {
    margin-bottom: 2rem;
}

.tech-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.2);
    color: var(--cyan-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

/* ===== SECTION CONTACT ===== */
.contact-section {
    background: var(--primary-color);
    padding: var(--section-padding);
}

/* .contact-faq-section {
    background: var(--accent-color);
} */
.contact-info-box {
    background: var(--accent-color);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(44,62,80,0.07);
    padding: 1.5rem 2rem 2.5rem 2rem;
    min-height: 100%;
}
.contact-icons {
    font-size: 1.4rem;
    color: #3B82F6;
    background: #e0e7ff;
    border-radius: 50%;
    padding: 0.5em;
    margin-right: 0.5em;
    width: 42px !important;
    height:42px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    
}
.cTc{
    text-decoration: none;
    color: var(--light-gray);
}

.contact-icon:hover {
    background: #3B82F6;
    color: #fff;
    transform: scale(1.12);
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #3B82F6;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.contact-social-link:hover {
    background: #3B82F6;
    color: #fff;
    transform: scale(1.12);
}
/* Amazing Modern Accordion FAQ */
.faq-box {
    background: var(--accent-color);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(44,62,80,0.10);
    padding: 2.5rem 2rem;
    height: 100%;
}

.accordion-flush .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 1.1rem;
    border-radius: 1.1rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(59,130,246,0.06);
}

.accordion-flush .accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-button {
    background: var(--light-gray);
    border: none;
    border-radius: 1.1rem 1.1rem 0 0 !important;
    font-size: 1.13rem;
    font-weight: 600;
    color: #1F2937;
    padding: 1.1rem 1.5rem;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.accordion-button::after {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3B82F6;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(59,130,246,0.10);
    transition: background 0.3s, color 0.3s, transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, #e0e7ff 60%, #f5f7fa 100%);
    color: #3B82F6;
    box-shadow: 0 4px 16px rgba(59,130,246,0.07);
}

.accordion-button:not(.collapsed)::after {
    content: '–';
    background: var(--cyan-color);
    color: #fff;
    transform: rotate(180deg) scale(1.1);
}

.accordion-body {
    background: #f9fafb;
    border-radius: 0 0 1.1rem 1.1rem;
    color: #374151;
    font-size: 1.05rem;
    padding: 1.2rem 1.5rem 1.5rem 1.5rem;
    animation: fadeAccordion 0.5s;
}

@keyframes fadeAccordion {
    from { opacity: 0; transform: translateY(-10px);}
    to   { opacity: 1; transform: translateY(0);}
}

@media (max-width: 991px) {
    .faq-box {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    .accordion-button, .accordion-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--light-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--white-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--cyan-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    color: var(--white-color);
}

.form-control::placeholder {
    color: var(--gray-color);
}
*/
.contact-info {
    text-align: center;
    padding: 2rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white-color);
}

.contact-info h5 {
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--gray-color);
    margin: 0;
}

.contact-info a {
    color: var(--gray-color);
    margin: 0;
    text-decoration: none;
} 

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    padding: 0 8rem;
    text-align: center;
}

.footer p {
    color: var(--gray-color);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--cyan-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 568px) {
    .footer {
        padding: 1rem 2rem !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 1.75rem;
        --section-padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-icons {
        gap: 1rem;
    }
    
    .tech-icon {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .profile-card {
        padding: 2rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .service-card,
    .skill-category {
        padding: 1.5rem;
    }
}

/* ===== ANIMATIONS PERSONNALISÉES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.ms-auto { margin-left: auto; }

/* ===== SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Modal Formation IT */
.modal-content.bg-dark {
    background: var(--secondary-color, #181c2f);
    border-radius: 1.2rem;
    box-shadow: var(--shadow-medium, 0 8px 32px 0 rgba(31, 38, 135, 0.37));
}
.modal-dialog{
    max-width: 80%;
    margin: auto;
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 75vw;
        width: 75vw;
        height: 75vh;
        margin: auto;
        display: flex;
        align-items: center;
    }
    .modal-content.bg-dark {
        height: 75vh;
        max-height: 75vh;
        width: 80%;
        display: flex;
        flex-direction: column;
        margin: auto;
    }
    .modal-body {
        flex: 1 1 auto;
        overflow: hidden;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    .vertical-scroll-gallery {
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        padding: 0;
        margin: 0;
        scroll-snap-type: y mandatory;
    }
    .gallery-item {
        height: 100%;
        min-height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        scroll-snap-align: start;
    }
    .gallery-item img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 0;
        margin: 0;
        display: block;
    }
}

.vertical-scroll-gallery {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}
.gallery-item {
    margin-bottom: 1rem;
}
.gallery-item img {
    max-height: 100%;
}
@media (max-width: 576px) {
    .vertical-scroll-gallery {
        max-height: 720px;
    }
    .gallery-item img {
        max-height: 620px;
    }
}

.ItModal{
    padding: 3rem 8rem;
    width: 90%;
    gap: 1rem;
}
.Itskills{
    background-color: var(--primary-color);
    align-items: center;
    justify-content: center;
}
.Itskills div {
    padding: 1rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .ItModal{
        padding: 1em;
        width: 90%;
        gap: .5rem;
        font-size: 14px;
    }
    .Itskills{
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
    }
    .Itskills div {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .ItModal{
        font-size: 12px;
    }
}

/* Minimized WhatsApp Chat Wrapper */
/* #whatsapp-chat-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(44,62,80,0.12);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
} */

#whatsapp-chat-wrapper:hover {
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    transform: scale(1.07);
}

#whatsapp-chat-wrapper i {
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
}
/* WhatsApp Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 90px;
    bottom: 50%;
    transform: translateY(50%);
    background: #fff;
    color: #25d366;
    padding: 0.7em 1.3em;
    border-radius: 2em;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(44,62,80,0.18), 0 1.5px 0 #25d366 inset;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10001;
    animation: whatsapp-bounce 1.2s cubic-bezier(.68,-0.55,.27,1.55) 1;
}
.whatsapp-tooltip.hide {
    opacity: 0;
}
#whatsapp-chat-wrapper {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(44,62,80,0.12);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 0 10px 14px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(0 2px 6px rgba(44,62,80,0.10));
}

@keyframes whatsapp-bounce {
    0%   { transform: translateY(50%) scale(0.7);}
    60%  { transform: translateY(50%) scale(1.15);}
    80%  { transform: translateY(50%) scale(0.95);}
    100% { transform: translateY(50%) scale(1);}
}
#whatsapp-chat-wrapper {
    /* Pour positionner le tooltip */
    position: fixed;
}

 /* Modern floating chatbot */
        #chatbot {
            position: fixed;
            right: 1.25rem;
            bottom: 5.25rem;
            z-index: 1055;
            font-family: 'Inter', sans-serif;
        }
        .chat-toggle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg,#4f46e5,#06b6d4);
            display:flex;
            align-items:center;
            justify-content:center;
            box-shadow: 0 8px 24px rgba(15,23,42,0.25);
            color:white;
            border: none;
            cursor:pointer;
            transition: transform .18s ease, box-shadow .18s ease;
        }
        .chat-toggle:active{ transform: scale(.96); }
        .chat-window {
            width: 360px;
            max-width: calc(100vw - 2rem);
            height: 520px;
            background: linear-gradient(180deg,#06b6d4, #4f46e5);
            backdrop-filter: blur(8px);
            border-radius: 14px;
            box-shadow: 0 20px 40px rgba(2,6,23,0.4);
            overflow: hidden;
            display:flex;
            flex-direction:column;
            margin-bottom: .75rem;
            transform-origin: bottom right;
            animation: popIn .18s ease;
            border: 1px solid rgba(255,255,255,0.04);
        }
        @keyframes popIn { from { transform: scale(.95) translateY(6px); opacity:0 } to { transform: scale(1) translateY(0); opacity:1 } }

        .chat-header {
            display:flex;
            align-items:center;
            gap:.75rem;
            padding: .9rem;
            background: linear-gradient(90deg, rgba(79,70,229,0.08), rgba(6,182,212,0.03));
            border-bottom: 1px solid rgba(255,255,255,0.03);
        }
        .chat-header .avatar {
            width:44px;height:44px;border-radius:10px;
            background:linear-gradient(135deg,#06b6d4,#4f46e5);
            display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;
            box-shadow: 0 6px 16px rgba(6,182,212,0.12);
        }
        .chat-header .title { font-weight:600; font-size:0.95rem; color:#e6eef8; }
        .chat-header .subtitle { font-size:0.76rem; color:#cecdcd; }

        .chat-body { padding:1rem; overflow:auto; flex:1; display:flex; flex-direction:column; gap:.75rem; background:linear-gradient(180deg, rgba(6,8,15,0.25), rgba(6,8,15,0.2)); }
        .messages { display:flex; flex-direction:column; gap:.6rem; white-space: pre-line; }

        .bubble {
            display:inline-block;
            padding:.6rem .85rem;
            border-radius:12px;
            max-width:78%;
            line-height:1.25;
            font-size:0.9rem;
            box-shadow: 0 6px 18px rgba(2,6,23,0.3);
        }
        .bubble.user { background: linear-gradient(90deg,#0ea5a4,#059669); color:white; align-self:flex-end; border-bottom-right-radius:6px; }
        .bubble.bot { background: rgba(255,255,255,0.04); color:#dbeafe; align-self:flex-start; border-bottom-left-radius:6px; border:1px solid rgba(255,255,255,0.03); }

        .typing {
            width:48px;
            height:18px;
            display:flex;
            gap:4px;
            align-items:center;
        }
        .dot { width:8px;height:8px;background:#cbd5e1;border-radius:50%;opacity:.9; animation: blink 1s infinite; }
        .dot:nth-child(2){ animation-delay:.12s } .dot:nth-child(3){ animation-delay:.24s }
        @keyframes blink { 0%{ transform: translateY(0); opacity: .35 } 50%{ transform: translateY(-4px); opacity:1 } 100%{ transform: translateY(0); opacity:.35 } }

        .quick-replies { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.25rem; }
        .quick-reply { background: rgba(255,255,255,0.03); color:#cfe8ff; border:1px solid rgba(255,255,255,0.03); padding:.4rem .6rem; border-radius:999px; font-size:0.82rem; cursor:pointer; }

        .chat-input {
            padding:.75rem;
            display:flex;
            gap:.6rem;
            border-top: 1px solid rgba(255,255,255,0.03);
            background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
            color: white;
        }
        .chat-input input {
            flex:1;
            background:transparent;
            border:1px solid rgba(255,255,255,0.04);
            padding:.6rem .75rem;
            border-radius:10px;
            color:#e6eef8;
            outline:none;
        }
        .chat-input input::placeholder {
            color: rgb(160, 159, 159);
        }
        .chat-send {
            background:linear-gradient(135deg,#06b6d4,#4f46e5);
            color:white;padding:.55rem .8rem;border-radius:10px;border:none;cursor:pointer;
        }

        /* responsive */
        @media (max-width:420px){ .chat-window{ width:calc(100vw - 2rem); right:1rem; left:1rem; } }