/*
Theme Name: Ressources Online
Theme URI: https://ressources.online
Author: Ressources.online
Author URI: https://ressources.online
Description: Thème WordPress pour Ressources.online - Consulting en outils numériques pour gagner en efficacité
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ressources-online
Tags: one-page, custom-menu, custom-logo, featured-images, translation-ready
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================
   RESSOURCES.ONLINE - WordPress Theme
   Charte graphique: Marine, Rouge, Crème, Orange, Olive
   #01123D · #BB0303 · #F0F5C8 · #ED7E08 · #868229
   Font: Montserrat
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   PALETTE PAR DÉFAUT : Marine & Feu
   ============================================================ */
:root {
  /* Couleurs principales */
  --primary: #01123D;
  --primary-dark: #000c28;
  --primary-light: #e8ecf5;
  --green: #868229;
  --green-light: #f0eed5;
  --purple: #BB0303;
  --purple-light: #f7e0e0;
  --orange: #ED7E08;
  --orange-light: #fdefd0;
  --dark: #01123D;
  --dark-medium: #1a2d5a;
  --text: #475569;
  --text-light: #94a3b8;
  --white: #ffffff;
  --cream: #F0F5C8;
  --cream-warm: #f5f8d5;
  --gray-light: #f1f5f9;
  --footer-dark: #000820;
  --shadow: rgba(0, 0, 0, 0.06);
  --shadow-md: rgba(0, 0, 0, 0.1);
  --shadow-colored: rgba(1, 18, 61, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 8px;
  --radius-lg: 16px;
  /* Variables de police */
  --font-body: 'Montserrat', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  /* Variables thématisées (hardcoded) */
  --hero-start: #000820;
  --hero-mid: #01123D;
  --hero-end: #BB0303;
  --header-bg: rgba(1, 18, 61, 0.95);
  --header-scrolled-bg: rgba(0, 8, 32, 0.98);
  --mobile-nav-bg: rgba(0, 8, 32, 0.98);
  --nav-hover-bg: rgba(237, 126, 8, 0.25);
  --tool-green-s: #868229;
  --tool-green-e: #6b6820;
  --tool-purple-s: #BB0303;
  --tool-purple-e: #8f0202;
  --tool-orange-s: #ED7E08;
  --tool-orange-e: #c26506;
  --page-hero-mid: #0a1f4d;
  --page-hero-before: rgba(1, 18, 61, 0.12);
  --page-hero-after: rgba(187, 3, 3, 0.1);
}

/* ============================================================
   POLICE 1 : Serif Classique (Playfair Display + Merriweather)
   ============================================================ */
/* Sans-Serif */
html[data-font="inter"]   { --font-body:'Inter',sans-serif;           --font-heading:'Inter',sans-serif; }
html[data-font="poppins"] { --font-body:'Poppins',sans-serif;         --font-heading:'Poppins',sans-serif; }
/* Serif */
html[data-font="serif"]   { --font-body:'Merriweather',serif;         --font-heading:'Playfair Display',serif; }
html[data-font="lora"]    { --font-body:'Lora',serif;                 --font-heading:'Lora',serif; }
html[data-font="garamond"]{ --font-body:'EB Garamond',serif;          --font-heading:'EB Garamond',serif; }
/* Display */
html[data-font="display"] { --font-body:'Inter',sans-serif;           --font-heading:'Bebas Neue',cursive; }
html[data-font="oswald"]  { --font-body:'Inter',sans-serif;           --font-heading:'Oswald',sans-serif; }
/* Script */
html[data-font="script"]  { --font-body:'Lato',sans-serif;            --font-heading:'Pacifico',cursive; }
html[data-font="dancing"] { --font-body:'Nunito',sans-serif;          --font-heading:'Dancing Script',cursive; }
/* Monospace */
html[data-font="mono"]    { --font-body:'Space Mono',monospace;       --font-heading:'Space Mono',monospace; }
html[data-font="jetbrains"]{ --font-body:'JetBrains Mono',monospace;  --font-heading:'JetBrains Mono',monospace; }

/* ============================================================
   PALETTE 2 : Azur Classique
   ============================================================ */
html[data-theme="azur"] {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --green: #059669;
  --green-light: #d1fae5;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --orange: #ea580c;
  --orange-light: #ffedd5;
  --dark: #1e293b;
  --dark-medium: #334155;
  --cream: #f8fafc;
  --cream-warm: #fffbf5;
  --footer-dark: #0f172a;
  --shadow-colored: rgba(37, 99, 235, 0.15);
  --hero-start: #1e293b;
  --hero-mid: #1d4ed8;
  --hero-end: #7c3aed;
  --header-bg: rgba(30, 41, 59, 0.95);
  --header-scrolled-bg: rgba(15, 23, 42, 0.98);
  --mobile-nav-bg: rgba(15, 23, 42, 0.98);
  --nav-hover-bg: rgba(37, 99, 235, 0.25);
  --tool-green-s: #059669;
  --tool-green-e: #047857;
  --tool-purple-s: #7c3aed;
  --tool-purple-e: #6d28d9;
  --tool-orange-s: #ea580c;
  --tool-orange-e: #c2410c;
  --page-hero-mid: #1a365d;
  --page-hero-before: rgba(37, 99, 235, 0.12);
  --page-hero-after: rgba(124, 58, 237, 0.1);
}

/* ============================================================
   PALETTE 3 : Forêt Profonde
   ============================================================ */
html[data-theme="foret"] {
  --primary: #1a3d2b;
  --primary-dark: #0d2018;
  --primary-light: #d8f3dc;
  --green: #2d6a4f;
  --green-light: #b7e4c7;
  --purple: #52b788;
  --purple-light: #c7f5df;
  --orange: #95d5b2;
  --orange-light: #e8f8f0;
  --dark: #1a3d2b;
  --dark-medium: #2d6a4f;
  --cream: #d8f3dc;
  --cream-warm: #ecf8f0;
  --footer-dark: #081810;
  --shadow-colored: rgba(26, 61, 43, 0.15);
  --hero-start: #081810;
  --hero-mid: #1a3d2b;
  --hero-end: #2d6a4f;
  --header-bg: rgba(26, 61, 43, 0.95);
  --header-scrolled-bg: rgba(8, 24, 16, 0.98);
  --mobile-nav-bg: rgba(8, 24, 16, 0.98);
  --nav-hover-bg: rgba(82, 183, 136, 0.25);
  --tool-green-s: #2d6a4f;
  --tool-green-e: #1b4332;
  --tool-purple-s: #52b788;
  --tool-purple-e: #40916c;
  --tool-orange-s: #95d5b2;
  --tool-orange-e: #74c69d;
  --page-hero-mid: #1b4332;
  --page-hero-before: rgba(26, 61, 43, 0.15);
  --page-hero-after: rgba(82, 183, 136, 0.12);
}

/* ============================================================
   PALETTE 4 : Bordeaux Luxe
   ============================================================ */
html[data-theme="bordeaux"] {
  --primary: #4a0e0e;
  --primary-dark: #2d0808;
  --primary-light: #ffe0e0;
  --green: #6b2737;
  --green-light: #f9e0e6;
  --purple: #c9184a;
  --purple-light: #ffe0eb;
  --orange: #ff4d6d;
  --orange-light: #ffb3c1;
  --dark: #4a0e0e;
  --dark-medium: #800020;
  --cream: #fff0f0;
  --cream-warm: #fff5f5;
  --footer-dark: #1a0505;
  --shadow-colored: rgba(74, 14, 14, 0.15);
  --hero-start: #1a0505;
  --hero-mid: #4a0e0e;
  --hero-end: #c9184a;
  --header-bg: rgba(74, 14, 14, 0.95);
  --header-scrolled-bg: rgba(26, 5, 5, 0.98);
  --mobile-nav-bg: rgba(26, 5, 5, 0.98);
  --nav-hover-bg: rgba(201, 24, 74, 0.25);
  --tool-green-s: #6b2737;
  --tool-green-e: #4a0e1e;
  --tool-purple-s: #c9184a;
  --tool-purple-e: #9d0208;
  --tool-orange-s: #ff4d6d;
  --tool-orange-e: #c9184a;
  --page-hero-mid: #800020;
  --page-hero-before: rgba(74, 14, 14, 0.12);
  --page-hero-after: rgba(201, 24, 74, 0.1);
}

/* ============================================================
   PALETTE 5 : Ardoise Électrique
   ============================================================ */
html[data-theme="ardoise"] {
  --primary: #1e293b;
  --primary-dark: #0f172a;
  --primary-light: #e2e8f0;
  --green: #6366f1;
  --green-light: #e0e7ff;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --dark: #1e293b;
  --dark-medium: #334155;
  --cream: #f1f5f9;
  --cream-warm: #f8fafc;
  --footer-dark: #0f172a;
  --shadow-colored: rgba(30, 41, 59, 0.15);
  --hero-start: #0f172a;
  --hero-mid: #1e293b;
  --hero-end: #6366f1;
  --header-bg: rgba(30, 41, 59, 0.95);
  --header-scrolled-bg: rgba(15, 23, 42, 0.98);
  --mobile-nav-bg: rgba(15, 23, 42, 0.98);
  --nav-hover-bg: rgba(245, 158, 11, 0.25);
  --tool-green-s: #6366f1;
  --tool-green-e: #4f46e5;
  --tool-purple-s: #8b5cf6;
  --tool-purple-e: #7c3aed;
  --tool-orange-s: #f59e0b;
  --tool-orange-e: #d97706;
  --page-hero-mid: #1e3a5f;
  --page-hero-before: rgba(99, 102, 241, 0.12);
  --page-hero-after: rgba(139, 92, 246, 0.1);
}

/* ============================================================
   PALETTE 6 : Terre Brûlée
   ============================================================ */
html[data-theme="terre"] {
  --primary: #7c2d12;
  --primary-dark: #431407;
  --primary-light: #fef0e7;
  --green: #92400e;
  --green-light: #fde8ca;
  --purple: #ea580c;
  --purple-light: #ffedd5;
  --orange: #fb923c;
  --orange-light: #fed7aa;
  --dark: #7c2d12;
  --dark-medium: #9a3412;
  --cream: #fff7ed;
  --cream-warm: #fffbf5;
  --footer-dark: #2c0e05;
  --shadow-colored: rgba(124, 45, 18, 0.15);
  --hero-start: #2c0e05;
  --hero-mid: #7c2d12;
  --hero-end: #ea580c;
  --header-bg: rgba(124, 45, 18, 0.95);
  --header-scrolled-bg: rgba(44, 14, 5, 0.98);
  --mobile-nav-bg: rgba(44, 14, 5, 0.98);
  --nav-hover-bg: rgba(251, 146, 60, 0.25);
  --tool-green-s: #92400e;
  --tool-green-e: #78350f;
  --tool-purple-s: #ea580c;
  --tool-purple-e: #c2410c;
  --tool-orange-s: #fb923c;
  --tool-orange-e: #f97316;
  --page-hero-mid: #9a3412;
  --page-hero-before: rgba(124, 45, 18, 0.12);
  --page-hero-after: rgba(234, 88, 12, 0.1);
}

/* ============================================================
   PALETTE 7 : Nuit Violette
   ============================================================ */
html[data-theme="violette"] {
  --primary: #1e0a3c;
  --primary-dark: #0d0520;
  --primary-light: #ede9fe;
  --green: #4c1d95;
  --green-light: #ddd6fe;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --orange: #a855f7;
  --orange-light: #f3e8ff;
  --dark: #1e0a3c;
  --dark-medium: #3b0764;
  --cream: #faf5ff;
  --cream-warm: #f3e8ff;
  --footer-dark: #0d0520;
  --shadow-colored: rgba(30, 10, 60, 0.15);
  --hero-start: #0d0520;
  --hero-mid: #1e0a3c;
  --hero-end: #7c3aed;
  --header-bg: rgba(30, 10, 60, 0.95);
  --header-scrolled-bg: rgba(13, 5, 32, 0.98);
  --mobile-nav-bg: rgba(13, 5, 32, 0.98);
  --nav-hover-bg: rgba(168, 85, 247, 0.25);
  --tool-green-s: #4c1d95;
  --tool-green-e: #3b0764;
  --tool-purple-s: #7c3aed;
  --tool-purple-e: #6d28d9;
  --tool-orange-s: #a855f7;
  --tool-orange-e: #9333ea;
  --page-hero-mid: #3b0764;
  --page-hero-before: rgba(124, 58, 237, 0.12);
  --page-hero-after: rgba(168, 85, 247, 0.1);
}

/* ============================================================
   PALETTE 8 : Caramel Doré
   ============================================================ */
html[data-theme="caramel"] {
  --primary: #451a03;
  --primary-dark: #1a0a01;
  --primary-light: #fef3c7;
  --green: #78350f;
  --green-light: #fde8ca;
  --purple: #d97706;
  --purple-light: #fef3c7;
  --orange: #f59e0b;
  --orange-light: #fef9c3;
  --dark: #451a03;
  --dark-medium: #92400e;
  --cream: #fffbeb;
  --cream-warm: #fefce8;
  --footer-dark: #1a0a01;
  --shadow-colored: rgba(69, 26, 3, 0.15);
  --hero-start: #1a0a01;
  --hero-mid: #451a03;
  --hero-end: #d97706;
  --header-bg: rgba(69, 26, 3, 0.95);
  --header-scrolled-bg: rgba(26, 10, 1, 0.98);
  --mobile-nav-bg: rgba(26, 10, 1, 0.98);
  --nav-hover-bg: rgba(245, 158, 11, 0.25);
  --tool-green-s: #78350f;
  --tool-green-e: #451a03;
  --tool-purple-s: #d97706;
  --tool-purple-e: #b45309;
  --tool-orange-s: #f59e0b;
  --tool-orange-e: #d97706;
  --page-hero-mid: #92400e;
  --page-hero-before: rgba(69, 26, 3, 0.12);
  --page-hero-after: rgba(217, 119, 6, 0.1);
}

/* ============================================================
   PALETTE 9 : Cobalt Océan
   ============================================================ */
html[data-theme="cobalt"] {
  --primary: #1e3a5f;
  --primary-dark: #0a1928;
  --primary-light: #dbeafe;
  --green: #1d4ed8;
  --green-light: #bfdbfe;
  --purple: #3b82f6;
  --purple-light: #dbeafe;
  --orange: #60a5fa;
  --orange-light: #e0f2fe;
  --dark: #1e3a5f;
  --dark-medium: #1e40af;
  --cream: #eff6ff;
  --cream-warm: #f0f9ff;
  --footer-dark: #0a1928;
  --shadow-colored: rgba(30, 58, 95, 0.15);
  --hero-start: #0a1928;
  --hero-mid: #1e3a5f;
  --hero-end: #3b82f6;
  --header-bg: rgba(30, 58, 95, 0.95);
  --header-scrolled-bg: rgba(10, 25, 40, 0.98);
  --mobile-nav-bg: rgba(10, 25, 40, 0.98);
  --nav-hover-bg: rgba(59, 130, 246, 0.25);
  --tool-green-s: #1d4ed8;
  --tool-green-e: #1e40af;
  --tool-purple-s: #3b82f6;
  --tool-purple-e: #2563eb;
  --tool-orange-s: #60a5fa;
  --tool-orange-e: #3b82f6;
  --page-hero-mid: #1e40af;
  --page-hero-before: rgba(59, 130, 246, 0.12);
  --page-hero-after: rgba(96, 165, 250, 0.1);
}

/* ============================================================
   PALETTE 10 : Émeraude Jungle
   ============================================================ */
html[data-theme="emeraude"] {
  --primary: #064e3b;
  --primary-dark: #022c22;
  --primary-light: #d1fae5;
  --green: #065f46;
  --green-light: #a7f3d0;
  --purple: #059669;
  --purple-light: #d1fae5;
  --orange: #34d399;
  --orange-light: #ccfbf1;
  --dark: #064e3b;
  --dark-medium: #047857;
  --cream: #ecfdf5;
  --cream-warm: #f0fdf4;
  --footer-dark: #022c22;
  --shadow-colored: rgba(6, 78, 59, 0.15);
  --hero-start: #022c22;
  --hero-mid: #064e3b;
  --hero-end: #059669;
  --header-bg: rgba(6, 78, 59, 0.95);
  --header-scrolled-bg: rgba(2, 44, 34, 0.98);
  --mobile-nav-bg: rgba(2, 44, 34, 0.98);
  --nav-hover-bg: rgba(52, 211, 153, 0.25);
  --tool-green-s: #065f46;
  --tool-green-e: #064e3b;
  --tool-purple-s: #059669;
  --tool-purple-e: #047857;
  --tool-orange-s: #34d399;
  --tool-orange-e: #10b981;
  --page-hero-mid: #047857;
  --page-hero-before: rgba(5, 150, 105, 0.12);
  --page-hero-after: rgba(52, 211, 153, 0.1);
}

/* ============================================================
   PALETTE 11 : Delft & Tulipe
   ============================================================ */
html[data-theme="delft"] {
  --primary: #0033A0;
  --primary-dark: #002280;
  --primary-light: #dce8ff;
  --green: #4B6F44;
  --green-light: #d4e6d2;
  --purple: #4B6F44;
  --purple-light: #d4e6d2;
  --orange: #FF8200;
  --orange-light: #fff0d9;
  --dark: #0033A0;
  --dark-medium: #1a4db5;
  --cream: #FAFAFA;
  --cream-warm: #f5f7ff;
  --footer-dark: #002280;
  --shadow-colored: rgba(0, 51, 160, 0.15);
  --hero-start: #002280;
  --hero-mid: #0033A0;
  --hero-end: #FF8200;
  --header-bg: rgba(0, 51, 160, 0.95);
  --header-scrolled-bg: rgba(0, 34, 128, 0.98);
  --mobile-nav-bg: rgba(0, 34, 128, 0.98);
  --nav-hover-bg: rgba(255, 130, 0, 0.25);
  --tool-green-s: #3a5635;
  --tool-green-e: #4B6F44;
  --tool-purple-s: #4B6F44;
  --tool-purple-e: #3a5635;
  --tool-orange-s: #FF8200;
  --tool-orange-e: #e67300;
  --page-hero-mid: #0033A0;
  --page-hero-before: rgba(0, 51, 160, 0.12);
  --page-hero-after: rgba(255, 130, 0, 0.1);
}

/* ============================================================
   PALETTE 12 : Citrus & Encre
   ============================================================ */
html[data-theme="citrus"] {
  --primary: #0A0D10;
  --primary-dark: #050709;
  --primary-light: #e8f0f8;
  --green: #8B5718;
  --green-light: #fef3cd;
  --purple: #8B5718;
  --purple-light: #fef3cd;
  --orange: #F18307;
  --orange-light: #fff0d5;
  --dark: #0A0D10;
  --dark-medium: #1a2030;
  --cream: #FFF7DB;          /* fond des sections claires : un jaune pâle (#FFCC00 rendait les textes illisibles) */
  --cream-warm: #FFFBEA;
  --footer-dark: #050709;
  --shadow-colored: rgba(10, 13, 16, 0.18);
  --hero-start: #050709;
  --hero-mid: #0A0D10;
  --hero-end: #F18307;
  --header-bg: rgba(10, 13, 16, 0.95);
  --header-scrolled-bg: rgba(5, 7, 9, 0.98);
  --mobile-nav-bg: rgba(5, 7, 9, 0.98);
  --nav-hover-bg: rgba(241, 131, 7, 0.25);
  --tool-green-s: #6b4110;
  --tool-green-e: #8B5718;
  --tool-purple-s: #8B5718;
  --tool-purple-e: #6b4110;
  --tool-orange-s: #F18307;
  --tool-orange-e: #FFB832;
  --page-hero-mid: #0A0D10;
  --page-hero-before: rgba(10, 13, 16, 0.12);
  --page-hero-after: rgba(241, 131, 7, 0.1);
}

/* ============================================================
   PALETTE 13 : Noir & Blanc (niveaux de gris, l'accent est un gris moyen lisible sur blanc comme sur noir)
   ============================================================ */
html[data-theme="noir"] {
  --primary: #111111;
  --primary-dark: #000000;
  --primary-light: #ececec;
  --green: #4a4a4a;
  --green-light: #efefef;
  --purple: #2b2b2b;
  --purple-light: #e8e8e8;
  --orange: #6e6e6e;
  --orange-light: #ededed;
  --dark: #111111;
  --dark-medium: #2e2e2e;
  --text: #4b4b4b;
  --text-light: #8f8f8f;
  --cream: #f4f4f4;
  --cream-warm: #fafafa;
  --footer-dark: #000000;
  --shadow-colored: rgba(0, 0, 0, 0.16);
  --hero-start: #000000;
  --hero-mid: #111111;
  --hero-end: #3a3a3a;
  --header-bg: rgba(10, 10, 10, 0.95);
  --header-scrolled-bg: rgba(0, 0, 0, 0.98);
  --mobile-nav-bg: rgba(0, 0, 0, 0.98);
  --nav-hover-bg: rgba(255, 255, 255, 0.14);
  --tool-green-s: #3a3a3a;
  --tool-green-e: #1f1f1f;
  --tool-purple-s: #2b2b2b;
  --tool-purple-e: #111111;
  --tool-orange-s: #6e6e6e;
  --tool-orange-e: #4a4a4a;
  --page-hero-mid: #111111;
  --page-hero-before: rgba(0, 0, 0, 0.1);
  --page-hero-after: rgba(110, 110, 110, 0.1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 56px);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 1px;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

.section-subtitle {
  font-size: 0.875rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* --- Logo Text --- */
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-dot {
  color: var(--orange);
  font-size: 2rem;
}

.footer-logo-text {
  font-size: 1.3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-colored);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-light:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 20px var(--shadow-md);
  background: var(--header-scrolled-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

.header-inner nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo img,
.custom-logo {
  height: 50px;
  width: auto;
  transition: height var(--transition);
}

.header.scrolled .logo img,
.header.scrolled .custom-logo {
  height: 40px;
}

/* WordPress Nav Menu */
.nav-menu,
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a,
.nav-menu li a {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  display: block;
}

.nav-menu a:hover,
.nav-menu li a:hover {
  background: var(--nav-hover-bg);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--white);
  opacity: 0.75;
}

/* WordPress Dropdown */
.nav-menu li {
  position: relative;
}

.nav-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  transition: transform var(--transition);
}

.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px var(--shadow-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  flex-direction: column;
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--dark);
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}

.nav-menu .sub-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}



