﻿/* ═══════════════════════════════════════════════════════════════════════════
   APP.CSS — Patrimoine Naturel de France
   Thème : nature sauvage, forêts, montagne, bord de mer, faune française
═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body, 'Lato'), sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.3s ease;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 1 — FORÊT PROFONDE  (défaut)
   Nuit en sous-bois, lumière d'or filtrée par les frondaisons
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="foret-profonde"] {
  --color-bg-primary:    #070e07;
  --color-bg-secondary:  #0f1a0f;
  --color-bg-surface:    rgba(14,24,12,0.95);
  --color-bg-card:       rgba(10,18,10,0.97);
  --color-text-primary:  #e4ddc8;
  --color-text-secondary:#8fa882;
  --color-text-muted:    #4a6040;
  --color-accent:        #c8a84b;
  --color-accent-dark:   #8a6e28;
  --color-accent-light:  #e8c870;
  --color-accent-rgb:    200,168,75;
  --color-border:        rgba(200,168,75,0.18);
  --color-border-strong: rgba(200,168,75,0.45);
  --color-danger:        #c85050;
  --color-success:       #6ab870;
  --shadow-sm:           0 2px 8px rgba(0,8,0,0.6);
  --shadow-md:           0 4px 24px rgba(0,8,0,0.75);
  --shadow-lg:           0 12px 48px rgba(0,6,0,0.9);
  --shadow-accent:       0 0 28px rgba(200,168,75,0.2);
  --gradient-surface:    linear-gradient(160deg,rgba(14,24,12,0.97),rgba(8,14,8,0.99));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 2 — MONTAGNE GRANIT
   Granite des Alpes, aube sur les sommets, lacs glaciaires
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="montagne-granit"] {
  --color-bg-primary:    #0e1318;
  --color-bg-secondary:  #181f28;
  --color-bg-surface:    rgba(18,28,40,0.95);
  --color-bg-card:       rgba(12,20,30,0.97);
  --color-text-primary:  #dce8f0;
  --color-text-secondary:#7898b8;
  --color-text-muted:    #405870;
  --color-accent:        #90b8d8;
  --color-accent-dark:   #507898;
  --color-accent-light:  #c0d8ec;
  --color-accent-rgb:    144,184,216;
  --color-border:        rgba(144,184,216,0.18);
  --color-border-strong: rgba(144,184,216,0.45);
  --color-danger:        #d06060;
  --color-success:       #60b880;
  --shadow-sm:           0 2px 8px rgba(0,8,20,0.6);
  --shadow-md:           0 4px 24px rgba(0,8,20,0.75);
  --shadow-lg:           0 12px 48px rgba(0,6,16,0.9);
  --shadow-accent:       0 0 28px rgba(144,184,216,0.2);
  --gradient-surface:    linear-gradient(160deg,rgba(18,28,40,0.97),rgba(10,18,28,0.99));
  --font-heading:        'Raleway', sans-serif;
  --font-body:           'Open Sans', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 3 — CÔTE SAUVAGE
   Atlantique breton, falaises d'Étretat, embruns et tempêtes
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="cote-sauvage"] {
  --color-bg-primary:    #05101a;
  --color-bg-secondary:  #0d1e2e;
  --color-bg-surface:    rgba(8,22,36,0.95);
  --color-bg-card:       rgba(5,15,26,0.97);
  --color-text-primary:  #d8eef8;
  --color-text-secondary:#5898b8;
  --color-text-muted:    #305870;
  --color-accent:        #38b8d8;
  --color-accent-dark:   #1878a0;
  --color-accent-light:  #80d8f0;
  --color-accent-rgb:    56,184,216;
  --color-border:        rgba(56,184,216,0.18);
  --color-border-strong: rgba(56,184,216,0.45);
  --color-danger:        #d05858;
  --color-success:       #48c890;
  --shadow-sm:           0 2px 8px rgba(0,6,18,0.6);
  --shadow-md:           0 4px 24px rgba(0,6,18,0.75);
  --shadow-lg:           0 12px 48px rgba(0,4,14,0.9);
  --shadow-accent:       0 0 28px rgba(56,184,216,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(8,22,36,0.97),rgba(4,14,24,0.99));
  --font-heading:        'Merriweather', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 4 — AUBE DORÉE
   Lever de soleil sur les prairies, rosée du matin, lumière chaude
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="aube-doree"] {
  --color-bg-primary:    #140e04;
  --color-bg-secondary:  #201608;
  --color-bg-surface:    rgba(28,20,8,0.95);
  --color-bg-card:       rgba(20,14,4,0.97);
  --color-text-primary:  #f0e4c8;
  --color-text-secondary:#c09858;
  --color-text-muted:    #806030;
  --color-accent:        #e0a030;
  --color-accent-dark:   #a06818;
  --color-accent-light:  #f0c860;
  --color-accent-rgb:    224,160,48;
  --color-border:        rgba(224,160,48,0.18);
  --color-border-strong: rgba(224,160,48,0.45);
  --color-danger:        #d05050;
  --color-success:       #68b860;
  --shadow-sm:           0 2px 8px rgba(20,8,0,0.6);
  --shadow-md:           0 4px 24px rgba(20,8,0,0.75);
  --shadow-lg:           0 12px 48px rgba(16,6,0,0.9);
  --shadow-accent:       0 0 28px rgba(224,160,48,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(28,20,8,0.97),rgba(18,12,4,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Lora', serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 5 — LANDE SAUVAGE
   Landes de Gascogne, bruyère violette, crépuscule pourpre
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="lande-sauvage"] {
  --color-bg-primary:    #0d0814;
  --color-bg-secondary:  #180f22;
  --color-bg-surface:    rgba(22,12,32,0.95);
  --color-bg-card:       rgba(14,8,22,0.97);
  --color-text-primary:  #e8d8f4;
  --color-text-secondary:#9878b8;
  --color-text-muted:    #584870;
  --color-accent:        #b888d8;
  --color-accent-dark:   #7848a8;
  --color-accent-light:  #d8b0f0;
  --color-accent-rgb:    184,136,216;
  --color-border:        rgba(184,136,216,0.18);
  --color-border-strong: rgba(184,136,216,0.45);
  --color-danger:        #c85858;
  --color-success:       #68b878;
  --shadow-sm:           0 2px 8px rgba(8,0,18,0.6);
  --shadow-md:           0 4px 24px rgba(8,0,18,0.75);
  --shadow-lg:           0 12px 48px rgba(6,0,14,0.9);
  --shadow-accent:       0 0 28px rgba(184,136,216,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(22,12,32,0.97),rgba(14,8,22,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Raleway', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 6 — RIVIÈRE VERTE
   Ardèche, Dordogne, eaux émeraude, ripisylve, galets
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="riviere-verte"] {
  --color-bg-primary:    #060f0e;
  --color-bg-secondary:  #0e1c1a;
  --color-bg-surface:    rgba(10,22,20,0.95);
  --color-bg-card:       rgba(6,16,14,0.97);
  --color-text-primary:  #d0ece8;
  --color-text-secondary:#58a898;
  --color-text-muted:    #306858;
  --color-accent:        #48c8a8;
  --color-accent-dark:   #209878;
  --color-accent-light:  #80e0c8;
  --color-accent-rgb:    72,200,168;
  --color-border:        rgba(72,200,168,0.18);
  --color-border-strong: rgba(72,200,168,0.45);
  --color-danger:        #c85858;
  --color-success:       #48c8a8;
  --shadow-sm:           0 2px 8px rgba(0,10,8,0.6);
  --shadow-md:           0 4px 24px rgba(0,10,8,0.75);
  --shadow-lg:           0 12px 48px rgba(0,8,6,0.9);
  --shadow-accent:       0 0 28px rgba(72,200,168,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(10,22,20,0.97),rgba(6,14,12,0.99));
  --font-heading:        'Josefin Sans', sans-serif;
  --font-body:           'Nunito', sans-serif;
  --radius-sm:           6px; --radius-md:12px; --radius-lg:22px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 7 — FALAISE ROUGE
   Roussillon, Gorges du Verdon, grès rouge, soleil ardent
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="falaise-rouge"] {
  --color-bg-primary:    #140604;
  --color-bg-secondary:  #200c08;
  --color-bg-surface:    rgba(28,10,6,0.95);
  --color-bg-card:       rgba(20,6,4,0.97);
  --color-text-primary:  #f0e0d0;
  --color-text-secondary:#c07858;
  --color-text-muted:    #804830;
  --color-accent:        #e06828;
  --color-accent-dark:   #a83800;
  --color-accent-light:  #f09858;
  --color-accent-rgb:    224,104,40;
  --color-border:        rgba(224,104,40,0.18);
  --color-border-strong: rgba(224,104,40,0.45);
  --color-danger:        #d04040;
  --color-success:       #60b860;
  --shadow-sm:           0 2px 8px rgba(20,4,0,0.6);
  --shadow-md:           0 4px 24px rgba(20,4,0,0.75);
  --shadow-lg:           0 12px 48px rgba(16,2,0,0.9);
  --shadow-accent:       0 0 28px rgba(224,104,40,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(28,10,6,0.97),rgba(18,6,4,0.99));
  --font-heading:        'Oswald', sans-serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 8 — NEIGE & PINS
   Alpes en hiver, Vosges enneigées, silence des forêts de pins
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="neige-pins"] {
  --color-bg-primary:    #f0f0ec;
  --color-bg-secondary:  #e4e8e0;
  --color-bg-surface:    rgba(240,242,238,0.97);
  --color-bg-card:       rgba(248,250,246,0.99);
  --color-text-primary:  #1e2818;
  --color-text-secondary:#4a6040;
  --color-text-muted:    #90a888;
  --color-accent:        #3a6030;
  --color-accent-dark:   #1e4018;
  --color-accent-light:  #5a8850;
  --color-accent-rgb:    58,96,48;
  --color-border:        rgba(58,96,48,0.2);
  --color-border-strong: rgba(58,96,48,0.5);
  --color-danger:        #c04040;
  --color-success:       #3a8030;
  --shadow-sm:           0 2px 8px rgba(0,20,0,0.1);
  --shadow-md:           0 4px 20px rgba(0,20,0,0.16);
  --shadow-lg:           0 8px 40px rgba(0,20,0,0.22);
  --shadow-accent:       0 0 24px rgba(58,96,48,0.18);
  --gradient-surface:    linear-gradient(160deg,rgba(240,242,238,0.98),rgba(234,238,230,0.99));
  --font-heading:        'EB Garamond', serif;
  --font-body:           'Open Sans', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 9 — ÉLÉGANCE CÔTIÈRE
   Bleu océan, or clair, blanc pur — luxe côtier contemporain
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="elegance-cotiere"] {
  --color-bg-primary:    #0a1828;
  --color-bg-secondary:  #0f2236;
  --color-bg-surface:    rgba(12,28,42,0.95);
  --color-bg-card:       rgba(8,20,32,0.97);
  --color-text-primary:  #e8f4fc;
  --color-text-secondary:#7ab8d8;
  --color-text-muted:    #4a7890;
  --color-accent:        #4db8e8;
  --color-accent-dark:   #2878a8;
  --color-accent-light:  #80d8f8;
  --color-accent-rgb:    77,184,232;
  --color-border:        rgba(77,184,232,0.2);
  --color-border-strong: rgba(77,184,232,0.5);
  --color-danger:        #d06060;
  --color-success:       #50c880;
  --shadow-sm:           0 2px 8px rgba(0,10,20,0.6);
  --shadow-md:           0 4px 24px rgba(0,10,20,0.75);
  --shadow-lg:           0 12px 48px rgba(0,8,16,0.9);
  --shadow-accent:       0 0 28px rgba(77,184,232,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(12,28,42,0.97),rgba(8,18,32,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Inter', sans-serif;
  --radius-sm:           6px; --radius-md:12px; --radius-lg:20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 10 — FORÊT ANCESTRALE
   Vert foncé, brun cuivré, crème — luxe forestier naturel
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="foret-ancestrale"] {
  --color-bg-primary:    #0a1408;
  --color-bg-secondary:  #142008;
  --color-bg-surface:    rgba(16,28,12,0.95);
  --color-bg-card:       rgba(10,18,8,0.97);
  --color-text-primary:  #e4e8d8;
  --color-text-secondary:#8fa880;
  --color-text-muted:    #506840;
  --color-accent:        #a89060;
  --color-accent-dark:   #705830;
  --color-accent-light:  #d0b880;
  --color-accent-rgb:    168,144,96;
  --color-border:        rgba(168,144,96,0.2);
  --color-border-strong: rgba(168,144,96,0.5);
  --color-danger:        #c85050;
  --color-success:       #68b860;
  --shadow-sm:           0 2px 8px rgba(0,8,0,0.6);
  --shadow-md:           0 4px 24px rgba(0,8,0,0.75);
  --shadow-lg:           0 12px 48px rgba(0,6,0,0.9);
  --shadow-accent:       0 0 28px rgba(168,144,96,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(16,28,12,0.97),rgba(10,16,8,0.99));
  --font-heading:        'EB Garamond', serif;
  --font-body:           'Lora', serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 11 — MINIMALISTE PRO
   Gris graphite, néon vert — moderne & professionnel
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="minimaliste-pro"] {
  --color-bg-primary:    #0d0d0f;
  --color-bg-secondary:  #16161a;
  --color-bg-surface:    rgba(20,20,24,0.95);
  --color-bg-card:       rgba(14,14,18,0.97);
  --color-text-primary:  #e8e8ec;
  --color-text-secondary:#8a8a94;
  --color-text-muted:    #5a5a64;
  --color-accent:        #00ff88;
  --color-accent-dark:   #00cc66;
  --color-accent-light:  #33ffaa;
  --color-accent-rgb:    0,255,136;
  --color-border:        rgba(0,255,136,0.15);
  --color-border-strong: rgba(0,255,136,0.4);
  --color-danger:        #ff4466;
  --color-success:       #00ff88;
  --shadow-sm:           0 2px 8px rgba(0,255,136,0.05);
  --shadow-md:           0 4px 24px rgba(0,255,136,0.1);
  --shadow-lg:           0 12px 48px rgba(0,255,136,0.15);
  --shadow-accent:       0 0 28px rgba(0,255,136,0.3);
  --gradient-surface:    linear-gradient(160deg,rgba(20,20,24,0.97),rgba(14,14,18,0.99));
  --font-heading:        'Poppins', sans-serif;
  --font-body:           'Inter', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 12 — MINUIT ÉTOILÉ
   Noir profond, argent, violet discret — mystérieux & élégant
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="minuit-etoile"] {
  --color-bg-primary:    #05050a;
  --color-bg-secondary:  #0e0e16;
  --color-bg-surface:    rgba(12,12,20,0.95);
  --color-bg-card:       rgba(8,8,14,0.97);
  --color-text-primary:  #e8e8f0;
  --color-text-secondary:#a0a0b8;
  --color-text-muted:    #606070;
  --color-accent:        #b88ed8;
  --color-accent-dark:   #8050b8;
  --color-accent-light:  #d0b0f0;
  --color-accent-rgb:    184,142,216;
  --color-border:        rgba(184,142,216,0.2);
  --color-border-strong: rgba(184,142,216,0.45);
  --color-danger:        #d06060;
  --color-success:       #60c880;
  --shadow-sm:           0 2px 8px rgba(184,142,216,0.08);
  --shadow-md:           0 4px 24px rgba(184,142,216,0.12);
  --shadow-lg:           0 12px 48px rgba(184,142,216,0.18);
  --shadow-accent:       0 0 28px rgba(184,142,216,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(12,12,20,0.97),rgba(8,8,14,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Raleway', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 13 — DÉSERT BRONZE
   Sables brûlants, coucher de soleil sur les dunes
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="desert-bronze"] {
  --color-bg-primary:    #120a04;
  --color-bg-secondary:  #1e1008;
  --color-bg-surface:    rgba(28,16,8,0.95);
  --color-bg-card:       rgba(20,10,4,0.97);
  --color-text-primary:  #f0e4d0;
  --color-text-secondary:#c09060;
  --color-text-muted:    #806040;
  --color-accent:        #c87830;
  --color-accent-dark:   #904800;
  --color-accent-light:  #e8a860;
  --color-accent-rgb:    200,120,48;
  --color-border:        rgba(200,120,48,0.2);
  --color-border-strong: rgba(200,120,48,0.5);
  --color-danger:        #d04848;
  --color-success:       #68b060;
  --shadow-sm:           0 2px 8px rgba(30,8,0,0.65);
  --shadow-md:           0 4px 24px rgba(30,8,0,0.8);
  --shadow-lg:           0 12px 48px rgba(24,6,0,0.9);
  --shadow-accent:       0 0 28px rgba(200,120,48,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(28,16,8,0.97),rgba(18,10,4,0.99));
  --font-heading:        'Josefin Sans', sans-serif;
  --font-body:           'Open Sans', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 14 — OCÉAN TURQUOISE
   Lagune tropicale, eau cristalline des caraïbes
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="ocean-turquoise"] {
  --color-bg-primary:    #041420;
  --color-bg-secondary:  #082030;
  --color-bg-surface:    rgba(8,28,44,0.95);
  --color-bg-card:       rgba(4,18,32,0.97);
  --color-text-primary:  #d0f0f0;
  --color-text-secondary:#38c8c0;
  --color-text-muted:    #208888;
  --color-accent:        #20d9a3;
  --color-accent-dark:   #00a878;
  --color-accent-light:  #60f0c8;
  --color-accent-rgb:    32,217,163;
  --color-border:        rgba(32,217,163,0.2);
  --color-border-strong: rgba(32,217,163,0.5);
  --color-danger:        #d05858;
  --color-success:       #20d9a3;
  --shadow-sm:           0 2px 8px rgba(0,8,20,0.65);
  --shadow-md:           0 4px 24px rgba(0,8,20,0.8);
  --shadow-lg:           0 12px 48px rgba(0,6,16,0.9);
  --shadow-accent:       0 0 28px rgba(32,217,163,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(8,28,44,0.97),rgba(4,18,32,0.99));
  --font-heading:        'Quicksand', sans-serif;
  --font-body:           'Nunito', sans-serif;
  --radius-sm:           8px; --radius-md:14px; --radius-lg:24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 15 — AURORE BORÉALE
   Ciel nordique, lumières vertes dans la nuit arctique
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="aurore-boreale"] {
  --color-bg-primary:    #020810;
  --color-bg-secondary:  #06101e;
  --color-bg-surface:    rgba(6,16,28,0.95);
  --color-bg-card:       rgba(2,10,20,0.97);
  --color-text-primary:  #d8f8e8;
  --color-text-secondary:#28c878;
  --color-text-muted:    #189858;
  --color-accent:        #00e878;
  --color-accent-dark:   #00a848;
  --color-accent-light:  #40ffa0;
  --color-accent-rgb:    0,232,120;
  --color-border:        rgba(0,232,120,0.18);
  --color-border-strong: rgba(0,232,120,0.45);
  --color-danger:        #f04060;
  --color-success:       #00e878;
  --shadow-sm:           0 2px 8px rgba(0,232,120,0.06);
  --shadow-md:           0 4px 24px rgba(0,232,120,0.1);
  --shadow-lg:           0 12px 48px rgba(0,232,120,0.15);
  --shadow-accent:       0 0 28px rgba(0,232,120,0.35);
  --gradient-surface:    linear-gradient(160deg,rgba(6,16,28,0.97),rgba(2,10,20,0.99));
  --font-heading:        'Raleway', sans-serif;
  --font-body:           'Inter', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 16 — VELOURS PRUNE
   Pourpre profond, luxe mystérieux et sensuel
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="velours-prune"] {
  --color-bg-primary:    #100814;
  --color-bg-secondary:  #1c1028;
  --color-bg-surface:    rgba(24,14,36,0.95);
  --color-bg-card:       rgba(16,8,24,0.97);
  --color-text-primary:  #f0d8f8;
  --color-text-secondary:#b060c8;
  --color-text-muted:    #703888;
  --color-accent:        #d060d0;
  --color-accent-dark:   #9820a8;
  --color-accent-light:  #f090f0;
  --color-accent-rgb:    208,96,208;
  --color-border:        rgba(208,96,208,0.2);
  --color-border-strong: rgba(208,96,208,0.5);
  --color-danger:        #d04868;
  --color-success:       #60c880;
  --shadow-sm:           0 2px 8px rgba(100,0,120,0.35);
  --shadow-md:           0 4px 24px rgba(100,0,120,0.5);
  --shadow-lg:           0 12px 48px rgba(80,0,100,0.7);
  --shadow-accent:       0 0 28px rgba(208,96,208,0.32);
  --gradient-surface:    linear-gradient(160deg,rgba(24,14,36,0.97),rgba(14,8,24,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           6px; --radius-md:12px; --radius-lg:20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 17 — TERRE OCRE
   Argile rouge, falaises de latérite, chaleur équatoriale
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="terre-ocre"] {
  --color-bg-primary:    #120804;
  --color-bg-secondary:  #1e1008;
  --color-bg-surface:    rgba(26,14,6,0.95);
  --color-bg-card:       rgba(18,8,4,0.97);
  --color-text-primary:  #f0e0c8;
  --color-text-secondary:#c08050;
  --color-text-muted:    #805030;
  --color-accent:        #d89050;
  --color-accent-dark:   #a05820;
  --color-accent-light:  #f0b880;
  --color-accent-rgb:    216,144,80;
  --color-border:        rgba(216,144,80,0.2);
  --color-border-strong: rgba(216,144,80,0.5);
  --color-danger:        #d04040;
  --color-success:       #68b060;
  --shadow-sm:           0 2px 8px rgba(30,6,0,0.65);
  --shadow-md:           0 4px 24px rgba(30,6,0,0.8);
  --shadow-lg:           0 12px 48px rgba(24,4,0,0.9);
  --shadow-accent:       0 0 28px rgba(216,144,80,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(26,14,6,0.97),rgba(16,8,4,0.99));
  --font-heading:        'Oswald', sans-serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 18 — GLACIER BLEU
   Glace pure, froideur cristalline, silence arctique
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="glacier-bleu"] {
  --color-bg-primary:    #080e1c;
  --color-bg-secondary:  #102038;
  --color-bg-surface:    rgba(12,28,50,0.95);
  --color-bg-card:       rgba(6,18,38,0.97);
  --color-text-primary:  #d8f0f8;
  --color-text-secondary:#68a8d8;
  --color-text-muted:    #386888;
  --color-accent:        #50b8e8;
  --color-accent-dark:   #1878b8;
  --color-accent-light:  #88d8f8;
  --color-accent-rgb:    80,184,232;
  --color-border:        rgba(80,184,232,0.2);
  --color-border-strong: rgba(80,184,232,0.5);
  --color-danger:        #d05858;
  --color-success:       #50c898;
  --shadow-sm:           0 2px 8px rgba(0,10,30,0.6);
  --shadow-md:           0 4px 24px rgba(0,10,30,0.75);
  --shadow-lg:           0 12px 48px rgba(0,8,24,0.9);
  --shadow-accent:       0 0 28px rgba(80,184,232,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(12,28,50,0.97),rgba(6,18,38,0.99));
  --font-heading:        'Montserrat', sans-serif;
  --font-body:           'Inter', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 19 — CHAMP DORÉ
   Blé mûr sous le soleil d'été, chaleur de midi
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="champ-dore"] {
  --color-bg-primary:    #180c04;
  --color-bg-secondary:  #281608;
  --color-bg-surface:    rgba(34,18,8,0.95);
  --color-bg-card:       rgba(24,12,4,0.97);
  --color-text-primary:  #faf0d0;
  --color-text-secondary:#d0a840;
  --color-text-muted:    #906820;
  --color-accent:        #f0c840;
  --color-accent-dark:   #c09010;
  --color-accent-light:  #f8e070;
  --color-accent-rgb:    240,200,64;
  --color-border:        rgba(240,200,64,0.2);
  --color-border-strong: rgba(240,200,64,0.5);
  --color-danger:        #d04848;
  --color-success:       #68b060;
  --shadow-sm:           0 2px 8px rgba(30,12,0,0.65);
  --shadow-md:           0 4px 24px rgba(30,12,0,0.8);
  --shadow-lg:           0 12px 48px rgba(24,8,0,0.9);
  --shadow-accent:       0 0 28px rgba(240,200,64,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(34,18,8,0.97),rgba(22,12,4,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Lora', serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 20 — NOIR CINÉMA  ★ Inspiré 500px Dark / Behance Dark
   Noir absolu, minimaliste extrême, blanc pur comme accent
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="noir-cinema"] {
  --color-bg-primary:    #020202;
  --color-bg-secondary:  #0c0c0c;
  --color-bg-surface:    rgba(10,10,10,0.97);
  --color-bg-card:       rgba(6,6,6,0.98);
  --color-text-primary:  #f8f8f8;
  --color-text-secondary:#a0a0a0;
  --color-text-muted:    #505050;
  --color-accent:        #e8e8e8;
  --color-accent-dark:   #a0a0a0;
  --color-accent-light:  #ffffff;
  --color-accent-rgb:    232,232,232;
  --color-border:        rgba(255,255,255,0.1);
  --color-border-strong: rgba(255,255,255,0.3);
  --color-danger:        #e84040;
  --color-success:       #40e880;
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.8);
  --shadow-md:           0 4px 24px rgba(0,0,0,0.9);
  --shadow-lg:           0 16px 64px rgba(0,0,0,0.95);
  --shadow-accent:       0 0 24px rgba(255,255,255,0.08);
  --gradient-surface:    linear-gradient(160deg,rgba(10,10,10,0.98),rgba(4,4,4,0.99));
  --font-heading:        'Bebas Neue', sans-serif;
  --font-body:           'Inter', sans-serif;
  --radius-sm:           2px; --radius-md:4px; --radius-lg:8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 21 — STUDIO BLANC  ★ Inspiré SmugMug / Format.io / Squarespace Light
   Blanc pur, galerie lumineuse, texte charbon
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="studio-blanc"] {
  --color-bg-primary:    #ffffff;
  --color-bg-secondary:  #f4f4f4;
  --color-bg-surface:    rgba(252,252,252,0.97);
  --color-bg-card:       rgba(248,248,248,0.99);
  --color-text-primary:  #111111;
  --color-text-secondary:#555555;
  --color-text-muted:    #999999;
  --color-accent:        #1a1a1a;
  --color-accent-dark:   #000000;
  --color-accent-light:  #444444;
  --color-accent-rgb:    26,26,26;
  --color-border:        rgba(0,0,0,0.1);
  --color-border-strong: rgba(0,0,0,0.25);
  --color-danger:        #d03030;
  --color-success:       #2a9a2a;
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:           0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:           0 12px 48px rgba(0,0,0,0.18);
  --shadow-accent:       0 0 20px rgba(0,0,0,0.1);
  --gradient-surface:    linear-gradient(160deg,rgba(252,252,252,0.98),rgba(246,246,246,0.99));
  --font-heading:        'Montserrat', sans-serif;
  --font-body:           'Inter', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 22 — OR ROSE  ★ Inspiré Pixieset — Wedding & Portrait Photography
   Fond sombre chaud, accent or rose, élégance romantique
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="or-rose"] {
  --color-bg-primary:    #12080e;
  --color-bg-secondary:  #1e1018;
  --color-bg-surface:    rgba(26,12,20,0.95);
  --color-bg-card:       rgba(18,8,14,0.97);
  --color-text-primary:  #f8ede8;
  --color-text-secondary:#d4957c;
  --color-text-muted:    #9a6050;
  --color-accent:        #d4957c;
  --color-accent-dark:   #a06050;
  --color-accent-light:  #f0c0a8;
  --color-accent-rgb:    212,149,124;
  --color-border:        rgba(212,149,124,0.2);
  --color-border-strong: rgba(212,149,124,0.5);
  --color-danger:        #d04060;
  --color-success:       #60c880;
  --shadow-sm:           0 2px 8px rgba(20,4,10,0.65);
  --shadow-md:           0 4px 24px rgba(20,4,10,0.8);
  --shadow-lg:           0 12px 48px rgba(16,2,8,0.9);
  --shadow-accent:       0 0 28px rgba(212,149,124,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(26,12,20,0.97),rgba(16,8,14,0.99));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           6px; --radius-md:12px; --radius-lg:22px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 23 — CUIVRE & NUIT  ★ Landscape & Nature Photography Pro
   Bleu nuit profond, accent cuivre chaud, richesse naturelle
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="cuivre-nuit"] {
  --color-bg-primary:    #060a12;
  --color-bg-secondary:  #0e1420;
  --color-bg-surface:    rgba(10,18,32,0.95);
  --color-bg-card:       rgba(6,10,20,0.97);
  --color-text-primary:  #f0e4d8;
  --color-text-secondary:#c07840;
  --color-text-muted:    #885030;
  --color-accent:        #c07840;
  --color-accent-dark:   #904818;
  --color-accent-light:  #e09860;
  --color-accent-rgb:    192,120,64;
  --color-border:        rgba(192,120,64,0.2);
  --color-border-strong: rgba(192,120,64,0.5);
  --color-danger:        #c84848;
  --color-success:       #50c880;
  --shadow-sm:           0 2px 8px rgba(0,4,16,0.7);
  --shadow-md:           0 4px 24px rgba(0,4,16,0.85);
  --shadow-lg:           0 12px 48px rgba(0,2,12,0.92);
  --shadow-accent:       0 0 28px rgba(192,120,64,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(10,18,32,0.97),rgba(6,10,20,0.99));
  --font-heading:        'Oswald', sans-serif;
  --font-body:           'Open Sans', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 24 — PLATINE  ★ Modern Professional Photography
   Anthracite froid, platine argenté, sobriété professionnelle
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="platine"] {
  --color-bg-primary:    #0e0e14;
  --color-bg-secondary:  #16161e;
  --color-bg-surface:    rgba(20,20,28,0.95);
  --color-bg-card:       rgba(14,14,20,0.97);
  --color-text-primary:  #e8e8f0;
  --color-text-secondary:#9090a8;
  --color-text-muted:    #5a5a6a;
  --color-accent:        #a8b8c8;
  --color-accent-dark:   #7080a0;
  --color-accent-light:  #c8d8e8;
  --color-accent-rgb:    168,184,200;
  --color-border:        rgba(168,184,200,0.15);
  --color-border-strong: rgba(168,184,200,0.38);
  --color-danger:        #e04848;
  --color-success:       #48d080;
  --shadow-sm:           0 2px 8px rgba(0,0,10,0.7);
  --shadow-md:           0 4px 24px rgba(0,0,10,0.85);
  --shadow-lg:           0 12px 48px rgba(0,0,8,0.92);
  --shadow-accent:       0 0 24px rgba(168,184,200,0.18);
  --gradient-surface:    linear-gradient(160deg,rgba(20,20,28,0.97),rgba(12,12,20,0.99));
  --font-heading:        'Raleway', sans-serif;
  --font-body:           'Inter', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 25 — BRUME LILAS  ★ Fine Art & Ethereal Photography
   Violet profond, lilas doux, lumière tamisée onirique
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="brume-lilas"] {
  --color-bg-primary:    #0c0814;
  --color-bg-secondary:  #160e28;
  --color-bg-surface:    rgba(18,12,36,0.95);
  --color-bg-card:       rgba(12,8,24,0.97);
  --color-text-primary:  #f0e8f8;
  --color-text-secondary:#b088d8;
  --color-text-muted:    #705898;
  --color-accent:        #c8a0e8;
  --color-accent-dark:   #8860b8;
  --color-accent-light:  #e8c8ff;
  --color-accent-rgb:    200,160,232;
  --color-border:        rgba(200,160,232,0.18);
  --color-border-strong: rgba(200,160,232,0.42);
  --color-danger:        #e04070;
  --color-success:       #60d090;
  --shadow-sm:           0 2px 8px rgba(40,0,80,0.45);
  --shadow-md:           0 4px 24px rgba(40,0,80,0.6);
  --shadow-lg:           0 12px 48px rgba(30,0,60,0.8);
  --shadow-accent:       0 0 28px rgba(200,160,232,0.3);
  --gradient-surface:    linear-gradient(160deg,rgba(18,12,36,0.97),rgba(10,6,22,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Nunito', sans-serif;
  --radius-sm:           6px; --radius-md:12px; --radius-lg:22px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 26 — SAHARA  ★ Travel & Adventure Photography
   Sable brûlant, or du désert, horizon infini
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="sahara"] {
  --color-bg-primary:    #140a04;
  --color-bg-secondary:  #201408;
  --color-bg-surface:    rgba(28,18,8,0.95);
  --color-bg-card:       rgba(20,12,4,0.97);
  --color-text-primary:  #f8eed8;
  --color-text-secondary:#d4a050;
  --color-text-muted:    #946828;
  --color-accent:        #d4a050;
  --color-accent-dark:   #a06820;
  --color-accent-light:  #f0c878;
  --color-accent-rgb:    212,160,80;
  --color-border:        rgba(212,160,80,0.2);
  --color-border-strong: rgba(212,160,80,0.5);
  --color-danger:        #d04040;
  --color-success:       #60b058;
  --shadow-sm:           0 2px 8px rgba(30,8,0,0.7);
  --shadow-md:           0 4px 24px rgba(30,8,0,0.82);
  --shadow-lg:           0 12px 48px rgba(24,6,0,0.92);
  --shadow-accent:       0 0 28px rgba(212,160,80,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(28,18,8,0.97),rgba(18,10,4,0.99));
  --font-heading:        'Josefin Sans', sans-serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           3px; --radius-md:6px; --radius-lg:12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 27 — ENCRE & IVOIRE  ★ Classic Fine Art / Photo Lab Aesthetic
   Noir chaud comme l'encre de Chine, ivoire comme le papier baryté
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="encre-ivoire"] {
  --color-bg-primary:    #0c0c08;
  --color-bg-secondary:  #161610;
  --color-bg-surface:    rgba(20,20,14,0.96);
  --color-bg-card:       rgba(14,14,10,0.98);
  --color-text-primary:  #f8f4e8;
  --color-text-secondary:#c8c0a0;
  --color-text-muted:    #807860;
  --color-accent:        #e8d8a8;
  --color-accent-dark:   #b8a870;
  --color-accent-light:  #f8f0d8;
  --color-accent-rgb:    232,216,168;
  --color-border:        rgba(232,216,168,0.18);
  --color-border-strong: rgba(232,216,168,0.42);
  --color-danger:        #c84040;
  --color-success:       #60a858;
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.7);
  --shadow-md:           0 4px 24px rgba(0,0,0,0.82);
  --shadow-lg:           0 12px 48px rgba(0,0,0,0.92);
  --shadow-accent:       0 0 24px rgba(232,216,168,0.18);
  --gradient-surface:    linear-gradient(160deg,rgba(20,20,14,0.97),rgba(12,12,8,0.99));
  --font-heading:        'EB Garamond', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           3px; --radius-md:6px; --radius-lg:12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 28 — JADE IMPÉRIAL  ★ Luxury Nature / 1x.com Inspired
   Vert jade des profondeurs, or impérial, luxe intemporel
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="jade-imperial"] {
  --color-bg-primary:    #041008;
  --color-bg-secondary:  #081a10;
  --color-bg-surface:    rgba(8,22,14,0.95);
  --color-bg-card:       rgba(4,14,8,0.97);
  --color-text-primary:  #e0ece0;
  --color-text-secondary:#90c090;
  --color-text-muted:    #487848;
  --color-accent:        #d4a840;
  --color-accent-dark:   #a07820;
  --color-accent-light:  #f0d068;
  --color-accent-rgb:    212,168,64;
  --color-border:        rgba(212,168,64,0.2);
  --color-border-strong: rgba(212,168,64,0.5);
  --color-danger:        #d05050;
  --color-success:       #40c870;
  --shadow-sm:           0 2px 8px rgba(0,10,2,0.7);
  --shadow-md:           0 4px 24px rgba(0,10,2,0.85);
  --shadow-lg:           0 12px 48px rgba(0,8,2,0.92);
  --shadow-accent:       0 0 28px rgba(212,168,64,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(8,22,14,0.97),rgba(4,14,8,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Cormorant Garamond', serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 29 — NUIT BORDEAUX  ★ Romantic & Elegant Fine Art Photography
   Bordeaux velouté, or rosé, romantisme absolu
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="nuit-bordeaux"] {
  --color-bg-primary:    #0e0408;
  --color-bg-secondary:  #1a0810;
  --color-bg-surface:    rgba(22,8,14,0.95);
  --color-bg-card:       rgba(14,4,10,0.97);
  --color-text-primary:  #f8e8ec;
  --color-text-secondary:#c86080;
  --color-text-muted:    #884050;
  --color-accent:        #c86080;
  --color-accent-dark:   #983050;
  --color-accent-light:  #e890a8;
  --color-accent-rgb:    200,96,128;
  --color-border:        rgba(200,96,128,0.2);
  --color-border-strong: rgba(200,96,128,0.5);
  --color-danger:        #d04050;
  --color-success:       #58c870;
  --shadow-sm:           0 2px 8px rgba(20,0,8,0.65);
  --shadow-md:           0 4px 24px rgba(20,0,8,0.8);
  --shadow-lg:           0 12px 48px rgba(16,0,6,0.92);
  --shadow-accent:       0 0 28px rgba(200,96,128,0.3);
  --gradient-surface:    linear-gradient(160deg,rgba(22,8,14,0.97),rgba(12,4,10,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Lora', serif;
  --radius-sm:           6px; --radius-md:12px; --radius-lg:22px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALERIE — LAYOUTS SUPPLÉMENTAIRES
═══════════════════════════════════════════════════════════════════════════ */

