/* ===========================
  VARIABLES & RESET
=========================== */
:root {
   --navy: #0a1628;
   --navy-2: #0d2137;
   --navy-3: #112240;
   --navy-4: #1a3356;
   --blue: #2575fc;
   --blue-light: #4d8eff;
   --cyan: #00b4d8;
   --white: #ffffff;
   --gray: #94a3b8;
   --gray-light: #cbd5e1;
   --border: rgba(37,117,252,0.15);
   --card-bg: rgba(17,34,64,0.8);
   --gradient: linear-gradient(135deg, #2575fc, #00b4d8);
   --gradient-dark: linear-gradient(135deg, #0a1628, #112240);
   --shadow: 0 4px 24px rgba(0,0,0,0.3);
   --shadow-blue: 0 4px 24px rgba(37,117,252,0.25);
   --radius: 16px;
   --radius-sm: 10px;
   --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
   font-family: 'Inter', sans-serif;
   background: var(--navy);
   color: var(--white);
   line-height: 1.6;
   cursor: none;
   overflow-x: hidden;
}

/* ===========================
  CURSEUR
=========================== */
.cursor-dot {
   width: 6px; height: 6px;
   background: var(--cyan); border-radius: 50%;
   position: fixed; pointer-events: none;
   z-index: 99999; transform: translate(-50%, -50%);
}
.cursor-ring {
   width: 32px; height: 32px;
   border: 1.5px solid var(--cyan); border-radius: 50%;
   position: fixed; pointer-events: none;
   z-index: 99998; transform: translate(-50%, -50%);
   transition: width 0.25s, height 0.25s, background 0.25s;
}
.cursor-ring.hovered {
   width: 50px; height: 50px;
   background: rgba(0,180,216,0.08);
}
@media (max-width: 768px) {
   body { cursor: auto; }
   .cursor-dot, .cursor-ring { display: none; }
}

/* ===========================
  BARRE PROGRESSION
=========================== */
#progress-bar {
   position: fixed; top: 0; left: 0;
   height: 2px; width: 0%;
   background: var(--gradient);
   z-index: 99997; transition: width 0.1s;
}

/* ===========================
  PARTICULES
=========================== */
#particles-canvas {
   position: fixed; top: 0; left: 0;
   width: 100%; height: 100%;
   z-index: 0; pointer-events: none; opacity: 0.35;
}

