/* ==========================================================================
   Location-Croatie.fr — Design System
   Adriatique Vivant — logistique pratique, confiance, bleu profond + ambre
   ========================================================================== */

/* ---------- 1. RESET & CUSTOM PROPERTIES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:root {
  /* === Couleurs principales === */
  --primary: #1A6B9A;         /* bleu Adriatique profond */
  --primary-dark: #0F4D72;    /* bleu plus profond — hover */
  --primary-light: #2A85BC;   /* bleu clair — liens */
  --secondary: #E8F4F8;       /* bleu très clair — fonds sections */
  --accent: #E07B2A;          /* ambre brûlé — CTAs, highlights */
  --accent-hover: #C5631A;    /* ambre foncé — hover CTA */
  --teal: #2A9D8F;            /* turquoise eau peu profonde — badges, accents déco */
  --teal-light: #3DB8A9;

  /* === Fond & textes === */
  --bg: #FFFFFF;
  --bg-alt: #F7FAFB;          /* fond alternatif sections */
  --bg-dark: #0D2B3E;         /* fond sombre — section immersive */
  --bg-card: #FFFFFF;
  --txt: #1C2B3A;
  --txt-sec: #4A6070;
  --txt-light: #7A9AAD;
  --txt-white: #FFFFFF;
  --border: #D6E8F0;

  /* === Dérivés opacité === */
  --primary-80: rgba(26,107,154,.80);
  --primary-60: rgba(26,107,154,.60);
  --primary-20: rgba(26,107,154,.20);
  --primary-10: rgba(26,107,154,.10);
  --primary-06: rgba(26,107,154,.06);
  --dark-70: rgba(13,43,62,.70);
  --dark-50: rgba(13,43,62,.50);

  /* === Ombres === */
  --shadow-sm: 0 1px 4px rgba(26,107,154,.06), 0 2px 8px rgba(26,107,154,.04);
  --shadow-md: 0 4px 16px rgba(26,107,154,.08), 0 1px 4px rgba(26,107,154,.05);
  --shadow-lg: 0 12px 48px rgba(26,107,154,.12), 0 2px 8px rgba(26,107,154,.05);
  --shadow-xl: 0 20px 60px rgba(26,107,154,.16), 0 4px 12px rgba(26,107,154,.06);

  /* === Typographie === */
  --ff-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body: 'Raleway', system-ui, -apple-system, sans-serif;
  --ff-quote: 'Cormorant Garamond', Georgia, serif;

  /* === Mesures === */
  --measure-article: 720px;
  --measure-wide: 1280px;
  --measure-hero: 1440px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* === Espacements === */
  --sp-xs: .5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;
  --sp-2xl: 9rem;

  /* === Rayons === */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* === Transitions === */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 250ms;
  --dur: 400ms;
  --dur-slow: 700ms;

  --max: 1280px;
}

/* ---------- 2. TYPOGRAPHIE ---------- */
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--txt);
  background: var(--bg);
  font-feature-settings: 'kern' 1, 'liga' 1;
}
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.15;
  color: var(--primary-dark);
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: var(--sp-sm); }
h2 { font-size: clamp(1.45rem, 3vw, 2.3rem); font-weight: 600; margin-bottom: var(--sp-sm); position: relative; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); font-weight: 600; margin-bottom: var(--sp-xs); }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1.15rem; color: var(--txt-sec); line-height: 1.9; }
strong { color: var(--txt); font-weight: 700; }
a { color: var(--primary-light); transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--accent); }

blockquote {
  font-family: var(--ff-quote);
  font-size: 1.3rem;
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding: var(--sp-sm) var(--sp-md);
  margin: var(--sp-md) 0;
  color: var(--primary-dark);
  background: var(--secondary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* Filet décoratif sous H2 */
.article-body h2::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  margin-top: .35rem;
  transition: width var(--dur) var(--ease);
}
.article-body h2:hover::after { width: 60px; }

/* Lettrine premier paragraphe */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 700;
  float: left;
  line-height: .85;
  margin: .1em .12em 0 0;
  color: var(--primary);
}

/* ---------- 3. LAYOUT & CONTAINERS ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--article {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--sp-lg) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--txt-white); }
.section-secondary { background: var(--secondary); }

/* ---------- 4. HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(26,107,154,.10);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg);
  transition: color var(--dur-fast) var(--ease);
}
.site-header.scrolled .logo { color: var(--primary-dark); }
.logo img { width: 40px; height: 40px; border-radius: var(--r-sm); }

.main-nav { display: flex; align-items: center; gap: .2rem; }
.nav-link {
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  padding: .5rem .9rem;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}
.site-header.scrolled .nav-link { color: var(--txt); }
.nav-link:hover {
  color: var(--accent) !important;
  background: var(--primary-06);
}

/* Dropdown navigation */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid var(--border);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: .55rem 1.2rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--txt);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-dropdown a:hover { background: var(--secondary); color: var(--primary); }

/* Hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
}
.site-header.scrolled .hamburger span { background: var(--txt); }
.nav-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-home { min-height: 92vh; align-items: center; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s var(--ease);
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,43,62,.25) 0%,
    rgba(13,43,62,.55) 50%,
    rgba(13,43,62,.80) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem var(--gutter) 4rem;
  width: 100%;
}
.hero-kicker {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(224,123,42,.15);
  border: 1px solid rgba(224,123,42,.4);
  padding: .3rem .8rem;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; max-width: 720px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-home h1 { max-width: 820px; }
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  max-width: 560px;
  margin-top: .75rem;
  line-height: 1.7;
  font-family: var(--ff-body);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.hero-meta span {
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-family: var(--ff-body);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.4);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(.5); }
}

/* Breadcrumb dans le hero */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.breadcrumb a, .breadcrumb span {
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.65);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: rgba(255,255,255,.4); font-size: .7rem; }
.breadcrumb .current { color: rgba(255,255,255,.9); font-weight: 600; }

/* ---------- 6. BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .85rem 1.8rem;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-spring);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

/* ---------- 7. CARDS GUIDES / BLOG ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cards-grid--blog {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform var(--dur-slow) var(--ease);
}
.card:hover .card-image img { transform: scale(1.06); }

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
}
.card-kicker {
  font-family: var(--ff-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}
.card-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.25;
  margin: 0;
}
.card-title:hover { color: var(--primary); }
.card-desc {
  font-size: .9rem;
  color: var(--txt-sec);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.card-link {
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-light);
}
.card-link:hover { color: var(--accent); }
.card-date {
  font-size: .75rem;
  color: var(--txt-light);
}

/* Card feature (large) */
.card-feature {
  grid-column: span 2;
  flex-direction: row;
}
.card-feature .card-image { flex: 0 0 50%; aspect-ratio: auto; }
.card-feature .card-image img { height: 100%; }
.card-feature .card-body { padding: 2.5rem; justify-content: center; }
.card-feature .card-title { font-size: 1.6rem; }

/* ---------- 8. ARTICLE LAYOUT ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr min(var(--measure-article), 100%) 1fr;
  padding-top: 2rem;
}
.article-layout > * { grid-column: 2; }

/* TOC sticky */
.toc-wrapper {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: .5rem;
}
.toc-wrapper::-webkit-scrollbar { width: 3px; }
.toc-wrapper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.toc {
  background: var(--secondary);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.2rem 1.4rem;
}
.toc-title {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .8rem;
}
.toc ol { list-style: none; counter-reset: toc-counter; }
.toc li { counter-increment: toc-counter; margin-bottom: .4rem; }
.toc li::before {
  content: counter(toc-counter) ". ";
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
}
.toc a {
  font-size: .85rem;
  color: var(--txt-sec);
  transition: color var(--dur-fast);
}
.toc a:hover { color: var(--primary); }

/* Article layout avec sidebar */
.article-with-toc {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  align-items: start;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 2rem var(--gutter);
}
.article-main { min-width: 0; }
.article-sidebar { }

/* Summary / chapeau */
.article-summary {
  font-family: var(--ff-quote);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary-dark);
  border-left: 4px solid var(--teal);
  padding: 1.2rem 1.8rem;
  background: var(--secondary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* Corps article */
.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
}
.article-body h3 { margin-top: 1.8rem; margin-bottom: .7rem; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.2rem 1.5rem;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .4rem; color: var(--txt-sec); line-height: 1.8; }
.article-body a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent); }
.article-body table { margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.article-body th { background: var(--secondary); color: var(--primary-dark); font-weight: 700; padding: .7rem 1rem; text-align: left; }
.article-body td { padding: .65rem 1rem; border-top: 1px solid var(--border); }
.article-body tr:hover td { background: var(--secondary); }

/* Images dans le corps */
.article-body img {
  width: 100%;
  border-radius: var(--r-lg);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

/* ---------- 9. FAQ ACCORDÉON ---------- */
.faq-section {
  background: var(--bg-alt);
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--border);
}
.faq-title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: var(--sp-md);
  text-align: center;
}
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: .6rem;
  background: var(--bg-card);
  overflow: hidden;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.faq-item.open { box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt);
  user-select: none;
  transition: color var(--dur-fast);
}
.faq-item.open .faq-question { color: var(--primary); }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
  line-height: 1;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding: 0 1.4rem 1.2rem;
  color: var(--txt-sec);
  line-height: 1.85;
}