/* ── Justifié : rangées de hauteur égale, largeur variable (Google Photos) ── */
.gallery-justified-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}
.gallery-justified-layout .gallery-item {
  flex: 1 0 200px;
  max-width: 420px;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}
.gallery-justified-layout .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.gallery-justified-layout .gallery-item:hover img { transform: scale(1.04); }

/* ── Plein Format : une photo par rangée, pleine largeur (Magazine/Editorial) ── */
.gallery-fullwidth-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-fullwidth-layout .gallery-item {
  width: 100%;
  height: clamp(300px, 55vw, 680px);
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}
.gallery-fullwidth-layout .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-fullwidth-layout .gallery-item:hover img { transform: scale(1.02); }
.gallery-fullwidth-layout .gallery-item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-fullwidth-layout .gallery-item:hover .gallery-item-caption { opacity: 1; }



/* ── Barre de navigation par dossier dans la médiathèque ─────────────────── */
.media-folder-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 32px;
}
.media-folder-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-secondary);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
  font-family: 'Lato', sans-serif;
  white-space: nowrap;
}
.media-folder-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb),0.08);
}
.media-folder-btn.active {
  background: rgba(var(--color-accent-rgb),0.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── Badge dossier sur les vignettes média ───────────────────────────────── */
.media-item-folder {
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  padding: 3px 6px;
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.85);
  font-size: 10px;
  font-family: 'Lato', sans-serif;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Séparateur d'ajout entre galeries (mode édition) ────────────────────── */
.gallery-add-separator {
  display: flex;
  justify-content: center;
  margin: -30px 0 30px;
  position: relative;
  z-index: 2;
}
.gallery-add-between {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Lato', sans-serif;
  box-shadow: var(--shadow-sm);
}
.gallery-add-between:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(var(--color-accent-rgb),0.08);
  transform: scale(1.04);
}
.gallery-add-between i { font-size: 15px; }


/* ── Media modal : serveur en premier, upload PC rétractable ─────────────── */
.media-server-section { margin-bottom: 0; }

.media-upload-section {
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
  padding-top: 12px;
}
.media-upload-toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  background: rgba(var(--color-accent-rgb),0.06);
  border: 1px dashed rgba(var(--color-accent-rgb),0.3);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Lato', sans-serif;
  text-align: left;
}
.media-upload-toggle:hover {
  background: rgba(var(--color-accent-rgb),0.12);
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb),0.6);
}
.media-upload-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}
.media-upload-chevron.open { transform: rotate(180deg); }
.upload-zone-wrapper { margin-top: 12px; }
.upload-zone-wrapper.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   BARRE D'ADMINISTRATION — Style premium nature
═══════════════════════════════════════════════════════════════════════════ */
#admin-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(4,8,4,0.99) 0%, rgba(8,14,6,0.99) 100%);
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.2);
  box-shadow:
    0 1px 0 rgba(var(--color-accent-rgb), 0.1),
    0 4px 32px rgba(0,0,0,0.7);
  z-index: 9000;
  padding: 0 24px;
  /* Liseré doré en haut */
  border-top: 2px solid var(--color-accent);
}

