/* ═══════════════════════════════════════════════════════
   YGREK CONSULTING V4 — Design System
   Polices : Bricolage Grotesque (display) + Space Grotesk (corps)
   Charte : « Le trait bleu » — bleu cordeau + orange crayon (CTA uniquement)
   ═══════════════════════════════════════════════════════ */

/* ─── TOKENS — charte « Le trait bleu » ───
   Base : bleu cordeau (confiance, services pro) sur encre/papier.
   L'orange crayon est RÉSERVÉ aux CTA principaux et aux coups de
   crayon — nulle part ailleurs (effet d'isolation : un accent qui ne
   sert qu'à l'action reste visible). Ratios WCAG AA vérifiés au calcul,
   voir docs/charte-couleurs.md. Aucune couleur en dur hors de ce bloc
   (exceptions sémantiques : --ok, --star). */
:root {
  --bg:       #0e1424;
  --surface:  rgba(255,255,255,0.045);
  --text:     #eef1fb;
  --muted:    #97a0c3;
  --v:        #8fa6ff;
  --c:        #8fa6ff;
  --cta:        #e8763d;
  --cta-text:   #0e1424;
  --grad:     linear-gradient(135deg, #8fa6ff, #8fa6ff);
  --border:   rgba(255,255,255,0.10);
  --v-10:  rgba(143,166,255,0.10);
  --v-15:  rgba(143,166,255,0.15);
  --v-20:  rgba(143,166,255,0.22);
  --v-25:  rgba(143,166,255,0.28);
  --v-40:  rgba(143,166,255,0.40);
  --v-45:  rgba(143,166,255,0.45);
  --c-14:  rgba(143,166,255,0.14);
  --c-20:  rgba(143,166,255,0.22);
  --ok:    #22c55e;
  --star:  #f5b301;
  --white: #ffffff;
  --f:        'Space Grotesk', system-ui, sans-serif;
  --fd:       'Bricolage Grotesque', 'Space Grotesk', system-ui, sans-serif;
  --r-sm:     0.75rem;
  --r-md:     1rem;
  --r-lg:     1.5rem;
  --r-xl:     2rem;
  --r-full:   999px;
  --max:      1160px;
  --shadow:   0 8px 32px rgba(0,0,0,0.4);
}

/* ─── THÈME CLAIR (défaut) ─── */
[data-theme="light"] {
  --bg:      #f6f7fb;
  --surface: rgba(16,21,43,0.04);
  --text:    #10152b;
  --muted:   #565e80;
  --v:       #2b4bd7;
  --c:       #2b4bd7;
  --cta:      #c73f08;
  --cta-text: #ffffff;
  --grad:    linear-gradient(135deg, #2b4bd7, #2b4bd7);
  --border:  rgba(16,21,43,0.1);
  --v-10:  rgba(43,75,215,0.08);
  --v-15:  rgba(43,75,215,0.12);
  --v-20:  rgba(43,75,215,0.18);
  --v-25:  rgba(43,75,215,0.22);
  --v-40:  rgba(43,75,215,0.38);
  --v-45:  rgba(43,75,215,0.42);
  --c-14:  rgba(43,75,215,0.12);
  --c-20:  rgba(43,75,215,0.18);
}
[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}
[data-theme="light"] .site-header {
  background: rgba(246,247,251,0.85);
  border-bottom-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .nav-dropdown-inner {
  background: rgba(246,247,251,0.98);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .nav-dropdown-group a { color: var(--text); }
[data-theme="light"] .card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .card:hover {
  background: rgba(255,255,255,0.95);
}
[data-theme="light"] .site-footer {
  border-top-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .section--alt {
  background: rgba(0,0,0,0.03);
}
[data-theme="light"] .cta-box {
  background: var(--v-10);
  border-color: var(--v-20);
}
[data-theme="light"] .faq-item,
[data-theme="light"] .faq-list { border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .footer-inner,
[data-theme="light"] .footer-bottom { border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .btn-ghost {
  color: var(--text);
  border-color: rgba(0,0,0,0.2);
}
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.06); }
[data-theme="light"] .blog-card,
[data-theme="light"] .benefit-item,
[data-theme="light"] .ia-visual,
[data-theme="light"] .hv-card {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: var(--white);
  border-color: rgba(0,0,0,0.15);
  color: var(--text);
}
[data-theme="light"] .form-group select option {
  background: var(--white);
  color: var(--text);
}
[data-theme="light"] .main-nav.open {
  background: rgba(246,247,251,0.98);
}
[data-theme="light"] .portfolio-item {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.1);
}
/* Grain moins visible en light */
[data-theme="light"] .grain { opacity: 0.015; }

/* ─── TRANSITION DOUCE AU CHANGEMENT DE THÈME ─── */
body,
.site-header,
.card,
.blog-card,
.benefit-item,
.cta-box,
.site-footer,
input, select, textarea {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

/* ─── BOUTON TOGGLE THÈME ─── */
.theme-toggle {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--v-15);
  border-color: var(--v-40);
  transform: rotate(15deg);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }

/* ─── GRAIN OVERLAY ─── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.032;
}

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
.section        { padding: 5rem 0; }
.section--alt   { background: rgba(255,255,255,0.03); }
.section--dark  { background: rgba(0,0,0,0.3); }

/* ─── GRADIENT TEXT ─── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Y MONOGRAMME (signature du hero) ───
   Le Y d'Ygrek — l'initiale du fondateur — en filigrane géant, tracé au
   contour bleu léger. Un seul par page, dans le hero de l'accueil. */
.y-mark {
  position: absolute;
  top: 50%; right: -6rem;
  transform: translateY(-52%);
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(22rem, 46vw, 48rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--v-25);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .y-mark { font-size: 20rem; right: -7rem; top: 30%; -webkit-text-stroke-width: 1.5px; }
}

/* ─── TYPOGRAPHY ─── */
h1 { font-family: var(--fd); font-size: clamp(2.5rem, 6vw, 6rem);   font-weight: 800; line-height: 1;    letter-spacing: -0.02em; }
h2 { font-family: var(--fd); font-size: clamp(1.8rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem);  font-weight: 700; line-height: 1.1;  letter-spacing: -0.02em; }
.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── NAVIGATION ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(14,20,36,0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}
.logo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  margin-bottom: 0.55em;
  margin-left: 1px;
  display: inline-block;
  flex-shrink: 0;
}
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding-block: 0.25rem;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 999px;
}
.btn-nav {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--grad);
  padding: 0.55rem 1.3rem;
  border-radius: var(--r-full);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 999px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── SOUS-MENU SERVICES ─── */
.nav-has-submenu { position: relative; display: flex; align-items: center; }
.nav-submenu-toggle {
  display: none;
  padding: 0.25rem;
  margin-left: 0.15rem;
  color: var(--muted);
}
.nav-chevron { font-size: 0.65em; display: inline-block; margin-left: 0.3rem; transition: transform 0.25s; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 101;
}
.nav-dropdown-inner {
  background: rgba(14,20,36,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  gap: 2.5rem;
  box-shadow: var(--shadow);
}
.nav-has-submenu:hover .nav-dropdown,
.nav-has-submenu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
}
.nav-has-submenu:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.7rem;
}
.nav-dropdown-group a {
  display: block; font-size: 0.85rem; color: var(--text);
  padding: 0.4rem 0; transition: color 0.2s;
}
.nav-dropdown-group a:hover { color: var(--c); }

/* ─── BUTTONS ───
   Action principale = orange crayon (--cta), et RIEN d'autre en orange :
   c'est la condition pour que le bouton reste l'élément le plus visible
   de chaque page (effet d'isolation). */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cta); color: var(--cta-text);
  font-weight: 600; font-size: 0.9rem;
  padding: 0.875rem 2rem; border-radius: var(--r-full);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  opacity: 0.9; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(199,63,8,0.35);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text);
  font-weight: 500; font-size: 0.9rem;
  padding: 0.875rem 1.75rem; border-radius: var(--r-full);
  border: 1px solid var(--border); transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cta); color: var(--cta-text);
  font-weight: 700; font-size: 0.9rem;
  padding: 0.875rem 2rem; border-radius: var(--r-full);
  transition: all 0.2s;
}
.btn-white:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── BADGE ─── */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem; border-radius: var(--r-full);
  border: 1px solid var(--v-45);
  background: var(--v-10);
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--v); flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ─── CARDS ─── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: transform 0.3s, background 0.3s;
  overflow: visible;
}
.card::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.065); }
.card:hover::after { opacity: 1; }
.card-icon {
  width: 3rem; height: 3rem; border-radius: 0.875rem;
  background: linear-gradient(135deg,var(--v-25),var(--c-20));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.5rem;
}