/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 60%, var(--hero-end) 100%);
  z-index: 2;
  transition: opacity 0.6s ease;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--white);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--orange);
  bottom: -150px;
  left: -100px;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--green);
  top: 40%;
  left: 60%;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}

.hero-content .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  opacity: 0.6;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Sections --- */
section {
  padding: 100px 0;
}

.section-light { background: var(--cream); }
.section-colored {
  background: linear-gradient(135deg, var(--cream) 0%, var(--primary-light) 100%);
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Feature Icons Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.feature-item {
  padding: 32px 16px;
}

.feature-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  transition: all var(--transition);
}

.feature-icon svg {
  width: 42px;
  height: 42px;
  stroke: var(--primary);
}

.feature-icon.icon-green { background: var(--green-light); }
.feature-icon.icon-green svg { stroke: var(--green); }
.feature-icon.icon-purple { background: var(--purple-light); }
.feature-icon.icon-purple svg { stroke: var(--purple); }
.feature-icon.icon-orange { background: var(--orange-light); }
.feature-icon.icon-orange svg { stroke: var(--orange); }

.feature-item:hover .feature-icon {
  background: var(--primary);
  transform: scale(1.1);
}

.feature-item:hover .feature-icon svg {
  stroke: var(--white);
}

.feature-item:hover .icon-green { background: var(--green); }
.feature-item:hover .icon-purple { background: var(--purple); }
.feature-item:hover .icon-orange { background: var(--orange); }

.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-item p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

/* --- About Section --- */
.about-text h3 { margin-bottom: 16px; }

.about-text p {
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text .btn { margin-top: 12px; }

/* --- Illustration Block --- */
.illustration-block {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-card {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--purple-light) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.illus-icon {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px var(--shadow-md);
}

.illus-icon svg {
  width: 36px;
  height: 36px;
}

.illus-icon-1 {
  background: var(--white);
  top: 40px;
  left: 40px;
  animation: float 6s ease-in-out infinite;
}
.illus-icon-1 svg { stroke: var(--primary); }

.illus-icon-2 {
  background: var(--green);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 8s ease-in-out infinite reverse;
}
.illus-icon-2 svg { stroke: var(--white); }

.illus-icon-3 {
  background: var(--white);
  bottom: 40px;
  right: 40px;
  animation: float 7s ease-in-out infinite;
}
.illus-icon-3 svg { stroke: var(--purple); }

/* --- Tool Cards --- */
.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md);
}

.tool-card-header {
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.tool-header-blue { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.tool-header-green { background: linear-gradient(135deg, var(--tool-green-s), var(--tool-green-e)); }
.tool-header-purple { background: linear-gradient(135deg, var(--tool-purple-s), var(--tool-purple-e)); }
.tool-header-orange { background: linear-gradient(135deg, var(--tool-orange-s), var(--tool-orange-e)); }

.tool-card-header h3 {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
}

.tool-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
}

.tool-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card-body p {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.tool-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
}

.tool-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 500;
}

.tool-feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
}

/* --- Tarifs --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 24px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
}

.pricing-card.featured::after {
  content: 'Populaire';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pricing-card h3 { margin-bottom: 8px; }

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 24px 0;
  line-height: 1;
}

.pricing-card .price [data-count] {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.pricing-card .price > span:not([data-count]) {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-card .price-desc {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--gray-light);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  flex-shrink: 0;
}

/* --- Page Articles --- */
.articles-hero {
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 60%, var(--hero-end) 100%);
  padding: 100px 0 70px;
  text-align: center;
}
.articles-hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--white);
  margin: 8px 0;
  line-height: 1;
}
.articles-hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-top: 12px;
}
.articles-page { padding: 60px 0 100px; }

/* Filtres */
.articles-filters-wrap {
  position: relative;
  margin-bottom: 52px;
}
.articles-filters-wrap::before,
.articles-filters-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}
.articles-filters-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--cream-warm, #fff), transparent);
}
.articles-filters-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--cream-warm, #fff), transparent);
}
.articles-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  justify-content: center;
}
.articles-filters::-webkit-scrollbar { display: none; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  transition: color 0.22s ease;
}
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -13px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px;
}
.filter-btn:hover { color: var(--primary); }
.filter-btn.active { color: var(--primary); }
.filter-btn.active::after { transform: scaleX(1); }
.filter-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  opacity: 0.7;
}
.filter-btn.active .filter-count { color: var(--primary); opacity: 1; }

/* Grille */
.articles-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .articles-masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .articles-masonry { grid-template-columns: 1fr; } }

