/* =============================================================================
   layout.css — Structure et mise en page legeek.tech
   Containers, header, hero, sections, grilles, footer, responsive
   Dépend de base.css pour les variables (--bg-*, --text-*, --sp-*, --radius-*, etc.)
   Ne contient aucun composant UI — structure pure.
   ============================================================================= */


/* =============================================================================
   CONTAINERS
   ============================================================================= */

/* Conteneur principal — 1200px max */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* Conteneur étroit — articles, landing */
.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* Conteneur prose — corps d'article */
.container-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* Fond plein écran (pour sections avec background) */
.full-width {
  width: 100%;
}


/* =============================================================================
   HEADER (.site-header)
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Fond semi-transparent avec flou — effet glassmorphism léger */
  background-color: rgba(9, 9, 11, 0.8); /* --bg-base à 80% */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

/* En light mode, adapter la couleur de fond */
[data-theme="light"] .site-header {
  background-color: rgba(250, 250, 248, 0.8); /* --bg-base light à 80% */
}

/* Intérieur du header : logo + nav + actions */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* --- Logo --- */
.site-logo {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.site-logo:hover {
  color: var(--text-primary);
}

/* Point d'accentuation dans le logo */
.site-logo .dot {
  color: var(--accent);
}

/* --- Navigation principale --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-nav a:hover {
  color: var(--text-primary);
}

/* Lien actif */
.site-nav a.active {
  color: var(--accent);
}

/* --- Zone droite (toggle thème + icônes éventuelles) --- */
.site-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Toggle thème --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body, 'Inter', sans-serif);
  color: var(--text-secondary);
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* --- Hamburger mobile (caché par défaut) --- */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  gap: 5px;
  padding: 4px;
}

/* Trois barres via span + pseudo-éléments */
.nav-mobile-toggle span,
.nav-mobile-toggle::before,
.nav-mobile-toggle::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Correction : la span réelle du hamburger */
.nav-mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --- Menu mobile déroulant --- */
.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-5);
  z-index: 99;
}

/* Menu mobile ouvert */
.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.nav-mobile a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--accent);
}


/* =============================================================================
   HERO (.hero)
   ============================================================================= */

.hero {
  padding: var(--sp-12) 0;
  /* Gradient subtil du fond de base vers la surface + radial accent */
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(232, 96, 42, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(208, 74, 26, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

/* Hero avec image de fond pleine largeur */
.hero--banner {
  padding: 0;
  background: none;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image: url('/assets/img/hero-banner-v4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero--banner .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  grid-template-columns: 1fr;
}

.hero--banner .hero-bubble {
  background: rgba(10, 10, 15, 0.78);
  border-radius: var(--radius-xl, 16px);
  padding: var(--sp-8, 2rem) var(--sp-8, 2rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 640px;
}

.hero--banner .hero-title {
  color: #ffffff;
}

.hero--banner .hero-excerpt {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .hero--banner {
  background-image: url('/assets/img/hero-banner-v4.png');
  background-size: cover;
  background-position: center;
}

[data-theme="light"] .hero--banner .hero-bubble {
  background: rgba(15, 15, 25, 0.75);
}

/* Grille 2 colonnes : contenu 60% | image 40% */
.hero .container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--sp-8);
  align-items: center;
}

/* Colonne gauche */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Colonne droite — prévisualisation / image */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge rubrique au-dessus du titre */
.hero-badge {
  display: inline-flex;
  align-self: flex-start;
}

/* Titre H1 principal */
.hero-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Accroche sous le titre */
.hero-excerpt {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  /* Limité à 3 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Méta : date, rubrique, temps de lecture */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* CTA principal */
.hero-cta {
  align-self: flex-start;
  margin-top: var(--sp-2);
}


/* =============================================================================
   SECTIONS (.section)
   ============================================================================= */

.section {
  padding: var(--sp-10) 0;
}

/* En-tête de section : titre à gauche, lien "voir tout" à droite */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}

.section-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Lien "Voir tout" */
.section-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: text-decoration var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.section-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Variante fond alterné — casse la monotonie */
.section-alt {
  background: var(--bg-surface);
}

/* Variante fond accentué orange subtil */
.section-accent {
  background: var(--bg-accent-subtle);
}


/* =============================================================================
   GRILLE ARTICLES (.grid-posts)
   ============================================================================= */

.grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-5);
}

/* Premier article mis en avant : occupe 2 colonnes sur desktop */
.grid-posts .card:first-child {
  grid-column: span 2;
}


/* =============================================================================
   BARRE RUBRIQUES (.rubrique-bar)
   ============================================================================= */

.rubrique-bar {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  /* Masquer la scrollbar tout en gardant le scroll */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE 10+ */
  padding-bottom: var(--sp-2);  /* Espace pour le scroll sans couper les bordures */
}

/* Masquer la scrollbar Webkit */
.rubrique-bar::-webkit-scrollbar {
  display: none;
}

/* Chaque item rubrique — informatif, non cliquable */
.rubrique-item {
  flex-shrink: 0;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: default;
  display: block;
}

/* Jour de publication (style overline) */
.rubrique-day {
  display: block;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Nom de la rubrique */
.rubrique-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Description courte */
.rubrique-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Couleurs par rubrique — fond subtle */
.rubrique-pepite      { background: rgba(232, 96, 42, 0.08); }
.rubrique-decryptage  { background: rgba(193, 128, 255, 0.08); }
.rubrique-tuto        { background: rgba(74, 222, 128, 0.08); }
.rubrique-hors-radar  { background: rgba(96, 165, 250, 0.08); }
.rubrique-position    { background: rgba(248, 113, 113, 0.08); }


/* =============================================================================
   TABS FILTRES (.tabs)
   ============================================================================= */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: inherit;
  /* Décaler légèrement le border-bottom pour couvrir le border du parent */
  margin-bottom: -1px;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
  text-decoration: none;
  display: inline-block;
}

/* Tab actif */
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Tab survol */
.tab:hover {
  color: var(--text-secondary);
}


/* =============================================================================
   LAYOUT ARTICLE AVEC TOC (.layout-article)
   ============================================================================= */

.layout-article {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: var(--sp-8);
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* Colonne principale */
.layout-article .article-main {
  min-width: 0; /* Évite le débordement dans la grille */
}

/* Table des matières */
.layout-article .toc {
  position: sticky;
  top: 80px; /* Sous le header sticky (64px + marge) */
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}


/* =============================================================================
   HEADER ARTICLE (.article-header)
   ============================================================================= */

.article-header {
  text-align: left;
  margin-bottom: var(--sp-8);
}

/* Badge rubrique au-dessus du titre */
.article-header .badge {
  margin-bottom: var(--sp-3);
}

/* Titre principal H1 */
.article-header h1 {
  font-size: 2.5rem;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}

/* Sous-titre / intro */
.article-header .subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

/* Méta : auteur, date, temps de lecture */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Séparateur · entre les items méta */
.article-meta > * + *::before {
  content: '·';
  margin-right: var(--sp-4);
  color: var(--text-muted);
}


/* =============================================================================
   FOOTER (.site-footer)
   ============================================================================= */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-10) 0 var(--sp-8);
}

/* Grille 4 colonnes */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}

