/* ============================================================
   PORTFOLIO — DJEFERLY FELIX
   style.css — Version complète et corrigée
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --primary-color:   #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color:    #ec4899;
    --dark-bg:         #0f172a;
    --light-bg:        #1e293b;
    --card-bg:         rgba(15, 23, 42, 0.6);
    --text-light:      #e2e8f0;
    --text-muted:      #94a3b8;
    --border-soft:     rgba(99, 102, 241, 0.2);
    --shadow-glow:     rgba(99, 102, 241, 0.3);
    --radius-card:     16px;
    --transition:      all 0.35s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.55rem 0;
    box-shadow: 0 6px 30px rgba(0,0,0,0.45);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-logo {
    width: 175px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover { transform: scale(1.05); }

.nav-link {
    color: var(--text-light) !important;
    margin: 0 0.75rem;
    font-weight: 500;
    font-size: 0.92rem;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.35s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 15% 50%, rgba(99,102,241,0.12) 0%, transparent 55%),
            radial-gradient(circle at 85% 80%, rgba(236,72,153,0.10) 0%, transparent 55%);
    pointer-events: none;
}

/* Décorations flottantes */
.hero-deco { pointer-events: none; }

.deco-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}
.deco-dot--1 {
    width: 300px; height: 300px;
    background: var(--primary-color);
    top: -80px; right: -80px;
    animation: float 8s ease-in-out infinite;
}
.deco-dot--2 {
    width: 180px; height: 180px;
    background: var(--accent-color);
    bottom: 60px; left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}
.deco-dot--3 {
    width: 100px; height: 100px;
    background: var(--secondary-color);
    bottom: 200px; right: 10%;
    animation: float 10s ease-in-out infinite;
}

/* ── Profile image ───── */
.profile-image-container {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto;
}

.profile-ring {
    position: absolute;
    inset: -22px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

.profile-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 20px 60px var(--shadow-glow);
    animation: float 6s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ── Hero text ───────── */
.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h2 {
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 1.4rem;
    font-weight: 600;
    min-height: 2.4rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.85;
    max-width: 520px;
}

.typing-text {
    border-right: 2px solid var(--primary-color);
    animation: blink 0.75s step-end infinite;
}

.hero-buttons { margin-bottom: 0.5rem; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50%       { transform: scale(1.08); opacity: 0.1; }
}

@keyframes blink {
    0%, 100% { border-color: var(--primary-color); }
    50%       { border-color: transparent; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn-custom {
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff;
    box-shadow: 0 8px 28px rgba(99,102,241,0.38);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(99,102,241,0.55);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.4);
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.social-links { margin-top: 2rem; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(99,102,241,0.1);
    color: var(--primary-color);
    margin: 0 0.4rem;
    font-size: 1.4rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--border-soft);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.45);
    border-color: transparent;
}

/* ============================================================
   SECTIONS — style commun
   ============================================================ */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-light);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 1.05rem;
}

/* ── Fade-in ─────────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   À PROPOS
   ============================================================ */
.about-section {
    background: rgba(30,41,59,0.45);
}

.about-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(99,102,241,0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-list li:last-child { border-bottom: none; }

.info-list li i {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-list li strong {
    color: var(--text-light);
    margin-right: 0.4rem;
    white-space: nowrap;
}

.info-list li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.info-list li a:hover { color: var(--accent-color); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certifications-container {
    background: rgba(15,23,42,0.4);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(99,102,241,0.15);
    backdrop-filter: blur(10px);
}

.certifications-container h3 {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.4rem;
}

.badge-card {
    background: rgba(255,255,255,0.04);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(99,102,241,0.15);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* animation d'entrée */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.badge-card:nth-child(1) { animation-delay: 0.1s; }
.badge-card:nth-child(2) { animation-delay: 0.2s; }
.badge-card:nth-child(3) { animation-delay: 0.3s; }
.badge-card:nth-child(4) { animation-delay: 0.4s; }
.badge-card:nth-child(5) { animation-delay: 0.5s; }
.badge-card:nth-child(6) { animation-delay: 0.6s; }

.badge-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99,102,241,0.4);
    box-shadow: 0 18px 48px rgba(99,102,241,0.22);
    background: rgba(255,255,255,0.07);
}

.badge-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255,255,255,0.95);
    padding: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.badge-card:hover .badge-image {
    transform: scale(1.07);
    box-shadow: 0 10px 38px rgba(99,102,241,0.28);
    background: #fff;
}

.badge-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.badge-image a {
    display: flex;
    width: 100%;
    height: 100%;
}

.badge-card h5 {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    text-align: center;
}

.badge-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

/* ============================================================
   COMPÉTENCES
   ============================================================ */
.skill-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 2rem;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    margin-bottom: 1.75rem;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 16px 40px var(--shadow-glow);
}

.skill-card > i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(99,102,241,0.1);
    color: var(--primary-color);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(99,102,241,0.25);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ============================================================
   PROJETS  ← Section entièrement corrigée
   ============================================================ */