/* Cards */
.acard {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.acard-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  position: absolute;
  visibility: hidden;
}
.acard-visible {
  opacity: 1;
  transform: scale(1);
  position: relative;
  visibility: visible;
}
.acard-inner {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px var(--shadow);
  text-decoration: none;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.32s ease;
}
.acard-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-md);
}
.acard-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cream-warm);
}
.acard-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.acard-inner:hover .acard-img { transform: scale(1.07); }
.acard-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--cream-warm));
}
.acard-img-placeholder svg { width: 48px; height: 48px; stroke: var(--primary); opacity: 0.4; }
.acard-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.acard-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.acard-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.acard-date {
  font-size: 0.75rem;
  color: var(--text-light);
}
.acard-read {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex; align-items: center; gap: 4px;
}
.acard-read::before {
  content: '·';
  font-size: 1.2em;
}
.acard-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
}
.acard-excerpt {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
}
.acard-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
  transition: gap 0.2s ease, color 0.2s ease;
}
.acard-cta svg { width: 14px; height: 14px; }
.acard-inner:hover .acard-cta { gap: 10px; color: var(--orange); }

.articles-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* --- Contact --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}

.contact-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--text);
  font-size: 0.9375rem;
}

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

.contact-signature {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(1,18,61,0.12);
  text-align: left;
}
.contact-signature a {
  font-family: 'Handlee', cursive !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  color: var(--primary);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
  display: inline-block;
  transform: rotate(-1.5deg);
  line-height: 1;
}
.contact-signature a:hover { opacity: 1; }

/* --- Contact Form --- */
.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px var(--shadow);
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
  background: var(--cream);
  color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* WPForms / CF7 compatibility */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
  background: var(--cream);
  color: var(--dark);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}

.wpcf7-submit,
.wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.wpcf7-submit:hover,
.wpforms-submit:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* --- Footer --- */
.footer {
  background: var(--footer-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-links a,
.footer .widget ul li a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer .widget ul li a:hover {
  color: var(--primary);
}

.footer .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.social-links a:hover svg { stroke: var(--white); }

.social-links svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.6);
}

/* --- Single Post / Article --- */
/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--page-hero-mid) 50%, var(--purple) 100%);
  padding: clamp(100px, 12vw, 160px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--page-hero-before);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--page-hero-after);
  pointer-events: none;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* --- Page Body --- */
.page-body {
  padding: clamp(48px, 6vw, 80px) 0 80px;
}

/* --- Single Post (articles) --- */
.single-post-section {
  padding-top: 140px;
  padding-bottom: 80px;
}

.single-header {
  margin-bottom: 48px;
  max-width: 900px;
}

.single-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.25;
}

/* --- Shared content styles --- */
.single-content {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.9;
  color: var(--text);
}

.single-content h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--dark);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.single-content h2::after {
  content: '';
  display: block;
}

.single-content h3 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--primary-dark);
}

.single-content p {
  margin-bottom: 20px;
}

.single-content > p:first-child {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--dark-medium);
  line-height: 1.8;
}

.single-content ul,
.single-content ol {
  margin: 16px 0 28px 0;
  padding-left: 0;
  list-style: none;
}

.single-content ol {
  counter-reset: ol-counter;
}

.single-content ul > li {
  padding-left: 28px;
  margin-bottom: 12px;
  position: relative;
}

.single-content ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.single-content ol > li {
  padding-left: 36px;
  margin-bottom: 14px;
  position: relative;
  counter-increment: ol-counter;
}

.single-content ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-content strong {
  color: var(--dark);
}

.single-content code {
  background: var(--gray-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-dark);
}

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

.single-content a:hover {
  color: var(--primary-dark);
}

.single-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.single-content th,
.single-content td {
  padding: 14px 20px;
  text-align: left;
}

.single-content th {
  background: var(--dark);
  font-weight: 600;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.single-content td {
  border-bottom: 1px solid var(--gray-light);
}

.single-content tr:last-child td {
  border-bottom: none;
}

.single-content tr:hover td {
  background: var(--primary-light);
}

.single-content figure {
  margin: 32px 0;
}

.single-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--dark-medium);
}

.single-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 2px solid var(--gray-light);
}

/* --- Hero Canvas & Backgrounds --- */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: block;
  pointer-events: none;
}
#heroBgImage {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.6s ease;
  opacity: 0;
  filter: brightness(0.4) saturate(0.8);
}
#heroBgImage.active { opacity: 1; z-index: 4; }
#heroBgVideo {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
#heroBgVideo iframe,
#heroBgVideo video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  pointer-events: none;
  filter: brightness(0.4) saturate(0.8);
}
/* Gradient couvre la vidéo dans les modes non-vidéo */
.hero[data-hero="video"] .hero-bg-gradient {
  opacity: 0;
}
/* Gradient semi-transparent sur image */
.hero[data-hero="image"] .hero-bg-gradient {
  opacity: 0.35;
}

/* --- Panneau Héro --- */
.tp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 0 16px;
}
.tp-hero-card {
  background: none;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}
.tp-hero-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.tp-hero-card.active { border-color: var(--primary); }
.tp-hero-preview {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 8px 8px 0 0;
  background: #0a0d1a;
}
.tp-hero-static {
  height: 72px;
  border-radius: 8px 8px 0 0;
}
.tp-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 4px;
}
.tp-hero-card.active .tp-hero-label { color: var(--primary); }
.tp-hero-url-wrap {
  margin-top: 12px;
  padding: 12px;
  background: var(--cream-warm);
  border-radius: 10px;
}
.tp-hero-url-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.tp-hero-url-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-size: 0.78rem;
  margin-bottom: 8px;
  font-family: var(--font-body);
  box-sizing: border-box;
}
.tp-hero-url-btn {
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* --- Scroll Progress Bar --- */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--primary));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* --- Ripple boutons --- */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: ripple-anim 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.85s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.85s cubic-bezier(0.25,0.46,0.45,0.94);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.85s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.85s cubic-bezier(0.25,0.46,0.45,0.94);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- Mobile Navigation Overlay --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--mobile-nav-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a,
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li a,
.mobile-nav > a {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 12px 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity var(--transition);
  display: block;
  text-align: center;
}

.mobile-nav li a:hover,
.mobile-nav > a:hover {
  opacity: 0.7;
  color: var(--primary);
}

.mobile-nav .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav .sub-menu li a {
  font-size: 0.9375rem;
  letter-spacing: 1px;
}

/* --- WordPress Admin Bar Fix --- */
.admin-bar .header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}


   BOUTON APPARENCE (header)
   ============================================================ */
.header button.btn-theme-settings {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 20px !important;
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 50px !important;
  background: linear-gradient(135deg, var(--orange) 0%, var(--primary) 100%) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.3) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  outline: none !important;
}
.header button.btn-theme-settings:hover {
  background: linear-gradient(135deg, var(--orange) 20%, var(--primary) 100%) !important;
  box-shadow: 0 4px 22px rgba(0,0,0,0.4) !important;
  transform: translateY(-1px) !important;
}
.header button.btn-theme-settings.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange) 100%) !important;
  transform: translateY(0) !important;
}
.header button.btn-theme-settings svg {
  width: 13px; height: 13px;
  stroke: currentColor; flex-shrink: 0;
  transition: transform 0.5s ease;
}
.header button.btn-theme-settings.active svg { transform: rotate(65deg); }

/* ============================================================
   OVERLAY
   ============================================================ */
.tp-overlay {
  position: fixed !important;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1099;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.tp-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

/* ============================================================
   PANNEAU PRINCIPAL
   ============================================================ */
.theme-panel {
  position: fixed !important;
  top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 90vw;
  background: #f8f9fa;
  z-index: 1100;
  transform: translateX(100%);
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
              visibility 0s linear 0.5s, opacity 0s linear 0.5s;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
}
.theme-panel.open {
  transform: translateX(0);
  visibility: visible; opacity: 1; pointer-events: auto;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
              visibility 0s linear 0s, opacity 0s linear 0s;
}

/* En-tête */
.tp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: var(--dark); color: var(--white); flex-shrink: 0;
}
.tp-head-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--white);
}
.tp-close {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.tp-close:hover { background: rgba(255,255,255,0.15); }

/* Onglets */
.tp-tabs {
  display: flex; border-bottom: 2px solid #e9ecef;
  background: var(--white); flex-shrink: 0;
}
.tp-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 8px;
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light); background: transparent; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all var(--transition);
}
.tp-tab svg { stroke: currentColor; }
.tp-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tp-tab:hover:not(.active) { color: var(--dark); background: var(--gray-light); }

/* Corps */
.tp-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px; }
.tp-section { display: block; }
.tp-section.hidden { display: none; }

/* Footer */
.tp-footer {
  padding: 12px 20px; border-top: 1px solid #e9ecef;
  font-size: 0.65rem; color: var(--text-light);
  text-align: center; flex-shrink: 0; background: var(--white);
}

/* ============================================================
   GRILLE COULEURS — 2 colonnes
   ============================================================ */
.tp-grid-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tp-color-card {
  display: flex; flex-direction: column; border-radius: 10px;
  overflow: hidden; border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition);
  background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: left;
}
.tp-color-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
.tp-color-card.active { border-color: var(--primary); }
.tp-color-card.selected-detail { outline: 3px solid var(--orange); outline-offset: 2px; }

.tp-color-strips { display: flex; height: 72px; }
.tp-color-strips span { flex: 1; display: block; }

.tp-color-label {
  padding: 8px 10px; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.5px; color: var(--dark); line-height: 1.3;
  background: var(--white); display: flex; align-items: center; gap: 4px;
}
.tp-color-card.active .tp-color-label::after { content: '✓'; color: var(--primary); margin-left: auto; }

.tp-info-btn {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0,0,0,0.08); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 0.6rem; font-weight: 700;
  margin-left: auto; flex-shrink: 0; transition: background var(--transition);
}
.tp-info-btn:hover { background: var(--primary); color: var(--white); }

/* ============================================================
   GRILLE POLICES — 1 colonne
   ============================================================ */
.tp-grid-fonts { display: flex; flex-direction: column; gap: 6px; }
.tp-font-group {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-light);
  padding: 10px 2px 4px; border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-top: 4px;
}
.tp-font-group:first-child { padding-top: 0; margin-top: 0; }