/* Grain subtil sur la barre admin */
#admin-bar::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: inherit;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  text-decoration: none;
  flex-shrink: 0;
}

.admin-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb),0.2), rgba(var(--color-accent-rgb),0.08));
  border: 1px solid rgba(var(--color-accent-rgb), 0.35);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--color-accent);
  box-shadow: 0 0 16px rgba(var(--color-accent-rgb), 0.15);
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}
.admin-logo:hover { box-shadow: 0 0 24px rgba(var(--color-accent-rgb), 0.3); }
.admin-logo img { width: 100%; height: 100%; object-fit: contain; }

#site-name-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  text-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.3);
}

/* Navigation centrale */
.admin-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  justify-content: center;
  height: 100%;
}

.nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 0 20px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(200,190,170,0.55);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  border-top: 2px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%; right: 50%;
  height: 2px;
  background: var(--color-accent);
  transition: left 0.25s ease, right 0.25s ease;
  border-radius: 2px;
}
.nav-link:hover { color: rgba(var(--color-accent-rgb), 0.85); }
.nav-link.active { color: var(--color-accent); }
.nav-link.active::after { left: 10%; right: 10%; }
.nav-link i { font-size: 11px; opacity: 0.7; }

/* Outils droite */
.admin-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 220px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.btn-admin {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: rgba(200,190,170,0.6);
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-admin:hover {
  background: rgba(var(--color-accent-rgb), 0.1);
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb), 0.3);
}
.btn-admin span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

.btn-edit {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: #0a0e08;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(var(--color-accent-rgb), 0.35),
              inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.25s ease;
  text-transform: uppercase;
}
.btn-edit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(var(--color-accent-rgb), 0.55),
              inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-edit.active {
  background: linear-gradient(135deg, #8a2020, #c03030);
  border-color: #c03030;
  color: #fff;
  box-shadow: 0 2px 16px rgba(180,40,40,0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BARRE D'ÉDITION
═══════════════════════════════════════════════════════════════════════════ */
.editor-bar {
  position: fixed;
  top: 64px; left: 0; right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(3,6,3,0.99), rgba(6,10,5,0.99));
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 8900;
  padding: 0 16px;
}
.editor-bar.hidden { display: none; }

.editor-bar-group {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.editor-bar-group:last-child { border-right: none; }
.editor-bar-group.ml-auto { margin-left: auto; }

.editor-bar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(var(--color-accent-rgb), 0.35);
  text-transform: uppercase;
  margin-right: 6px;
  white-space: nowrap;
}

.ebtn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  color: rgba(220,210,190,0.55);
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.ebtn:hover {
  background: rgba(var(--color-accent-rgb), 0.1);
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb), 0.25);
}
.ebtn i { font-size: 11px; }

.ebtn-save {
  background: rgba(100,180,90,0.08);
  border-color: rgba(100,180,90,0.25);
  color: #78c878;
}
.ebtn-save:hover { background: rgba(100,180,90,0.18); color: #98e898; }

.ebtn-exit {
  background: rgba(180,60,60,0.08);
  border-color: rgba(180,60,60,0.25);
  color: #c87878;
}
.ebtn-exit:hover { background: rgba(180,60,60,0.18); color: #e89898; }

.ebtn-danger { color: rgba(220,210,190,0.35); }
.ebtn-danger:hover { color: rgba(220,210,190,0.75); }

.editor-select {
  padding: 5px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: rgba(220,210,190,0.55);
  font-size: 12px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
}
.editor-select option { background: #0a100a; }

/* ═══════════════════════════════════════════════════════════════════════════
   CANVAS PRINCIPAL
═══════════════════════════════════════════════════════════════════════════ */
#app-main {
  margin-top: 64px;
  min-height: calc(100vh - 64px);
  transition: margin-top 0.3s ease;
}
body.edit-mode #app-main { margin-top: 114px; }

.page-canvas {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px);
  overflow: visible;
  transition: background 0.5s ease;
}

.canvas-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--color-accent-rgb),0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-accent-rgb),0.04) 1px, transparent 1px);
  background-size: 10px 10px;
  z-index: 0;
}
.canvas-grid.show { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   ÉLÉMENTS DU CANVAS
═══════════════════════════════════════════════════════════════════════════ */
.canvas-element {
  position: absolute;
  cursor: default;
  user-select: none;
  transition: opacity 0.2s ease;
}

body.edit-mode .canvas-element:not(.locked) { cursor: grab; }
body.edit-mode .canvas-element:not(.locked):hover::after {
  content: '';
  position: absolute; inset: -2px;
  border: 1px dashed rgba(var(--color-accent-rgb), 0.6);
  border-radius: 3px;
  pointer-events: none;
}
body.edit-mode .canvas-element.selected {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
body.edit-mode .canvas-element.dragging {
  cursor: grabbing !important;
  opacity: 0.88;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  z-index: 9999 !important;
}
body.edit-mode .canvas-element.locked {
  cursor: not-allowed;
  outline: 1px dashed rgba(180,80,80,0.5);
  outline-offset: 2px;
}

/* Poignées redimensionnement */
.resize-handle {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--color-accent);
  border: 2px solid rgba(8,14,8,0.9);
  border-radius: 50%;
  z-index: 10001;
  pointer-events: all;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.resize-handle.nw { top:-5px; left:-5px; cursor:nw-resize; }
.resize-handle.n  { top:-5px; left:50%; transform:translateX(-50%); cursor:n-resize; }
.resize-handle.ne { top:-5px; right:-5px; cursor:ne-resize; }
.resize-handle.e  { top:50%; right:-5px; transform:translateY(-50%); cursor:e-resize; }
.resize-handle.se { bottom:-5px; right:-5px; cursor:se-resize; }
.resize-handle.s  { bottom:-5px; left:50%; transform:translateX(-50%); cursor:s-resize; }
.resize-handle.sw { bottom:-5px; left:-5px; cursor:sw-resize; }
.resize-handle.w  { top:50%; left:-5px; transform:translateY(-50%); cursor:w-resize; }

/* Indicateur position/taille */
.drag-indicator {
  position: fixed;
  background: rgba(4,8,4,0.95);
  border: 1px solid rgba(var(--color-accent-rgb), 0.4);
  color: var(--color-accent);
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 99999;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ── Éléments ────────────────────────────────────────────────────────────── */
.el-text { min-width: 100px; min-height: 30px; line-height: 1.5; word-break: break-word; outline: none; }
.el-text h1, .el-text h2, .el-text h3, .el-text h4 {
  font-family: var(--el-font, var(--font-heading));
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}
.el-text p, .el-text span {
  font-family: var(--el-font, var(--font-body));
  font-size: inherit;
  margin: 0;
}

.el-image { overflow: hidden; line-height: 0; }
.el-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.el-image .img-placeholder {
  width: 100%; height: 100%; min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  background: rgba(var(--color-accent-rgb), 0.04);
  border: 1px dashed rgba(var(--color-accent-rgb), 0.3);
  color: var(--color-text-muted);
  font-size: 13px; font-family: 'Lato', sans-serif;
}
.el-image .img-placeholder i { font-size: 28px; opacity: 0.5; }

.el-video { overflow: hidden; line-height: 0; }
.el-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.el-video .vid-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  background: rgba(var(--color-accent-rgb), 0.04);
  border: 1px dashed rgba(var(--color-accent-rgb), 0.3);
  color: var(--color-text-muted);
  font-size: 13px; font-family: 'Lato', sans-serif;
}
.el-video .vid-placeholder i { font-size: 36px; opacity: 0.5; }

/* Boutons */
.el-button { display: flex; align-items: center; justify-content: center; }
.el-button-inner {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  text-decoration: none; font-weight: 600;
  letter-spacing: 1px; transition: all 0.25s ease;
  border-radius: var(--radius-sm); cursor: pointer;
  border: none; font-size: 14px;
}
.el-button-inner.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  color: #0a0e06;
  box-shadow: 0 3px 18px rgba(var(--color-accent-rgb), 0.35);
}
.el-button-inner.btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 28px rgba(var(--color-accent-rgb),0.5); }

.el-button-inner.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.el-button-inner.btn-outline:hover { background: rgba(var(--color-accent-rgb),0.1); transform:translateY(-2px); }

.el-button-inner.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

/* Séparateur */
.el-separator { display: flex; align-items: center; width: 100%; }
.el-separator-line { width: 100%; border-radius: 2px; }

/* Arrière-plan vidéo */
.page-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}

/* Diaporama plein-fond */
.page-bg-slideshow {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.slideshow-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity 1.6s ease-in-out;
  transform: scale(1.08);
}
.slideshow-layer.active {
  opacity: 1;
  animation: slowZoom 10s ease-out forwards;
}
@keyframes slowZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* EXIF en overlay galerie */
.gallery-item-exif {
  font-family: 'Lato', monospace; font-size: 10px;
  color: rgba(255,255,255,0.55); letter-spacing: 0.5px;
}

