/*
Theme Name: France Lini
Theme URI: https://francelini.com
Author: France Lini
Description: Thème sur mesure pour France Lini — consultante en marketing digital (community management, Amazon FBA, media buying, UGC). Portage WordPress du site Cosmos, bilingue FR/EN, sans dépendance externe.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: francelini
Tags: business, portfolio, blog, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */

@font-face {
  font-family: "Lora Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("assets/fonts/lora-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("assets/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Design tokens
   --------------------------------------------------------------------------
   Palette « Blush & Lavender ». Deux violets volontairement distincts :
   --primary  : porte du texte, doit passer WCAG AA (>= 4.5:1)
   --brand    : purement décoratif (fonds teintés, icônes, traits)
   Le violet d'origine (#9b72cf) ne donnait que 3.68:1 sur blanc — il reste
   utilisable en décoration, jamais sous du texte.
   ========================================================================== */

:root {
  --radius: 0.5rem;

  --background: #fdf5f7;
  --foreground: #2d1b2e;

  --card: #ffffff;
  --card-foreground: #2d1b2e;

  --primary: #7a4bb8;          /* 5.96:1 sur blanc — AA */
  --primary-hover: #683f9e;
  --primary-foreground: #ffffff;
  --brand: #9b72cf;            /* décoratif uniquement */

  --secondary: #f0dce5;
  --secondary-foreground: #2d1b2e;

  --muted: #ece1e5;
  --muted-foreground: #63515f;  /* 6.4:1 sur --background — AA */

  --accent: #c9a0dc;
  --accent-foreground: #2d1b2e;

  --destructive: #a3242c;
  --destructive-foreground: #ffffff;

  --border: #e2d3d9;
  --border-strong: #cbb6bf;
  --input: #cbb6bf;
  --ring: #7a4bb8;

  --shadow-sm: 0 1px 2px rgb(45 27 46 / 0.06);
  --shadow-md: 0 4px 16px rgb(45 27 46 / 0.08);
  --shadow-lg: 0 12px 32px rgb(45 27 46 / 0.12);

  --font-sans: "Nunito Sans Variable", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-heading: "Lora Variable", ui-serif, Georgia, "Times New Roman", serif;

  --container: 72rem;
  --header-h: 6rem;

  color-scheme: light;
}

html[data-theme="dark"] {
  --background: #2d1b2e;
  --foreground: #f8e8ee;

  --card: #3d2f40;
  --card-foreground: #f8e8ee;

  --primary: #cfa8e2;          /* 8.0:1 sur --background — AA */
  --primary-hover: #dcbdeb;
  --primary-foreground: #241626;
  --brand: #c9a0dc;

  --secondary: #4a3a4e;
  --secondary-foreground: #f8e8ee;

  --muted: #443648;
  --muted-foreground: #c3b1c4;  /* 7.2:1 sur --background — AA */

  --accent: #9b72cf;
  --accent-foreground: #ffffff;

  --destructive: #f08a80;
  --destructive-foreground: #241626;

  --border: #4e3f52;
  --border-strong: #6b5870;
  --input: #6b5870;
  --ring: #cfa8e2;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.45);

  color-scheme: dark;
}

/* ==========================================================================
   3. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* Lien d'évitement — indispensable pour la navigation clavier */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

.container--narrow {
  max-width: 48rem;
}

.section {
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 5rem;
  }
}

.section--card {
  background: var(--card);
}

.section--bordered {
  border-top: 1px solid var(--border);
}

.section--bordered-b {
  border-bottom: 1px solid var(--border);
}

.stack > * + * {
  margin-top: var(--stack-gap, 1rem);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: 1fr;
}
.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split--sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
  }

  /* Page contact : le bloc « coordonnées » vient en premier dans le HTML (il
     donne le contexte avant le formulaire) mais s'affiche dans la colonne
     étroite de droite. */
  .split--main-first {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }

  .split--main-first > :first-child {
    order: 2;
  }

  .split--main-first > :last-child {
    order: 1;
  }
}

