/* ==========================================================================
   Marie N. — Double Profil CV — Styles CSS & Glassmorphism Premium
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CONFIGURATION DU THÈME & DES VARIABLES (GLASSMORPHISM)
   -------------------------------------------------------------------------- */
:root {
  /* Fond et neutres de l'application (Identité Commune) */
  --bg-main: #060913;          /* Fond abysse ultra-sombre */
  --bg-gradient: radial-gradient(circle at 50% 50%, #0d1527 0%, #060913 100%);
  --text-primary: #F3F4F6;     /* Blanc cassé hyper lisible */
  --text-muted: #9CA3AF;      /* Gris doux pour textes secondaires */
  
  /* Paramètres du verre (Glassmorphism unifié) */
  --glass-bg: rgba(13, 20, 38, 0.45);        /* Fond translucide sombre */
  --glass-border: rgba(255, 255, 255, 0.06);   /* Tranche de verre ultra-fine */
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  --glass-blur: blur(14px);                  /* Puissance du flou d'arrière-plan */

  /* Variables dynamiques par défaut (Profil Informatique) */
  --accent-color: #3B82F6;       /* Bleu électrique moderne */
  --accent-rgb: 59, 130, 246;    /* Pour le codage rgba */
  --accent-glow: rgba(59, 130, 246, 0.12); /* Halo standard */
  --accent-glow-strong: rgba(59, 130, 246, 0.25);
  --accent-gradient: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
}

/* Surcharges du thème (Profil Logistique & Polyvalence) */
body.profile-logistics {
  --accent-color: #E07A5F;       /* Terracotta doux et chaleureux */
  --accent-rgb: 224, 122, 95;
  --accent-glow: rgba(224, 122, 95, 0.12);
  --accent-glow-strong: rgba(224, 122, 95, 0.25);
  --accent-gradient: linear-gradient(135deg, #E07A5F 0%, #F4A261 100%);
}

/* --------------------------------------------------------------------------
   1. RESET & CONFIGURATION GLOBALE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.6s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Effet de lueur d'arrière-plan (Ambient Glow) */
.bg-glow {
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0) 70%);
  z-index: -1;
  pointer-events: none;
  transition: background 0.6s ease;
}

/* --------------------------------------------------------------------------
   2. CONTENEURS GLOBAUX
   -------------------------------------------------------------------------- */
.section-container, .header-container, .hero-container, .footer-container {
  width: 100%;
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. HEADER UNIFIÉ (GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  display: flex;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
  background-color: rgba(6, 9, 19, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-bottom-color 0.6s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

/* --------------------------------------------------------------------------
   4. HERO SECTION & CRITÈRES GLOBAUX
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 150px;
  padding-bottom: 3.5rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.15;
}

.highlight-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.6s ease;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 650px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Critères de recherche généraux (Socle Commun) */
.global-criteria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.criterion-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: #E5E7EB;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.3s ease;
}

.criterion-tag:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
}

.criterion-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-color);
  flex-shrink: 0;
  transition: color 0.6s ease;
}

/* --------------------------------------------------------------------------
   5. LE COMMUTATEUR EN VERRE DÉPOLI (TOGGLE)
   -------------------------------------------------------------------------- */
.toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.toggle-container {
  display: flex;
  position: relative;
  background-color: rgba(13, 20, 38, 0.6);
  border: 1px solid var(--glass-border);
  padding: 0.35rem;
  border-radius: 14px;
  gap: 0.35rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.toggle-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
  transition: color 0.4s ease;
}

.toggle-btn.active {
  color: #FFFFFF;
}

.toggle-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: color 0.4s ease;
}

.toggle-slider {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc(50% - 0.35rem);
  background: var(--accent-gradient);
  border-radius: 10px;
  z-index: 1;
  box-shadow: 0 4px 15px var(--accent-glow-strong);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

/* --------------------------------------------------------------------------
   6. CARTES ET ELEMENTS DE SECTION PREMIUMS (GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.profile-section {
  padding-bottom: 5rem;
}

.profile-section.hidden {
  display: none;
}

/* Cartes Premium Glassmorphism */
.profile-card {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 2.25rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-glow);
}

/* Présentation Intro */
.profile-intro-card h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.profile-intro-card p {
  color: #E5E7EB;
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 300;
}

/* Grilles de compétences */
.block-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.8rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.block-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: background-color 0.6s ease;
}

.skills-block {
  margin-top: 3.5rem;
  margin-bottom: 4rem;
}

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

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0;
  height: 100%;
}

.skill-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

.skill-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  transition: color 0.6s ease;
}

.skill-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.skill-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* Expériences & Formations (Timeline) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.08);
}

.timeline-item {
  position: relative;
  margin-bottom: 0;
  padding: 2rem;
}

.timeline-dot {
  position: absolute;
  top: 2rem;
  left: calc(-1.5rem - 5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  border: 2px solid var(--bg-main);
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  transition: color 0.6s ease;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.92rem;
  color: #D1D5DB;
  line-height: 1.6;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   7. CONTACT CTA & FOOTER (GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.main-footer {
  background-color: rgba(6, 9, 19, 0.5);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 3.5rem 0;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.footer-content {
  text-align: center;
  max-width: 650px;
  margin-right: auto;
  margin-left: auto;
}

.footer-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 300;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Boutons d'Action Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: background 0.6s ease, box-shadow 0.6s ease, transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow-strong);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.phone-and-legal {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 2rem;
}

.phone-block {
  font-size: 1rem;
  color: #E5E7EB;
  font-weight: 400;
}

.phone-link {
  font-weight: 600;
  color: var(--accent-color);
  transition: color 0.6s ease;
}

.legal-text {
  font-size: 0.78rem;
  color: #555c6e;
}

/* --------------------------------------------------------------------------
   8. COMPATIBILITÉ & ACCÉLÉRATION MATÉRIELLE (FALLBACKS)
   -------------------------------------------------------------------------- */
@supports NOT (backdrop-filter: blur(1px)) {
  .profile-card, .toggle-container, .main-header, .main-footer {
    background-color: rgba(13, 20, 38, 0.96) !important;
  }
}

/* Optimisation de l'accélération matérielle */
.profile-card, .toggle-slider, .bg-glow {
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 2rem;
  }

  .global-criteria {
    gap: 0.5rem;
  }

  .criterion-tag {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }

  .profile-card {
    padding: 1.5rem;
  }

  .timeline {
    padding-left: 1.2rem;
  }

  .timeline-item {
    padding: 1.5rem;
  }

  .timeline-dot {
    left: calc(-1.2rem - 5px);
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-email-wrapper, .contact-actions .btn {
    width: 100%;
  }
}