/* Section galerie hidden (filtrage) */
.gallery-block.filtered-out { display: none; }
.page-bg-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.canvas-element { z-index: 2; }

/* ═══════════════════════════════════════════════════════════════════════════
   PANNEAU PROPRIÉTÉS
═══════════════════════════════════════════════════════════════════════════ */
.properties-panel {
  position: fixed;
  top: 114px; right: 0;
  width: 280px; bottom: 0;
  background: rgba(4,8,4,0.98);
  border-left: 1px solid rgba(var(--color-accent-rgb), 0.15);
  backdrop-filter: blur(16px);
  z-index: 8800;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.properties-panel.hidden { transform: translateX(100%); }

.pp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.12);
  background: rgba(var(--color-accent-rgb), 0.04);
}
#pp-title {
  font-family: 'Lato', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(var(--color-accent-rgb), 0.7);
}
.pp-close {
  background: none; border: none;
  color: rgba(220,210,190,0.4);
  cursor: pointer; font-size: 14px;
  padding: 2px 6px; border-radius: 3px;
  transition: color 0.2s;
}
.pp-close:hover { color: var(--color-accent); }

.pp-body { flex: 1; overflow-y: auto; padding: 16px; }
.pp-hint { color: var(--color-text-muted); font-size: 12px; text-align: center; margin-top: 30px; line-height: 1.6; }

/* Champs propriétés */
.pp-label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(var(--color-accent-rgb), 0.5);
  margin: 14px 0 6px;
}
.pp-label:first-child { margin-top: 0; }

.pp-input {
  width: 100%; padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 13px; font-family: 'Lato', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.pp-input:focus { border-color: rgba(var(--color-accent-rgb), 0.4); }

.pp-color { height: 36px; padding: 2px 4px; cursor: pointer; }

.pp-row {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.pp-row .pp-input { flex: 1; }

.pp-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 9px;
  background: rgba(var(--color-accent-rgb), 0.08);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.2s;
  margin-bottom: 8px; font-family: 'Lato', sans-serif;
}
.pp-btn:hover { background: rgba(var(--color-accent-rgb), 0.16); }

.pp-select {
  width: 100%; padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 13px; cursor: pointer;
}
.pp-select option { background: #080f08; }

.pp-range { width: 100%; accent-color: var(--color-accent); }

.mt { margin-top: 8px !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   MENU CONTEXTUEL
═══════════════════════════════════════════════════════════════════════════ */
.ctx-menu {
  position: fixed; z-index: 99999;
  background: rgba(4,8,4,0.98);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  min-width: 180px;
  backdrop-filter: blur(16px);
}
.ctx-menu.hidden { display: none; }
.ctx-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 14px;
  background: none; border: none; border-radius: var(--radius-sm);
  color: rgba(220,210,190,0.7);
  font-size: 13px; font-family: 'Lato', sans-serif;
  cursor: pointer; transition: all 0.15s;
  text-align: left;
}
.ctx-menu button:hover { background: rgba(var(--color-accent-rgb),0.1); color: var(--color-accent); }
.ctx-menu hr { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 4px 0; }
.ctx-menu .ctx-danger { color: rgba(180,80,80,0.8); }
.ctx-menu .ctx-danger:hover { background: rgba(180,60,60,0.12); color: #e08080; }
.ctx-menu button i { width: 16px; text-align: center; font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MODALES
═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

/* La médiathèque s'affiche au-dessus des autres modales */
#modal-media {
  z-index: 10002;
}
.modal-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-box {
  background: rgba(6,12,6,0.99);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 540px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(var(--color-accent-rgb), 0.08),
    0 24px 80px rgba(0,0,0,0.9);
  animation: slideUp 0.25s ease;
  overflow: hidden;
}

@keyframes slideUp { from { transform:translateY(16px); opacity:0; } to { transform:translateY(0); opacity:1; } }

.modal-box.modal-large { max-width: 800px; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.12);
  background: rgba(var(--color-accent-rgb), 0.04);
  flex-shrink: 0;
}
.modal-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 10px;
}
.modal-header h3 i { font-size: 16px; opacity: 0.7; }
.modal-close {
  background: none; border: none;
  color: rgba(220,210,190,0.4);
  font-size: 16px; cursor: pointer; padding: 4px 8px;
  border-radius: var(--radius-sm); transition: all 0.2s;
}
.modal-close:hover { color: var(--color-accent); background: rgba(var(--color-accent-rgb), 0.08); }

.modal-body {
  flex: 1; overflow-y: auto; padding: 22px;
}
.modal-body label, .modal-body .section-label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(var(--color-accent-rgb), 0.5);
  margin: 16px 0 8px;
}
.modal-body label:first-child, .modal-body .section-label:first-child { margin-top: 0; }

.modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.1);
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
  gap: 10px;
}

.text-input, .modal-body input[type="text"],
.modal-body input[type="number"], .modal-body select {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 14px; font-family: 'Lato', sans-serif;
  outline: none; transition: border-color 0.2s;
  margin-bottom: 4px;
}
.text-input:focus, .modal-body input:focus, .modal-body select:focus {
  border-color: rgba(var(--color-accent-rgb), 0.4);
}
.modal-body select option { background: #080f08; }

.btn-modal-ok {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  border: none; border-radius: var(--radius-sm);
  color: #0a0e06; font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px; cursor: pointer;
  transition: all 0.2s; font-family: 'Lato', sans-serif;
  box-shadow: 0 2px 16px rgba(var(--color-accent-rgb), 0.3);
}
.btn-modal-ok:hover { transform:translateY(-1px); box-shadow: 0 4px 24px rgba(var(--color-accent-rgb), 0.5); }
.btn-modal-ok:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-modal-cancel {
  padding: 10px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: rgba(220,210,190,0.55);
  font-size: 13px; cursor: pointer;
  transition: all 0.2s; font-family: 'Lato', sans-serif;
}
.btn-modal-cancel:hover { color: var(--color-text-primary); background: rgba(255,255,255,0.08); }
.btn-modal-delete {
  padding: 10px 16px;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 8px; color: #f87171;
  font-size: 13px; cursor: pointer;
  transition: all 0.2s; font-family: 'Lato', sans-serif;
  display: flex; align-items: center; gap: 6px;
}
.btn-modal-delete:hover { background: rgba(220,38,38,0.22); color: #fca5a5; }

/* ── Thèmes (swatches) ───────────────────────────────────────────────────── */
.themes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 8px;
}
.theme-swatch {
  aspect-ratio: 1.6;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer; overflow: hidden;
  position: relative; transition: all 0.2s;
}
.theme-swatch:hover { transform: scale(1.04); }
.theme-swatch.active { border-color: var(--color-accent) !important; }
.theme-swatch span {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 4px 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-align: center; text-transform: uppercase;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.85);
}

/* Thèmes-grid plus large pour accueillir tous les thèmes */
.themes-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.theme-swatch span { font-size: 8px; }