.text-center {
  text-align: center;
}

.flow > * + * {
  margin-top: 1rem;
}

/* ==========================================================================
   5. Typography utilities
   ========================================================================== */

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.muted {
  color: var(--muted-foreground);
}

.title-xl {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
}

.title-lg {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.title-md {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.title-sm {
  font-size: 1.25rem;
}

.balance {
  text-wrap: balance;
}

.measure {
  max-width: 42rem;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow: none;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  padding: 0.5rem 1rem;
}

.btn--lg {
  padding: 0.875rem 2rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-group--center {
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.18s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   7. Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.site-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  white-space: nowrap;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__list a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}

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

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list a[aria-current="page"] {
  color: var(--foreground);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  color: var(--foreground);
}

.nav-toggle svg {
  width: 1.375rem;
  height: 1.375rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 1.5rem;
}

.mobile-nav[hidden] {
  display: none;
}

/* Bascule bureau : la navigation complète remplace le bouton hamburger et le
   bloc d'actions mobile (qui porte son propre sélecteur de langue).
   Ce bloc doit rester APRÈS les règles de base qu'il neutralise. */
@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }

  .nav-actions,
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

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

.mobile-nav .btn {
  margin-top: 0.5rem;
}

/* Bascule langue & thème */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-toggle svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--muted-foreground);
}

.lang-toggle a,
.lang-toggle span {
  padding: 0 0.125rem;
}

.lang-toggle [aria-current="true"] {
  color: var(--primary);
}

.lang-toggle .is-inactive {
  color: var(--muted-foreground);
}

.lang-toggle .sep {
  color: var(--border-strong);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted-foreground);
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

html[data-theme="dark"] .theme-toggle .icon-moon,
html:not([data-theme="dark"]) .theme-toggle .icon-sun {
  display: none;
}

/* ==========================================================================
   8. Cards & surfaces
   ========================================================================== */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1.5rem;
}

.card--onCard {
  background: var(--card);
}

.card--pad-lg {
  padding: 2rem;
}

.card--link {
  display: block;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.icon-badge svg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-badge--brand {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--primary);
  border-radius: 999px;
}

.icon-badge--secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 999px;
}

.icon-badge--accent {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent-foreground);
  border-radius: 999px;
}

.icon-badge--lg {
  padding: 1rem;
}

.icon-badge--lg svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Statistiques */
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1.5rem;
  text-align: center;
}

.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--foreground);
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat--bare {
  border: 0;
  background: none;
  padding: 0;
}

/* Listes à coches */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.check-list svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
  color: var(--primary);
}

@media (min-width: 640px) {
  .check-list--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Puces / filtres */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--background);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.pill:hover {
  color: var(--foreground);
  border-color: var(--foreground);
}

.pill[aria-pressed="true"],
.pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.pill svg {
  width: 0.875rem;
  height: 0.875rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-row--center {
  justify-content: center;
}

/* ==========================================================================
   9. Accueil
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__media {
  margin-top: 3rem;
  width: 100%;
  max-width: 48rem;
}

.hero__media img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.pillar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 2rem;
  text-align: center;
}

.pillar .icon-badge {
  margin-inline: auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1.5rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

.service-card__desc {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  flex-grow: 1;
}

.service-card .link-arrow {
  margin-top: 1rem;
  text-decoration: none;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  margin-inline: auto;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-wide {
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 3rem;
}

.figure-wide img {
  width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   10. FAQ (accordéon)
   ========================================================================== */

.faq-list {
  max-width: 48rem;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  overflow: hidden;
}

.faq-item__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.faq-item__trigger svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
}