.projects-section {
    background: rgba(30,41,59,0.3);
}

/* ── Carte projet ───────────────────────────────────────── */
.project-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99,102,241,0.45);
    box-shadow: 0 20px 52px rgba(99,102,241,0.28);
}

/* ── Zone image avec overlay ────────────────────────────── */
.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.project-image--blue  { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.project-image--green { background: linear-gradient(135deg, #10b981, #06b6d4); }
.project-image--cyan  { background: linear-gradient(135deg, #06b6d4, #8b5cf6); }

/* Placeholder (icône centrée) */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
}

.placeholder-image i {
    font-size: 4.5rem;
    color: rgba(255,255,255,0.55);
    transition: transform 0.4s ease;
}

.project-card:hover .placeholder-image i {
    transform: scale(1.12);
}

/* Overlay au hover — badges technos */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.82);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0 1.2rem;
}

.tech-badge {
    background: rgba(99,102,241,0.25);
    color: #fff;
    border: 1px solid rgba(99,102,241,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.project-card:hover .tech-badge {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ── Corps de la carte ──────────────────────────────────── */
.project-body {
    padding: 1.5rem 1.5rem 0.75rem;
    flex: 1;
}

.project-body h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.project-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.project-stats {
    margin-top: 0.5rem;
}

.stat-item {
    font-size: 0.83rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.stat-item em {
    font-style: normal;
    opacity: 0.8;
}

/* ── Pied de carte ──────────────────────────────────────── */
.project-footer {
    padding: 1rem 1.5rem 1.4rem;
    border-top: 1px solid rgba(99,102,241,0.08);
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    background: transparent;
    padding: 0.45rem 1.15rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-project:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
    background: rgba(30,41,59,0.45);
}

.contact-info {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 2rem;
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-5px);
    border-color: rgba(99,102,241,0.4);
    box-shadow: 0 12px 32px var(--shadow-glow);
}

.contact-info > i {
    font-size: 2.2rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.9rem;
}

.contact-info h3 {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.contact-info p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.3s;
}
.contact-info a:hover { color: var(--accent-color); }

/* ── Formulaire ─────────────────────────────────────────── */
.contact-form {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.form-control {
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(99,102,241,0.2);
    color: var(--text-light);
    padding: 0.75rem 1.1rem;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-control:focus {
    background: rgba(15,23,42,0.75);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: rgba(15,23,42,0.97);
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid rgba(99,102,241,0.18);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.88rem;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(99,102,241,0.45);
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(99,102,241,0.6);
}

.scroll-top.active { display: flex; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-notification {
    position: fixed;
    top: 90px;
    right: -420px;
    max-width: 380px;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 500;
    font-size: 0.92rem;
}

.toast-notification.show { right: 20px; }

.toast-notification i {
    font-size: 1.7rem;
    flex-shrink: 0;
}

.toast-notification span { flex: 1; line-height: 1.5; }

/* ============================================================
   RESPONSIVE — Tous appareils
    xl ≥1200px | lg 992–1199px | md 768–991px | sm 576–767px | xs <576px | xxs <400px
   ============================================================ */

/* ── Grands écrans (≥1400px) ─────────────────────────────── */
@media (min-width: 1400px) {
    .hero-content h1        { font-size: 4rem; }
    .profile-image-container{ width: 400px; height: 400px; }
}

/* ── Tablette paysage / petit laptop (992px–1199px) ─────── */
@media (max-width: 1199px) {
    .hero-content h1        { font-size: 3rem; }
    .hero-content h2        { font-size: 1.7rem; }
    .profile-image-container{ width: 300px; height: 300px; }
}

/* ── Tablette portrait (768px–991px) ────────────────────── */
@media (max-width: 991px) {
    section { padding: 80px 0; }

    /* Navbar */
    .navbar-nav { padding: 1rem 0; }
    .nav-link   { margin: 0.3rem 0; }

    /* Hero : image au-dessus du texte */
    .hero-section           { padding: 100px 0 60px; }
    .hero-content           { text-align: center; }
    .hero-content p         { margin-left: auto; margin-right: auto; }
    .hero-content h1        { font-size: 2.8rem; }
    .hero-content h2        { font-size: 1.6rem; }
    .hero-buttons           { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
    .hero-buttons .btn-custom { margin-right: 0 !important; }
    .social-links           { display: flex; justify-content: center; flex-wrap: wrap; }
    .profile-image-container{ width: 260px; height: 260px; margin-bottom: 2.5rem; }

    /* Section title */
    .section-title h2       { font-size: 2.1rem; }

    /* About */
    .about-content          { padding: 2rem 1.75rem; }
    .info-list li           { font-size: 0.92rem; }

    /* Certifications */
    .certifications-container { padding: 2rem 1.5rem; }
    .badge-image            { width: 120px; height: 120px; }

    /* Projets : 2 colonnes sur tablette */
    .projects-section .col-lg-4 { flex: 0 0 50%; max-width: 50%; }

    /* Contact */
    .contact-form           { padding: 2rem 1.5rem; }
}

/* ── Mobile paysage / grande phablette (576px–767px) ────── */
@media (max-width: 767px) {
    section { padding: 65px 0; }

    /* Navbar */
    .navbar-logo            { width: 140px; }
    .navbar-collapse        { background: rgba(15,23,42,0.97); padding: 0.5rem 1rem 1rem; border-radius: 0 0 12px 12px; }

    /* Hero */
    .hero-section           { padding: 90px 0 50px; }
    .hero-content h1        { font-size: 2.2rem; }
    .hero-content h2        { font-size: 1.4rem; }
    .hero-content p         { font-size: 0.97rem; line-height: 1.75; }
    .profile-image-container{ width: 220px; height: 220px; margin-bottom: 2rem; }
    .deco-dot--1            { width: 200px; height: 200px; }
    .deco-dot--2            { display: none; }
    .deco-dot--3            { display: none; }

    /* Section title */
    .section-title          { margin-bottom: 2.5rem; }
    .section-title h2       { font-size: 1.85rem; }

    /* About */
    .about-content          { padding: 1.75rem 1.25rem; }
    .about-content h3       { font-size: 1.25rem; }

    /* Certifications */
    .certifications-container { padding: 1.75rem 1rem; }
    .badge-image            { width: 105px; height: 105px; }
    .badge-card             { padding: 1.5rem 1rem; }
    .badge-card h5          { font-size: 0.88rem; min-height: 38px; }

    /* Skills */
    .skill-card             { padding: 1.5rem; margin-bottom: 1.25rem; }
    .skill-card > i         { font-size: 2.2rem; }
    .skill-card h3          { font-size: 1rem; }
    .skill-tag              { font-size: 0.78rem; padding: 0.3rem 0.75rem; }

    /* Projets : 1 colonne sur mobile */
    .projects-section .col-md-6,
    .projects-section .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
    .project-image          { height: 190px; }
    .placeholder-image i    { font-size: 3.5rem; }

    /* Contact */
    .contact-info           { padding: 1.5rem; margin-bottom: 1rem; }
    .contact-info > i       { font-size: 1.9rem; }
    .contact-form           { padding: 1.5rem 1.1rem; }

    /* Boutons */
    .btn-custom             { padding: 10px 22px; font-size: 0.83rem; }

    /* Toast */
    .toast-notification     { right: -100vw; max-width: calc(100vw - 32px); }
    .toast-notification.show{ right: 16px; left: 16px; }

    /* Scroll top */
    .scroll-top             { width: 42px; height: 42px; font-size: 1.15rem; bottom: 20px; right: 20px; }
}

/* ── Petit mobile (< 576px) ─────────────────────────────── */
@media (max-width: 575px) {
    /* Hero */
    .hero-content h1        { font-size: 1.95rem; line-height: 1.2; }
    .hero-content h2        { font-size: 1.25rem; }
    .hero-buttons           { flex-direction: column; align-items: center; }
    .hero-buttons .btn-custom { width: 100%; max-width: 280px; margin-right: 0 !important; }
    .profile-image-container{ width: 195px; height: 195px; }
    .social-links a         { width: 42px; height: 42px; font-size: 1.2rem; margin: 0 0.3rem; }

    /* Section title */
    .section-title h2       { font-size: 1.65rem; }
    .section-title p        { font-size: 0.92rem; }

    /* About */
    .about-content          { padding: 1.5rem 1rem; }
    .info-list li           { font-size: 0.88rem; flex-wrap: wrap; }

    /* Certifications : 2 col sur petit mobile */
    .certifications-container .col-lg-3,
    .certifications-container .col-md-4,
    .certifications-container .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .badge-image            { width: 90px; height: 90px; }
    .badge-card             { padding: 1.2rem 0.75rem; }
    .badge-card h5          { font-size: 0.82rem; min-height: 34px; }

    /* Skills : 1 col */
    .skill-card             { padding: 1.25rem 1rem; }

    /* Contact form */
    .contact-form .row > [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; }
    .contact-form           { padding: 1.25rem 0.9rem; }
    .form-control           { font-size: 0.88rem; }
}

/* ── Très petit mobile (< 400px) ────────────────────────── */
@media (max-width: 399px) {
    .hero-content h1        { font-size: 1.65rem; }
    .hero-content h2        { font-size: 1.1rem; }
    .profile-image-container{ width: 165px; height: 165px; }
    .navbar-logo            { width: 120px; }
    .section-title h2       { font-size: 1.5rem; }

    /* Certifications : 1 col sur très petits écrans */
    .certifications-container .col-lg-3,
    .certifications-container .col-md-4,
    .certifications-container .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
    .badge-image            { width: 110px; height: 110px; }

    .btn-custom             { padding: 9px 18px; font-size: 0.8rem; }
    .btn-project            { padding: 0.4rem 1rem; font-size: 0.8rem; }
}
