/*
 * ================================================================
 * style.css — Portfolio Ariel Steave FEUPISSIE BOUGOM
 * IT Engineer | Network Administration & Cybersecurity
 * ================================================================
 *
 * TABLE DES MATIÈRES :
 *   1.  CSS Variables (Design Tokens)
 *   2.  Reset & Base
 *   3.  Scrollbar personnalisée
 *   4.  Utilitaires (container, section-label, reveal, lang)
 *   5.  Navigation
 *   6.  Section Hero (#home)
 *   7.  Section About (#about)
 *   8.  Section Skills (#skills)
 *   9.  Section Projects (#projects)
 *  10.  Section Certifications (#certifications)
 *  11.  Section Contact (#contact)
 *  12.  Footer
 *  13.  Media Queries (responsive)
 *
 * ================================================================
 */

/* ================================================================
   1. CSS VARIABLES — Design Tokens
   Modifier ici pour changer toute la palette en un seul endroit.
================================================================ */
:root {
  /* Couleurs */
  --bg:            #ffffff;
  --bg-soft:       #f7f8fc;
  --bg-card:       #ffffff;
  --navy:          #0b1120;
  --navy-mid:      #162040;
  --teal:          #00b8d9;
  --teal-light:    #00d4f5;
  --teal-glow:     rgba(0, 184, 217, 0.12);
  --cyan:          #00e5ff;
  --accent:        #ff6b35;
  --text-primary:  #0b1120;
  --text-secondary:#3a4560;
  --text-muted:    #7a87a8;
  --border:        rgba(11, 17, 32, 0.08);
  --border-teal:   rgba(0, 184, 217, 0.35);

  /* Ombres */
  --shadow-sm:     0 2px 12px rgba(11, 17, 32, 0.06);
  --shadow-md:     0 8px 32px rgba(11, 17, 32, 0.10);
  --shadow-teal:   0 8px 32px rgba(0, 184, 217, 0.20);

  /* Géométrie */
  --radius:        16px;
  --radius-sm:     8px;
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typographie */
  --font-display:  'Syne', sans-serif;
  --font-mono:     'DM Mono', monospace;
  --font-body:     'DM Sans', sans-serif;
}

/* ================================================================
   2. RESET & BASE
================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ================================================================
   3. SCROLLBAR PERSONNALISÉE
================================================================ */
::-webkit-scrollbar            { width: 6px; }
::-webkit-scrollbar-track     { background: var(--bg-soft); }
::-webkit-scrollbar-thumb     { background: var(--teal); border-radius: 99px; }

/* ================================================================
   4. UTILITAIRES
================================================================ */

/* Centrage du contenu */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Badge de section (petit label au-dessus du titre) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  border: 1px solid var(--border-teal);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

/* Titre de section */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}
.section-title span { color: var(--teal); }

/* Sous-titre de section */
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 10px;
}

/* Bascule de langue (affichage / masquage) */
.lang-fr,
.lang-en { transition: opacity 0.3s; }
body.lang-en .lang-fr { display: none; }
body.lang-fr .lang-en { display: none; }

/* Animation d'apparition au scroll (classes ajoutées par script.js) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Boutons réutilisables */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--teal-light);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ================================================================
   5. NAVIGATION
================================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
}
.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: var(--teal-glow);
  color: var(--teal);
}

/* Groupe droite de la nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bascule FR / EN */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px;
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.lang-btn.active {
  background: var(--navy);
  color: #fff;
}

/* Bouton hamburger mobile */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition);
}

/* ================================================================
   6. SECTION HERO (#home)
================================================================ */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

/* Canvas réseau de particules (rendu par script.js) */
#hero-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

/* Grille de fond décorative */
#home::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 184, 217, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 184, 217, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 0 80px;
}