.faq-item__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-item__panel {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.faq-item__panel[hidden] {
  display: none;
}

.faq-item__panel a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-group[hidden] {
  display: none;
}

/* ==========================================================================
   11. Témoignages (carrousel)
   ========================================================================== */

.carousel {
  position: relative;
}

.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

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

.carousel__track {
  display: flex;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-inline: 0.5rem;
  scroll-snap-align: center;
}

@media (min-width: 768px) {
  .carousel__slide {
    flex-basis: 80%;
    padding-inline: 1rem;
  }
}

@media (min-width: 1024px) {
  .carousel__slide {
    flex-basis: 62%;
  }
}

.testimonial {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .testimonial {
    padding: 2rem;
  }
}

.testimonial__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__head img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial__author {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial__role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.testimonial__rule {
  margin-block: 1.25rem;
  border: 0;
  border-top: 1px solid var(--border);
}

.testimonial__quote {
  white-space: pre-line;
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .testimonial__quote {
    font-size: 1.0625rem;
  }
}

.testimonial > svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--border-strong);
  margin-bottom: 0.75rem;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: var(--border-strong);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.carousel__dot[aria-current="true"] {
  width: 1.75rem;
  background: var(--primary);
}

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--foreground);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.carousel__arrow:hover {
  background: var(--card);
  border-color: var(--primary);
}

.carousel__arrow svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ==========================================================================
   12. Services
   ========================================================================== */

.service-section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.service-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1.5rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-block:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.service-block__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-block__head .icon-badge {
  margin-bottom: 0;
  padding: 0.5rem;
}

.service-block__head .icon-badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service-block h4 {
  font-size: 1.0625rem;
}

.service-hero-img {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 26rem;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-inline: auto;
}

.service-hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote {
  font-style: italic;
  color: var(--muted-foreground);
}

/* Encart « à lire sur le blog » */
.related {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem;
}

.related__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 1rem;
}