/* ---------- 10. SECTIONS SPÉCIALES ---------- */

/* Intro éditoriale */
.intro-section { padding: var(--sp-xl) 0; }
.intro-kicker {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}
.intro-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--primary-dark);
  max-width: 640px;
  margin-bottom: 1rem;
}
.intro-text {
  font-size: 1.05rem;
  color: var(--txt-sec);
  max-width: 560px;
  line-height: 1.9;
}

/* Section guides */
.guides-section { padding: var(--sp-xl) 0; }
.section-header { text-align: center; margin-bottom: var(--sp-md); }
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--txt-sec);
  max-width: 560px;
  margin: 0 auto;
}

/* Section immersive (dark) */
.immersive-section {
  position: relative;
  padding: var(--sp-2xl) 0;
  overflow: hidden;
}
.immersive-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.immersive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,43,62,.85) 0%, rgba(26,107,154,.70) 100%);
}
.immersive-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: #fff;
}
.immersive-content h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.immersive-content p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 1rem 0 2rem; }

/* Checklist / liste avantages */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .975rem;
  color: var(--txt-sec);
  line-height: 1.7;
}
.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--teal);
  color: #fff;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  margin-top: .15rem;
}

/* Callout box */
.callout {
  background: var(--secondary);
  border: 1px solid var(--primary-20);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.callout-warning {
  background: rgba(224,123,42,.08);
  border-color: rgba(224,123,42,.3);
  border-left-color: var(--accent);
}
.callout p { margin: 0; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--ff-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: var(--r-full);
  background: var(--teal);
  color: #fff;
}
.badge-accent { background: var(--accent); }
.badge-primary { background: var(--primary); }

/* Related pages */
.related-section { padding: var(--sp-lg) 0; border-top: 1px solid var(--border); }
.related-title {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-spring);
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.related-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.related-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.related-card:hover .related-card-image img { transform: scale(1.06); }
.related-card-body { padding: 1rem; }
.related-card h4 {
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.3;
}
.related-card p { font-size: .85rem; color: var(--txt-sec); margin: .3rem 0 0; }

/* ---------- 11. FOOTER ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.75);
  padding: var(--sp-xl) 0 var(--sp-md);
  border-top: 3px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: var(--sp-md);
}
.footer-brand { }
.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .7rem;
}
.footer-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-col-title {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--dur-fast); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 12. ANIMATIONS REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---------- 13. UTILITAIRES ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-teal { color: var(--teal); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mb-md { margin-bottom: var(--sp-md); }
.gap-sm { gap: var(--sp-sm); }

/* Visibilité */
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- 14. PAGE CONTACT / MENTIONS / À PROPOS ---------- */
.page-content {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: var(--sp-lg) var(--gutter);
}
.page-content h2 {
  margin-top: 2rem;
  margin-bottom: .8rem;
  font-size: 1.4rem;
}
.page-content p, .page-content li { color: var(--txt-sec); line-height: 1.85; }

.contact-email {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

/* ---------- 15. READING TIME & META ARTICLE ---------- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---------- 16. PLAN DU SITE ---------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  padding: var(--sp-lg) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.sitemap-col-title {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.sitemap-links { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.sitemap-links a { font-size: .9rem; color: var(--txt-sec); transition: color var(--dur-fast); }
.sitemap-links a:hover { color: var(--primary); }

/* ---------- 17. PAGE 404 ---------- */
.error-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-xl) var(--gutter);
}
.error-code {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  position: relative;
  z-index: 0;
  text-shadow: 0 4px 24px rgba(26,107,154,.1);
}
.error-content { position: relative; z-index: 1; }
.error-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .article-with-toc {
    grid-template-columns: 1fr;
  }
  .article-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-column: span 1; flex-direction: column; }
  .card-feature .card-image { aspect-ratio: 3/2; flex: auto; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 200;
    padding: 6rem var(--gutter) var(--sp-xl);
    gap: .5rem;
    overflow-y: auto;
  }
  .nav-open .main-nav .nav-link {
    color: #fff;
    font-size: 1.1rem;
    padding: .75rem 1rem;
  }
  .nav-open .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.05);
    border: none;
    padding: .25rem .5rem;
  }
  .nav-open .nav-dropdown a { color: rgba(255,255,255,.75); }

  .hamburger { z-index: 300; position: relative; }

  .hero { min-height: 80vh; }
  .hero-home { min-height: 85vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--blog { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