/* ─── ORBES ─── */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}
@keyframes drift-a {
  0%,100% { transform: translate(0,0); }
  40%     { transform: translate(30px,-40px); }
  70%     { transform: translate(-20px,20px); }
}
@keyframes drift-b {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-25px,30px); }
}

/* ─── CTA BOX ─── */
.cta-box {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 5rem 4rem; text-align: center;
  background: var(--v-15);
  border: 1px solid rgba(255,255,255,0.1);
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--v-25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { margin-bottom: 1.25rem; }
.cta-box p  { color: var(--muted); max-width: 36rem; margin: 0 auto 2.25rem; line-height: 1.8; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─── BREADCRUMB ─── */
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ol { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb li { font-size: 0.8rem; color: var(--muted); }
.breadcrumb li+li::before { content: '/'; margin-right: 0.5rem; }
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text); }

/* ─── FAQ ─── */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 0.95rem;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--c); font-size: 1.2rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ─── FOOTER ─── */
.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 2fr;
  gap: 4rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-top: 1rem; max-width: 22rem; }
.footer-loc { margin-top: 0.5rem !important; font-size: 0.82rem !important; }
.footer-nav { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.footer-col h3 { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p, .footer-bottom a { font-size: 0.75rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }
.footer-bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ─── BLOG ─── */
.article-container { max-width: 760px; padding-top: 3rem; padding-bottom: 5rem; }
.article-header { margin-bottom: 2.5rem; }
.article-category {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--c); margin-bottom: 1rem; display: block;
}
.article-header h1 { font-size: clamp(2rem,4vw,3.5rem); margin-bottom: 1rem; }
.article-header time { font-size: 0.8rem; color: var(--muted); }
.article-body { font-size: 1rem; line-height: 1.85; color: var(--text); }
.article-body h2 { font-size: clamp(1.4rem,2.5vw,2rem); margin: 2.5rem 0 1rem; }
.article-body h3 { font-size: clamp(1.1rem,2vw,1.4rem); margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--c); text-decoration: underline; text-underline-offset: 3px; }
.article-cta { margin-top: 4rem; }

