/* ==========================================================================
   PORTFOLIO PERSONNEL — SODJATEE AMONI JACQUES.M
   Feuille de style CSS3 Vanilla (Moderne, Responsive & Accessible)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES CSS & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palette de couleurs professionnelles */
  --primary-color: #0066ff;
  --primary-dark: #004ecc;
  --primary-light: #e0edff;
  --secondary-color: #00b4d8;
  --accent-color: #3b82f6;
  --accent-glow: rgba(0, 102, 255, 0.25);
  
  /* Arrière-plans */
  --bg-color: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-dark: #0a1128;
  --bg-darker: #050a17;
  --bg-surface: #f1f5f9;
  
  /* Couleurs de texte */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-white: #ffffff;
  
  /* Bordures et ombres */
  --border-color: #e2e8f0;
  --border-focus: #0066ff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 102, 255, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(0, 102, 255, 0.12), 0 10px 20px -5px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 25px rgba(0, 102, 255, 0.35);
  
  /* Arrondis */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typographie */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. STRUCTURE ET CONTENEURS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* En-tête de section */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-dark .section-tag {
  background-color: rgba(0, 102, 255, 0.2);
  color: var(--secondary-color);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-dark .section-title {
  color: var(--text-white);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: #94a3b8;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 1rem auto 0 auto;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

/* Logo */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-color);
}

.logo-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
}

/* Menu de navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.25rem;
  background-color: var(--primary-color);
  color: var(--text-white) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.35);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* Bouton Hamburger Mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: var(--radius-sm);
}

.hamburger:focus {
  outline: 2px solid var(--primary-color);
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
  position: absolute;
  left: 9px;
}

.hamburger-line:nth-child(1) { top: 13px; }
.hamburger-line:nth-child(2) { top: 21px; }
.hamburger-line:nth-child(3) { top: 29px; }

.hamburger.active .hamburger-line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. BOUTONS & ÉLÉMENTS D'ACTION
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
  transform: translateY(-2px);
}

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

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

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.btn-dark:hover {
  background-color: #162044;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  stroke-width: 2.2;
}

/* --------------------------------------------------------------------------
   6. SECTION HERO (ACCUEIL)
   -------------------------------------------------------------------------- */
.hero {
  padding: 5rem 0 6rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--primary-color);
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e2e8f0;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Image de profil Hero */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-backdrop {
  position: absolute;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-lg);
  transform: rotate(4deg);
  opacity: 0.25;
  filter: blur(10px);
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
  background-color: #e2e8f0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.hero-image-frame:hover .hero-image {
  transform: scale(1.03);
}

/* Badge flottant sur l'image */
.hero-floating-badge {
  position: absolute;
  bottom: -15px;
  left: 20px;
  background-color: var(--bg-card);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite;
}

.floating-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-badge-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.floating-badge-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   7. SECTION DOMAINES CLES (APERÇU ACCUEIL)
   -------------------------------------------------------------------------- */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.domain-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 255, 0.3);
}

.domain-icon {
  width: 54px;
  height: 54px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.domain-card:hover .domain-icon {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: scale(1.05);
}

.domain-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.domain-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   8. PAGE A PROPOS (about.html)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-card-profile {
  background-color: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.about-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.about-tagline {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-info-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.about-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.info-label {
  font-weight: 600;
  color: var(--text-main);
  min-width: 90px;
}

.info-val {
  color: var(--text-muted);
}

/* Contenu textuel À Propos */
.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about-block {
  background-color: var(--bg-card);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.about-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-block p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.callout-box {
  background-color: #f0f7ff;
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1rem;
}

.callout-box p {
  font-size: 0.92rem;
  color: #1e3a8a;
  font-weight: 500;
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. PAGE COMPETENCES (skills.html)
   -------------------------------------------------------------------------- */
.skills-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.skills-category {
  background-color: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.skills-category-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background-color: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.skill-card:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-light);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.skill-percent {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

.skill-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Badge list for sub-skills */
.sub-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.sub-skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
}

.sub-skill-pill.highlighted {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: rgba(0, 102, 255, 0.2);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. PAGE PROJETS (projects.html)
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 102, 255, 0.3);
}

.project-image-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #0f172a;
}

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

.project-card:hover .project-img {
  transform: scale(1.06);
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.project-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   11. PAGE SERVICES (services.html)
   -------------------------------------------------------------------------- */
.services-disclaimer {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.disclaimer-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.disclaimer-text {
  font-size: 0.95rem;
  color: #1e40af;
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 255, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.service-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.service-feature-item {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-feature-item::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   12. PAGE FORMATION (formation.html)
   -------------------------------------------------------------------------- */
.formation-hero-box {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #162044 100%);
  color: var(--text-white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-md);
}

.formation-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background-color: rgba(0, 102, 255, 0.35);
  color: var(--secondary-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.formation-hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.formation-hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 800px;
  line-height: 1.7;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 55px;
}

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

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 6px;
  width: 21px;
  height: 21px;
  background-color: var(--bg-card);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--primary-light);
  z-index: 2;
}

.timeline-content {
  background-color: var(--bg-card);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 255, 0.3);
}

.timeline-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.timeline-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   13. PAGE CONTACT (contact.html)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background-color: var(--bg-card);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-details a:hover {
  color: var(--primary-color);
}

/* Formulaire */
.contact-form-wrapper {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-input.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.error-message {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 500;
  margin-top: 0.35rem;
  display: none;
}

.error-message.visible {
  display: block;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Notification de succès */
.form-status-box {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-status-box.success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status-box.error-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 360px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #162044;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #162044;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   15. BOUTON RETOUR EN HAUT (BACK TO TOP)
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.6);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   16. MEDIA QUERIES & RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-role {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-image-frame {
    max-width: 280px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

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

  /* Hamburger Menu Mobile */
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--primary-light);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

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

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-floating-badge {
    left: 10px;
    bottom: -10px;
    padding: 0.5rem 0.85rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: 1px;
  }

  .timeline-item {
    padding-left: 35px;
  }
}