.tp-font-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: var(--white); border: 2px solid transparent;
  border-radius: 10px; cursor: pointer; transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-align: left;
}
.tp-font-card:hover { transform: translateX(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.tp-font-card.active { border-color: var(--primary); }
.tp-font-card.selected-detail { outline: 3px solid var(--orange); outline-offset: 2px; }

.tp-font-preview {
  width: 56px; height: 56px; border-radius: 8px;
  background: var(--gray-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; font-weight: 700;
  color: var(--dark); flex-shrink: 0; border: 1px solid rgba(0,0,0,0.06);
}
.tp-font-meta-wrap { flex: 1; min-width: 0; }
.tp-font-type {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 2px;
}
.tp-font-name { font-size: 0.8rem; font-weight: 600; color: var(--dark); }
.tp-font-card.active .tp-font-name { color: var(--primary); }
.tp-font-card.active::after { content: '✓'; margin-left: auto; color: var(--primary); font-size: 0.875rem; font-weight: 700; flex-shrink: 0; }

/* ============================================================
   PANNEAU DÉTAIL
   ============================================================ */
.tp-detail {
  position: fixed !important;
  top: 0; right: 300px; bottom: 0;
  width: 280px;
  background: var(--white);
  z-index: 1101;
  clip-path: inset(0 0 0 100%);
  pointer-events: none;
  transition: clip-path 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  display: flex; flex-direction: column;
  box-shadow: -6px 0 30px rgba(0,0,0,0.14);
}
.tp-detail.open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

/* Head détail */
.tp-detail-head {
  padding: 20px 20px 16px;
  flex-shrink: 0;
}
.tp-detail-back {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  background: transparent; border: none; cursor: pointer; padding: 0;
  margin-bottom: 14px; transition: color var(--transition);
}
.tp-detail-back:hover { color: var(--white); }
.tp-detail-title {
  font-size: 1.05rem; font-weight: 700; color: var(--white);
  letter-spacing: 0.5px; margin-bottom: 5px; line-height: 1.3;
}
.tp-detail-subtitle {
  font-size: 0.68rem; color: rgba(255,255,255,0.55); letter-spacing: 1px;
}

/* Body détail */
.tp-detail-body { flex: 1; overflow-y: auto; overflow-x: hidden; }

/* ---- Couleurs : style Casa Chromatica ---- */
.tp-detail-tags {
  display: flex; flex-wrap: wrap; gap: 5px; padding: 12px 16px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.tp-detail-tag {
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; background: rgba(255,255,255,0.2); color: var(--white);
}
.tp-color-row {
  display: flex; align-items: stretch;
  border-bottom: 1px solid #f0f0f0; transition: background var(--transition);
}
.tp-color-row:hover { background: #fafafa; }
.tp-color-row:last-of-type { border-bottom: none; }
.tp-color-swatch { width: 64px; flex-shrink: 0; min-height: 72px; }
.tp-color-info { padding: 14px 16px; flex: 1; }
.tp-color-cname {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--dark); margin-bottom: 5px;
}
.tp-color-hex { font-family: 'Courier New', monospace; font-size: 0.72rem; color: var(--text-light); }
.tp-color-usage {
  padding: 14px 16px; background: #f8f9fa; border-top: 1px solid #f0f0f0;
  font-size: 0.72rem; color: var(--text); line-height: 1.6;
  border-left: 3px solid var(--primary);
}

/* ---- Polices : style Font Psychology ---- */
.tp-font-det-section { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.tp-font-det-section:last-child { border-bottom: none; }
.tp-font-det-label {
  font-size: 0.56rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 8px;
}
.tp-font-det-h1 {
  font-size: 2rem; font-weight: 700; color: var(--dark);
  line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tp-font-det-h2 { font-size: 1.1rem; font-weight: 600; color: var(--dark); line-height: 1.3; }
.tp-font-det-body { font-size: 0.8rem; color: var(--text); line-height: 1.7; }
.tp-font-det-meta { padding: 12px 20px; background: #f8f9fa; border-top: 1px solid #e9ecef; }
.tp-font-det-meta-row { display: flex; gap: 10px; font-size: 0.68rem; margin-bottom: 6px; line-height: 1.4; }
.tp-font-det-meta-row:last-child { margin-bottom: 0; }
.tp-font-det-meta-lbl { font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dark); min-width: 52px; flex-shrink: 0; font-size: 0.6rem; }
.tp-font-det-meta-val { color: var(--text); }
.tp-font-det-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px 20px 16px; }
.tp-font-det-tag { padding: 3px 10px; border-radius: 20px; background: var(--primary-light); color: var(--primary); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }

/* ============================================================
   COMPOSANTS UI — aperçu dans le panneau de détail
   ============================================================ */
.tp-ui-block { padding: 0 0 8px; }
.tp-ui-block-label {
  font-size: 0.52rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-light);
  padding: 14px 16px 6px; border-top: 1px solid #f0f0f0;
}

/* Boutons */
.tp-ui-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.tp-ui-btn {
  padding: 6px 12px; border-radius: 6px; border: 2px solid transparent;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; cursor: default; line-height: 1;
}
.tp-ui-btn-ol { background: transparent !important; }
.tp-ui-btn-sm { padding: 4px 10px; font-size: 0.6rem; }
.tp-ui-btn-full { width: 100%; text-align: center; margin-top: 8px; }

/* Badges */
.tp-ui-badges { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 16px 10px; }
.tp-ui-badge {
  padding: 3px 9px; border-radius: 20px; font-size: 0.58rem;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.tp-ui-badge-ol { background: transparent !important; border: 1.5px solid; }

/* Carte */
.tp-ui-card { margin: 0 16px 10px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.tp-ui-card-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
}
.tp-ui-dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.tp-ui-card-title { font-size: 0.72rem; font-weight: 700; color: #fff; line-height: 1.2; }
.tp-ui-card-sub { font-size: 0.58rem; color: rgba(255,255,255,0.65); margin-top: 1px; }
.tp-ui-card-body { padding: 10px 12px; background: #fff; }
.tp-ui-card-body p { font-size: 0.68rem; color: #555; line-height: 1.5; margin-bottom: 8px; }
.tp-ui-card-foot { display: flex; align-items: center; justify-content: space-between; }

/* Notifications */
.tp-ui-notif {
  margin: 0 16px 8px; padding: 8px 10px; border-left: 3px solid;
  background: #f8f9fa; border-radius: 0 6px 6px 0;
}
.tp-ui-notif-title { font-size: 0.6rem; font-weight: 700; margin-bottom: 3px; }
.tp-ui-notif-text { font-size: 0.62rem; color: #666; line-height: 1.4; }

/* Formulaire */
.tp-ui-form { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 5px; }
.tp-ui-form-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #999; }
.tp-ui-form-input {
  padding: 6px 10px; border: 1.5px solid #e5e7eb; border-radius: 6px;
  font-size: 0.68rem; color: #bbb; background: #fafafa;
}

/* Responsive */
@media (max-width: 900px) { .tp-detail { display: none; } }
@media (max-width: 480px) { .theme-panel { width: 100%; max-width: 100%; } }

/* --- WordPress Admin Bar Fix --- */
.admin-bar .header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-2 { gap: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .btn-theme-settings span { display: none; }
  .btn-theme-settings { padding: 7px 10px; }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-2 .order-first { order: -1; }

  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p { font-size: 1rem; }

  .illustration-card { height: 280px; }
  .testimonial-card { padding: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

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

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

  .btn { width: 100%; justify-content: center; }

  .theme-panel { width: 100%; max-width: 100%; }
}

/* ============================================================
   ANIMATIONS PREMIUM — Pack Zeyna-inspired
   ============================================================ */

/* ---- Hero : gradient background animé ---- */
@keyframes heroGradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-bg-gradient {
  background-size: 300% 300% !important;
  animation: heroGradientFlow 20s ease infinite;
}

/* ---- Hero : entrée staggerée ---- */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}
.hero-content .section-subtitle {
  animation: heroReveal 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.15s both;
}
.hero-content h1 {
  animation: heroReveal 1s cubic-bezier(0.25,0.46,0.45,0.94) 0.40s both;
}
.hero-content > p {
  animation: heroReveal 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.68s both;
}
.hero-buttons {
  animation: heroReveal 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.92s both;
}

/* ---- Feature items : stagger par nth-child ---- */
.features-grid .feature-item:nth-child(1) { transition-delay: 0s;    }
.features-grid .feature-item:nth-child(2) { transition-delay: 0.10s; }
.features-grid .feature-item:nth-child(3) { transition-delay: 0.20s; }
.features-grid .feature-item:nth-child(4) { transition-delay: 0.30s; }

/* ---- Feature icon : spring + rotation ---- */
.feature-icon {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(-8deg) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18) !important;
}

/* ---- Bouton : shimmer sweep au hover ---- */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-22deg);
  transition: left 0.6s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.btn:hover::after { left: 150%; }

/* ---- Nav : underline animée depuis le centre ---- */
.nav-menu a {
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 50%;
  width: 0; height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1),
              left   0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
  left: 0;
}
.nav-menu li.menu-item-has-children > a::after {
  display: none !important;
}

/* ---- Illustration icons : flottement staggeré ---- */
.illus-icon-1 { animation: float 7s  ease-in-out infinite; }
.illus-icon-2 { animation: float 5s  ease-in-out infinite 0.9s; }
.illus-icon-3 { animation: float 9s  ease-in-out infinite 1.8s; }

/* ---- Section subtitle : point pulsant ---- */
@keyframes dotPulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(1.4); }
}
.section-subtitle::before {
  content: '●';
  display: inline-block;
  margin-right: 7px;
  font-size: 0.5em;
  vertical-align: middle;
  color: var(--orange);
  animation: dotPulse 2.2s ease-in-out infinite;
}

/* ---- Section title : ligne d'accent animée ---- */
.section-title {
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--primary));
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.2s;
}
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-title.line-visible::after {
  width: 60px;
}
.text-center .section-title.line-visible::after {
  width: 80px;
}

/* ---- Cards : lift au hover ---- */
.price-card, .tool-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease !important;
}
.price-card:hover, .tool-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 30px 70px rgba(0,0,0,0.14) !important;
}

/* ---- Custom cursor (desktop) ---- */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  width: 30px; height: 30px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  opacity: 0.4;
}
.cursor-dot.hover-active  { width: 12px; height: 12px; }
.cursor-ring.hover-active { width: 46px; height: 46px; opacity: 0.2; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---- Logo : hover glow ---- */
.logo:hover .logo-text { color: rgba(255,255,255,0.85); }
.logo:hover .logo-dot  {
  text-shadow: 0 0 20px var(--orange);
  display: inline-block;
  animation: float 1s ease-in-out infinite;
}

/* ---- Scroll indicator : pulse + bounce ---- */
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  70%  { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.scroll-indicator {
  cursor: pointer;
  border-radius: 50%;
  animation: bounce 2s infinite, pulseRing 2.5s ease-out 1.5s infinite;
}

/* ============================================================
   ILLUSTRATION CARD — Animation réseau neuronal IA
   ============================================================ */

/* Tilt 3D (JS driven) */
.illustration-card {
  --gx: 50%; --gy: 50%;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.illustration-card:hover {
  box-shadow: 0 40px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1);
}

/* Réseau SVG */
.illus-network {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

@keyframes dashFlow {
  from { stroke-dashoffset: 20; }
  to   { stroke-dashoffset: 0; }
}
.net-line {
  stroke: rgba(255,255,255,0.35);
  stroke-width: 0.8;
  stroke-dasharray: 4 3;
  animation: dashFlow 2.5s linear infinite;
  fill: none;
}
.net-line-faint {
  stroke: rgba(255,255,255,0.12);
  stroke-dasharray: 2 5;
  animation-duration: 4s;
  animation-direction: reverse;
}
.net-node {
  fill: rgba(255,255,255,0.55);
}
@keyframes nodeGlow {
  0%, 100% { r: 1.8; opacity: 0.8; }
  50%       { r: 2.8; opacity: 1; }
}
.net-node-center {
  fill: var(--orange);
  filter: drop-shadow(0 0 4px var(--orange));
  animation: nodeGlow 2s ease-in-out infinite;
}
.net-traveler {
  fill: var(--orange);
  opacity: 0.85;
  filter: drop-shadow(0 0 3px var(--orange));
}
.net-t2 { fill: rgba(255,255,255,0.7); filter: none; opacity: 0.6; }
.net-t3 { fill: var(--primary); opacity: 0.5; }

/* Dot orbital — 2 orbites */
@keyframes orbit1 {
  from { transform: translate(-50%,-50%) rotate(0deg)   translateX(72px) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg) translateX(72px) rotate(-360deg); }
}
@keyframes orbit2 {
  from { transform: translate(-50%,-50%) rotate(180deg) translateX(52px) rotate(-180deg); }
  to   { transform: translate(-50%,-50%) rotate(540deg) translateX(52px) rotate(-540deg); }
}
.illus-orbit-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--orange), 0 0 6px rgba(255,255,255,0.8);
  animation: orbit1 7s linear infinite;
  z-index: 5;
  pointer-events: none;
}
.illus-orbit-dot-2 {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
  animation: orbit2 11s linear infinite;
}

/* Ligne de scan tech */
@keyframes scanSweep {
  0%   { top: -2%; opacity: 0; }
  4%   { opacity: 0.7; }
  96%  { opacity: 0.7; }
  100% { top: 102%; opacity: 0; }
}
.illus-scan {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 30%, var(--orange) 50%, rgba(255,255,255,0.55) 70%, transparent 100%);
  top: 0;
  animation: scanSweep 5s ease-in-out infinite 1.5s;
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(237,126,8,0.4);
}

/* Orbe lumière souris */
.illus-glow-orb {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
  left: var(--gx, 50%); top: var(--gy, 50%);
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 3;
  transition: left 0.08s linear, top 0.08s linear, opacity 0.3s ease;
  opacity: 0;
}
.illustration-card:hover .illus-glow-orb { opacity: 1; }

/* Pulse rings icône centrale */
@keyframes pulseRipple {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.55; }
  100% { transform: translate(-50%,-50%) scale(3.2); opacity: 0; }
}
.illus-pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--green);
  animation: pulseRipple 3.5s ease-out infinite;
  pointer-events: none;
  z-index: 2;
}
.illus-pulse-ring-2 { animation-delay: 1.75s; border-color: var(--orange); border-width: 1px; }

/* Remove old borderGlow on card */
.illustration-card { animation: none; }

/* ============================================================
   NEURAL NETWORK CANVAS SIMULATION
   ============================================================ */
.neural-card {
  background: transparent !important;
  overflow: hidden;
  padding: 0;
  min-height: 340px;
}
#neuralCanvas,
#neuralCanvas2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Carte circulaire pour la 2e simulation radiale */
#illusCard2 {
  width: 380px;
  height: 380px;
  max-width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(1,18,61,0.10), 0 8px 40px rgba(1,18,61,0.07);
}

/* ==========================================================================
   COUCHE 2.0 — SYSTÈME DE DESIGN
   --------------------------------------------------------------------------
   Le site laisse le visiteur choisir sa palette et sa police. Cette couche ne
   fixe donc aucune couleur en dur : elle dérive tout des variables de thème,
   pour que chaque composant tienne dans les douze palettes du panneau.
   ========================================================================== */

:root {
  /* Rôles sémantiques dérivés de la palette active */
  --surface:        var(--white);
  --surface-sunken: var(--gray-light);
  --surface-accent: var(--cream-warm);
  --ink:            var(--dark);
  --ink-soft:       var(--text);
  --ink-faint:      var(--text-light);
  --accent:         var(--orange);
  --accent-deep:    var(--purple);
  /* Repli pour les navigateurs sans color-mix() : la seconde déclaration
     n'est retenue que si elle est comprise. */
  --line:           rgba(1, 18, 61, 0.12);
  --line:           color-mix(in srgb, var(--primary) 12%, transparent);
  --line-strong:    rgba(1, 18, 61, 0.24);
  --line-strong:    color-mix(in srgb, var(--primary) 24%, transparent);
  --focus-ring:     var(--accent);

  /* Échelle typographique fluide : plus de sauts brutaux aux points de rupture */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.34rem + 0.8vw, 2rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.85rem + 2.7vw, 4.2rem);

  /* Rythme vertical unique pour toutes les sections */
  --section-y: clamp(64px, 9vw, 128px);
  --gap:       clamp(20px, 2.5vw, 36px);
}

/* Un débordement latéral restait possible : le html glissait à 444 px sur un
   écran de 375 px. Verrou aux deux niveaux. */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   1. ACCÈS — socle d'accessibilité
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px var(--shadow-md);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 16px;
}

/* Anneau de focus unique, visible sur fond clair comme sur fond sombre */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

#contenu:focus {
  outline: none;
}

/* Les ancres du menu ne doivent plus atterrir sous l'en-tête fixe */
[id] {
  scroll-margin-top: 96px;
}