/* Badge "Ingénieur IT — Disponible" */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--border-teal);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Animation point lumineux */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Nom principal */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 8px;
}
.hero-name .first {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* Zone du titre animé (rempli par script.js) */
.hero-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 24px;
  min-height: 1.6em;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Statistiques hero */
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-item  { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-num span { color: var(--teal); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

/* Colonne photo */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Cadre rotatif autour de la photo */
.photo-frame {
  position: relative;
  width: 280px;
  height: 280px;
}
/* Anneau animé (conic-gradient) */
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: conic-gradient(var(--teal), var(--cyan), var(--teal-light), var(--teal));
  border-radius: 50%;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Masque bord pour couvrir l'anneau sur la photo */
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--navy);
  z-index: 1;
}

/*
 * Photo de profil principale — src="assets/photo_de_profil.jpg"
 * Le fichier doit être dans le dossier assets/ à la racine du projet.
 */
.photo-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--navy);
}

/* Badges flottants autour de la photo */
.float-tag {
  position: absolute;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--navy);
  color: var(--teal);
  border: 1px solid var(--border-teal);
  padding: 5px 12px;
  border-radius: 99px;
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}
.float-tag:nth-child(2) { top: -10px;  right: -20px;  animation-delay: 0s; }
.float-tag:nth-child(3) { bottom: 20px; left: -40px;  animation-delay: 1s; }
.float-tag:nth-child(4) { top: 40%;   right: -60px;  animation-delay: 2s; }

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

/* Petites cartes d'info rapide */
.hero-info-cards {
  display: flex;
  gap: 12px;
}
.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: center;
}
.info-card .ic-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
  font-weight: 500;
}
.info-card .ic-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

/* ================================================================
   7. SECTION ABOUT (#about)
================================================================ */
#about {
  padding: 100px 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

/* Carte profil */
.profile-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}

/*
 * Avatar miniature — src="assets/photo_de_profil.jpg"
 * Même fichier que la photo hero, affiché en petit dans la carte profil.
 */
.profile-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  margin-bottom: 16px;
}

.profile-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.profile-card .role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  margin-top: 4px;
}

.profile-details {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.profile-detail-item .icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--teal-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Badge ISOC */
.isoc-badge {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.isoc-icon { font-size: 1.5rem; }
.isoc-text .isoc-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #16a34a;
}
.isoc-text .isoc-role {
  font-size: 0.75rem;
  color: #4ade80;
  margin-top: 1px;
}

/* Texte descriptif */
.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
}
.about-text + .about-text { margin-top: 16px; }
.about-text strong        { color: var(--navy); font-weight: 600; }

/* Encadrés de faits clés */
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.highlight-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.highlight-item .hi-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.highlight-item .hi-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
}

/* ================================================================
   8. SECTION SKILLS (#skills)
================================================================ */
#skills {
  padding: 100px 0;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
#skills::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, transparent, rgba(0, 184, 217, 0.04));
  pointer-events: none;
}

.skills-header {
  text-align: center;
  margin-bottom: 60px;
}
.skills-header .section-subtitle { margin: 10px auto 0; }

/* Grille de cartes de compétences */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal);
  border-color: var(--border-teal);
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.skill-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.skill-card:hover .skill-tag {
  border-color: var(--border-teal);
  color: var(--teal);
  background: var(--teal-glow);
}

/* Grille des barres de progression */
.skill-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
}

.skill-bar-item    { margin-bottom: 4px; }
.skill-bar-header  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.skill-bar-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--navy);
}
.skill-bar-pct {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal);
}
.skill-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  width: 0; /* Animé par script.js quand en vue */
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   9. SECTION PROJECTS (#projects)
================================================================ */
#projects {
  padding: 100px 0;
  background: var(--bg);
}

.projects-header { margin-bottom: 60px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Carte projet standard */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(11, 17, 32, 0.12);
}