.related__list > li + li {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.related__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related__list a svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.related__list a:hover svg {
  transform: translateX(3px);
}

.related__excerpt {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   13. Portfolio
   ========================================================================== */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1rem;
  transition: border-color 0.18s ease;
}

.logo-tile:hover {
  border-color: var(--primary);
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .case {
    padding: 2rem;
  }
}

.case[hidden] {
  display: none;
}

.case__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.case__channel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.case__channel svg {
  width: 1rem;
  height: 1rem;
}

.case__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.case__brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.case__brand h3 {
  font-size: 1.5rem;
}

.case__sector {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.case__duration {
  text-align: right;
  flex-shrink: 0;
}

.case__duration dt {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

.case__duration dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.case__summary {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.case__service {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.case__visuals {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .case__visuals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.case-visual {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  margin: 0;
}

.case-visual__tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  margin: 0.75rem 0.75rem 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-visual__tag--before {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.case-visual__tag--after {
  background: var(--primary);
  color: var(--primary-foreground);
}

.case-visual__btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--background);
}

.case-visual__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.case-visual__btn:hover img {
  transform: scale(1.03);
}

.case-visual figcaption {
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Résultats chiffrés d'une étude de cas.
   La hiérarchie était inversée : le nom de la marque s'affichait à 24 px et le
   résultat obtenu à 18 px, le pourcentage de progression à 12 px. C'est le
   chiffre d'arrivée qui doit dominer la carte. */

.metrics {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.125rem 1.25rem;
}

.metric__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.metric__result {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.375rem;
}

.metric__after {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.05;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.metric__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.625rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.metric__delta svg {
  width: 0.875rem;
  height: 0.875rem;
}

.metric__from {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.metric__from strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Barre de comparaison : la largeur du segment sombre est le rapport réel entre
   le chiffre de départ et le chiffre d'arrivée. Rien n'est extrapolé — quand la
   valeur de départ n'est pas chiffrable, la barre n'est pas affichée. */
.metric__bar {
  position: relative;
  height: 0.5rem;
  margin-top: 0.625rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  overflow: hidden;
}

.metric__bar-before {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--primary);
  min-width: 0.5rem;
}

/* Témoignage rattaché à une étude de cas.
   L'extrait est verbatim ; la photo et la fonction proviennent de la liste des
   témoignages, pour éviter deux sources de vérité sur la même personne. */
.case-quote {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.case-quote blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--foreground);
}

.case-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.case-quote figcaption img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.case-quote figcaption > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case-quote figcaption strong {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
}

.case-quote__role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Visionneuse d'image */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--background);
}

.lightbox__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
}

.lightbox img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

.lightbox figcaption {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ==========================================================================
   14. Formulaires / contact
   ========================================================================== */

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field label,
.field > .field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  transition: border-color 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--primary);
}

.field .hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.fieldset legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-step {
  display: grid;
  gap: 1.5rem;
}

.form-step + .form-step {
  margin-top: 2rem;
}

.form-step__title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

/* Case à cocher stylée en « pill » — reste une vraie checkbox pour le clavier
   et les lecteurs d'écran, contrairement aux <button> de la version React. */
.choice {
  position: relative;
  display: inline-flex;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--background);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.choice input:hover + span {
  background: var(--card);
}

.choice input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.notice {
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.notice--error {
  border: 1px solid color-mix(in srgb, var(--destructive) 40%, transparent);
  background: color-mix(in srgb, var(--destructive) 12%, transparent);
  color: var(--destructive);
}

.notice--success {
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--foreground);
}

.contact-aside {
  display: grid;
  gap: 2rem;
  align-content: start;
}

.contact-aside a {
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}

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

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-line svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   15. Blog
   ========================================================================== */

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

.post-card__cat {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
}

.post-card__title {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

.post-card__excerpt {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  flex-grow: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.post-meta svg {
  width: 1rem;
  height: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--muted);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.tag:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Corps d'article */
.prose {
  max-width: 42rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose p,
.prose li {
  color: var(--muted-foreground);
  line-height: 1.75;
}

.prose h2 {
  margin-top: 3rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: var(--foreground);
  line-height: 1.3;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--foreground);
}

.prose strong {
  color: var(--foreground);
  font-weight: 700;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.prose li::marker {
  color: var(--primary);
  font-weight: 700;
}

.prose table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.prose .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-top: 1.5rem;
}

.prose th {
  background: var(--muted);
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

.prose td {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  color: var(--muted-foreground);
}

.prose td:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--foreground);
}

.prose blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  font-style: italic;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pagination .page-numbers:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
  padding-block: 3rem;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__top {
    flex-direction: row;
    text-align: left;
  }
}

.site-footer__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.site-footer__name span {
  color: var(--primary);
}

.site-footer__tagline {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-row a {
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}

.social-row a:hover {
  color: var(--primary);
}

.social-row svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
  }
}

.site-footer__copy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}

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

/* ==========================================================================
   17. Divers
   ========================================================================== */

.error-page {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 1rem;
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: var(--primary);
}

.wp-block-image img {
  border-radius: var(--radius);
}

.alignwide,
.alignfull {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Repli sans JavaScript
   --------------------------------------------------------------------------
   `no-js` est retirée de <html> par le script d'amorçage, donc ces règles ne
   s'appliquent que si le JavaScript ne s'exécute pas. Tout ce qui serait sinon
   replié ou masqué s'affiche alors en entier — le contenu reste accessible.
   -------------------------------------------------------------------------- */

.no-js .requires-js {
  display: none;
}

.no-js .faq-item__panel[hidden],
.no-js .faq-group[hidden] {
  display: block;
}

.no-js .faq-item__trigger {
  cursor: default;
}

.no-js .faq-item__trigger svg {
  display: none;
}

.no-js .nav-toggle {
  display: none;
}

.no-js .mobile-nav[hidden] {
  display: block;
}

@media (min-width: 900px) {
  .no-js .mobile-nav[hidden] {
    display: none;
  }
}