/* ─── BLOG INDEX ─── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.75rem;
  transition: transform 0.3s, background 0.3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.04); }
.blog-card-cover {
  margin: -1.75rem -1.75rem 1.25rem;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: block;
}
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card-cat { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c); margin-bottom: 0.75rem; display: block; }
.blog-card h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.75rem; line-height: 1.3; }
.blog-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }
.blog-card-link { font-size: 0.82rem; font-weight: 600; color: var(--c); display: inline-flex; align-items: center; gap: 0.35rem; transition: gap 0.2s; }
.blog-card-link:hover { gap: 0.6rem; }

/* ─── SEO PAGES ─── */
.seo-hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--border); }
.seo-hero h1 { font-size: clamp(2rem,4vw,3.5rem); margin-bottom: 1.25rem; margin-top: 1rem; }
.seo-hero-lead { font-size: 1rem; color: var(--muted); max-width: 48rem; line-height: 1.8; margin-bottom: 2rem; }

/* ─── QUESTION DIAGNOSTIQUE (signature) ───
   Le soulignement « coup de crayon » à double passe, en dégradé de marque,
   marque les questions d'ouverture comme une annotation d'artisan sur un
   devis. Un seul geste signature, appliqué à un seul endroit. */
.diag-q {
  font-family: var(--fd);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: .75rem;
}
.diag-q::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: .55rem;
  margin-top: .45rem;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'><path d='M2 8C20 3 38 10 58 6S100 3 118 7' fill='none' stroke='%23e8590c' stroke-width='3.5' stroke-linecap='round'/><path d='M6 10C28 6 52 11 78 8S106 6 114 9' fill='none' stroke='%23e8590c' stroke-width='2' stroke-linecap='round' opacity='.4'/></svg>") no-repeat left center / contain;
}
.hero-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 3rem; align-items: center; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.tags-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.benefits-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; margin-top: 2.5rem; }
.benefit-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.5rem; }
.benefit-icon { font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }
.benefit-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.benefit-item p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.pain-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.pain-list li { font-size: 0.9rem; color: var(--muted); display: flex; align-items: flex-start; gap: 0.6rem; }
.pain-list li::before { content: '✓'; color: var(--c); font-weight: 700; flex-shrink: 0; }
.nearby-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.nearby-list a {
  font-size: 0.82rem; color: var(--muted);
  border: 1px solid var(--border); padding: 0.3rem 0.85rem;
  border-radius: var(--r-full); transition: all 0.2s;
}
.nearby-list a:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.seo-photo { margin: 1.5rem 0; border-radius: var(--r-lg); overflow: hidden; }
.seo-photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.seo-photo figcaption { font-size: .68rem; color: var(--muted); padding: .4rem .1rem; }
.seo-photo figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.seo-photo figcaption a:hover { color: var(--text); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.75rem 1rem;
  color: var(--text); font-family: var(--f); font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--v);
  box-shadow: 0 0 0 3px var(--v-15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select option { background: #1a1a2e; }
/* Honeypot anti-spam */
.hp-field { position: absolute; left: -9999px; }

/* ─── PORTFOLIO ─── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.portfolio-item {
  aspect-ratio: 16/10; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.portfolio-item:hover img { transform: scale(1.03); }
.portfolio-item-placeholder { text-align: center; color: var(--muted); }
.portfolio-item-placeholder span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.portfolio-item-placeholder p { font-size: 0.8rem; }

/* ─── 404 ─── */
.page-404 { min-height: 70vh; display: flex; align-items: center; }
.page-404 h1 { font-size: clamp(4rem,12vw,10rem); font-weight: 700; color: var(--v); margin-bottom: 1rem; line-height: 1; }
.page-404 h2 { font-size: clamp(1.5rem,3vw,2.5rem); margin-bottom: 1rem; }
.page-404 p  { color: var(--muted); margin-bottom: 2rem; max-width: 36rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .blog-grid     { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-nav    { grid-template-columns: repeat(2,1fr); }
  .footer-inner  { grid-template-columns: 1fr; gap: 2.5rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .cards-grid-3  { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tags-grid { grid-template-columns: 1fr; gap: .6rem; }
  .form-row { grid-template-columns: 1fr; }
  .main-nav, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column;
    /* PAS de position:fixed ici : le backdrop-filter du .site-header en fait
       le bloc conteneur des descendants fixed, ce qui écrasait le panneau
       contre le header (fond quasi invisible, liens débordant sans fond).
       On s'ancre donc en absolu sous le header, avec une hauteur viewport. */
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: calc(100vh - 4.5rem);
    height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    background: rgba(14,20,36,0.98);
    padding: 2rem; z-index: 99;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .main-nav.open ul { flex-direction: column; gap: 1.5rem; }
  .main-nav.open a { font-size: 1.25rem; color: var(--text); }
  .nav-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-has-submenu { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    white-space: normal;
    pointer-events: none;
    padding-top: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0.5rem;
    transition: max-height 0.3s ease;
    width: 100%;
  }
  .nav-dropdown-inner {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .nav-has-submenu.open .nav-dropdown { max-height: 600px; pointer-events: auto; }
  .nav-has-submenu.open .nav-chevron { transform: rotate(180deg); }
  .nav-chevron-desktop { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container   { padding: 0 1.25rem; }
  .section     { padding: 3.5rem 0; }
  .blog-grid   { grid-template-columns: 1fr; }
  .cta-box     { padding: 3rem 1.5rem; }
  .footer-nav  { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .benefits-grid  { grid-template-columns: 1fr; }
  .cards-grid-3   { grid-template-columns: 1fr; }
}