/* Zone d'illustration SVG */
.project-visual {
  width: 100%;
  height: 190px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-visual svg { width: 100%; height: 100%; }

/* Corps texte du projet */
.project-body   { padding: 24px; }

/* Tags technologiques */
.project-tags   { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  border: 1px solid var(--border-teal);
  padding: 3px 9px;
  border-radius: 99px;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Pied de carte avec lien GitHub */
.project-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.project-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.project-link:hover { gap: 10px; }

/* Carte featured (pleine largeur) */
.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.project-card.featured .project-visual {
  height: 100%;
  min-height: 240px;
}

/* Projet 5 — pleine largeur simple */
.project-card.p5-wide { grid-column: 1 / -1; }

/* ================================================================
   10. SECTION CERTIFICATIONS (#certifications)
================================================================ */
#certifications {
  padding: 100px 0;
  background: var(--navy);
  overflow: hidden;
  position: relative;
}
/* Grille de fond décorative */
#certifications::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 184, 217, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 184, 217, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.cert-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.cert-header .section-title       { color: #fff; }
.cert-header .section-title span  { color: var(--teal); }
.cert-header .section-subtitle    { color: rgba(255, 255, 255, 0.5); margin: 10px auto 0; }

/* Carousel */
.cert-carousel-wrap { position: relative; overflow: hidden; }
.cert-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Carte de certification */
.cert-card {
  flex: 0 0 calc(33.333% - 14px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.cert-card:hover {
  border-color: var(--border-teal);
  background: rgba(0, 184, 217, 0.07);
}
/* Coche verte en haut à droite */
.cert-card::before {
  content: '✓';
  position: absolute;
  top: 16px; right: 20px;
  width: 26px; height: 26px;
  background: var(--teal);
  border-radius: 50%;
  line-height: 26px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--navy);
  font-weight: 800;
}

.cert-logo {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.cert-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.3;
}
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal);
  margin-top: 6px;
}
.cert-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
  line-height: 1.6;
}

/* Contrôles du carousel */
.cert-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}
.cert-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition);
}
.cert-dot.active {
  background: var(--teal);
  width: 24px;
}
.cert-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.cert-arrow:hover { background: var(--teal); color: var(--navy); }

/* Ticker défilant infini */
.cert-ticker {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  z-index: 1;
}
/* Fondu sur les bords */
.cert-ticker::before,
.cert-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.cert-ticker::before { left: 0;  background: linear-gradient(to right,  var(--navy), transparent); }
.cert-ticker::after  { right: 0; background: linear-gradient(to left,   var(--navy), transparent); }

.cert-ticker-inner {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ticker-scroll 22s linear infinite;
}
.cert-ticker:hover .cert-ticker-inner { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 8px 18px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.ticker-item .tick-dot { color: var(--teal); }

/* ================================================================
   11. SECTION CONTACT (#contact)
================================================================ */
#contact {
  padding: 100px 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 12px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.contact-link:hover {
  border-color: var(--teal);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.contact-link .cl-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-link .cl-text  { flex: 1; }
.contact-link .cl-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}
.contact-link .cl-value {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
  margin-top: 2px;
}

.contact-link .cl-arrow { color: var(--text-muted); font-size: 0.8rem; }

/* Formulaire de contact */
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.form-group textarea { height: 110px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Feedback du formulaire */
.form-feedback {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  text-align: center;
  min-height: 20px;
}

/* ================================================================
   12. FOOTER
================================================================ */
footer {
  background: var(--navy);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.footer-logo span { color: var(--teal); }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ================================================================
   13. MEDIA QUERIES — RESPONSIVE
================================================================ */

/* Tablette paysage / petit desktop */
@media (max-width: 1024px) {
  .hero-content          { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual           { order: -1; }
  .about-grid            { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid           { grid-template-columns: repeat(2, 1fr); }
  .projects-grid         { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: 1; display: block; }
  .project-card.featured .project-visual { height: 200px; }
  .contact-grid          { grid-template-columns: 1fr; }
  .cert-card             { flex: 0 0 calc(50% - 10px); }
}

/* Tablette portrait */
@media (max-width: 768px) {
  /* Menu hamburger */
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .menu-btn       { display: flex; }

  .skills-grid      { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .cert-card        { flex: 0 0 calc(85%); }
  .hero-stats       { gap: 18px; }
  .form-row         { grid-template-columns: 1fr; }
  .footer-inner     { flex-direction: column; align-items: flex-start; }
  .skill-bar-grid   { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-name   { font-size: 2rem; }
  .photo-frame { width: 220px; height: 220px; }
  .hero-ctas   { flex-direction: column; }
}