/* Cibles tactiles : 44 px minimum sur écran tactile */
@media (hover: none), (pointer: coarse) {
  .nav-menu a,
  .mobile-nav a,
  .footer-links a,
  .footer-legal a,
  .directory-list a,
  .directory-cat a,
  .domain-link,
  .single-tags a,
  .breadcrumb a,
  .contact-info a,
  .social-links a,
  .btn,
  .tp-tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Boutons à icône : la surface tactile compte autant que le dessin */
  #themeSettingsBtn,
  .tp-close,
  .tp-hero-url-btn {
    min-width: 44px;
    min-height: 44px !important;
    justify-content: center;
  }

  .directory-list li {
    padding: 4px 0;
  }

  a,
  button {
    -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 25%, transparent);
  }
}

.btn,
button,
a {
  touch-action: manipulation;
}

/* Animations : respect strict de la préférence système */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1 !important;
    transform: none !important;
  }

  #heroBgVideo video,
  .tp-hero-card video {
    display: none;
  }
}

/* Zones sûres des téléphones à encoche */
.footer,
.mobile-nav {
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

/* --------------------------------------------------------------------------
   2. EN-TÊTE — correction du débordement mobile
   -------------------------------------------------------------------------- */

.header-inner {
  gap: 12px;
  min-width: 0;
}

.header-inner .logo {
  flex: 0 1 auto;
  min-width: 0;
}

.header-right {
  min-width: 0;
}

@media (max-width: 900px) {
  /* Le logo occupait 247 px sans jamais se réduire : à lui seul il poussait
     l'en-tête à 444 px de large sur un écran de 375 px. */
  .header-inner .logo img,
  .header-inner .custom-logo {
    height: 34px;
    max-width: 44vw;
    object-fit: contain;
    object-position: left center;
  }

  .header.scrolled .logo img,
  .header.scrolled .custom-logo {
    height: 30px;
  }

  .logo-text {
    font-size: clamp(0.95rem, 4.4vw, 1.25rem);
    white-space: nowrap;
  }

  /* Le libellé « Apparence » disparaît, l'icône et l'aria-label restent */
  #themeSettingsBtn {
    padding: 10px !important;
    gap: 0 !important;
  }

  #themeSettingsBtn .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  #themeSettingsBtn svg {
    width: 20px;
    height: 20px;
  }

  .hamburger {
    width: 44px;
    height: 44px;
  }
}

/* --------------------------------------------------------------------------
   3. SIGNATURE — le rail d'accroche
   --------------------------------------------------------------------------
   Chaque section s'ouvre sur un court trait qui prend la couleur d'accent de la
   palette choisie. C'est le seul ornement du site, et il dit quelque chose de
   vrai : la couleur appartient au visiteur, et elle le suit partout.
   -------------------------------------------------------------------------- */

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.section-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.section-eyebrow a:hover {
  text-decoration: underline;
}

.eyebrow-sep {
  opacity: 0.5;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head-tight {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-outils .section-title,
.error-404 .section-title {
  font-size: var(--step-3);
  line-height: 1.12;
  text-wrap: balance;
}

.section-title-sm {
  font-size: var(--step-2);
}

.section-outils .section-desc {
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   4. SECTION OUTILS — domaines d'intervention
   -------------------------------------------------------------------------- */

.section-outils {
  padding: var(--section-y) 0;
  background: var(--surface);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: var(--gap);
}

.domain-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  /* Pas de transition sur border-color : sa valeur vient d'une variable de
     palette, et l'interpolation restait bloquée sur la couleur précédente
     au changement de thème. */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.domain-card:hover,
.domain-card:focus-within {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px var(--shadow);
}

.domain-card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.domain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(237, 126, 8, 0.12);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.domain-icon svg {
  width: 24px;
  height: 24px;
}

.domain-kicker {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.domain-title {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

.domain-text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  text-wrap: pretty;
}

.domain-list {
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.domain-list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.domain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

.domain-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--ink);
  text-decoration: none;
}

.domain-link svg {
  transition: transform 0.25s ease;
}

.domain-link:hover {
  color: var(--accent);
}

.domain-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. ANNUAIRE — index éditorial des ressources
   -------------------------------------------------------------------------- */

.directory {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap);
}

.directory-cat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line-strong);
  font-size: var(--step-0);
}

.directory-cat a {
  color: var(--ink);
  text-decoration: none;
}

.directory-cat a:hover {
  color: var(--accent);
}

.directory-count {
  flex: none;
  font-size: var(--step--1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.directory-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.directory-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.directory-list a {
  min-width: 0;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.directory-list a:hover {
  color: var(--accent);
}

.directory-list time {
  flex: none;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.directory-empty {
  color: var(--ink-soft);
}

.directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}

/* --------------------------------------------------------------------------
   6. FORMULAIRE DE CONTACT
   -------------------------------------------------------------------------- */

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  margin-bottom: 7px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--step-0);
  line-height: 1.5;
  transition: box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: var(--ink-faint);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  outline: none;
}

.contact-form ::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

/* Case de consentement : la case et son libellé forment une seule cible */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-sunken);
}

.form-consent input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent label {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Retours d'envoi */
.form-feedback {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: var(--step--1);
  line-height: 1.55;
}

.form-feedback-ok {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--ink);
}

.form-feedback-error {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--ink);
}

/* Leurre anti-robot : hors écran mais toujours dans le flux */
.rc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 9px 18px;
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   7. FIL D'ARIANE
   -------------------------------------------------------------------------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

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

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink-soft);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. ARTICLE
   -------------------------------------------------------------------------- */

.single-title {
  font-size: var(--step-4);
  line-height: 1.08;
  text-wrap: balance;
}