/* Titres des colonnes */
.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
}

/* Liens dans les colonnes footer */
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
}

/* Description dans la première colonne */
.footer-col .footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Bas du footer : copyright + liens légaux */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--accent);
}


/* =============================================================================
   RESPONSIVE — 3 breakpoints
   1200px : tablette large
    900px : tablette
    600px : mobile
   ============================================================================= */

/* --- Tablette large (< 1200px) --- */
@media (max-width: 1200px) {
  .grid-posts {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* --- Tablette (< 900px) --- */
@media (max-width: 900px) {

  /* Hero : 1 colonne, image au-dessus */
  .hero .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  /* Image en premier sur tablette */
  .hero-visual {
    order: -1;
  }

  /* Layout article : TOC masquée */
  .layout-article {
    grid-template-columns: 1fr;
  }

  .layout-article .toc {
    display: none;
  }

  /* Footer : 2 colonnes */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Grille articles : supprimer le span 2 du premier article */
  .grid-posts .card:first-child {
    grid-column: span 1;
  }
}

/* --- Mobile (< 600px) --- */
@media (max-width: 600px) {

  /* Header : masquer nav principale et éléments superflus */
  .site-nav {
    display: none;
  }

  /* Masquer hamburger et actions header — remplacés par bottom nav */
  .nav-mobile-toggle {
    display: none !important;
  }

  .site-nav-right {
    display: none !important;
  }

  /* Padding body pour bottom nav fixe */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* Hero banner : hauteur et bulle réduits sur mobile */
  .hero--banner {
    min-height: 400px;
  }

  .hero--banner .hero-bubble {
    padding: var(--sp-6, 1.5rem) var(--sp-5, 1.25rem);
    margin: var(--sp-4, 1rem);
  }

  /* Hero : padding réduit, tailles de texte ajustées */
  .hero {
    padding: var(--sp-8) 0;
  }

  .hero-title {
    font-size: 1.875rem; /* 30px sur mobile */
  }

  .hero-excerpt {
    font-size: 1rem;
  }

  /* Sections : padding réduit */
  .section {
    padding: var(--sp-6) 0;
  }

  /* Grille articles : 1 colonne */
  .grid-posts {
    grid-template-columns: 1fr;
  }

  .grid-posts .card:first-child {
    grid-column: span 1;
  }

  /* Footer : 1 colonne */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  /* Article header : titre réduit sur mobile */
  .article-header h1 {
    font-size: 1.875rem;
  }

  /* Tabs : scroll horizontal sur mobile */
  .tabs {
    gap: 0;
  }
}




/* Bannière services — pitch commercial sous le header */
.services-strip {
  padding: 16px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .services-strip {
  background: rgba(208, 74, 26, 0.06);
  border-bottom: 1px solid rgba(208, 74, 26, 0.15);
}

.services-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.services-strip-headline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.services-strip-headline strong {
  color: var(--text-primary);
  font-weight: 700;
}

.services-strip-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full, 999px);
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
}

[data-theme="dark"] .service-tag {
  background: rgba(208, 74, 26, 0.1);
}

[data-theme="light"] .service-tag {
  background: rgba(208, 74, 26, 0.05);
}

@media (max-width: 600px) {
  .services-strip-inner {
    flex-direction: column;
    gap: 10px;
  }
  .services-strip-headline {
    font-size: 0.85rem;
  }
  .service-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
}

/* Masquer les card-image sans image réelle (placeholders vides) */
.card-image:not(:has(img)) {
  display: none;
}

/* =============================================================================
   BOTTOM NAV MOBILE (.mobile-bottom-nav)
   Navigation fixe en bas, style Material Design, glassmorphism
   ============================================================================= */

/* Caché sur desktop */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 600px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(9, 9, 11, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    justify-content: space-evenly;
    align-items: stretch;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  [data-theme="light"] .mobile-bottom-nav {
    background: rgba(250, 250, 248, 0.92);
    border-top-color: rgba(0, 0, 0, 0.08);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 8px 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: var(--font-body, 'Inter', sans-serif);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item.active {
    color: var(--accent);
  }

  .bottom-nav-item:hover {
    color: var(--accent);
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  .bottom-nav-item.active svg {
    stroke-width: 2.2;
  }
}


/* =============================================================================
   SECTION SERVICES (accueil uniquement)
   ============================================================================= */

.services-section {
  padding: var(--sp-10, 64px) 0;
  border-bottom: 1px solid var(--border);
}

.services-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: var(--sp-8, 40px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5, 24px);
  margin-bottom: var(--sp-8, 40px);
}

.service-card {
  padding: 28px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  transition: border-color var(--transition-fast),
              transform var(--transition-normal),
              box-shadow var(--transition-normal);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(232, 96, 42, 0.08);
}

[data-theme="light"] .service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
              0 0 16px rgba(208, 74, 26, 0.06);
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* SVG inline icons in service cards */
.service-svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

a.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-example {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

a.service-tag {
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.services-free-offer {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 14px 20px;
  background: var(--accent-subtle, rgba(232,96,42,0.08));
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

a.service-tag:hover {
  background: var(--accent);
  color: #fff;
}

.services-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-outline {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .service-card,
  a.service-card-link {
    padding: 20px !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background: var(--bg-surface) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
  }
  .service-icon {
    font-size: 2rem !important;
    margin-bottom: 10px !important;
  }
  .service-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
  }
  .service-card p {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
  }
  .service-example {
    margin-top: 14px !important;
    font-size: 0.85rem !important;
    display: inline-block !important;
    padding: 8px 16px !important;
    border: 1px solid var(--accent) !important;
    border-radius: 999px !important;
    color: var(--accent) !important;
    background: transparent !important;
  }
  .services-cta-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }

  /* Bannière strip mobile */
  .services-strip-inner {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px 0 !important;
  }
  .services-strip-headline {
    font-size: 0.85rem !important;
    text-align: center !important;
  }
  .services-strip-tags {
    justify-content: center !important;
  }
  .service-tag,
  a.service-tag {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
  }
  .services-strip-cta {
    font-size: 0.78rem !important;
    padding: 6px 14px !important;
  }
}


/* =============================================================================
   BANNIÈRE STRIP — CTA
   ============================================================================= */

.services-strip-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 5px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-full, 999px);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.services-strip-cta:hover {
  background: var(--accent);
  color: #fff;
}


/* =============================================================================
   MODALS (Contact + CV)
   ============================================================================= */

.cv-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.cv-modal-overlay.active {
  display: flex;
}

.cv-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  padding: 2rem;
  max-width: 440px;
  width: 90%;
  position: relative;
}

.cv-modal h3 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.cv-modal .cv-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cv-modal .cv-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.cv-modal .cv-close:hover {
  color: var(--accent);
}

.cv-field {
  margin-bottom: 0.9rem;
}

.cv-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.cv-field input,
.cv-field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.cv-field input:focus,
.cv-field textarea:focus {
  border-color: var(--accent);
}

.cv-field textarea {
  resize: vertical;
  min-height: 60px;
}

.cv-field .required {
  color: var(--accent);
}

.cv-submit {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 0.5rem;
}

.cv-submit:hover {
  opacity: 0.88;
}

.cv-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cv-msg {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.5;
}

.cv-msg.success {
  color: #4ade80;
}

.cv-msg.error {
  color: #ef4444;
}

@media (max-width: 600px) {
  .cv-modal {
    width: 95%;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }
}