/* ── Swatches — Nature ──────────────────────────────────────────────────────── */
.swatch-foret-profonde   { background: linear-gradient(135deg,#070e07 60%,#c8a84b); }
.swatch-montagne-granit  { background: linear-gradient(135deg,#0e1318 60%,#90b8d8); }
.swatch-cote-sauvage     { background: linear-gradient(135deg,#05101a 60%,#38b8d8); }
.swatch-aube-doree       { background: linear-gradient(135deg,#140e04 60%,#e0a030); }
.swatch-lande-sauvage    { background: linear-gradient(135deg,#0d0814 60%,#b888d8); }
.swatch-riviere-verte    { background: linear-gradient(135deg,#060f0e 60%,#48c8a8); }
.swatch-falaise-rouge    { background: linear-gradient(135deg,#140604 60%,#e06828); }
.swatch-neige-pins       { background: linear-gradient(135deg,#e8eee4 60%,#3a6030); }
/* ── Swatches — Luxe & Paysage ──────────────────────────────────────────────── */
.swatch-elegance-cotiere { background: linear-gradient(135deg,#0a1828 60%,#4db8e8); }
.swatch-foret-ancestrale { background: linear-gradient(135deg,#0a1408 60%,#a89060); }
.swatch-minimaliste-pro  { background: linear-gradient(135deg,#0d0d0f 60%,#00ff88); }
.swatch-minuit-etoile    { background: linear-gradient(135deg,#05050a 60%,#b88ed8); }
.swatch-desert-bronze    { background: linear-gradient(135deg,#120a04 60%,#c87830); }
.swatch-ocean-turquoise  { background: linear-gradient(135deg,#041420 60%,#20d9a3); }
.swatch-aurore-boreale   { background: linear-gradient(135deg,#020810 60%,#00e878); }
.swatch-velours-prune    { background: linear-gradient(135deg,#100814 60%,#d060d0); }
.swatch-terre-ocre       { background: linear-gradient(135deg,#120804 60%,#d89050); }
.swatch-glacier-bleu     { background: linear-gradient(135deg,#080e1c 60%,#50b8e8); }
.swatch-champ-dore       { background: linear-gradient(135deg,#180c04 60%,#f0c840); }
/* ── Swatches — Photo Pro ───────────────────────────────────────────────────── */
.swatch-noir-cinema      { background: linear-gradient(135deg,#020202 60%,#e8e8e8); }
.swatch-studio-blanc     { background: linear-gradient(135deg,#f4f4f4 60%,#1a1a1a); }
.swatch-or-rose          { background: linear-gradient(135deg,#12080e 60%,#d4957c); }
.swatch-cuivre-nuit      { background: linear-gradient(135deg,#060a12 60%,#c07840); }
.swatch-platine          { background: linear-gradient(135deg,#0e0e14 60%,#a8b8c8); }
.swatch-brume-lilas      { background: linear-gradient(135deg,#0c0814 60%,#c8a0e8); }
.swatch-sahara           { background: linear-gradient(135deg,#140a04 60%,#d4a050); }
.swatch-encre-ivoire     { background: linear-gradient(135deg,#0c0c08 60%,#e8d8a8); }
.swatch-jade-imperial    { background: linear-gradient(135deg,#041008 60%,#d4a840); }
.swatch-nuit-bordeaux    { background: linear-gradient(135deg,#0e0408 60%,#c86080); }
/* ── Swatches — Nouveaux ────────────────────────────────────────────────────── */
.swatch-argent-luxe      { background: linear-gradient(135deg,#0a0a10 60%,#c0c8d8); }
.swatch-rose-quartz      { background: linear-gradient(135deg,#140810 60%,#e8a0c0); }
.swatch-titane           { background: linear-gradient(135deg,#0c0e12 60%,#7890a8); }
.swatch-obsidienne       { background: linear-gradient(135deg,#040408 60%,#8888a8); }
.swatch-crepuscule       { background: linear-gradient(135deg,#100410 60%,#e87040); }
.swatch-corail-tropical  { background: linear-gradient(135deg,#180808 60%,#f06058); }
.swatch-marine-royale    { background: linear-gradient(135deg,#040c18 60%,#d4a840); }
.swatch-sakura           { background: linear-gradient(135deg,#14080c 60%,#f0b0c8); }

/* Polices */
.fonts-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 4px;
}
.font-select-wrap { display: flex; flex-direction: column; gap: 6px; }
.font-select-wrap label { margin: 0; }
.font-select {
  width: 100%; padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 13px; cursor: pointer;
}
.font-select option { background: #080f08; }

/* ── Arrière-plan (tabs) ─────────────────────────────────────────────────── */
.bg-tabs {
  display: flex; gap: 0; margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bg-tab {
  padding: 9px 18px;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  color: rgba(220,210,190,0.45);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; cursor: pointer;
  transition: all 0.2s; text-transform: uppercase;
  font-family: 'Lato', sans-serif;
}
.bg-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.bg-tab-content { display: none; }
.bg-tab-content.active { display: block; }
.tab-content { display: none; }
/* FIX: .tab-content utilisé dans modal-bg */
.tab-content.active { display: block; }

/* ── Médiathèque ────────────────────────────────────────────────────────── */
.upload-zone {
  border: 1px dashed rgba(var(--color-accent-rgb), 0.3);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  background: rgba(var(--color-accent-rgb), 0.03);
  transition: all 0.2s;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}
.upload-zone.drag-over {
  border-color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.08);
}
.upload-zone i { font-size: 32px; color: rgba(var(--color-accent-rgb), 0.5); display: block; margin-bottom: 12px; }
.upload-zone p { font-size: 14px; margin-bottom: 10px; }
.upload-hint { font-size: 12px; color: var(--color-text-muted); margin-top: 8px !important; }

.btn-upload-label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 1px solid rgba(var(--color-accent-rgb), 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-upload-label:hover { background: rgba(var(--color-accent-rgb), 0.2); }

#file-input { display: none; }

.upload-progress-wrap {
  height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 2px; margin-bottom: 16px; overflow: hidden;
  position: relative;
}
.upload-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent));
  border-radius: 2px; transition: width 0.3s ease;
}
#upload-progress-text {
  position: absolute; right: 0; top: -18px;
  font-size: 11px; color: var(--color-accent);
}
.upload-progress-wrap.hidden { display: none; }

.media-filters {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.media-filter {
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  color: rgba(220,210,190,0.5);
  font-size: 12px; cursor: pointer;
  transition: all 0.2s; font-family: 'Lato', sans-serif;
}
.media-filter.active, .media-filter:hover {
  background: rgba(var(--color-accent-rgb), 0.1);
  border-color: rgba(var(--color-accent-rgb), 0.3);
  color: var(--color-accent);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px; max-height: 380px; overflow-y: auto;
  padding-right: 4px;
}

.media-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: rgba(255,255,255,0.04);
}
.media-item:hover { border-color: rgba(var(--color-accent-rgb), 0.4); }
.media-item.selected { border-color: var(--color-accent); }
.media-item img, .media-item video { width:100%; height:100%; object-fit:cover; display:block; }

.media-item .media-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(180,40,40,0.9);
  border: none; border-radius: 50%;
  color: #fff; font-size: 10px;
  cursor: pointer; display: none;
  align-items: center; justify-content: center;
}
.media-item:hover .media-del { display: flex; }

.media-item .media-type-badge {
  position: absolute; bottom: 4px; left: 4px;
  padding: 2px 6px;
  background: rgba(0,0,0,0.7);
  border-radius: 3px;
  font-size: 10px; color: rgba(255,255,255,0.8);
}

#media-selection-info {
  font-size: 12px; color: var(--color-text-muted);
}

/* ── Galerie (modale) ────────────────────────────────────────────────────── */
.layout-grid {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.layout-btn {
  flex: 1; padding: 10px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: rgba(220,210,190,0.55);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  text-align: center; font-family: 'Lato', sans-serif;
  letter-spacing: 0.3px;
}
.layout-btn.active, .layout-btn:hover {
  background: rgba(var(--color-accent-rgb), 0.12);
  border-color: rgba(var(--color-accent-rgb), 0.35);
  color: var(--color-accent);
}

.gallery-media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px,1fr));
  gap: 8px; margin-top: 12px; max-height: 300px; overflow-y: auto;
}
.gm-item {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  position: relative; background: rgba(255,255,255,0.04);
}
.gm-item img, .gm-item video { width:100%; height:100%; object-fit:cover; display:block; }
.gm-item-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(180,40,40,0.9); border: none; border-radius: 50%;
  color: #fff; font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.btn-pick-media {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: rgba(var(--color-accent-rgb), 0.08);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Lato', sans-serif; margin-top: 4px;
}
.btn-pick-media:hover { background: rgba(var(--color-accent-rgb), 0.15); }

/* ── Paramètres site ─────────────────────────────────────────────────────── */
.logo-preview {
  width: 80px; height: 80px;
  border: 1px dashed rgba(var(--color-accent-rgb), 0.3);
  border-radius: var(--radius-sm);
  overflow: hidden; margin-top: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-preview img { width:100%; height:100%; object-fit:contain; }
.bg-preview {
  width: 100%; height: 140px; border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.15); overflow: hidden;
  background: rgba(255,255,255,0.04); margin-top: 8px; display: block;
}
.bg-preview img, .bg-preview video { width:100%; height:100%; object-fit:cover; display:block; }

.settings-divider {
  border: none;
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.15);
  margin: 20px 0 4px;
}

.modal-body input[type="password"] {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 14px; font-family: 'Lato', sans-serif;
  outline: none; transition: border-color 0.2s;
  margin-bottom: 8px;
}
.modal-body input[type="password"]:focus {
  border-color: rgba(var(--color-accent-rgb), 0.4);
}
.mt-sm { margin-top: 0 !important; }

.btn-change-pw {
  width: 100%; margin-top: 6px; padding: 10px 16px;
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 1px solid rgba(var(--color-accent-rgb), 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.2s; font-family: 'Lato', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-change-pw:hover { background: rgba(var(--color-accent-rgb), 0.2); }
.btn-change-pw:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════════════════
   GALERIES (page publique)
═══════════════════════════════════════════════════════════════════════════ */
#gallery-section {
  padding: 40px 48px 60px;
  max-width: 1400px; margin: 0 auto;
}
#gallery-section.hidden { display: none; }

.gallery-block { margin-bottom: 60px; }

.gallery-block-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.15);
}

.gallery-block-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 1px;
  line-height: 1.1;
}

.gallery-block-count {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.gallery-tag-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  background: rgba(var(--color-accent-rgb), 0.12);
  border: 1px solid rgba(var(--color-accent-rgb), 0.3);
  border-radius: 20px;
  color: var(--color-accent);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px;
  font-family: 'Lato', sans-serif;
}

.gallery-block-actions { display: flex; gap: 8px; }

.gallery-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(var(--color-accent-rgb), 0.08);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Lato', sans-serif;
}
.gallery-btn:hover { background: rgba(var(--color-accent-rgb), 0.18); }
.gallery-btn.danger {
  background: rgba(180,60,60,0.08);
  border-color: rgba(180,60,60,0.2);
  color: #c87878;
}
.gallery-btn.danger:hover { background: rgba(180,60,60,0.18); }

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.gallery-grid-layout {
  display: grid;
  grid-template-columns: repeat(var(--gal-columns, 3), 1fr);
  gap: var(--gal-gap, 12px);
}

/* ── Masonry ────────────────────────────────────────────────────────────────── */
.gallery-masonry-layout {
  column-count: var(--gal-columns, 3);
  column-gap: var(--gal-gap, 12px);
}
.gallery-masonry-layout .gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gal-gap, 12px);
  height: auto;
  aspect-ratio: unset;
}

/* ── Carousel ───────────────────────────────────────────────────────────────── */
.gallery-carousel-layout {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-secondary);
  box-shadow: var(--shadow-lg);
}

/* ── Carousel wrapper (contient le track + les boutons overlay) ─────────── */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  outline: none;
}
.carousel-wrapper:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.45);
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.carousel-track .gallery-item {
  min-width: 100%; flex-shrink: 0;
  border-radius: 0;
  aspect-ratio: var(--gal-ratio, 16/9);
  height: clamp(280px, 50vw, 680px);
}

/* ── Flèches en overlay sur les côtés ──────────────────────────────────── */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff; font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.7;
}
.carousel-btn-prev { left: 14px; }
.carousel-btn-next { right: 14px; }
.carousel-wrapper:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover {
  background: rgba(var(--color-accent-rgb), 0.7);
  transform: translateY(-50%) scale(1.1);
}
.carousel-btn:active { transform: translateY(-50%) scale(0.96); }

/* ── Compteur ──────────────────────────────────────────────────────────── */
.carousel-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 10;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* ── Dots ──────────────────────────────────────────────────────────────── */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 20px;
}

/* ── Portfolio ──────────────────────────────────────────────────────────────── */
.gallery-portfolio-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: var(--gal-gap, 10px);
}
.gallery-portfolio-layout .gallery-item:nth-child(7n+1) { grid-column: span 8; grid-row: span 2; }
.gallery-portfolio-layout .gallery-item:nth-child(7n+2) { grid-column: span 4; }
.gallery-portfolio-layout .gallery-item:nth-child(7n+3) { grid-column: span 4; }
.gallery-portfolio-layout .gallery-item:nth-child(7n+4) { grid-column: span 3; }
.gallery-portfolio-layout .gallery-item:nth-child(7n+5) { grid-column: span 3; }
.gallery-portfolio-layout .gallery-item:nth-child(7n+6) { grid-column: span 3; }
.gallery-portfolio-layout .gallery-item:nth-child(7n+7) { grid-column: span 3; }
@media (max-width: 900px) {
  .gallery-portfolio-layout { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 600px) {
  .gallery-portfolio-layout { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-portfolio-layout .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
}
@media (max-width: 400px) {
  .gallery-portfolio-layout { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}

/* ── Item galerie ───────────────────────────────────────────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: var(--gal-ratio, 4/3);
  cursor: zoom-in;
  background: var(--color-bg-secondary);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.gallery-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Shimmer loading */
.gallery-item.loading {
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary) 25%,
    rgba(var(--color-accent-rgb), 0.06) 50%,
    var(--color-bg-secondary) 75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex; align-items: flex-end;
  padding: 16px;
  gap: 4px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-caption {
  color: rgba(255,255,255,0.92);
  font-size: 13px; font-family: 'Lato', sans-serif;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1.4;
}

.gallery-item-type {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  color: #fff; font-size: 11px; padding: 4px 10px;
  display: flex; align-items: center; gap: 4px;
  font-weight: 600; letter-spacing: 0.3px;
}

/* ── Filtres galerie ────────────────────────────────────────────────────────── */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 4px 0;
}
.gallery-filter-btn {
  padding: 8px 20px;
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: 24px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s;
  font-family: 'Lato', sans-serif;
}
.gallery-filter-btn:hover {
  border-color: rgba(var(--color-accent-rgb), 0.5);
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.06);
}
.gallery-filter-btn.active {
  background: rgba(var(--color-accent-rgb), 0.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(var(--color-accent-rgb), 0.2);
}

/* ── Scroll Reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger pour les items galerie */
.gallery-item:nth-child(2) { transition-delay: 0.05s; }
.gallery-item:nth-child(3) { transition-delay: 0.10s; }
.gallery-item:nth-child(4) { transition-delay: 0.15s; }
.gallery-item:nth-child(5) { transition-delay: 0.20s; }
.gallery-item:nth-child(6) { transition-delay: 0.25s; }

.btn-add-gallery {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px;
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 2px dashed rgba(var(--color-accent-rgb), 0.4);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.22s;
  margin: 24px auto 8px; font-family: 'Lato', sans-serif;
  width: 100%; max-width: 480px;
  letter-spacing: 0.03em;
}
.btn-add-gallery:hover {
  background: rgba(var(--color-accent-rgb), 0.22);
  border-color: rgba(var(--color-accent-rgb), 0.8);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn-add-gallery i { font-size: 18px; }
.btn-add-gallery.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   FORMULAIRE CONTACT
═══════════════════════════════════════════════════════════════════════════ */
#contact-section {
  padding: 0 48px 80px;
  max-width: 1200px; margin: 0 auto;
}
#contact-section.hidden { display: none; }

/* Layout 2 colonnes */
.contact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Colonne info */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Bouton "Modifier" visible en mode admin sur la colonne info */
.contact-edit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.12);
  border: 1px dashed rgba(var(--color-accent-rgb), 0.5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  font-family: 'Lato', sans-serif;
}
.contact-edit-btn:hover {
  background: rgba(var(--color-accent-rgb), 0.22);
  border-style: solid;
}

.contact-info-card {
  padding: 20px 24px;
  border-left: 2px solid rgba(var(--color-accent-rgb), 0.35);
  background: rgba(var(--color-accent-rgb), 0.02);
}

.contact-info-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
  font-family: 'Lato', sans-serif;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-family: 'Lato', sans-serif;
  margin: 0;
}

.contact-info-card a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-card a:hover { color: var(--color-accent); }

.contact-form {
  background: rgba(var(--color-accent-rgb), 0.03);
  border: 1px solid rgba(var(--color-accent-rgb), 0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}

.contact-form-group { display: flex; flex-direction: column; gap: 6px; }
.contact-form-group label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(var(--color-accent-rgb), 0.55);
}
.contact-form-group input,
.contact-form-group textarea {
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 14px; font-family: 'Lato', sans-serif;
  outline: none; transition: border-color 0.2s;
  resize: vertical; margin-bottom: 16px;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: rgba(var(--color-accent-rgb), 0.45);
}

.contact-submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 24px;
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  border: none; border-radius: var(--radius-sm);
  color: #0a0e06; font-size: 13px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 3px 20px rgba(var(--color-accent-rgb), 0.3);
}
.contact-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(var(--color-accent-rgb), 0.5); }
.contact-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.contact-success {
  text-align: center; padding: 48px 20px;
  color: var(--color-success);
  font-size: 18px; font-family: 'Cormorant Garamond', serif;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.contact-success i { font-size: 32px; }

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTBOX PROFESSIONNEL
═══════════════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: #000;
  display: flex; flex-direction: column;
  animation: fadeIn 0.25s ease;
  user-select: none;
}
.lightbox.hidden { display: none; }

/* Barre du haut */
.lb-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 10;
}
.lb-counter {
  color: rgba(255,255,255,0.65);
  font-family: 'Lato', sans-serif; font-size: 13px; letter-spacing: 2px;
}
.lb-topbar-actions {
  display: flex; align-items: center; gap: 6px;
}
.lb-action-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.65); font-size: 14px;
  border-radius: 8px; width: 36px; height: 36px;
  cursor: pointer; transition: all 0.18s;
  display: flex; align-items: center; justify-content: center;
}
.lb-action-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.lb-action-btn.active { background: rgba(var(--color-accent-rgb),0.25); border-color: rgba(var(--color-accent-rgb),0.5); color: var(--color-accent); }
.lb-close {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.65); font-size: 15px;
  border-radius: 8px; width: 36px; height: 36px;
  cursor: pointer; transition: all 0.18s;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: rgba(220,60,60,0.3); border-color: rgba(220,60,60,0.5); color: #ff6b6b; }

/* Zone centrale */
.lb-stage {
  flex: 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 56px 70px 110px;
}
.lb-viewport {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: grab;
}
.lb-viewport.zoomed { cursor: grab; }
.lb-viewport.dragging { cursor: grabbing; }

.lb-content {
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
  transform-origin: center center;
}
.lb-content img {
  max-width: 100%; max-height: calc(100vh - 180px);
  object-fit: contain; border-radius: 2px;
  pointer-events: none; display: block;
  box-shadow: 0 0 60px rgba(0,0,0,0.7);
}
.lb-content video {
  max-width: 100%; max-height: calc(100vh - 180px);
  border-radius: 4px; display: block;
}

/* Navigation */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75); font-size: 20px;
  border-radius: 50%; width: 52px; height: 52px;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.lb-nav:hover { background: rgba(var(--color-accent-rgb),0.2); border-color: rgba(var(--color-accent-rgb),0.4); color: var(--color-accent); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* Panneau info / EXIF */
.lb-info-panel {
  position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%);
  max-width: 600px; width: 90%;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 14px 20px;
  text-align: center; z-index: 8;
  animation: fadeIn 0.2s ease;
}
.lb-info-panel.hidden { display: none; }
.lb-caption {
  color: rgba(255,255,255,0.85);
  font-size: 14px; font-family: 'Lato', sans-serif; line-height: 1.5;
  margin-bottom: 10px;
}
.lb-caption:empty { display: none; }
.lb-exif {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 4px;
}
.lb-exif-item {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Lato', sans-serif; font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.5px;
}
.lb-exif-item i { color: var(--color-accent); font-size: 12px; }
.lb-exif-item span { color: rgba(255,255,255,0.75); }

/* Filmstrip (bande film) */
.lb-filmstrip-wrap {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 96px;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden; z-index: 9;
}
.lb-filmstrip {
  display: flex; align-items: center; gap: 4px;
  height: 100%; padding: 8px 16px;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none;
}
.lb-filmstrip::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 4px; overflow: hidden;
  cursor: pointer; opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: 0.8; transform: scale(1.05); }
.lb-thumb.active {
  opacity: 1; border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb),0.3);
  transform: scale(1.08);
}

/* Transition image */
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-content.transitioning { animation: lbFadeIn 0.22s ease; }

/* Zoom indicator */
.lb-zoom-level {
  position: absolute; bottom: 110px; right: 20px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 4px 12px;
  color: rgba(255,255,255,0.5); font-family: 'Lato', sans-serif; font-size: 11px;
  letter-spacing: 1px; z-index: 8;
  transition: opacity 0.3s; pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALERIES — AMÉLIORATIONS
═══════════════════════════════════════════════════════════════════════════ */

/* Filtre catégories */
.gallery-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 0 32px; justify-content: center;
}
.gallery-filter-btn {
  padding: 7px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  color: rgba(255,255,255,0.55); font-family: 'Lato', sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
}
.gallery-filter-btn:hover { border-color: rgba(var(--color-accent-rgb),0.4); color: rgba(255,255,255,0.85); }
.gallery-filter-btn.active {
  background: rgba(var(--color-accent-rgb),0.12);
  border-color: rgba(var(--color-accent-rgb),0.5);
  color: var(--color-accent);
}


/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Shimmer de chargement */
.gallery-item.loading { background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%); background-size: 200%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── EXIF caption dans la grille admin ─────────────────────────────────── */

/* Panneau EXIF dans admin galerie */
.gm-item { position: relative; }
.gm-item-caption-input {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.8);
  border: none; border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8); font-size: 11px;
  padding: 4px 6px; width: 100%; box-sizing: border-box;
  font-family: 'Lato', sans-serif;
  opacity: 0; transition: opacity 0.2s;
}
.gm-item:hover .gm-item-caption-input { opacity: 1; }

/* Section galerie hidden (filtrage) */
.gallery-block.filtered-out {
  display: none;
}

/* Responsive — nav mobile */
@media (max-width: 768px) {
  .lb-stage { padding: 56px 60px 96px; }
  .lb-nav { width: 40px; height: 40px; font-size: 16px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-thumb { width: 56px; height: 56px; }
  .lb-filmstrip-wrap { height: 76px; }
}
@media (max-width: 480px) {
  .lb-topbar-actions .lb-action-btn:nth-child(n+3):nth-child(-n+4) { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOASTS / NOTIFICATIONS
═══════════════════════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 28px; right: 24px;
  z-index: 99999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  background: rgba(6,12,6,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  font-size: 13px; font-family: 'Lato', sans-serif;
  color: var(--color-text-primary);
  min-width: 240px; max-width: 360px;
  pointer-events: all;
  animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  backdrop-filter: blur(12px);
}
.toast.hide { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

.toast.success { border-left-color: var(--color-success); }
.toast.error   { border-left-color: var(--color-danger); }
.toast.info    { border-left-color: rgba(var(--color-accent-rgb), 0.7); }

.toast i { font-size: 16px; flex-shrink: 0; }
.toast.success i { color: var(--color-success); }
.toast.error   i { color: var(--color-danger); }
.toast.info    i { color: var(--color-accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER PROFESSIONNEL
═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.2);
  padding: 56px 0 0;
  margin-top: 80px;
  width: 100%;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 20px;
  font-weight: 600;
}

.footer-text {
  color: var(--color-text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 20px;
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(var(--color-accent-rgb), 0.3);
  color: var(--color-text-secondary);
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}
.social-link:hover {
  background: rgba(var(--color-accent-rgb), 0.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Listes de liens */
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--color-accent);
}

/* Liste contact */
.footer-contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}

.footer-contact-list i {
  color: var(--color-accent);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* Barre inférieure */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 12px;
  margin: 0;
}

.footer-credit {
  color: var(--color-text-muted);
  font-size: 11px;
  margin: 0;
  opacity: 0.6;
  font-style: italic;
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-content {
    grid-template-columns: 1fr;
    padding: 0 20px 32px;
    gap: 28px;
  }
  .footer-bottom {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
  }
}

/* ── Blocage impression (Ctrl+P) ──────────────────────────────────────────── */
@media print { body { display: none !important; } }

/* ── Modal légal ──────────────────────────────────────────────────────────── */
.modal-legal-box { max-width: 740px; max-height: 88vh; display: flex; flex-direction: column; }
.modal-legal-box .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 12px; }
.legal-tabs { display: flex; gap: 6px; }
.legal-tab { background: transparent; border: 1px solid rgba(255,255,255,.15); color: var(--text-muted, #aaa); padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: .85rem; display: flex; align-items: center; gap: 6px; transition: all .2s; }
.legal-tab:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.legal-tab.active { background: var(--color-accent, #c9a96e); border-color: var(--color-accent, #c9a96e); color: #fff; }
.legal-body { overflow-y: auto; flex: 1; padding: 24px 16px 48px; }
.legal-panel h2 { font-size: 1.3rem; margin: 0 0 4px; }
.legal-panel h3 { font-size: 1rem; margin: 20px 0 6px; color: var(--color-accent, #c9a96e); }
.legal-panel p, .legal-panel li { font-size: .9rem; line-height: 1.7; opacity: .85; }
.legal-panel ul.legal-list { padding-left: 20px; margin: 6px 0; }
.legal-panel ul.legal-list li { margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 30 — ARGENT LUXE  ★ Rolls-Royce / Swiss Watchmaking
   Gris anthracite froid, argent platine, luxe absolu intemporel
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="argent-luxe"] {
  --color-bg-primary:    #0a0a10;
  --color-bg-secondary:  #12121c;
  --color-bg-surface:    rgba(16,16,26,0.96);
  --color-bg-card:       rgba(10,10,18,0.98);
  --color-text-primary:  #f0f0f8;
  --color-text-secondary:#9090b0;
  --color-text-muted:    #606080;
  --color-accent:        #c0c8d8;
  --color-accent-dark:   #8090a8;
  --color-accent-light:  #e0e8f4;
  --color-accent-rgb:    192,200,216;
  --color-border:        rgba(192,200,216,0.12);
  --color-border-strong: rgba(192,200,216,0.32);
  --color-danger:        #e04848;
  --color-success:       #40d080;
  --shadow-sm:           0 2px 10px rgba(0,0,10,0.7);
  --shadow-md:           0 4px 28px rgba(0,0,10,0.85);
  --shadow-lg:           0 16px 64px rgba(0,0,8,0.95);
  --shadow-accent:       0 0 28px rgba(192,200,216,0.15);
  --gradient-surface:    linear-gradient(160deg,rgba(16,16,26,0.97),rgba(8,8,16,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Raleway', sans-serif;
  --radius-sm:           3px; --radius-md:6px; --radius-lg:12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 31 — ROSE QUARTZ  ★ Feminine Fine Art / Boudoir Photography
   Rose profond luxueux, quartz poudré, élégance romantique absolue
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="rose-quartz"] {
  --color-bg-primary:    #140810;
  --color-bg-secondary:  #20101c;
  --color-bg-surface:    rgba(28,14,24,0.96);
  --color-bg-card:       rgba(18,8,16,0.98);
  --color-text-primary:  #fce8f4;
  --color-text-secondary:#d090b8;
  --color-text-muted:    #a06080;
  --color-accent:        #e8a0c0;
  --color-accent-dark:   #c06090;
  --color-accent-light:  #f8d0e8;
  --color-accent-rgb:    232,160,192;
  --color-border:        rgba(232,160,192,0.18);
  --color-border-strong: rgba(232,160,192,0.42);
  --color-danger:        #e84060;
  --color-success:       #60d098;
  --shadow-sm:           0 2px 8px rgba(20,0,14,0.65);
  --shadow-md:           0 4px 24px rgba(20,0,14,0.8);
  --shadow-lg:           0 12px 48px rgba(16,0,12,0.92);
  --shadow-accent:       0 0 30px rgba(232,160,192,0.3);
  --gradient-surface:    linear-gradient(160deg,rgba(28,14,24,0.97),rgba(16,6,14,0.99));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Nunito', sans-serif;
  --radius-sm:           8px; --radius-md:16px; --radius-lg:28px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 32 — TITANE  ★ Industrial Premium / Architecture Photography
   Métal gris froid, acier brossé, minimalisme industriel premium
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="titane"] {
  --color-bg-primary:    #0c0e12;
  --color-bg-secondary:  #14181e;
  --color-bg-surface:    rgba(18,22,28,0.96);
  --color-bg-card:       rgba(12,14,20,0.98);
  --color-text-primary:  #e0e4ec;
  --color-text-secondary:#8090a0;
  --color-text-muted:    #505868;
  --color-accent:        #7890a8;
  --color-accent-dark:   #485868;
  --color-accent-light:  #a0b8d0;
  --color-accent-rgb:    120,144,168;
  --color-border:        rgba(120,144,168,0.15);
  --color-border-strong: rgba(120,144,168,0.35);
  --color-danger:        #e04848;
  --color-success:       #48c880;
  --shadow-sm:           0 2px 10px rgba(0,2,8,0.7);
  --shadow-md:           0 4px 28px rgba(0,2,8,0.85);
  --shadow-lg:           0 16px 64px rgba(0,2,6,0.94);
  --shadow-accent:       0 0 24px rgba(120,144,168,0.18);
  --gradient-surface:    linear-gradient(160deg,rgba(18,22,28,0.97),rgba(10,12,18,0.99));
  --font-heading:        'Montserrat', sans-serif;
  --font-body:           'Inter', sans-serif;
  --radius-sm:           2px; --radius-md:4px; --radius-lg:8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 33 — OBSIDIENNE  ★ Mystery & Night Photography / Conceptual Art
   Noir volcanique absolu, reflets bleu-argent, profondeur abyssale
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="obsidienne"] {
  --color-bg-primary:    #040408;
  --color-bg-secondary:  #0a0a12;
  --color-bg-surface:    rgba(8,8,18,0.97);
  --color-bg-card:       rgba(4,4,10,0.99);
  --color-text-primary:  #e8e8f8;
  --color-text-secondary:#8888a8;
  --color-text-muted:    #484860;
  --color-accent:        #8888b8;
  --color-accent-dark:   #505080;
  --color-accent-light:  #b0b0e0;
  --color-accent-rgb:    136,136,184;
  --color-border:        rgba(136,136,184,0.1);
  --color-border-strong: rgba(136,136,184,0.28);
  --color-danger:        #e04060;
  --color-success:       #40e090;
  --shadow-sm:           0 2px 12px rgba(0,0,20,0.8);
  --shadow-md:           0 4px 32px rgba(0,0,20,0.9);
  --shadow-lg:           0 20px 80px rgba(0,0,18,0.98);
  --shadow-accent:       0 0 32px rgba(136,136,184,0.2);
  --gradient-surface:    linear-gradient(160deg,rgba(8,8,18,0.98),rgba(2,2,8,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 34 — CRÉPUSCULE  ★ Sunset & Golden Hour Photography
   Violet doux glissant sur l'orange brûlant du couchant
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="crepuscule"] {
  --color-bg-primary:    #100410;
  --color-bg-secondary:  #1c0818;
  --color-bg-surface:    rgba(24,8,22,0.96);
  --color-bg-card:       rgba(16,4,14,0.98);
  --color-text-primary:  #f8e8ec;
  --color-text-secondary:#d07888;
  --color-text-muted:    #985060;
  --color-accent:        #e87040;
  --color-accent-dark:   #b84018;
  --color-accent-light:  #f8a070;
  --color-accent-rgb:    232,112,64;
  --color-border:        rgba(232,112,64,0.2);
  --color-border-strong: rgba(232,112,64,0.48);
  --color-danger:        #e03040;
  --color-success:       #48d080;
  --shadow-sm:           0 2px 8px rgba(24,4,0,0.65);
  --shadow-md:           0 4px 24px rgba(24,4,0,0.82);
  --shadow-lg:           0 12px 48px rgba(20,2,0,0.92);
  --shadow-accent:       0 0 32px rgba(232,112,64,0.3);
  --gradient-surface:    linear-gradient(160deg,rgba(24,8,22,0.97),rgba(14,4,12,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           6px; --radius-md:12px; --radius-lg:22px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 35 — CORAIL TROPICAL  ★ Underwater & Tropics Photography
   Corail vif, lagon turquoise, chaleur des tropiques
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="corail-tropical"] {
  --color-bg-primary:    #180808;
  --color-bg-secondary:  #240e0c;
  --color-bg-surface:    rgba(30,10,10,0.96);
  --color-bg-card:       rgba(22,6,6,0.98);
  --color-text-primary:  #fdeae8;
  --color-text-secondary:#f09080;
  --color-text-muted:    #c06050;
  --color-accent:        #f06058;
  --color-accent-dark:   #c03030;
  --color-accent-light:  #ff9090;
  --color-accent-rgb:    240,96,88;
  --color-border:        rgba(240,96,88,0.2);
  --color-border-strong: rgba(240,96,88,0.5);
  --color-danger:        #ff3838;
  --color-success:       #38d8a8;
  --shadow-sm:           0 2px 8px rgba(30,0,0,0.65);
  --shadow-md:           0 4px 24px rgba(30,0,0,0.8);
  --shadow-lg:           0 12px 48px rgba(24,0,0,0.92);
  --shadow-accent:       0 0 32px rgba(240,96,88,0.32);
  --gradient-surface:    linear-gradient(160deg,rgba(30,10,10,0.97),rgba(18,4,4,0.99));
  --font-heading:        'Josefin Sans', sans-serif;
  --font-body:           'Nunito', sans-serif;
  --radius-sm:           8px; --radius-md:16px; --radius-lg:28px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 36 — MARINE ROYALE  ★ Nautical Luxury / Classic Yacht Photography
   Marine profond des grandes profondeurs, or royal ancien
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="marine-royale"] {
  --color-bg-primary:    #040c18;
  --color-bg-secondary:  #081828;
  --color-bg-surface:    rgba(8,22,38,0.96);
  --color-bg-card:       rgba(4,12,24,0.98);
  --color-text-primary:  #eef4fc;
  --color-text-secondary:#9ab8d8;
  --color-text-muted:    #5878a0;
  --color-accent:        #d4a840;
  --color-accent-dark:   #a07820;
  --color-accent-light:  #f0d078;
  --color-accent-rgb:    212,168,64;
  --color-border:        rgba(212,168,64,0.18);
  --color-border-strong: rgba(212,168,64,0.42);
  --color-danger:        #e04848;
  --color-success:       #40c880;
  --shadow-sm:           0 2px 10px rgba(0,4,20,0.7);
  --shadow-md:           0 4px 28px rgba(0,4,20,0.85);
  --shadow-lg:           0 16px 64px rgba(0,2,16,0.95);
  --shadow-accent:       0 0 32px rgba(212,168,64,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(8,22,38,0.97),rgba(4,12,24,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'EB Garamond', serif;
  --radius-sm:           4px; --radius-md:8px; --radius-lg:16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THÈME 37 — SAKURA  ★ Japanese Minimalism / Zen Fine Art Photography
   Cerisiers en fleurs, rose doux sur fond sombre, élégance zen
═══════════════════════════════════════════════════════════════════════════ */
[data-theme="sakura"] {
  --color-bg-primary:    #14080c;
  --color-bg-secondary:  #201018;
  --color-bg-surface:    rgba(26,14,20,0.96);
  --color-bg-card:       rgba(18,8,14,0.98);
  --color-text-primary:  #fce8f0;
  --color-text-secondary:#d898b8;
  --color-text-muted:    #907080;
  --color-accent:        #f0b0c8;
  --color-accent-dark:   #c07090;
  --color-accent-light:  #ffd8e8;
  --color-accent-rgb:    240,176,200;
  --color-border:        rgba(240,176,200,0.15);
  --color-border-strong: rgba(240,176,200,0.38);
  --color-danger:        #e84060;
  --color-success:       #58d090;
  --shadow-sm:           0 2px 8px rgba(18,0,10,0.65);
  --shadow-md:           0 4px 24px rgba(18,0,10,0.8);
  --shadow-lg:           0 12px 48px rgba(14,0,8,0.92);
  --shadow-accent:       0 0 28px rgba(240,176,200,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(26,14,20,0.97),rgba(14,6,12,0.99));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           6px; --radius-md:14px; --radius-lg:26px;
}
.legal-date { font-size: .78rem; opacity: .5; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   NOUVEAUX THÈMES NATURE & FAUNE — Tourbière · Crépuscule Océan · Sous-Bois
   Nuit Étoilée · Brume Matinale · Falaise Granit · Aurore Polaire
   + Photo Pro : Grain Argentique · Éditorial Noir · Champagne Doré
   + Reportage Gris · Encre de Chine
═══════════════════════════════════════════════════════════════════════════ */

/* ── Thème 38 : Tourbière ─────────────────────────────────────────────── */
[data-theme="tourbiere"] {
  --color-bg-primary:    #080502;
  --color-bg-secondary:  #130a04;
  --color-bg-surface:    rgba(18,10,4,0.96);
  --color-bg-card:       rgba(12,6,2,0.98);
  --color-text-primary:  #e8d8b8;
  --color-text-secondary:#a08858;
  --color-text-muted:    #5a4028;
  --color-accent:        #b87840;
  --color-accent-dark:   #804e20;
  --color-accent-light:  #d89c60;
  --color-accent-rgb:    184,120,64;
  --color-border:        rgba(184,120,64,0.18);
  --color-border-strong: rgba(184,120,64,0.45);
  --color-danger:        #c85050;
  --color-success:       #78b860;
  --shadow-sm:           0 2px 8px rgba(4,2,0,0.72);
  --shadow-md:           0 4px 24px rgba(4,2,0,0.82);
  --shadow-lg:           0 12px 48px rgba(2,1,0,0.92);
  --shadow-accent:       0 0 28px rgba(184,120,64,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(18,10,4,0.97),rgba(10,5,2,0.99));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ── Thème 39 : Crépuscule Océan ─────────────────────────────────────── */
[data-theme="crepuscule-ocean"] {
  --color-bg-primary:    #040810;
  --color-bg-secondary:  #08141e;
  --color-bg-surface:    rgba(8,18,30,0.96);
  --color-bg-card:       rgba(4,10,20,0.98);
  --color-text-primary:  #f0e8d8;
  --color-text-secondary:#c0a880;
  --color-text-muted:    #607080;
  --color-accent:        #e08050;
  --color-accent-dark:   #a05030;
  --color-accent-light:  #f0a878;
  --color-accent-rgb:    224,128,80;
  --color-border:        rgba(224,128,80,0.18);
  --color-border-strong: rgba(224,128,80,0.45);
  --color-danger:        #e05050;
  --color-success:       #50c080;
  --shadow-sm:           0 2px 8px rgba(0,2,8,0.75);
  --shadow-md:           0 4px 24px rgba(0,2,8,0.85);
  --shadow-lg:           0 12px 48px rgba(0,1,6,0.93);
  --shadow-accent:       0 0 28px rgba(224,128,80,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(8,18,30,0.97),rgba(4,8,18,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ── Thème 40 : Sous-Bois Vert ───────────────────────────────────────── */
[data-theme="sous-bois-vert"] {
  --color-bg-primary:    #030604;
  --color-bg-secondary:  #060f07;
  --color-bg-surface:    rgba(8,18,9,0.96);
  --color-bg-card:       rgba(4,10,5,0.98);
  --color-text-primary:  #e8f0d8;
  --color-text-secondary:#90b870;
  --color-text-muted:    #487040;
  --color-accent:        #98c870;
  --color-accent-dark:   #608040;
  --color-accent-light:  #c0e898;
  --color-accent-rgb:    152,200,112;
  --color-border:        rgba(152,200,112,0.18);
  --color-border-strong: rgba(152,200,112,0.42);
  --color-danger:        #d06050;
  --color-success:       #70d050;
  --shadow-sm:           0 2px 8px rgba(0,4,0,0.72);
  --shadow-md:           0 4px 24px rgba(0,4,0,0.82);
  --shadow-lg:           0 12px 48px rgba(0,2,0,0.92);
  --shadow-accent:       0 0 28px rgba(152,200,112,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(8,18,9,0.97),rgba(4,10,5,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ── Thème 41 : Nuit Étoilée ─────────────────────────────────────────── */
[data-theme="nuit-etoilee"] {
  --color-bg-primary:    #010102;
  --color-bg-secondary:  #04050c;
  --color-bg-surface:    rgba(6,7,16,0.97);
  --color-bg-card:       rgba(3,4,10,0.99);
  --color-text-primary:  #dce8ff;
  --color-text-secondary:#8098c8;
  --color-text-muted:    #405080;
  --color-accent:        #6888c8;
  --color-accent-dark:   #405090;
  --color-accent-light:  #90b0e8;
  --color-accent-rgb:    104,136,200;
  --color-border:        rgba(104,136,200,0.18);
  --color-border-strong: rgba(104,136,200,0.42);
  --color-danger:        #d05858;
  --color-success:       #50b870;
  --shadow-sm:           0 2px 8px rgba(0,0,6,0.82);
  --shadow-md:           0 4px 24px rgba(0,0,6,0.9);
  --shadow-lg:           0 12px 48px rgba(0,0,4,0.96);
  --shadow-accent:       0 0 40px rgba(104,136,200,0.3);
  --gradient-surface:    linear-gradient(160deg,rgba(6,7,16,0.97),rgba(2,3,10,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Raleway', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ── Thème 42 : Brume Matinale ───────────────────────────────────────── */
[data-theme="brume-matinale"] {
  --color-bg-primary:    #0c1018;
  --color-bg-secondary:  #141c28;
  --color-bg-surface:    rgba(18,24,36,0.96);
  --color-bg-card:       rgba(12,16,26,0.98);
  --color-text-primary:  #e8eef8;
  --color-text-secondary:#90a8c8;
  --color-text-muted:    #507090;
  --color-accent:        #a8c0d0;
  --color-accent-dark:   #6888a0;
  --color-accent-light:  #d0e4f0;
  --color-accent-rgb:    168,192,208;
  --color-border:        rgba(168,192,208,0.18);
  --color-border-strong: rgba(168,192,208,0.42);
  --color-danger:        #c86060;
  --color-success:       #60b880;
  --shadow-sm:           0 2px 8px rgba(0,4,12,0.7);
  --shadow-md:           0 4px 24px rgba(0,4,12,0.8);
  --shadow-lg:           0 12px 48px rgba(0,2,8,0.9);
  --shadow-accent:       0 0 28px rgba(168,192,208,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(18,24,36,0.97),rgba(10,14,22,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Nunito', sans-serif;
  --radius-sm:           6px; --radius-md:12px; --radius-lg:22px;
}

/* ── Thème 43 : Falaise Granit ───────────────────────────────────────── */
[data-theme="falaise-granit"] {
  --color-bg-primary:    #070a07;
  --color-bg-secondary:  #0e1610;
  --color-bg-surface:    rgba(12,20,14,0.96);
  --color-bg-card:       rgba(8,14,10,0.98);
  --color-text-primary:  #e0e8d8;
  --color-text-secondary:#8aa880;
  --color-text-muted:    #487050;
  --color-accent:        #88a870;
  --color-accent-dark:   #507040;
  --color-accent-light:  #b0c898;
  --color-accent-rgb:    136,168,112;
  --color-border:        rgba(136,168,112,0.18);
  --color-border-strong: rgba(136,168,112,0.42);
  --color-danger:        #c86050;
  --color-success:       #60c870;
  --shadow-sm:           0 2px 8px rgba(2,4,2,0.72);
  --shadow-md:           0 4px 24px rgba(2,4,2,0.82);
  --shadow-lg:           0 12px 48px rgba(1,2,1,0.92);
  --shadow-accent:       0 0 28px rgba(136,168,112,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(12,20,14,0.97),rgba(7,12,8,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           4px; --radius-md:9px; --radius-lg:16px;
}

/* ── Thème 44 : Aurore Polaire ────────────────────────────────────────── */
[data-theme="aurore-polaire"] {
  --color-bg-primary:    #020508;
  --color-bg-secondary:  #040c12;
  --color-bg-surface:    rgba(5,12,18,0.97);
  --color-bg-card:       rgba(3,8,14,0.99);
  --color-text-primary:  #e0f8e8;
  --color-text-secondary:#60c890;
  --color-text-muted:    #306850;
  --color-accent:        #60c890;
  --color-accent-dark:   #308860;
  --color-accent-light:  #90e8b8;
  --color-accent-rgb:    96,200,144;
  --color-border:        rgba(96,200,144,0.18);
  --color-border-strong: rgba(96,200,144,0.42);
  --color-danger:        #d06060;
  --color-success:       #50d880;
  --shadow-sm:           0 2px 8px rgba(0,4,8,0.8);
  --shadow-md:           0 4px 24px rgba(0,4,8,0.88);
  --shadow-lg:           0 12px 48px rgba(0,2,6,0.95);
  --shadow-accent:       0 0 40px rgba(96,200,144,0.32);
  --gradient-surface:    linear-gradient(160deg,rgba(5,12,18,0.97),rgba(2,6,12,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Raleway', sans-serif;
  --radius-sm:           5px; --radius-md:10px; --radius-lg:18px;
}

/* ── Thème 45 : Grain Argentique ─────────────────────────────────────── */
[data-theme="grain-argentique"] {
  --color-bg-primary:    #0c0804;
  --color-bg-secondary:  #181208;
  --color-bg-surface:    rgba(22,16,8,0.96);
  --color-bg-card:       rgba(14,10,4,0.98);
  --color-text-primary:  #f0e8d0;
  --color-text-secondary:#b09868;
  --color-text-muted:    #686040;
  --color-accent:        #c09858;
  --color-accent-dark:   #806030;
  --color-accent-light:  #e0c080;
  --color-accent-rgb:    192,152,88;
  --color-border:        rgba(192,152,88,0.18);
  --color-border-strong: rgba(192,152,88,0.45);
  --color-danger:        #c86050;
  --color-success:       #78b870;
  --shadow-sm:           0 2px 8px rgba(6,4,2,0.72);
  --shadow-md:           0 4px 24px rgba(6,4,2,0.82);
  --shadow-lg:           0 12px 48px rgba(4,2,1,0.92);
  --shadow-accent:       0 0 28px rgba(192,152,88,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(22,16,8,0.97),rgba(12,8,4,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           4px; --radius-md:9px; --radius-lg:16px;
}

/* ── Thème 46 : Éditorial Noir ───────────────────────────────────────── */
[data-theme="editorial-noir"] {
  --color-bg-primary:    #000000;
  --color-bg-secondary:  #080808;
  --color-bg-surface:    rgba(10,10,10,0.97);
  --color-bg-card:       rgba(6,6,6,0.99);
  --color-text-primary:  #f0f0f0;
  --color-text-secondary:#a0a0a0;
  --color-text-muted:    #505050;
  --color-accent:        #f0f0f0;
  --color-accent-dark:   #a0a0a0;
  --color-accent-light:  #ffffff;
  --color-accent-rgb:    240,240,240;
  --color-border:        rgba(240,240,240,0.12);
  --color-border-strong: rgba(240,240,240,0.38);
  --color-danger:        #e05050;
  --color-success:       #50c070;
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.9);
  --shadow-md:           0 4px 24px rgba(0,0,0,0.95);
  --shadow-lg:           0 12px 48px rgba(0,0,0,0.98);
  --shadow-accent:       0 0 28px rgba(240,240,240,0.12);
  --gradient-surface:    linear-gradient(160deg,rgba(10,10,10,0.97),rgba(4,4,4,0.99));
  --font-heading:        'Bebas Neue', sans-serif;
  --font-body:           'Inter', sans-serif;
  --radius-sm:           2px; --radius-md:5px; --radius-lg:10px;
}

/* ── Thème 47 : Champagne Doré ───────────────────────────────────────── */
[data-theme="champagne-dore"] {
  --color-bg-primary:    #180f06;
  --color-bg-secondary:  #241808;
  --color-bg-surface:    rgba(30,20,8,0.96);
  --color-bg-card:       rgba(20,14,4,0.98);
  --color-text-primary:  #f8f0d8;
  --color-text-secondary:#c8b078;
  --color-text-muted:    #806838;
  --color-accent:        #d4b878;
  --color-accent-dark:   #9a7e40;
  --color-accent-light:  #f0d8a0;
  --color-accent-rgb:    212,184,120;
  --color-border:        rgba(212,184,120,0.18);
  --color-border-strong: rgba(212,184,120,0.45);
  --color-danger:        #d06060;
  --color-success:       #70b878;
  --shadow-sm:           0 2px 8px rgba(8,4,0,0.72);
  --shadow-md:           0 4px 24px rgba(8,4,0,0.82);
  --shadow-lg:           0 12px 48px rgba(4,2,0,0.92);
  --shadow-accent:       0 0 30px rgba(212,184,120,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(30,20,8,0.97),rgba(16,10,4,0.99));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Nunito', sans-serif;
  --radius-sm:           6px; --radius-md:14px; --radius-lg:26px;
}

/* ── Thème 48 : Reportage Gris ───────────────────────────────────────── */
[data-theme="reportage-gris"] {
  --color-bg-primary:    #080808;
  --color-bg-secondary:  #111111;
  --color-bg-surface:    rgba(16,16,16,0.96);
  --color-bg-card:       rgba(10,10,10,0.98);
  --color-text-primary:  #e8e8e8;
  --color-text-secondary:#888888;
  --color-text-muted:    #484848;
  --color-accent:        #c85050;
  --color-accent-dark:   #883030;
  --color-accent-light:  #e87878;
  --color-accent-rgb:    200,80,80;
  --color-border:        rgba(200,80,80,0.18);
  --color-border-strong: rgba(200,80,80,0.45);
  --color-danger:        #e04040;
  --color-success:       #50b870;
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.85);
  --shadow-md:           0 4px 24px rgba(0,0,0,0.9);
  --shadow-lg:           0 12px 48px rgba(0,0,0,0.96);
  --shadow-accent:       0 0 24px rgba(200,80,80,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(16,16,16,0.97),rgba(8,8,8,0.99));
  --font-heading:        'Oswald', sans-serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:           3px; --radius-md:6px; --radius-lg:12px;
}

/* ── Thème 49 : Encre de Chine ───────────────────────────────────────── */
[data-theme="encre-de-chine"] {
  --color-bg-primary:    #040408;
  --color-bg-secondary:  #08080e;
  --color-bg-surface:    rgba(10,10,16,0.97);
  --color-bg-card:       rgba(6,6,12,0.99);
  --color-text-primary:  #e8eaf8;
  --color-text-secondary:#8090b8;
  --color-text-muted:    #405070;
  --color-accent:        #7088a8;
  --color-accent-dark:   #405878;
  --color-accent-light:  #98b0d0;
  --color-accent-rgb:    112,136,168;
  --color-border:        rgba(112,136,168,0.18);
  --color-border-strong: rgba(112,136,168,0.42);
  --color-danger:        #c86060;
  --color-success:       #58b870;
  --shadow-sm:           0 2px 8px rgba(0,0,6,0.82);
  --shadow-md:           0 4px 24px rgba(0,0,6,0.9);
  --shadow-lg:           0 12px 48px rgba(0,0,4,0.96);
  --shadow-accent:       0 0 28px rgba(112,136,168,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(10,10,16,0.97),rgba(5,5,12,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'EB Garamond', serif;
  --radius-sm:           4px; --radius-md:9px; --radius-lg:16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SWATCHES NOUVEAUX THÈMES (picker modal thème)
═══════════════════════════════════════════════════════════════════════════ */
.swatch-tourbiere       { background: linear-gradient(135deg,#080502 60%,#b87840); }
.swatch-crepuscule-ocean{ background: linear-gradient(135deg,#040810 60%,#e08050); }
.swatch-sous-bois-vert  { background: linear-gradient(135deg,#030604 60%,#98c870); }
.swatch-nuit-etoilee    { background: linear-gradient(135deg,#010102 60%,#6888c8); }
.swatch-brume-matinale  { background: linear-gradient(135deg,#0c1018 60%,#a8c0d0); }
.swatch-falaise-granit  { background: linear-gradient(135deg,#070a07 60%,#88a870); }
.swatch-aurore-polaire  { background: linear-gradient(135deg,#020508 60%,#60c890); }
.swatch-grain-argentique{ background: linear-gradient(135deg,#0c0804 60%,#c09858); }
.swatch-editorial-noir  { background: linear-gradient(135deg,#000000 60%,#f0f0f0); }
.swatch-champagne-dore  { background: linear-gradient(135deg,#180f06 60%,#d4b878); }
.swatch-reportage-gris  { background: linear-gradient(135deg,#080808 60%,#c85050); }
.swatch-encre-de-chine  { background: linear-gradient(135deg,#040408 60%,#7088a8); }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR HAMBURGER MOBILE
═══════════════════════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.22s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay mobile */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.28s ease;
}
.nav-mobile-overlay.hidden { display: none; }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.nav-mobile-link {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 40px;
  transition: color 0.22s, transform 0.22s;
  border-left: 3px solid transparent;
}
.nav-mobile-link i { font-size: 1.1rem; width: 24px; text-align: center; }
.nav-mobile-link.active { color: var(--color-accent); border-left-color: var(--color-accent); }
.nav-mobile-link:hover  { color: #fff; transform: translateX(8px); }

.nav-mobile-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.8rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.nav-mobile-accent {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.4;
  margin: 16px 0;
}

/* Media query hamburger */
@media (max-width: 768px) {
  .admin-nav { display: none !important; }
  .nav-hamburger { display: flex; }
  .admin-tools .btn-admin span { display: none; }
  .admin-tools { min-width: auto; gap: 4px; }
  #admin-bar { padding: 0 12px; }
}

/* ── Badge langue dans la barre d'édition ────────────────────────────────── */
.editor-lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(200,190,170,0.7);
  cursor: default;
  user-select: none;
}
.editor-lang-badge[data-lang="en"] {
  background: rgba(100,180,255,0.12);
  border-color: rgba(100,180,255,0.4);
  color: #7ec8ff;
}

/* ── Bouton langue FR/EN ──────────────────────────────────────────────────── */
#btn-lang {
  min-width: 42px;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  border-color: rgba(255,255,255,0.2);
  color: rgba(220,210,190,0.85);
}
#btn-lang:hover {
  background: rgba(var(--color-accent-rgb), 0.15);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
/* Toujours visible même sur mobile */
@media (max-width: 768px) {
  .admin-tools #btn-lang span { display: inline !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRANSITIONS DE PAGE — Fade + légère montée
═══════════════════════════════════════════════════════════════════════════ */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
.page-canvas.page-entering {
  animation: pageFadeIn 0.38s cubic-bezier(0.4,0,0.2,1) forwards;
}
.page-canvas.page-leaving {
  animation: pageFadeOut 0.22s cubic-bezier(0.4,0,0.2,1) forwards;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATÉGORIES THÈMES — Onglets de filtrage dans le modal
═══════════════════════════════════════════════════════════════════════════ */
.theme-category-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.theme-cat-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  font-family: inherit;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.theme-cat-btn:hover { border-color: rgba(255,255,255,0.35); color: #fff; }
.theme-cat-btn.active {
  background: rgba(var(--color-accent-rgb),0.18);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE COMPLET — Mobile-first sections
═══════════════════════════════════════════════════════════════════════════ */

/* Canvas mobile */
@media (max-width: 768px) {
  .page-canvas { min-height: calc(100svh - 64px); }
}

/* Gallery section mobile */
@media (max-width: 768px) {
  #gallery-section { padding: 24px 14px 40px; }
  .gallery-block-header { margin-bottom: 14px; }
  .gallery-block-title { font-size: clamp(17px,5vw,24px); }
  .gallery-filter-bar { gap: 6px; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .gallery-filter-btn { padding: 6px 12px; font-size: 10px; white-space: nowrap; }
  .gallery-admin-bar { flex-wrap: wrap; gap: 8px; }
  .gallery-admin-actions { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  #gallery-section { padding: 16px 10px 32px; }
}

/* Contact section mobile */
@media (max-width: 768px) {
  #contact-section { padding: 0 14px 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .contact-form { padding: 22px 18px; }
  .contact-form-row { grid-template-columns: 1fr; }
}

/* Footer responsive amélioré */
@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-content { grid-template-columns: 1fr; gap: 24px; padding: 0 20px 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; padding: 16px 20px; }
  .site-footer { padding-top: 36px; }
}

/* Lightbox responsive */
@media (max-width: 600px) {
  #lb-info-panel { display: none; }
  #lb-filmstrip  { display: none; }
  .lb-nav-btn { width: 36px; height: 36px; font-size: 13px; }
}

/* Modal responsive */
@media (max-width: 600px) {
  .modal-box { margin: 8px; width: calc(100vw - 16px); max-height: 95vh; }
  .modal-gallery-box { max-height: 95vh; }
  .gal-options-grid { grid-template-columns: 1fr; }
}

/* Barre d'édition responsive */
@media (max-width: 600px) {
  #edit-bar { padding: 6px 8px; gap: 4px; overflow-x: auto; }
  .ebtn { padding: 6px 8px; font-size: 10px; }
  .ebtn span { display: none; }
}

/* Propriétés panel responsive */
@media (max-width: 768px) {
  #properties-panel { display: none !important; }
}


/* ═══════════════════════════════════════════════════════
   NOUVEAUX THÈMES — SESSION 2
   12 thèmes distinctifs : nature bretonne + édito + minimalistes
   ═══════════════════════════════════════════════════════ */

/* ── Tempête Atlantique ── */
[data-theme="tempete-atlantique"] {
  --color-bg-primary:    #040506;
  --color-bg-secondary:  #090c10;
  --color-bg-surface:    rgba(9,12,16,0.97);
  --color-bg-card:       rgba(4,5,6,0.98);
  --color-text-primary:  #e8eef8;
  --color-text-secondary:#8090b0;
  --color-text-muted:    #404860;
  --color-accent:        #ffe820;
  --color-accent-dark:   #c0a800;
  --color-accent-light:  #fff060;
  --color-accent-rgb:    255,232,32;
  --color-border:        rgba(255,232,32,0.15);
  --color-border-strong: rgba(255,232,32,0.4);
  --color-danger:        #ff4040;
  --color-success:       #40e080;
  --shadow-sm:           0 2px 8px rgba(0,0,4,0.8);
  --shadow-md:           0 4px 24px rgba(0,0,4,0.88);
  --shadow-lg:           0 12px 48px rgba(0,0,2,0.95);
  --shadow-accent:       0 0 32px rgba(255,232,32,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(9,12,16,0.98),rgba(4,5,6,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:4px; --radius-md:8px; --radius-lg:16px;
}
.swatch-tempete-atlantique {
  background: linear-gradient(135deg,#040506 0%,#090c10 50%,#ffe820 100%);
}

/* ── Côte d'Armorique ── */
[data-theme="cote-armorique"] {
  --color-bg-primary:    #010c12;
  --color-bg-secondary:  #031828;
  --color-bg-surface:    rgba(3,24,40,0.97);
  --color-bg-card:       rgba(1,12,18,0.98);
  --color-text-primary:  #d0f0f8;
  --color-text-secondary:#4098b0;
  --color-text-muted:    #204850;
  --color-accent:        #00d4b8;
  --color-accent-dark:   #008878;
  --color-accent-light:  #40f0d8;
  --color-accent-rgb:    0,212,184;
  --color-border:        rgba(0,212,184,0.15);
  --color-border-strong: rgba(0,212,184,0.4);
  --color-danger:        #ff5050;
  --color-success:       #40e0a0;
  --shadow-sm:           0 2px 8px rgba(0,4,8,0.8);
  --shadow-md:           0 4px 24px rgba(0,4,8,0.88);
  --shadow-lg:           0 12px 48px rgba(0,2,4,0.95);
  --shadow-accent:       0 0 32px rgba(0,212,184,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(3,24,40,0.98),rgba(1,12,18,0.99));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:5px; --radius-md:10px; --radius-lg:20px;
}
.swatch-cote-armorique {
  background: linear-gradient(135deg,#010c12 0%,#031828 50%,#00d4b8 100%);
}

/* ── Granit Rose ── */
[data-theme="granit-rose"] {
  --color-bg-primary:    #0e0608;
  --color-bg-secondary:  #180c12;
  --color-bg-surface:    rgba(24,12,18,0.97);
  --color-bg-card:       rgba(14,6,8,0.98);
  --color-text-primary:  #f0e0e8;
  --color-text-secondary:#b07888;
  --color-text-muted:    #604050;
  --color-accent:        #d09898;
  --color-accent-dark:   #a06070;
  --color-accent-light:  #f0b8c0;
  --color-accent-rgb:    208,152,152;
  --color-border:        rgba(208,152,152,0.18);
  --color-border-strong: rgba(208,152,152,0.45);
  --color-danger:        #e05050;
  --color-success:       #70c890;
  --shadow-sm:           0 2px 8px rgba(4,0,2,0.75);
  --shadow-md:           0 4px 24px rgba(4,0,2,0.85);
  --shadow-lg:           0 12px 48px rgba(2,0,1,0.92);
  --shadow-accent:       0 0 28px rgba(208,152,152,0.22);
  --gradient-surface:    linear-gradient(160deg,rgba(24,12,18,0.98),rgba(14,6,8,0.99));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Source Serif 4', serif;
  --radius-sm:6px; --radius-md:12px; --radius-lg:22px;
}
.swatch-granit-rose {
  background: linear-gradient(135deg,#0e0608 0%,#180c12 50%,#d09898 100%);
}

/* ── Lande Bretonne ── */
[data-theme="lande-bretonne"] {
  --color-bg-primary:    #080406;
  --color-bg-secondary:  #140a14;
  --color-bg-surface:    rgba(20,10,20,0.97);
  --color-bg-card:       rgba(8,4,6,0.98);
  --color-text-primary:  #ede0f8;
  --color-text-secondary:#8060a0;
  --color-text-muted:    #503060;
  --color-accent:        #9b4bc0;
  --color-accent-dark:   #6a2888;
  --color-accent-light:  #c070e8;
  --color-accent-rgb:    155,75,192;
  --color-border:        rgba(155,75,192,0.18);
  --color-border-strong: rgba(155,75,192,0.45);
  --color-danger:        #e04060;
  --color-success:       #60c080;
  --shadow-sm:           0 2px 8px rgba(2,0,4,0.78);
  --shadow-md:           0 4px 24px rgba(2,0,4,0.87);
  --shadow-lg:           0 12px 48px rgba(1,0,2,0.94);
  --shadow-accent:       0 0 30px rgba(155,75,192,0.28);
  --gradient-surface:    linear-gradient(160deg,rgba(20,10,20,0.98),rgba(8,4,6,0.99));
  --font-heading:        'Cinzel', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:4px; --radius-md:9px; --radius-lg:16px;
}
.swatch-lande-bretonne {
  background: linear-gradient(135deg,#080406 0%,#140a14 50%,#9b4bc0 100%);
}

/* ── Phosphène ── */
[data-theme="phosphene"] {
  --color-bg-primary:    #000008;
  --color-bg-secondary:  #04040e;
  --color-bg-surface:    rgba(4,4,14,0.98);
  --color-bg-card:       rgba(0,0,8,0.99);
  --color-text-primary:  #d8d0f8;
  --color-text-secondary:#5048b0;
  --color-text-muted:    #282060;
  --color-accent:        #5030e0;
  --color-accent-dark:   #3018a0;
  --color-accent-light:  #8060ff;
  --color-accent-rgb:    80,48,224;
  --color-border:        rgba(80,48,224,0.2);
  --color-border-strong: rgba(80,48,224,0.5);
  --color-danger:        #e03050;
  --color-success:       #40d0a0;
  --shadow-sm:           0 2px 10px rgba(0,0,4,0.9);
  --shadow-md:           0 4px 28px rgba(0,0,4,0.94);
  --shadow-lg:           0 16px 56px rgba(0,0,2,0.98);
  --shadow-accent:       0 0 40px rgba(80,48,224,0.35);
  --gradient-surface:    linear-gradient(160deg,rgba(4,4,14,0.99),rgba(0,0,8,1));
  --font-heading:        'Space Grotesk', sans-serif;
  --font-body:           'Outfit', sans-serif;
  --radius-sm:3px; --radius-md:7px; --radius-lg:14px;
}
.swatch-phosphene {
  background: linear-gradient(135deg,#000008 0%,#04040e 50%,#5030e0 100%);
}

/* ── Osmonde Royale ── */
[data-theme="osmonde"] {
  --color-bg-primary:    #040c04;
  --color-bg-secondary:  #081a08;
  --color-bg-surface:    rgba(8,26,8,0.97);
  --color-bg-card:       rgba(4,12,4,0.98);
  --color-text-primary:  #d8f0d0;
  --color-text-secondary:#50a840;
  --color-text-muted:    #286020;
  --color-accent:        #60c840;
  --color-accent-dark:   #388020;
  --color-accent-light:  #90e860;
  --color-accent-rgb:    96,200,64;
  --color-border:        rgba(96,200,64,0.15);
  --color-border-strong: rgba(96,200,64,0.4);
  --color-danger:        #e05030;
  --color-success:       #40e090;
  --shadow-sm:           0 2px 8px rgba(0,4,0,0.8);
  --shadow-md:           0 4px 24px rgba(0,4,0,0.88);
  --shadow-lg:           0 12px 48px rgba(0,2,0,0.95);
  --shadow-accent:       0 0 28px rgba(96,200,64,0.25);
  --gradient-surface:    linear-gradient(160deg,rgba(8,26,8,0.98),rgba(4,12,4,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:5px; --radius-md:10px; --radius-lg:18px;
}
.swatch-osmonde {
  background: linear-gradient(135deg,#040c04 0%,#081a08 50%,#60c840 100%);
}

/* ── Coucher Finistère ── */
[data-theme="soleil-finistere"] {
  --color-bg-primary:    #0e0408;
  --color-bg-secondary:  #220808;
  --color-bg-surface:    rgba(34,8,8,0.97);
  --color-bg-card:       rgba(14,4,8,0.98);
  --color-text-primary:  #f8e8d8;
  --color-text-secondary:#c07050;
  --color-text-muted:    #703828;
  --color-accent:        #e85020;
  --color-accent-dark:   #a02c08;
  --color-accent-light:  #ff8050;
  --color-accent-rgb:    232,80,32;
  --color-border:        rgba(232,80,32,0.18);
  --color-border-strong: rgba(232,80,32,0.48);
  --color-danger:        #ff3030;
  --color-success:       #60c870;
  --shadow-sm:           0 2px 8px rgba(6,0,0,0.82);
  --shadow-md:           0 4px 24px rgba(6,0,0,0.9);
  --shadow-lg:           0 12px 48px rgba(4,0,0,0.96);
  --shadow-accent:       0 0 36px rgba(232,80,32,0.32);
  --gradient-surface:    linear-gradient(160deg,rgba(34,8,8,0.98),rgba(14,4,8,0.99));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:4px; --radius-md:9px; --radius-lg:16px;
}
.swatch-soleil-finistere {
  background: linear-gradient(135deg,#0e0408 0%,#220808 50%,#e85020 100%);
}

/* ── Herbier Marin ── */
[data-theme="herbier-marin"] {
  --color-bg-primary:    #020a06;
  --color-bg-secondary:  #061408;
  --color-bg-surface:    rgba(6,20,8,0.97);
  --color-bg-card:       rgba(2,10,6,0.98);
  --color-text-primary:  #c8f0d8;
  --color-text-secondary:#3098608;
  --color-text-secondary:#309860;
  --color-text-muted:    #185830;
  --color-accent:        #28b870;
  --color-accent-dark:   #107840;
  --color-accent-light:  #60e0a0;
  --color-accent-rgb:    40,184,112;
  --color-border:        rgba(40,184,112,0.16);
  --color-border-strong: rgba(40,184,112,0.42);
  --color-danger:        #e04040;
  --color-success:       #40e8a0;
  --shadow-sm:           0 2px 8px rgba(0,4,2,0.8);
  --shadow-md:           0 4px 24px rgba(0,4,2,0.88);
  --shadow-lg:           0 12px 48px rgba(0,2,1,0.95);
  --shadow-accent:       0 0 28px rgba(40,184,112,0.24);
  --gradient-surface:    linear-gradient(160deg,rgba(6,20,8,0.98),rgba(2,10,6,0.99));
  --font-heading:        'Playfair Display', serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:6px; --radius-md:12px; --radius-lg:22px;
}
.swatch-herbier-marin {
  background: linear-gradient(135deg,#020a06 0%,#061408 50%,#28b870 100%);
}

/* ── Rouille Marine ── */
[data-theme="rouille-marine"] {
  --color-bg-primary:    #0c0400;
  --color-bg-secondary:  #180800;
  --color-bg-surface:    rgba(24,8,0,0.97);
  --color-bg-card:       rgba(12,4,0,0.98);
  --color-text-primary:  #f0d8c0;
  --color-text-secondary:#c06030;
  --color-text-muted:    #703018;
  --color-accent:        #c84010;
  --color-accent-dark:   #882200;
  --color-accent-light:  #f06030;
  --color-accent-rgb:    200,64,16;
  --color-border:        rgba(200,64,16,0.2);
  --color-border-strong: rgba(200,64,16,0.5);
  --color-danger:        #ff2020;
  --color-success:       #60c878;
  --shadow-sm:           0 2px 8px rgba(6,1,0,0.82);
  --shadow-md:           0 4px 24px rgba(6,1,0,0.9);
  --shadow-lg:           0 12px 48px rgba(4,1,0,0.96);
  --shadow-accent:       0 0 32px rgba(200,64,16,0.3);
  --gradient-surface:    linear-gradient(160deg,rgba(24,8,0,0.98),rgba(12,4,0,0.99));
  --font-heading:        'Bebas Neue', sans-serif;
  --font-body:           'Lato', sans-serif;
  --radius-sm:2px; --radius-md:5px; --radius-lg:10px;
}
.swatch-rouille-marine {
  background: linear-gradient(135deg,#0c0400 0%,#180800 50%,#c84010 100%);
}

/* ── Calcaire Clair (thème CLAIR) ── */
[data-theme="calcaire-clair"] {
  --color-bg-primary:    #f2ede4;
  --color-bg-secondary:  #e8e0d0;
  --color-bg-surface:    rgba(242,237,228,0.97);
  --color-bg-card:       rgba(248,244,238,0.98);
  --color-text-primary:  #1a1208;
  --color-text-secondary:#5a4028;
  --color-text-muted:    #9a8068;
  --color-accent:        #4a3010;
  --color-accent-dark:   #2a1808;
  --color-accent-light:  #7a5830;
  --color-accent-rgb:    74,48,16;
  --color-border:        rgba(74,48,16,0.15);
  --color-border-strong: rgba(74,48,16,0.4);
  --color-danger:        #c03020;
  --color-success:       #386828;
  --shadow-sm:           0 2px 8px rgba(20,12,4,0.12);
  --shadow-md:           0 4px 24px rgba(20,12,4,0.18);
  --shadow-lg:           0 12px 48px rgba(20,12,4,0.25);
  --shadow-accent:       0 0 24px rgba(74,48,16,0.15);
  --gradient-surface:    linear-gradient(160deg,rgba(242,237,228,0.97),rgba(248,244,238,0.98));
  --font-heading:        'Cormorant Garamond', serif;
  --font-body:           'Source Serif 4', serif;
  --radius-sm:5px; --radius-md:10px; --radius-lg:18px;
}
.swatch-calcaire-clair {
  background: linear-gradient(135deg,#f2ede4 0%,#e8e0d0 50%,#4a3010 100%);
}

/* ── Schiste Breton ── */
[data-theme="schiste-bleu"] {
  --color-bg-primary:    #060810;
  --color-bg-secondary:  #0e1220;
  --color-bg-surface:    rgba(14,18,32,0.97);
  --color-bg-card:       rgba(6,8,16,0.98);
  --color-text-primary:  #d0d8f0;
  --color-text-secondary:#6878c0;
  --color-text-muted:    #384070;
  --color-accent:        #5070c0;
  --color-accent-dark:   #304888;
  --color-accent-light:  #7898e0;
  --color-accent-rgb:    80,112,192;
  --color-border:        rgba(80,112,192,0.16);
  --color-border-strong: rgba(80,112,192,0.42);
  --color-danger:        #e04050;
  --color-success:       #50d890;
  --shadow-sm:           0 2px 8px rgba(0,2,8,0.8);
  --shadow-md:           0 4px 24px rgba(0,2,8,0.88);
  --shadow-lg:           0 12px 48px rgba(0,1,4,0.95);
  --shadow-accent:       0 0 28px rgba(80,112,192,0.24);
  --gradient-surface:    linear-gradient(160deg,rgba(14,18,32,0.98),rgba(6,8,16,0.99));
  --font-heading:        'Space Grotesk', sans-serif;
  --font-body:           'Outfit', sans-serif;
  --radius-sm:4px; --radius-md:8px; --radius-lg:14px;
}
.swatch-schiste-bleu {
  background: linear-gradient(135deg,#060810 0%,#0e1220 50%,#5070c0 100%);
}

/* ── Carbone & Feu ── */
[data-theme="carbone-feu"] {
  --color-bg-primary:    #080808;
  --color-bg-secondary:  #101010;
  --color-bg-surface:    rgba(16,16,16,0.98);
  --color-bg-card:       rgba(8,8,8,0.99);
  --color-text-primary:  #f8f8f8;
  --color-text-secondary:#a08080;
  --color-text-muted:    #505050;
  --color-accent:        #ff4020;
  --color-accent-dark:   #c01808;
  --color-accent-light:  #ff7040;
  --color-accent-rgb:    255,64,32;
  --color-border:        rgba(255,64,32,0.18);
  --color-border-strong: rgba(255,64,32,0.48);
  --color-danger:        #ff2020;
  --color-success:       #40e080;
  --shadow-sm:           0 2px 10px rgba(0,0,0,0.9);
  --shadow-md:           0 4px 28px rgba(0,0,0,0.95);
  --shadow-lg:           0 16px 56px rgba(0,0,0,0.98);
  --shadow-accent:       0 0 40px rgba(255,64,32,0.35);
  --gradient-surface:    linear-gradient(160deg,rgba(16,16,16,0.99),rgba(8,8,8,1));
  --font-heading:        'Bebas Neue', sans-serif;
  --font-body:           'Space Grotesk', sans-serif;
  --radius-sm:2px; --radius-md:4px; --radius-lg:8px;
}
.swatch-carbone-feu {
  background: linear-gradient(135deg,#080808 0%,#101010 50%,#ff4020 100%);
}