/* ===========================
  LOADER
=========================== */
#loader {
   position: fixed; inset: 0;
   background: var(--navy);
   display: flex; align-items: center; justify-content: center;
   z-index: 999999;
   transition: opacity 0.5s, visibility 0.5s;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
   font-size: 3rem; font-weight: 800;
   color: var(--white); margin-bottom: 32px; letter-spacing: -1px;
}
.loader-logo span { color: var(--cyan); }
.loader-bar-wrap {
   width: 180px; height: 2px;
   background: rgba(255,255,255,0.1);
   border-radius: 2px; overflow: hidden; margin: 0 auto;
}
.loader-bar {
   height: 100%; width: 0%;
   background: var(--gradient);
   animation: loadBar 2s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* ===========================
  HEADER
=========================== */
.header {
   position: fixed; top: 0; width: 100%;
   padding: 0 5%; height: 70px;
   display: flex; align-items: center; justify-content: space-between;
   background: rgba(10,22,40,0.95);
   backdrop-filter: blur(20px);
   border-bottom: 1px solid var(--border);
   z-index: 2000; transition: var(--transition);
}
.header.scrolled { height: 60px; background: rgba(10,22,40,0.99); }
.logo {
   font-size: 1.2rem; font-weight: 700;
   color: var(--white); text-decoration: none; letter-spacing: -0.5px;
}
.logo span { color: var(--cyan); }
.navbar { display: flex; align-items: center; gap: 4px; }
.nav-link {
   padding: 6px 12px; color: var(--gray);
   text-decoration: none; font-size: 0.875rem; font-weight: 500;
   border-radius: 8px; transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
   color: var(--white); background: rgba(255,255,255,0.06);
}
.nav-cta {
   background: var(--gradient) !important;
   color: var(--white) !important;
   padding: 7px 16px !important; margin-left: 8px;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.availability {
   display: flex; align-items: center; gap: 6px;
   background: rgba(74,222,128,0.1);
   border: 1px solid rgba(74,222,128,0.25);
   border-radius: 20px; padding: 5px 12px;
   font-size: 0.78rem; font-weight: 500; color: #4ade80;
}
.dot-green {
   width: 7px; height: 7px; border-radius: 50%;
   background: #4ade80; animation: pulse-green 2s infinite;
}
@keyframes pulse-green { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.btn-theme {
   width: 36px; height: 36px; border-radius: 50%;
   border: 1px solid var(--border);
   background: var(--card-bg); color: var(--gray);
   font-size: 16px; cursor: pointer;
   display: flex; align-items: center; justify-content: center;
   transition: var(--transition);
}
.btn-theme:hover { color: var(--white); border-color: var(--cyan); }
.menu-icon { font-size: 24px; color: var(--white); cursor: pointer; display: none; }

/* ===========================
  SECTIONS
=========================== */
section {
   display: none; min-height: 100vh;
   position: relative; z-index: 1;
   padding-top: 70px; opacity: 0;
   transition: opacity 0.4s ease;
}
section.active { display: block; opacity: 1; }
.section-wrapper { max-width: 1200px; margin: 0 auto; padding: 80px 5%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
   display: inline-block; font-size: 0.8rem; font-weight: 600;
   color: var(--cyan); text-transform: uppercase;
   letter-spacing: 2px; margin-bottom: 12px;
}
.section-title {
   font-size: clamp(1.8rem, 4vw, 2.5rem);
   font-weight: 800; color: var(--white); letter-spacing: -0.5px;
}
.section-title span { color: var(--cyan); }

/* ===========================
  REVEAL
=========================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===========================
  HOME
=========================== */
.home-wrapper {
   min-height: calc(100vh - 70px);
   display: flex; align-items: center;
   justify-content: space-between;
   gap: 60px; padding: 60px 5%;
   max-width: 1200px; margin: 0 auto;
}
.home-left { flex: 1; }
.home-tag {
   display: inline-flex; align-items: center; gap: 8px;
   background: rgba(37,117,252,0.1);
   border: 1px solid rgba(37,117,252,0.25);
   border-radius: 20px; padding: 6px 16px;
   font-size: 0.82rem; font-weight: 600;
   color: var(--blue-light); margin-bottom: 24px;
}
.home-title {
   font-size: clamp(2rem, 5vw, 3.2rem);
   font-weight: 800; line-height: 1.15;
   color: var(--white); margin-bottom: 16px; letter-spacing: -1px;
}
.name-highlight {
   background: var(--gradient);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}
.home-typed {
   font-size: 1.2rem; font-weight: 500;
   color: var(--gray); margin-bottom: 20px; min-height: 32px;
}
.typed-text { color: var(--cyan); font-weight: 600; }
.home-desc {
   font-size: 1rem; color: var(--gray);
   line-height: 1.7; margin-bottom: 32px; max-width: 480px;
}
.home-social { display: flex; gap: 12px; margin-bottom: 32px; }
.social-link {
   width: 40px; height: 40px;
   display: flex; align-items: center; justify-content: center;
   border-radius: 10px; border: 1px solid var(--border);
   color: var(--gray); font-size: 18px;
   text-decoration: none; transition: var(--transition);
}
.social-link:hover {
   color: var(--white); border-color: var(--cyan);
   background: rgba(0,180,216,0.1); transform: translateY(-2px);
}
.home-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.btn-primary {
   display: inline-flex; align-items: center; gap: 8px;
   background: var(--gradient); color: var(--white);
   padding: 12px 24px; border-radius: var(--radius-sm);
   font-size: 0.9rem; font-weight: 600;
   border: none; cursor: pointer; transition: var(--transition);
   box-shadow: var(--shadow-blue); text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,117,252,0.4); }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-secondary {
   display: inline-flex; align-items: center; gap: 8px;
   background: rgba(37,117,252,0.12); color: var(--blue-light);
   padding: 12px 24px; border-radius: var(--radius-sm);
   font-size: 0.9rem; font-weight: 600;
   border: 1px solid rgba(37,117,252,0.3);
   text-decoration: none; transition: var(--transition);
}
.btn-secondary:hover { background: rgba(37,117,252,0.2); transform: translateY(-2px); }

.btn-outline {
   display: inline-flex; align-items: center; gap: 8px;
   background: transparent; color: var(--gray);
   padding: 12px 24px; border-radius: var(--radius-sm);
   font-size: 0.9rem; font-weight: 600;
   border: 1px solid var(--border);
   text-decoration: none; transition: var(--transition);
}
.btn-outline:hover { color: var(--white); border-color: var(--gray-light); transform: translateY(-2px); }

.home-stats {
   display: flex; align-items: center;
   background: var(--card-bg); border: 1px solid var(--border);
   border-radius: var(--radius); padding: 20px 28px;
   max-width: 380px; width: fit-content;
   backdrop-filter: blur(10px);
}
.stat { display: flex; flex-direction: column; align-items: center; flex: 1; }
.stat-num {
   font-size: 2rem; font-weight: 800;
   background: var(--gradient);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text; line-height: 1;
}
.stat-sym {
   font-size: 1.2rem; font-weight: 800;
   background: var(--gradient);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}
.stat p {
   font-size: 0.7rem; font-weight: 600;
   color: var(--gray); text-transform: uppercase;
   letter-spacing: 1px; margin-top: 4px;
}
.stat-divider { width: 1px; height: 40px; background: var(--border); margin: 0 16px; }

.home-right { flex-shrink: 0; }
.photo-frame { position: relative; width: 320px; height: 320px; }
.photo-img {
   width: 100%; height: 100%;
   object-fit: cover; object-position: top;
   border-radius: 50%;
   border: 3px solid transparent;
   box-shadow: 0 0 60px rgba(37,117,252,0.25);
   background: var(--gradient) border-box;
}
.photo-ring {
   position: absolute; inset: -8px; border-radius: 50%;
   border: 1.5px solid rgba(0,180,216,0.25);
   animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-badge {
   position: absolute; bottom: 20px; right: -10px;
   background: var(--card-bg); border: 1px solid var(--border);
   border-radius: 20px; padding: 8px 16px;
   display: flex; align-items: center; gap: 6px;
   font-size: 0.8rem; font-weight: 600; color: var(--cyan);
   backdrop-filter: blur(10px); white-space: nowrap;
}

/* ===========================
  ABOUT
=========================== */
#about { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img {
   width: 100%; border-radius: var(--radius);
   object-fit: cover; object-position: top;
   aspect-ratio: 3/4; box-shadow: var(--shadow);
   border: 1px solid var(--border);
}
.about-img-deco {
   position: absolute; bottom: -20px; right: -20px;
   width: 60%; height: 60%;
   border-radius: var(--radius);
   border: 2px solid rgba(37,117,252,0.2); z-index: -1;
}
.about-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.about-content p { color: var(--gray); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; }
.about-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.about-card {
   display: flex; align-items: flex-start; gap: 16px;
   background: var(--card-bg); border: 1px solid var(--border);
   border-radius: var(--radius-sm); padding: 20px;
   transition: var(--transition);
}
.about-card:hover { border-color: rgba(37,117,252,0.4); transform: translateX(4px); }
.about-card > i { font-size: 24px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.about-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.about-card p { font-size: 0.83rem; color: var(--gray); margin: 0; }

/* ===========================
  SERVICES
=========================== */
#services { background: var(--navy-2); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
   background: var(--card-bg); border: 1px solid var(--border);
   border-radius: var(--radius); padding: 32px 28px;
   transition: var(--transition); backdrop-filter: blur(10px);
}
.service-card:hover { border-color: rgba(0,180,216,0.4); transform: translateY(-6px); box-shadow: var(--shadow-blue); }
.service-icon {
   width: 52px; height: 52px;
   background: rgba(37,117,252,0.12); border-radius: 12px;
   display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon i { font-size: 26px; color: var(--cyan); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.service-card > p { color: var(--gray); font-size: 0.88rem; margin-bottom: 20px; line-height: 1.7; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-card ul li { font-size: 0.83rem; color: var(--gray-light); display: flex; align-items: center; gap: 8px; }
.service-card ul li::before { content: ''; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; flex-shrink: 0; }

/* ===========================
  SKILLS
=========================== */
#skills { background: var(--navy); }
.skills-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.skills-left h3, .skills-right h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 28px; }
.skill-bar { margin-bottom: 20px; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.88rem; color: var(--gray-light); font-weight: 500; }
.skill-track { height: 5px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 5px; animation: fillBar 1.5s ease forwards; }
.skill-fill.html { width: 90%; background: linear-gradient(90deg, #e44d26, #f16529); }
.skill-fill.css { width: 60%; background: linear-gradient(90deg, #147bbc, #2965f1); }
.skill-fill.js { width: 85%; background: linear-gradient(90deg, #f0c040, #f7df1e); }
.skill-fill.react { width: 75%; background: linear-gradient(90deg, #61dafb, #00b4d8); }
.skill-fill.python { width: 50%; background: linear-gradient(90deg, #4b8bbe, #306998); }
@keyframes fillBar { from { width: 0 !important; } }

.soft-skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 32px; }
.soft-skill { text-align: center; }
.soft-ring { position: relative; width: 90px; height: 90px; margin: 0 auto 8px; }
.soft-ring svg { transform: rotate(-90deg); width: 90px; height: 90px; }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 6; }
.ring-fill { fill: none; stroke: var(--cyan); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 251; }
.soft-ring span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.95rem; font-weight: 700; }
.soft-skill p { font-size: 0.8rem; color: var(--gray); font-weight: 500; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tags span {
   padding: 5px 14px;
   background: rgba(37,117,252,0.1); border: 1px solid rgba(37,117,252,0.2);
   border-radius: 20px; font-size: 0.8rem; color: var(--blue-light); font-weight: 500;
}

/* ===========================
  PROJETS
=========================== */
#portfolio { background: var(--navy-2); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.project-card {
   background: var(--card-bg); border: 1px solid var(--border);
   border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-blue); border-color: rgba(0,180,216,0.3); }
.project-img { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-overlay {
   position: absolute; inset: 0; background: rgba(10,22,40,0.6);
   display: flex; align-items: center; justify-content: center;
   opacity: 0; transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link {
   width: 44px; height: 44px; background: var(--gradient);
   border-radius: 50%; display: flex; align-items: center; justify-content: center;
   color: var(--white); font-size: 20px; text-decoration: none;
   transform: scale(0.8); transition: transform 0.3s;
}
.project-card:hover .project-link { transform: scale(1); }
.project-info { padding: 24px; }
.project-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.project-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.project-info p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; margin-bottom: 16px; }
.project-tech { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tech span { font-size: 0.75rem; color: var(--gray); background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; }

/* ===========================
  PARCOURS
=========================== */
#parcours { background: var(--navy); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border); transform: translateX(-50%); }
.timeline-item { display: flex; justify-content: flex-end; padding-right: calc(50% + 40px); margin-bottom: 40px; position: relative; }
.timeline-item.right { justify-content: flex-start; padding-right: 0; padding-left: calc(50% + 40px); }
.timeline-dot { position: absolute; left: 50%; top: 24px; width: 12px; height: 12px; background: var(--cyan); border-radius: 50%; transform: translateX(-50%); border: 2px solid var(--navy); box-shadow: 0 0 12px rgba(0,180,216,0.5); }
.timeline-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; max-width: 320px; transition: var(--transition); }
.timeline-card:hover { border-color: rgba(0,180,216,0.35); transform: translateY(-3px); }
.timeline-year { display: block; font-size: 0.75rem; font-weight: 600; color: var(--cyan); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.timeline-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.timeline-card p { font-size: 0.83rem; color: var(--gray); line-height: 1.6; }
.timeline-badge { display: inline-block; margin-top: 10px; background: rgba(37,117,252,0.15); border: 1px solid rgba(37,117,252,0.3); color: var(--blue-light); font-size: 0.72rem; font-weight: 600; padding: 3px 12px; border-radius: 20px; }
@media (max-width: 768px) {
   .timeline::before { left: 16px; }
   .timeline-item, .timeline-item.right { justify-content: flex-start; padding-left: 48px; padding-right: 0; }
   .timeline-dot { left: 16px; }
   .timeline-card { max-width: 100%; }
}

/* ===========================
  TARIFS
=========================== */
#tarifs { background: var(--navy-2); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: start; }
.pricing-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 28px; position: relative; transition: var(--transition); }
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-blue); }
.pricing-card.popular { border-color: var(--blue); background: linear-gradient(145deg, rgba(37,117,252,0.12), var(--card-bg)); }
.popular-label { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 4px 18px; border-radius: 20px; white-space: nowrap; }
.pricing-header { margin-bottom: 28px; }
.pricing-header h3 { font-size: 0.85rem; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.pricing-price { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 8px; }
.currency { font-size: 0.85rem; color: var(--gray); margin-bottom: 6px; }
.amount { font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1; }
.pricing-header > p { font-size: 0.83rem; color: var(--gray); }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 0.87rem; }
.pricing-features li.included { color: var(--gray-light); }
.pricing-features li.excluded { color: rgba(255,255,255,0.2); }
.pricing-features li i { font-size: 1rem; flex-shrink: 0; }
.pricing-features li.included i { color: var(--cyan); }
.pricing-features li.excluded i { color: rgba(255,255,255,0.2); }
.pricing-btn { display: block; text-align: center; padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--gray-light); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: var(--transition); }
.pricing-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); transform: translateY(-2px); }
.pricing-btn.btn-accent { background: var(--gradient); border: none; color: var(--white); }
.pricing-btn.btn-accent:hover { opacity: 0.9; }

/* ===========================
  CONTACT
=========================== */
#contact { background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-intro { color: var(--gray); font-size: 0.95rem; line-height: 1.8; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { width: 44px; height: 44px; background: rgba(37,117,252,0.1); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { font-size: 20px; color: var(--cyan); }
.contact-item span { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 2px; }
.contact-item p { color: var(--white); font-size: 0.9rem; font-weight: 500; }
.contact-social { display: flex; gap: 10px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--gray-light); }
.form-group input, .form-group textarea { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--white); font-size: 0.9rem; font-family: 'Inter', sans-serif; outline: none; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--cyan); }
.form-group textarea { height: 140px; resize: none; }

/* ===========================
  FOOTER
=========================== */
.footer { text-align: center; padding: 24px; background: var(--navy-3); border-top: 1px solid var(--border); color: var(--gray); font-size: 0.85rem; position: relative; z-index: 1; }
.footer strong { color: var(--white); }

/* ===========================
  BOUTON HAUT
=========================== */
.top-btn { position: fixed; bottom: 110px; right: 28px; width: 44px; height: 44px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 22px; z-index: 9990; opacity: 0; transform: translateY(10px); transition: var(--transition); }
.top-btn.visible { opacity: 1; transform: translateY(0); }
.top-btn:hover { color: var(--white); border-color: var(--cyan); background: rgba(0,180,216,0.1); }

/* ===========================
  MODAL
=========================== */
#modal-projets { display: none; position: fixed; inset: 0; background: rgba(5,12,24,0.9); z-index: 99999; overflow-y: auto; backdrop-filter: blur(8px); animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { max-width: 960px; margin: 60px auto; padding: 40px 30px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.modal-head h2 { font-size: 1.8rem; font-weight: 800; }
.modal-head h2 span { color: var(--cyan); }
.modal-head button { width: 36px; height: 36px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; color: var(--gray); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-head button:hover { color: var(--white); border-color: var(--cyan); }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.modal-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.modal-card:hover { transform: translateY(-4px); border-color: rgba(0,180,216,0.35); }
.modal-card img { width: 100%; height: 170px; object-fit: cover; }
.modal-card-body { padding: 20px; }
.modal-card-body span { font-size: 0.72rem; font-weight: 600; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; }
.modal-card-body h3 { font-size: 0.95rem; font-weight: 700; margin: 6px 0 8px; }
.modal-card-body p { font-size: 0.83rem; color: var(--gray); margin-bottom: 14px; line-height: 1.6; }
.modal-card-body a { font-size: 0.83rem; color: var(--blue-light); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: var(--transition); }
.modal-card-body a:hover { color: var(--cyan); }

/* ===========================
  CHATBOT
=========================== */
.chat-bubble { position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 9998; box-shadow: 0 4px 20px rgba(37,117,252,0.4); transition: var(--transition); }
.chat-bubble:hover { transform: scale(1.08); }
.chat-bubble i { font-size: 24px; color: var(--white); }
.chat-notif { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: #ef4444; border: 2px solid var(--navy); }
.chat-window { position: fixed; bottom: 96px; right: 28px; width: 340px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 9997; display: none; flex-direction: column; background: #f0f4ff; border: 1px solid rgba(37,117,252,0.2); }
.chat-window.open { display: flex; animation: slideUp 0.25s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.chat-head { background: var(--gradient); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--white); flex-shrink: 0; }
.chat-head > div { flex: 1; }
.chat-head strong { color: var(--white); font-size: 0.88rem; display: block; }
.chat-status { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: rgba(255,255,255,0.8); }
.chat-head button { background: rgba(255,255,255,0.15); border: none; border-radius: 50%; width: 28px; height: 28px; color: rgba(255,255,255,0.8); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-messages { flex: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; max-height: 260px; background: #f0f4ff; }
.msg { max-width: 80%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; font-size: 0.85rem; line-height: 1.5; }
.msg.bot .msg-bubble { background: var(--white); color: #0a1628; border-bottom-left-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.msg.user .msg-bubble { background: var(--gradient); color: var(--white); border-bottom-right-radius: 4px; }
.msg-time { font-size: 0.68rem; color: #999; margin-top: 3px; padding: 0 4px; }
.msg.user .msg-time { text-align: right; }
.chat-suggestions { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; background: #f0f4ff; border-top: 1px solid #e5e7eb; }
.chat-suggestions::-webkit-scrollbar { display: none; }
.chat-suggestions button { white-space: nowrap; padding: 5px 12px; border: 1px solid rgba(37,117,252,0.3); border-radius: 16px; background: var(--white); color: var(--blue); font-size: 0.75rem; cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif; font-weight: 500; }
.chat-suggestions button:hover { background: var(--blue); color: var(--white); }
.chat-input-area { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--white); border-top: 1px solid #e5e7eb; }
.chat-input-area input { flex: 1; border: 1px solid #e5e7eb; border-radius: 20px; padding: 8px 14px; font-size: 0.85rem; outline: none; background: #f8faff; font-family: 'Inter', sans-serif; }
.chat-input-area input:focus { border-color: var(--blue); }
.chat-input-area button { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-input-area button i { color: var(--white); font-size: 16px; }
.typing { display: flex; gap: 3px; align-items: center; padding: 10px 14px; background: var(--white); border-radius: 16px; width: fit-content; border-bottom-left-radius: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #aaa; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* ===========================
  LIGHT MODE
=========================== */
body.light { background: #f8faff; color: #0a1628; }
body.light .header { background: rgba(248,250,255,0.97); border-color: rgba(37,117,252,0.1); }
body.light .nav-link { color: #475569; }
body.light .nav-link:hover, body.light .nav-link.active { color: var(--navy); background: rgba(37,117,252,0.06); }
body.light #about, body.light .home-wrapper { background: #f8faff; }
body.light #services, body.light #tarifs { background: #f0f4ff; }
body.light #skills, body.light #portfolio, body.light #contact, body.light #parcours { background: #f8faff; }
body.light .service-card, body.light .pricing-card, body.light .timeline-card,
body.light .about-card, body.light .project-card, body.light .home-stats { background: #fff; border-color: rgba(37,117,252,0.1); }
body.light .section-title, body.light .home-title, body.light .about-content h3,
body.light .service-card h3, body.light .timeline-card h3 { color: var(--navy); }
body.light .home-desc, body.light .about-content p, body.light .service-card > p { color: #475569; }
body.light .skill-track { background: rgba(37,117,252,0.08); }
body.light #loader { background: #f8faff; }
body.light .loader-logo { color: var(--navy); }
body.light .footer { background: #f0f4ff; border-color: rgba(37,117,252,0.1); color: #475569; }

/* ===========================
  MOBILE
=========================== */
@media (max-width: 1024px) {
   .about-grid { grid-template-columns: 1fr; }
   .about-img-wrap { max-width: 300px; margin: 0 auto; }
   .skills-wrapper { grid-template-columns: 1fr; gap: 40px; }
   .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
   .header { padding: 0 4%; }
   .logo { font-size: 1rem; }
   .navbar { position: fixed; top: 0; right: -100%; width: 72%; height: 100vh; flex-direction: column; align-items: flex-start; background: var(--navy-3); padding: 80px 28px 28px; gap: 4px; border-left: 1px solid var(--border); transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2000; overflow-y: auto; }
   .navbar.active { right: 0; }
   .nav-link { width: 100%; padding: 12px 16px; font-size: 0.95rem; border-radius: var(--radius-sm); }
   .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
   .menu-icon { display: block; }
   .availability { display: none; }
   .home-wrapper { flex-direction: column; padding: 40px 5%; text-align: center; gap: 40px; }
   .home-right { order: -1; }
   .photo-frame { width: 200px; height: 200px; margin: 0 auto; }
   .photo-badge { display: none; }
   .home-title { font-size: 1.8rem; }
   .home-desc { font-size: 0.9rem; }
   .home-btns { justify-content: center; }
   .home-social { justify-content: center; }
   .home-stats { max-width: 100%; }
   .section-wrapper { padding: 60px 5%; }
   .form-row { grid-template-columns: 1fr; }
   .chat-window { width: 300px; right: 10px; }
   .soft-skills { grid-template-columns: repeat(4, 1fr); }
   .btn-theme { width: 30px; height: 30px; font-size: 14px; }
   .menu-icon { font-size: 22px; }
}
@media (min-width: 769px) { .menu-icon { display: none; } }
/* FIX MODE CLAIR TARIFS */
body.light .amount { color: var(--navy) !important; }
body.light .currency { color: #475569 !important; }
body.light .tarif-desc { color: #475569 !important; }
body.light .pricing-header > p { color: #475569 !important; }
body.light .pricing-features li.included { color: var(--navy) !important; }
body.light .popular-label { color: #fff !important; }
/* ===== ANNEAU TOURNANT LUMINEUX ===== */
.photo-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        var(--cyan) 20%,
        var(--blue) 40%,
        transparent 60%,
        var(--cyan) 80%,
        transparent 100%
    );
    animation: rotatRing 3s linear infinite;
    z-index: -1;
}

.photo-frame::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--navy);
    z-index: -1;
}

@keyframes rotatRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Lueur autour de la photo */
.photo-img {
    box-shadow:
        0 0 20px rgba(0,180,216,0.4),
        0 0 60px rgba(37,117,252,0.2),
        0 0 100px rgba(37,117,252,0.1) !important;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}