.single-lead {
  max-width: 62ch;
  margin-top: 18px;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.single-content {
  max-width: 82ch;
}

.single-content > * + * {
  margin-top: 1.15em;
}

.single-content h2 {
  margin-top: 2em;
  font-size: var(--step-2);
  line-height: 1.2;
  text-wrap: balance;
}

.single-content h3 {
  margin-top: 1.6em;
  font-size: var(--step-1);
}

.single-content p,
.single-content li {
  line-height: 1.75;
}

.single-content a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.single-content a:hover {
  text-decoration-thickness: 2px;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.single-content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  font-size: 0.85rem;
  line-height: 1.6;
}

.single-content code {
  overflow-wrap: break-word;
}

.single-content blockquote {
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

/* Un tableau ne doit jamais élargir la page */
.single-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.single-tags a {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50px;
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.single-partage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 48px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-sunken);
}

.single-partage-titre {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.single-partage-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-partage-lien {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50px;
  background: transparent;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.single-partage-lien:hover,
.single-partage-lien:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.single-partage + .single-nav {
  margin-top: 24px;
}

@media (max-width: 520px) {
  .single-partage-liens { width: 100%; }
  .single-partage-lien { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

.single-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.single-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease;
}

.single-nav-item:hover {
  border-color: var(--accent);
  background: var(--surface-sunken);
}

.single-nav-next {
  text-align: right;
}

.single-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.single-nav-title {
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.single-cta {
  margin-top: 48px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
}

.single-cta h2 {
  margin: 0 0 10px;
  font-size: var(--step-2);
}

.single-cta p {
  max-width: 56ch;
  margin: 0 0 22px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.page-updated {
  margin-top: 40px;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   9. PAGE 404
   -------------------------------------------------------------------------- */

.error-404 {
  padding: calc(var(--section-y) + 80px) 0 var(--section-y);
}

.error-404-title {
  font-size: var(--step-4);
  line-height: 1.05;
  margin: 0 0 18px;
  text-wrap: balance;
}

.error-404-text {
  max-width: 52ch;
  margin: 0 0 32px;
  font-size: var(--step-1);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.error-404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-404-recent {
  max-width: 620px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   10. PIED DE PAGE
   -------------------------------------------------------------------------- */

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  }
}

.footer-brand p {
  max-width: 42ch;
  margin-top: 16px;
  line-height: 1.65;
}

.footer-title {
  margin: 0 0 16px;
  color: var(--white);   /* sinon la couleur des titres (--dark) disparaît sur le fond sombre du pied */
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 4px;
}

.footer-note {
  margin-top: 6px;
  font-size: var(--step--1);
  opacity: 0.7;
}

.footer-col .btn {
  margin-top: 16px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  margin: 0;
  font-size: var(--step--1);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: var(--step--1);
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
}

.footer-legal a:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   11. PAGES LÉGALES
   -------------------------------------------------------------------------- */

.legal-lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.legal-todo {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--orange-light);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.9em;
}

/* --------------------------------------------------------------------------
   12. CONTENU LONG — aucun texte ne doit casser la mise en page
   -------------------------------------------------------------------------- */

h1, h2, h3, h4,
p, li, td, dd, dt {
  overflow-wrap: break-word;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   13. PAGE CONSULTING IA ALSACE
   -------------------------------------------------------------------------- */

.ia-sections {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  margin-top: clamp(32px, 4vw, 56px);
}

.ia-alsace .single-lead {
  max-width: 68ch;
}

/* Étapes : une vraie séquence, donc une vraie numérotation */
.steps {
  counter-reset: etape;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap);
}

.steps li {
  counter-increment: etape;
  position: relative;
  padding: 24px 24px 24px 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.steps li::before {
  content: counter(etape);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: var(--step-0);
}

.steps p {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.65;
  color: var(--ink-soft);
}

.steps a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ : accordéon natif, accessible clavier sans une ligne de JS */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

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

.faq-item summary {
  padding: 16px 44px 16px 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Menu mobile : défilable et jamais coupé sous l'en-tête (iPhone, petits écrans).
   Les marges automatiques centrent le menu quand il tient, sans le couper quand il déborde.
   -------------------------------------------------------------------------- */
.mobile-nav {
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: 84px;
}
.mobile-nav > ul { margin: auto 0 !important; flex-shrink: 0; }
.mobile-nav .sub-menu { margin: 2px 0 8px !important; }
.mobile-nav .sub-menu li a { padding-top: 8px; padding-bottom: 8px; }

/* --------------------------------------------------------------------------
   Rubrique dans un sous-menu (ex. Outils > Santé) : un intertitre discret,
   ses outils en retrait juste dessous, sans second menu déroulant.
   -------------------------------------------------------------------------- */
.nav-menu .sub-menu .sub-menu {
  position: static; min-width: 0; margin: 0; padding: 0;
  background: transparent; box-shadow: none; border-radius: 0;
  opacity: 1; visibility: inherit; transform: none; transition: none;
}
.nav-menu .sub-menu li.menu-item-has-children > a {
  pointer-events: none; cursor: default; opacity: .6;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding-top: 12px; padding-bottom: 4px;
}
.nav-menu .sub-menu li.menu-item-has-children > a::after { display: none; }
.nav-menu .sub-menu .sub-menu a { padding-left: 34px; }
.mobile-nav .sub-menu li.menu-item-has-children > a { pointer-events: none; opacity: .55; font-size: .78rem; }

/* --------------------------------------------------------------------------
   Grand menu « Outils » (ordinateur) : les outils gratuits sur deux colonnes
   à gauche, les autres rubriques à droite. Classe menu-mega sur l'élément parent.
   -------------------------------------------------------------------------- */
.nav-menu .sub-menu { align-items: stretch; }
.nav-menu .sub-menu a { text-align: left; }
.nav-menu .menu-ic { width: 18px; height: 18px; flex: none; color: var(--orange); }
.nav-menu > li.menu-mega { position: static; }
.nav-menu > li.menu-mega > .sub-menu {
  left: 50%; top: 100%; transform: translate(-50%, 8px);
  width: min(820px, calc(100vw - 32px)); min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2px 26px; align-items: start;
  padding: 18px 16px; border-radius: 16px;
}
.nav-menu > li.menu-mega:hover > .sub-menu,
.nav-menu > li.menu-mega:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu > li.menu-mega > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; }
.nav-menu > li.menu-mega > .sub-menu > li:first-child { grid-column: 1; grid-row: 1 / span 6; }
.nav-menu > li.menu-mega > .sub-menu > li:not(:first-child) { grid-column: 2; }
.nav-menu > li.menu-mega > .sub-menu > li:first-child > .sub-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.nav-menu > li.menu-mega .sub-menu .sub-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .84rem; }
.nav-menu > li.menu-mega .sub-menu li.menu-item-has-children > a { padding: 10px 10px 6px; }
.nav-menu .sub-menu li.menu-item-has-children > a:not([href="#"]) { pointer-events: auto; cursor: pointer; }
.nav-menu .sub-menu li.menu-item-has-children > a:not([href="#"]):hover { opacity: 1; color: var(--primary); }
.nav-menu .menu-txt { display: grid; gap: 2px; }
.nav-menu .menu-desc { display: none; }
.nav-menu > li.menu-mega .menu-desc { display: block; font-size: .72rem; line-height: 1.35; opacity: .62; letter-spacing: 0; text-transform: none; font-weight: 400; }
.nav-menu > li.menu-mega .sub-menu .sub-menu a:has(.menu-desc) { align-items: flex-start; }
.nav-menu > li.menu-mega .sub-menu .sub-menu a .menu-ic { margin-top: 1px; }
.mobile-nav .menu-ic, .mobile-nav .menu-desc { display: none; }
.mobile-nav .sub-menu li.menu-item-has-children > a:not([href="#"]) { pointer-events: auto; }


/* ---- Accueil : liste des outils gratuits ---- */
.outils-gratuits { margin-top: clamp(48px, 7vw, 88px); }
.outils-gratuits-grille {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px;
}
.outils-gratuits-grille a {
  display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: inherit;
  text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.outils-gratuits-grille a:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--shadow-md); }
.outils-gratuits-grille a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.og-ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;
  color: var(--orange); background: color-mix(in srgb, var(--orange) 13%, transparent);
}
.og-txt { display: grid; gap: 4px; }
.og-txt strong { font-size: 1rem; }
.og-txt span { font-size: .88rem; line-height: 1.45; opacity: .78; }
.outils-gratuits-actions { text-align: center; margin: 22px 0 0; }


/* ---- En-tête : le logo n'est jamais comprimé ; faute de place, le menu se resserre, puis se replie
   derrière le bouton du menu mobile (classes posées par js/habillage.js selon la place réelle) ---- */
.header-inner .logo { flex-shrink: 0; }
.nav-menu > li > a { font-size: 0.875rem; }   /* menu principal un peu plus grand ; les sous-menus gardent leur taille */
.header .logo-text { white-space: nowrap; }
.header.menu-serre .nav-menu > li > a { padding-left: 9px; padding-right: 9px; letter-spacing: 0.5px; }
.header.menu-replie .header-inner nav { display: none; }
.header.menu-replie .header-right { margin-left: auto; }
.header.menu-replie .hamburger { display: flex; }
.header.menu-etroit .header-inner { gap: 8px; }
.header.menu-etroit .header-right { gap: 4px; }
.header.menu-etroit .logo-text { font-size: clamp(0.85rem, 4vw, 1.05rem); letter-spacing: 0; }
.header.menu-etroit #themeSettingsBtn { padding: 8px !important; }
.header.menu-etroit .btn-compte { padding: 8px; }
.header.menu-etroit .hamburger { width: 40px; height: 40px; padding: 6px; }

/* ---- Bouton « Se connecter / Mon compte » de l'en-tête (affiché par js/habillage.js) ---- */
.btn-compte {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); text-decoration: none; white-space: nowrap;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.btn-compte[hidden] { display: none; }
.btn-compte:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }
.btn-compte:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (max-width: 900px) {
  .btn-compte { padding: 10px; }
  .btn-compte .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Pages du compte (/compte/…) ---- */
.compte .container { max-width: 1040px; }
.compte-carte {
  max-width: 480px; margin: 0 auto 20px; padding: clamp(22px, 4vw, 34px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 28px var(--shadow);
}
.compte-carte h2 { font-size: 1.15rem; letter-spacing: 0; margin-bottom: 14px; }
.compte-form label { margin-top: 14px; }
.compte-form label:first-of-type { margin-top: 0; }
.compte-form .btn { margin-top: 18px; }
.compte-form input[type="password"] {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font-family: inherit; font-size: var(--step-0); line-height: 1.5;
}
.compte-form input[type="password"]:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none;
}
.compte-mdp { position: relative; }
.compte-mdp input { padding-right: 48px !important; }
.compte-voir {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink-soft); cursor: pointer; border-radius: 8px;
}
.compte-voir[aria-pressed="true"] { color: var(--accent); }
.compte-aide { margin-top: 6px; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.compte-case { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; margin-top: 16px; cursor: pointer; }
.compte-case input { width: 18px; height: 18px; accent-color: var(--accent); }
.compte-liens { margin-top: 14px; text-align: center; font-size: var(--step--1); }
.compte-liens a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.compte-msg { max-width: 480px; margin: 0 auto 18px; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; line-height: 1.5; }
.compte-msg-ok { background: color-mix(in srgb, #1f8a52 12%, var(--surface)); border: 1px solid color-mix(in srgb, #1f8a52 40%, transparent); color: #155c37; }
.compte-msg-erreur { background: color-mix(in srgb, #c2401b 10%, var(--surface)); border: 1px solid color-mix(in srgb, #c2401b 40%, transparent); color: #8d2c10; }
.compte-note-essai { max-width: 480px; margin: 0 auto 18px; font-size: var(--step--1); color: var(--ink-soft); text-align: center; }
.compte-fournisseurs { display: grid; gap: 10px; }
.compte-fournisseur { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; text-transform: none !important; letter-spacing: 0 !important; }
.compte-ou { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--ink-faint); font-size: var(--step--1); }
.compte-ou::before, .compte-ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.compte-atouts { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.compte-atouts li { position: relative; padding-left: 26px; font-size: var(--step--1); color: var(--ink-soft); }
.compte-atouts li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.compte-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.compte-grille .compte-carte { max-width: none; margin: 0; }
.compte-badge { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink); }
.compte-resume p { margin-bottom: 14px; }
.compte-connexions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compte-connexions li { display: flex; align-items: center; gap: 10px; }
.compte-connexions li span { flex: 1; font-weight: 600; }
.compte-connexions form { margin: 0; }
.compte .btn-lien { border: 0; background: none; padding: 6px 4px; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.compte-supprimer { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.compte-supprimer summary { cursor: pointer; font-weight: 600; color: #a3341a; }
.btn-danger { background: #b3361a; color: #fff; border: 0; }
.btn-danger:hover { background: #8f2a14; }

/* ==========================================================================
   PANNEAU APPARENCE (template-parts/entete.php, js/habillage.js)
   Aéré et ludique : le site change en direct au survol, un clic garde le choix.
   Couleurs neutres pour le panneau lui-même ; l'accent suit la palette essayée.
   ========================================================================== */
.ap-voile {
  position: fixed; inset: 0; z-index: 1100; background: rgba(8, 12, 24, 0.22);
  opacity: 0; transition: opacity 0.25s ease;
}
.ap-voile.ouvert { opacity: 1; }
.ap-panneau {
  position: fixed; z-index: 1101; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: #0f172a; border-radius: 26px; box-shadow: 0 24px 70px rgba(2, 6, 23, 0.35);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.4;
  opacity: 0; transform: translateX(28px) scale(0.98); transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ap-panneau.ouvert { opacity: 1; transform: none; }
.ap-panneau :where(p, h3) { margin: 0; }
.ap-panneau :where(button) { font-family: inherit; }
.ap-panneau :where(button):focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.ap-poignee { display: none; }

.ap-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 24px 26px 6px; }
.ap-titre { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.02em; }
.ap-titre svg { color: var(--orange); animation: ap-tourne 12s linear infinite; }
.ap-sous { margin-top: 6px !important; font-size: 0.86rem; color: #64748b; line-height: 1.5; }
.ap-fermer {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: #f1f5f9; color: #0f172a; cursor: pointer; transition: transform 0.25s ease, background 0.2s ease;
}
.ap-fermer:hover { background: #e2e8f0; transform: rotate(90deg); }

.ap-onglets { display: flex; gap: 6px; margin: 14px 26px 2px; padding: 5px; background: #f1f5f9; border-radius: 999px; }
.ap-onglet {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px;
  border: 0; border-radius: 999px; background: transparent; color: #475569; font-size: 0.86rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.ap-onglet[aria-selected="true"] { background: #fff; color: #0f172a; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12); }
.ap-onglet[aria-selected="true"] svg { color: var(--orange); }

.ap-corps { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 26px 20px; scrollbar-width: thin; }
.ap-h { margin: 22px 0 12px !important; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; font-family: inherit; line-height: 1.2; }
.ap-section[hidden] { display: none; }
.ap-polices { padding-top: 18px; }

/* Ambiances */
.ap-duos { display: flex; flex-wrap: wrap; gap: 9px; }
.ap-duo {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 7px 16px 7px 7px;
  border: 1.5px solid #e2e8f0; border-radius: 999px; background: #fff; color: #0f172a; font-size: 1rem; cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1), border-color 0.15s ease, box-shadow 0.15s ease;
}
.ap-duo:hover { transform: translateY(-2px) rotate(-1.5deg); border-color: var(--orange); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1); }
.ap-mini { flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #e2e8f0; }
.ap-duo-nom { white-space: nowrap; }

/* Palettes et polices */
.ap-palettes, .ap-polices { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.ap-carte {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 18px 10px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 20px; background: #fff; color: #0f172a; text-align: center; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1), border-color 0.15s ease, box-shadow 0.15s ease;
}
.ap-carte:hover { transform: translateY(-4px) scale(1.03); border-color: var(--orange); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12); }
.ap-rond {
  width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #e2e8f0, 0 8px 16px rgba(15, 23, 42, 0.14);
  transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.ap-carte:hover .ap-rond { transform: rotate(72deg); }
.ap-aa { font-size: 2.3rem; line-height: 1.1; margin-bottom: 6px; transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ap-carte:hover .ap-aa { transform: scale(1.15) rotate(-4deg); }
.ap-nom { font-size: 0.86rem; font-weight: 700; line-height: 1.25; }
.ap-police .ap-nom { font-size: 0.95rem; font-weight: 600; }
.ap-humeur { font-size: 0.72rem; color: #64748b; line-height: 1.35; }

/* Choix gardé : coche qui rebondit, anneau de la couleur d'accent */
.ap-coche {
  position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange); color: #fff; transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.ap-duo .ap-coche { position: static; width: 20px; height: 20px; margin-left: 2px; }
.ap-duo:not([aria-pressed="true"]) .ap-coche { display: none; }
[aria-pressed="true"] > .ap-coche { transform: scale(1); }
.ap-carte[aria-pressed="true"], .ap-duo[aria-pressed="true"] {
  border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 26%, transparent);
}
.ap-hop { animation: ap-hop 0.42s cubic-bezier(0.3, 1.6, 0.5, 1); }

/* Pied : surprise et retour */
.ap-pied { display: flex; gap: 10px; padding: 16px 26px 6px; border-top: 1px solid #eef2f7; }
.ap-surprise {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), color-mix(in srgb, var(--orange) 55%, #ff3d77));
  color: #fff; font-size: 0.98rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--orange) 35%, transparent); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ap-surprise:hover { transform: translateY(-2px); box-shadow: 0 14px 28px color-mix(in srgb, var(--orange) 45%, transparent); }
.ap-surprise:active { transform: scale(0.97); }
.ap-roule .ap-de { animation: ap-roule 0.65s cubic-bezier(0.3, 1.4, 0.5, 1); }
.ap-reinit {
  display: inline-flex; align-items: center; gap: 7px; min-height: 50px; padding: 0 18px; border: 1.5px solid #e2e8f0; border-radius: 999px;
  background: #fff; color: #334155; font-size: 0.86rem; font-weight: 700; cursor: pointer; transition: border-color 0.15s ease;
}
.ap-reinit:hover { border-color: #94a3b8; }
.ap-note { padding: 8px 26px 18px; font-size: 0.8rem; color: #64748b; text-align: center; min-height: 1.4em; }
.ap-note-vive { animation: ap-note 0.45s ease; color: #0f172a; font-weight: 600; }

@keyframes ap-hop { 0% { transform: scale(1); } 40% { transform: scale(0.92); } 100% { transform: scale(1); } }
@keyframes ap-roule { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes ap-note { from { opacity: 0.2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ap-tourne { to { transform: rotate(360deg); } }

/* Téléphone : tiroir qui monte du bas */
@media (max-width: 640px) {
  .ap-panneau {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88dvh; border-radius: 26px 26px 0 0;
    transform: translateY(48px);
  }
  .ap-poignee { display: block; width: 46px; height: 5px; margin: 10px auto 0; border-radius: 99px; background: #cbd5e1; }
  .ap-tete { padding: 14px 18px 4px; }
  .ap-onglets { margin: 12px 18px 2px; }
  .ap-corps { padding: 4px 18px 16px; }
  .ap-palettes, .ap-polices { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .ap-rond { width: 54px; height: 54px; }
  .ap-pied { padding: 12px 18px 4px; }
  .ap-note { padding: 6px 18px max(14px, env(safe-area-inset-bottom)); }
  .ap-reinit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.ap-ouvert, html.ap-ouvert body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-panneau, .ap-carte, .ap-duo, .ap-rond, .ap-aa, .ap-coche, .ap-surprise, .ap-fermer { transition: none; }
  .ap-titre svg, .ap-hop, .ap-roule .ap-de, .ap-note-vive { animation: none; }
  .ap-carte:hover, .ap-duo:hover, .ap-carte:hover .ap-rond, .ap-carte:hover .ap-aa { transform: none; }
}

/* ---- Espace « Mon compte » : identité, tuiles, réglages ---- */
.compte-espace { max-width: none; margin: 0 auto; }
/* L'espace personnel occupe toute la largeur de la page (demande : « pleine page ») ; les formulaires de connexion restent en carte centrée */
.page-compte .page-hero .container, .page-compte .page-body.compte > .container { max-width: none; padding-left: clamp(16px, 3vw, 56px); padding-right: clamp(16px, 3vw, 56px); }
.compte-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 1.5px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff;
  font: 600 0.95rem/1.2 var(--font-body); letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.compte-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 30%, transparent); color: #fff; }
.compte-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.compte-btn svg { width: 18px; height: 18px; }
.compte-btn-doux { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.compte-btn-doux:hover { color: var(--ink); border-color: var(--accent); box-shadow: none; }
.compte-btn-petit { min-height: 38px; padding: 0 16px; font-size: 0.86rem; }
.compte-btn-danger { background: #b3361a; border-color: #b3361a; }
.compte-btn-danger:hover { background: #8f2a14; box-shadow: none; }

.compte-identite {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: clamp(22px, 3vw, 32px);
  border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%);
  border: 1px solid var(--line); box-shadow: 0 10px 30px var(--shadow);
}
.compte-avatar {
  flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.compte-qui { flex: 1; min-width: 220px; }
.compte-nom { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.compte-mail { margin-top: 2px; color: var(--ink-soft); }
.compte-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.compte-badges .compte-badge { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.compte-badge-doux { background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.compte-badge-doux svg { width: 14px; height: 14px; }
.compte-depuis { font-size: 0.8rem; color: var(--ink-faint); }
.compte-sortie { margin: 0; }

.compte-titre-section { margin: 40px 0 16px; font-size: 1.25rem; letter-spacing: 0; scroll-margin-top: 110px; }
/* Espace personnel en poste de pilotage : volet de navigation à gauche, un écran par rubrique */
.page-body.compte-pilotage { padding-top: clamp(96px, 9vw, 118px); padding-bottom: 60px; background: var(--surface-sunken); min-height: 82vh; }
.cp { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.cp-volet { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px 12px; border-radius: 22px; background: var(--dark); color: #fff; box-shadow: 0 14px 34px var(--shadow-md); max-height: calc(100vh - 116px); overflow-y: auto; }
.cp-qui { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: 6px; min-width: 0; }
.cp-qui .compte-avatar { width: 46px; height: 46px; font-size: 1rem; box-shadow: none; }
.cp-qui > div { min-width: 0; }
.cp-nom { font-weight: 700; color: #fff; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-mail { font-size: 0.78rem; color: rgba(255, 255, 255, .62); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-menu { display: grid; gap: 2px; }
.cp-groupe { margin: 12px 10px 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.cp-lien { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .86); font: 600 0.93rem/1.2 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.cp-lien svg { flex: none; opacity: .8; }
.cp-lien span { flex: 1; min-width: 0; }
.cp-lien:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cp-lien[aria-current="page"] { background: var(--accent); color: #fff; }
.cp-lien[aria-current="page"] svg { opacity: 1; }
.cp-lien:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cp-compte { font-style: normal; font-size: 0.74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.cp-sortie { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); }
.cp-ecrans { min-width: 0; }
.cp-note { margin: 0 0 14px; font-size: var(--step--1); color: var(--ink-soft); }
.cp-ecrans .compte-msg { max-width: none; margin: 0 0 16px; }
.cp-ecran { padding: clamp(20px, 2.6vw, 34px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 24px var(--shadow); scroll-margin-top: 110px; }
.cp-ecran + .cp-ecran { margin-top: 20px; }
.cp-ecran[hidden] { display: none; }
.cp-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cp-titre { font-family: var(--font-heading); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: 0; line-height: 1.2; color: var(--ink); margin: 0; text-transform: none; }
.cp-sous { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.cp-tete .compte-badge { margin: 0; }
.cp-h2 { margin: 28px 0 12px; font-size: 1.02rem; font-weight: 700; letter-spacing: 0; }
.cp-rang { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cp-voir { color: var(--accent); font-weight: 600; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; }
.cp-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.cp-chiffre { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface-sunken); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
a.cp-chiffre { transition: border-color 0.15s ease, transform 0.15s ease; }
a.cp-chiffre:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.cp-chiffre-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 15%, var(--surface)); color: var(--accent); }
.cp-chiffre-txt { display: grid; gap: 2px; min-width: 0; }
.cp-chiffre-txt small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.cp-chiffre-txt strong { font-size: 1.12rem; line-height: 1.25; overflow-wrap: anywhere; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-recents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.cp-recents a, .cp-bientot-carte { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.cp-recents a:hover { border-color: var(--accent); color: var(--ink); }
.cp-recents a > svg { flex: none; color: var(--ink-faint); }
.cp-recent-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cp-recent-txt strong { font-size: 0.96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-recent-txt small { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; }
.cp-bientot { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.cp-bientot-carte { align-items: flex-start; background: var(--surface-sunken); border-style: dashed; }
.cp-bientot-carte .cp-chiffre-ic { background: var(--surface); color: var(--ink-soft); }
.cp-bientot-carte strong { white-space: normal; }
.cp-carte { max-width: 640px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.cp-carte + .cp-carte { margin-top: 16px; }
.cp-danger { border-color: color-mix(in srgb, #b3361a 35%, var(--line)); }
.cp-danger .compte-supprimer { margin: 0; padding: 0; border: 0; }
.cp-recherche { display: flex; align-items: center; gap: 10px; max-width: 420px; min-height: 46px; margin: 0 0 16px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink-soft); }
.cp-recherche:focus-within { border-color: var(--accent); }
.cp-recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; padding: 10px 0; }
.compte-carnets > li[hidden] { display: none; }
@media (max-width: 900px) {
  .page-body.compte-pilotage { padding-top: 88px; }
  .cp { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cp-volet { position: static; max-height: none; padding: 12px; border-radius: 18px; }
  .cp-qui { padding-bottom: 12px; }
  .cp-menu { display: flex; gap: 6px; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 6px; scrollbar-width: none; }
  .cp-menu::-webkit-scrollbar { display: none; }
  .cp-groupe { display: none; }
  .cp-menu .cp-lien { width: auto; flex: none; white-space: nowrap; background: rgba(255, 255, 255, .08); }
  .cp-menu .cp-lien[aria-current="page"] { background: var(--accent); }
  .cp-sortie { margin-top: 4px; padding-top: 6px; }
  .cp-ecran { padding: 18px 16px; border-radius: 18px; }
  .cp-actions .compte-btn { flex: 1 1 100%; }
}
/* Outils favoris */
.cp-favoris { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.cp-favoris:empty { display: none; }
.cp-fav, .cp-outil { display: flex; align-items: center; gap: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.cp-fav { padding: 12px 14px; transition: border-color 0.15s ease, transform 0.15s ease; }
.cp-fav:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.cp-fav svg, .cp-outil-lien svg { width: 20px; height: 20px; }
.cp-outils { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.cp-outil { gap: 0; padding-right: 6px; }
.cp-outil.est-favori { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.cp-outil-lien { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 12px; color: var(--ink); text-decoration: none; border-radius: 16px; }
.cp-outil-lien:hover { color: var(--accent); }
.cp-etoile-form { margin: 0; flex: none; }
.cp-etoile { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-faint); display: grid; place-items: center; cursor: pointer; transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.cp-etoile:hover { background: var(--surface-sunken); color: var(--accent); }
.cp-etoile[aria-pressed="true"] { color: var(--accent); }
.cp-etoile[aria-pressed="true"] svg { fill: currentColor; }
.cp-etoile:active { transform: scale(0.9); }
.cp-etoile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Carnets de route gardés dans le compte */
.compte-nombre { margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-soft); font: 700 0.78rem/1.4 var(--font-body); vertical-align: middle; }
.compte-vide { padding: 22px; border-radius: 20px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--ink-soft); }
.compte-vide a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.compte-aide-haut + .compte-carnets { margin-top: 12px; }
.compte-carnets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(520px, 100%), 1fr)); gap: 12px; }
.compte-carnets li { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 22px var(--shadow); }
.compte-carnet-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.compte-carnet-txt { flex: 1 1 240px; min-width: 0; display: grid; gap: 2px; }
.compte-carnet-txt strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.compte-carnet-txt span { font-size: 0.88rem; color: var(--ink-soft); }
.compte-carnet-txt small { font-size: 0.78rem; color: var(--ink-faint); }
.compte-carnet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.compte-carnet-actions form { margin: 0; }
.compte-carnet-actions .compte-btn svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .compte-carnet-actions { width: 100%; } .compte-carnet-actions .compte-btn { flex: 1 1 auto; } }
.compte-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.compte-tuile {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 20px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.compte-tuile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 30px var(--shadow-md); color: var(--ink); }
.compte-tuile-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.compte-tuile-txt { display: grid; gap: 6px; }
.compte-tuile-txt strong { font-size: 1.02rem; }
.compte-tuile-txt span { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.compte-bientot {
  position: absolute; top: 16px; right: 16px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-sunken); color: var(--ink-soft); font-size: 0.72rem; font-weight: 700;
}

.compte-ancres { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.compte-ancres a {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 0.86rem; font-weight: 600; text-decoration: none;
}
.compte-ancres a:hover { border-color: var(--accent); }
.compte-reglages { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.compte-bloc {
  scroll-margin-top: 110px; padding: clamp(22px, 3vw, 30px); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 22px var(--shadow);
}
.compte-bloc h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 14px; }
.compte-bloc form + form { margin-top: 20px; }
.compte-bloc .compte-btn { margin-top: 14px; }
.compte-ligne { display: flex; gap: 10px; align-items: stretch; }
.compte-ligne input { flex: 1; min-width: 0; }
.compte-ligne .compte-btn { margin-top: 0; flex: none; }
.compte-aide-haut { margin: -6px 0 14px; }
.compte-connexions li { padding: 12px 0; border-top: 1px solid var(--line); }
.compte-connexions li:first-child { border-top: 0; padding-top: 0; }
.compte-connexion-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink); flex: none; }
.compte-connexions li.est-lie .compte-connexion-ic { background: color-mix(in srgb, #1f8a52 14%, transparent); color: #1f8a52; }
.compte-connexion-nom { flex: 1; display: grid; }
.compte-connexion-nom small { color: var(--ink-soft); font-weight: 500; }
.compte-connexions li.est-lie .compte-connexion-nom small { color: #1f8a52; font-weight: 600; }
@media (max-width: 560px) {
  .compte-identite { gap: 16px; }
  .compte-avatar { width: 60px; height: 60px; font-size: 1.3rem; }
  .compte-sortie { width: 100%; }
  .compte-sortie .compte-btn { width: 100%; }
  .compte-reglages { grid-template-columns: 1fr; }
  .compte-ligne { flex-direction: column; }
  .compte-ligne .compte-btn { width: 100%; }
}

/* ---- Pages et articles en pleine page : texte lisible + sommaire « Sur cette page » (js/habillage.js) ---- */
.lecture { display: grid; grid-template-columns: minmax(0, 82ch) minmax(240px, 320px); gap: clamp(32px, 5vw, 88px); align-items: start; justify-content: space-between; }
.lecture .single-content { max-width: none; }
.sommaire-page {
  position: sticky; top: 110px; padding: 22px 22px 18px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px var(--shadow);
}
.sommaire-page summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.sommaire-page summary::-webkit-details-marker { display: none; }
.sommaire-page summary svg { transition: transform 0.2s ease; }
.sommaire-page details[open] summary svg { transform: rotate(180deg); }
.sommaire-page ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: sommaire; }
.sommaire-page li { counter-increment: sommaire; }
.sommaire-page a {
  display: flex; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--ink); font-size: 0.92rem; line-height: 1.4;
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.sommaire-page li a::before { content: counter(sommaire); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink-soft); font-size: 0.72rem; font-weight: 800; transition: background 0.2s ease, color 0.2s ease, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sommaire-page a:hover { background: var(--surface-sunken); }
.sommaire-page a[aria-current="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 700; }
.sommaire-page li a[aria-current="true"]::before { background: var(--accent); color: #fff; transform: scale(1.1); }
.sommaire-page .sommaire-haut { padding: 6px 10px; display: inline-block; margin: 10px 0 0; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.single-content h2[id] { scroll-margin-top: 110px; }
@media (max-width: 1000px) {
  .lecture { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sommaire-page { position: static; order: -1; padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .sommaire-page li a::before { transition: none; } }

/* ---- Menu tablette et téléphone : tiroir latéral (js/habillage.js) ---- */
.mobile-voile {
  position: fixed; inset: 0; z-index: 998; background: rgba(2, 6, 23, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.mobile-voile.active { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.mobile-nav {
  inset: 0 0 0 auto; width: min(440px, 100%); display: block;
  padding: 96px 0 max(28px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
  opacity: 1; visibility: hidden; transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.35s;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35); backdrop-filter: none;
}
.mobile-nav.active { visibility: visible; transform: none; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.mobile-nav > ul { margin: 0 !important; padding: 0 14px; }
.mobile-nav li { position: relative; }
.mobile-nav > ul > li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-nav > ul > li > a {
  display: flex; align-items: center; min-height: 56px; padding: 12px 60px 12px 16px; border-radius: 14px;
  color: var(--white); font-size: 1.08rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: rgba(255, 255, 255, 0.07); color: var(--white); opacity: 1; }
/* Page en cours seulement : sur l'accueil, WordPress marque aussi les liens vers ses sections (#…) */
.mobile-nav .current-menu-item > a:not([href*="#"]), .mobile-nav .current-menu-ancestor > a:not([href*="#"]), .mobile-nav .current_page_item > a:not([href*="#"]) { color: var(--orange); }
.mn-deplier {
  position: absolute; top: 6px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--white); cursor: pointer;
  transition: transform 0.25s ease, background 0.2s ease;
}
.mn-deplier:hover { background: rgba(255, 255, 255, 0.16); }
.mn-repliable.ouvert > .mn-deplier { transform: rotate(180deg); background: rgba(255, 255, 255, 0.16); }
.mobile-nav .mn-repliable > .sub-menu { display: none; margin: 0 0 10px !important; padding: 2px 0 6px 6px; }
.mobile-nav .mn-repliable.ouvert > .sub-menu { display: block; animation: mn-deplie 0.25s ease; }
.mobile-nav .sub-menu li a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; text-transform: none; text-align: left;
}
.mobile-nav .sub-menu .menu-ic { display: inline-block !important; width: 20px; height: 20px; flex: none; color: var(--orange); }
.mobile-nav .sub-menu .menu-desc { display: none !important; }
.mobile-nav .sub-menu li.menu-item-has-children > a {
  min-height: 0; padding: 14px 14px 4px; font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.6; pointer-events: auto;
}
.mobile-nav .sub-menu .sub-menu { display: block; padding: 0; margin: 0 !important; }
.mobile-nav .mn-cta {
  display: flex !important; align-items: center; justify-content: center; min-height: 54px; margin: 22px 16px 0; padding: 0 24px;
  text-transform: none; letter-spacing: 0; text-align: center;
  border-radius: 999px; background: var(--orange); color: #21160a !important; font-weight: 800; font-size: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.mobile-nav .mn-cta:hover { background: var(--orange) !important; color: #21160a !important; filter: brightness(1.06); }
@keyframes mn-deplie { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .mobile-voile, .mn-deplier { transition: none; }
  .mobile-nav .mn-repliable.ouvert > .sub-menu { animation: none; }
}

/* Sélecteur de langue de l'accueil (inc/langues.php), même allure que celui des outils */
.header-right #langueSite.select-langue {
  min-height: 36px; padding: 0 6px 0 10px; border-radius: 50px; cursor: pointer; flex-shrink: 0;
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  font: 700 .72rem/1 var(--font-body, inherit); letter-spacing: 1px;
}
.header-right #langueSite.select-langue:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }
#langueSite.select-langue option { color: #01123D; }
.mobile-nav #langueSite.select-langue {
  display: block; min-height: 44px; margin: 0 auto 12px; padding: 0 12px 0 16px; border-radius: 50px;
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .35); font: 700 .8rem/1 var(--font-body, inherit);
}


/* --------------------------------------------------------------------------
   Menu « Outils » : les outils rangés par thème, en liste compacte, avec une
   recherche (inc/outils-gratuits.php). La description d'un outil s'affiche en
   bas du panneau au survol ; sur téléphone, chaque thème se déplie.
   -------------------------------------------------------------------------- */
.nav-menu > li.menu-mega > .sub-menu {
  width: min(1120px, calc(100vw - 32px)); grid-template-columns: minmax(0, 1fr) 250px; gap: 0 22px; align-items: stretch; padding: 16px;
  max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain;
}
/* à droite, les autres rubriques forment un volet teinté, en liste serrée */
.nav-menu > li.menu-mega > .sub-menu::after {
  content: ""; position: absolute; z-index: 0; top: 10px; bottom: 10px; right: 10px; width: 262px; border-radius: 12px; background: var(--gray-light); pointer-events: none;
}
.nav-menu > li.menu-mega > .sub-menu > li { z-index: 1; }
.nav-menu > li.menu-mega > .sub-menu > li:not(.menu-outils) { padding: 0 2px; align-self: start; }
.nav-menu > li.menu-mega > .sub-menu > li:not(.menu-outils) > a { padding: 12px 10px 3px; }
.nav-menu > li.menu-mega > .sub-menu > li:not(.menu-outils) .sub-menu a { padding: 6px 10px; line-height: 1.3; }
.nav-menu > li.menu-mega > .sub-menu > li:not(.menu-outils) .sub-menu a:hover { background: var(--white); }
.nav-menu > li.menu-mega > .sub-menu > li:not(.menu-outils) .menu-desc { display: none; }
/* à gauche, le panneau des outils occupe toute la hauteur : la description reste en bas */
.nav-menu > li.menu-mega > .sub-menu > li.menu-outils { display: flex; flex-direction: column; }
.nav-menu > li.menu-mega > .sub-menu > li.menu-outils > a { padding: 4px 10px 8px; }
.nav-menu .mo { flex: 1; display: flex; flex-direction: column; }
.nav-menu .mo-themes { flex: 1; }
.mo [hidden] { display: none !important; }
.mo button { font: inherit; }
.nav-menu .mo { padding: 0 6px 2px 10px; }
.nav-menu .mo-tete { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.nav-menu .mo-cherche {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--primary-light); color: var(--dark); border: 1px solid transparent; cursor: text;
}
.nav-menu .mo-cherche:focus-within { border-color: var(--orange); background: var(--white); }
.nav-menu .mo-cherche svg { flex: none; opacity: .55; }
.mo-cherche input {
  flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; outline: none; color: inherit;
  font: inherit; font-size: .84rem; font-weight: 500; letter-spacing: 0; text-transform: none; -webkit-appearance: none; appearance: none;
}
.mo-cherche input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mo-cherche input::placeholder { color: inherit; opacity: .6; }
.nav-menu .sub-menu a.mo-tous {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  font-size: .8rem; font-weight: 700; color: var(--primary); border: 1px solid var(--line);
}
.nav-menu .sub-menu a.mo-tous:hover { border-color: var(--orange); background: transparent; }
.mo-c { font-style: normal; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--dark); }
.nav-menu .mo-themes { columns: 3 200px; column-gap: 14px; }
.nav-menu .mo-theme { break-inside: avoid; margin: 0 0 12px; }
.nav-menu .mo-t {
  display: flex; align-items: center; gap: 7px; width: 100%; margin: 0 0 2px; padding: 3px 8px; border: 0; background: none; cursor: default;
  color: color-mix(in srgb, var(--dark) 62%, transparent); font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-align: left;
}
.nav-menu .mo-t > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-menu .mo-t svg { flex: none; color: var(--orange); }
.nav-menu .mo-t .mo-c, .nav-menu .mo-t svg:last-child { display: none; }
.mo-theme ul { list-style: none; margin: 0; padding: 0; }
.nav-menu .mo-theme ul { display: block; }
.nav-menu .mo a::after { display: none; }
.nav-menu .mo-theme li { position: static; }
.nav-menu .sub-menu .mo-theme a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px; font-size: .84rem; line-height: 1.3; }
.nav-menu .sub-menu .mo-theme li.current-menu-item > a { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.nav-menu > li.menu-mega .mo .menu-desc, .mo .menu-desc { display: none !important; }
.nav-menu .mo-vide { margin: 0 0 10px; padding: 6px 8px; font-size: .84rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.nav-menu .mo-detail {
  display: flex; align-items: center; min-height: 44px; margin: 8px 0 0; padding: 9px 14px; border-radius: 12px; background: var(--gray-light);
  color: var(--text); font-size: .78rem; line-height: 1.4; font-weight: 400; letter-spacing: 0; text-transform: none;
}
.nav-menu .mo-detail .mo-desc { color: var(--text); }
.nav-menu .mo-detail .mo-desc strong { color: var(--dark); font-weight: 700; margin-right: 8px; }

.mobile-nav .mo { padding: 2px 0 6px; }
.mobile-nav .mo-tete { display: grid; gap: 8px; margin: 6px 8px 10px; }
.mobile-nav .mo-cherche { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: var(--white); }
.mobile-nav .mo-cherche svg { flex: none; opacity: .7; }
.mobile-nav .mo-cherche input { font-size: 1rem; }
.mobile-nav .sub-menu a.mo-tous { justify-content: space-between; }
.mobile-nav .mo-t {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 12px; background: none;
  color: rgba(255, 255, 255, 0.88); font-size: .95rem; font-weight: 600; text-align: left; cursor: pointer;
}
.mobile-nav .mo-t > svg:first-child { flex: none; width: 20px; height: 20px; color: var(--orange); }
.mobile-nav .mo-t > span { flex: 1; }
.mobile-nav .mo-t > svg:last-child { flex: none; opacity: .6; transition: transform .2s ease; }
.mobile-nav .mo-theme.ouvert .mo-t > svg:last-child { transform: rotate(180deg); }
.mobile-nav .mo-c { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.mobile-nav .mo-theme ul { display: none; margin: 0 0 6px 18px; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.mobile-nav .mo-theme.ouvert ul, .mobile-nav .mo.filtre .mo-theme ul { display: block; }
.mobile-nav .sub-menu .mo-theme li.current-menu-item > a { color: var(--white); font-weight: 700; background: rgba(255, 255, 255, 0.08); }
.mobile-nav .mo-vide { margin: 0; padding: 8px 14px; color: rgba(255, 255, 255, 0.7); font-size: .9rem; }
.mobile-nav .mo-detail { display: none; }

/* --------------------------------------------------------------------------
   Menu « Outils », version illustrée : chaque outil a sa pastille d'icône et une
   ligne qui dit ce qu'il fait ; à droite, parcours guidés en cartes, bien-être,
   prestations sur mesure. Tout le panneau vient de inc/outils-gratuits.php.
   -------------------------------------------------------------------------- */
.nav-menu > li.menu-mega > .sub-menu { width: min(1200px, calc(100vw - 32px)); display: block; padding: 18px; }
.nav-menu > li.menu-mega > .sub-menu::after { display: none; }
.nav-menu > li.menu-mega > .sub-menu > li.menu-outils > a { display: none; }
.nav-menu .mo { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 20px; padding: 0; align-items: start; }
.nav-menu .mo-principal { min-width: 0; }
.nav-menu .mo-tete { margin: 0 0 16px; }
.nav-menu .mo-cherche { height: 44px; padding: 0 16px; border-radius: 14px; }
.nav-menu .mo-cherche input { font-size: .9rem; }
.nav-menu .sub-menu a.mo-tous { height: 44px; padding: 0 14px; border-radius: 14px; gap: 8px; background: var(--white); }
.nav-menu .sub-menu a.mo-tous svg { color: var(--orange); flex: none; }
.nav-menu .sub-menu a.mo-tous:hover { background: var(--primary-light); }
.nav-menu .mo-themes { columns: 3 210px; column-gap: 18px; }
.nav-menu .mo-theme { margin: 0 0 14px; }
/* les têtes de rubrique : un bandeau plein, pour les distinguer d'un coup d'œil des outils */
.nav-menu .mo-t, .nav-menu .mo .mo-bt {
  margin: 0 0 6px; padding: 7px 10px; border: 0; border-radius: 9px; background: var(--primary); color: var(--white);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; line-height: 1.3;
}
.nav-menu .mo-t svg, .nav-menu .mo .mo-bt svg { color: var(--orange); }
.mo .mo-ic {
  flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px;
  background: color-mix(in srgb, var(--orange) 13%, transparent); color: var(--orange); transition: background .15s ease, color .15s ease;
}
.mo .mo-ic svg { width: 19px; height: 19px; margin: 0; color: inherit; }
.mo .mo-txt { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; }
.mo .mo-nom { font-weight: 600; letter-spacing: 0; text-transform: none; }
.mo .mo-court { display: block; font-size: .74rem; line-height: 1.3; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .72; }
.mo .mo-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; }
.mo .mo-neuf {
  flex: none; font-style: normal; font-size: .55rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5;
  padding: 1px 6px; border-radius: 999px; background: var(--orange); color: #21160a;
}
.nav-menu .sub-menu .mo-theme a, .nav-menu .sub-menu .mo-bloc a { display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: 12px; font-size: .86rem; line-height: 1.3; color: var(--dark); }
.nav-menu .sub-menu .mo-theme a:hover, .nav-menu .sub-menu .mo-theme a:focus-visible { background: var(--primary-light); }
.nav-menu .sub-menu .mo a:hover .mo-ic, .nav-menu .sub-menu .mo a:focus-visible .mo-ic,
.nav-menu .sub-menu .mo li.current-menu-item .mo-ic { background: var(--orange); color: #21160a; }
/* le volet de droite */
.nav-menu .mo-cote { display: grid; gap: 16px; align-content: start; padding: 14px 12px; border-radius: 16px; background: var(--gray-light); }
.mo-bloc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mo .mo-bt {
  display: flex; align-items: center; gap: 7px; margin: 0 0 6px; padding: 0 6px; color: var(--dark);
  font-size: .69rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.3;
}
.mo .mo-bt svg { flex: none; color: var(--orange); }
.nav-menu .mo-bloc li { position: static; }
.nav-menu .sub-menu .mo-bloc a.mo-carte { align-items: flex-start; padding: 10px; background: var(--white); border: 1px solid var(--line); }
.nav-menu .sub-menu .mo-bloc a.mo-carte:hover { border-color: var(--orange); background: var(--white); }
.nav-menu .mo-carte .mo-nom { white-space: normal; line-height: 1.3; }
.nav-menu .sub-menu .mo-bloc a:hover { background: var(--white); }
.nav-menu .sub-menu .mo-bloc a.mo-lien { gap: 9px; padding: 6px 8px; font-size: .84rem; font-weight: 500; }
.nav-menu .mo-lien svg { flex: none; color: var(--orange); }
@media (max-width: 1100px) {
  .nav-menu .mo { grid-template-columns: minmax(0, 1fr) 250px; }
  .nav-menu .mo-themes { columns: 2 200px; }
}

.mobile-nav .mo-tete { grid-template-columns: 1fr 1fr; }
.mobile-nav .mo-tete .mo-cherche { grid-column: 1 / -1; }
.mobile-nav .sub-menu a.mo-tous { min-height: 44px; gap: 8px; justify-content: flex-start; background: rgba(255, 255, 255, .06); }
.mobile-nav .sub-menu a.mo-tous { white-space: nowrap; padding: 0 12px; font-size: .88rem; }
.mobile-nav .sub-menu a.mo-tous svg { display: none; }
.mobile-nav .sub-menu a.mo-tous .mo-c { margin-left: auto; }
.mobile-nav .mo .mo-ic { background: rgba(255, 255, 255, .1); }
.mobile-nav .mo .mo-court { opacity: .62; white-space: normal; }
.mobile-nav .mo-cote { display: grid; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); }
.mobile-nav .mo .mo-bt { margin: 0; padding: 12px 14px 4px; color: rgba(255, 255, 255, .6); font-size: .72rem; letter-spacing: .12em; }
.mobile-nav .sub-menu a.mo-lien svg { flex: none; color: var(--orange); }

/* ---------- L'entrée « Outils » du menu : mise en avant, en pastille orange ---------- */
.nav-menu > li.menu-mega > a {
  padding: 9px 18px; border-radius: 12px; font-weight: 700; color: #21160a; opacity: 1;
  background: linear-gradient(135deg, var(--orange), color-mix(in srgb, var(--orange) 78%, #fff));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--orange) 38%, transparent);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.nav-menu > li.menu-mega > a::after { display: none; }
.nav-menu > li.menu-mega > a:hover, .nav-menu > li.menu-mega:hover > a, .nav-menu > li.menu-mega:focus-within > a { color: #21160a; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 24px color-mix(in srgb, var(--orange) 48%, transparent); }
.mobile-nav li.menu-mega > a { color: var(--orange); font-weight: 700; }
