/* ==========================================================================
   JuriSign — habillage « Etude » (v5.0.0, choisi par Patrick le 21/11/2026 :
   maquette n° 4). Pose par App\Http\Middleware\HabillageEtude sur toutes les
   pages HTML (<html data-theme="etude">). Coupe-circuit : JURISIGN_THEME=aucun.
   Parti pris : l'etude du notaire. Ivoire, vert empire, laiton ; grand serif
   de livre, petites capitales, filets fins. Rien ne clignote : les animations
   sont lentes et discretes. Le ressenti recherche est la CONFIANCE.
   ========================================================================== */
html[data-theme="etude"] {
    --v4-ivoire: #f6f1e6; --v4-velin: #fffdf8; --v4-empire: #0f2f27; --v4-laiton: #a8853f; --v4-laiton-clair: #d9c08a; --v4-encre: #1b1d1c;

    --font-sans: "Libre Franklin", ui-sans-serif, system-ui, sans-serif;
    --radius-xs: 1px; --radius-sm: 2px; --radius-md: 2px; --radius-lg: 3px; --radius-xl: 3px; --radius-2xl: 4px; --radius-3xl: 4px;

    --color-white: #fffdf8;
    --color-gray-50: #f6f1e6;  --color-gray-100: #ede6d6; --color-gray-200: #ddd3bd;
    --color-gray-300: #c2b79d; --color-gray-400: #8f8672; --color-gray-500: #6c6557;
    --color-gray-600: #4f4a40; --color-gray-700: #38352e; --color-gray-800: #262421; --color-gray-900: #1b1d1c;
    --color-slate-50: #f6f1e6;  --color-slate-100: #ede6d6; --color-slate-200: #ddd3bd;
    --color-slate-300: #c2b79d; --color-slate-400: #8f8672; --color-slate-500: #6c6557;
    --color-slate-600: #4f4a40; --color-slate-700: #38352e; --color-slate-800: #262421; --color-slate-900: #1b1d1c;

    /* Vert empire a la place du bleu. */
    --color-primary-50: #edf3f0;  --color-primary-100: #d8e5df; --color-primary-200: #b3cbc1;
    --color-primary-300: #84a999; --color-primary-400: #4f8271; --color-primary-500: #2a6654;
    --color-primary-600: #174a3c; --color-primary-700: #0f3a2f; --color-primary-800: #0f2f27; --color-primary-900: #0a221c;
    --color-blue-50: #edf3f0;  --color-blue-100: #d8e5df; --color-blue-200: #b3cbc1;
    --color-blue-300: #84a999; --color-blue-400: #4f8271; --color-blue-500: #2a6654;
    --color-blue-600: #174a3c; --color-blue-700: #0f3a2f; --color-blue-800: #0f2f27; --color-blue-900: #0a221c;
    --color-indigo-50: #f6f0e2; --color-indigo-100: #efe5cd; --color-indigo-200: #e2d1a8;
    --color-indigo-500: #a8853f; --color-indigo-600: #8c6d30; --color-indigo-700: #705626; --color-indigo-800: #57431f;
    /* Laiton pour la mise en avant (boutons Flash, pastilles). */
    --color-amber-50: #f8f2e4; --color-amber-100: #f0e5c9; --color-amber-200: #e4d2a2;
    --color-amber-400: #c9a961; --color-amber-500: #b8964f; --color-amber-600: #8c6d30; --color-amber-700: #705626;

    /* Peaufinage (21/11/2026) : plus aucune couleur « appli » (menthe, violet, rose, ciel).
       Les verts deviennent vert empire, les violets du laiton, les rouges un bordeaux de cire. */
    --color-accent-50: #edf3f0;  --color-accent-100: #d8e5df; --color-accent-200: #b3cbc1; --color-accent-300: #84a999;
    --color-accent-400: #4f8271; --color-accent-500: #2a6654; --color-accent-600: #174a3c; --color-accent-700: #0f3a2f; --color-accent-800: #0f2f27;
    --color-emerald-50: #edf3f0;  --color-emerald-100: #e4ece7; --color-emerald-200: #c9d8cf; --color-emerald-300: #84a999;
    --color-emerald-400: #4f8271; --color-emerald-500: #2a6654; --color-emerald-600: #174a3c; --color-emerald-700: #0f3a2f; --color-emerald-800: #0f2f27;
    --color-green-50: #edf3f0;  --color-green-100: #e4ece7; --color-green-200: #c9d8cf; --color-green-500: #2a6654; --color-green-600: #174a3c; --color-green-700: #0f3a2f;
    --color-teal-50: #edf3f0;  --color-teal-100: #e4ece7; --color-teal-600: #174a3c; --color-teal-700: #0f3a2f;
    --color-sky-50: #edf3f0;  --color-sky-100: #e4ece7; --color-sky-600: #2a6654; --color-sky-700: #174a3c;
    --color-cyan-50: #edf3f0; --color-cyan-100: #e4ece7; --color-cyan-600: #2a6654; --color-cyan-700: #174a3c;
    --color-violet-50: #f8f2e4; --color-violet-100: #f0e5c9; --color-violet-200: #e4d2a2; --color-violet-500: #a8853f; --color-violet-600: #8c6d30; --color-violet-700: #705626;
    --color-purple-50: #f8f2e4; --color-purple-100: #f0e5c9; --color-purple-200: #e4d2a2; --color-purple-500: #a8853f; --color-purple-600: #8c6d30; --color-purple-700: #705626;
    --color-orange-50: #f8f2e4; --color-orange-100: #f0e5c9; --color-orange-500: #b8964f; --color-orange-600: #8c6d30; --color-orange-700: #705626;
    --color-yellow-50: #f8f2e4; --color-yellow-100: #f0e5c9; --color-yellow-300: #e4d2a2; --color-yellow-400: #d9c08a; --color-yellow-500: #b8964f; --color-yellow-600: #8c6d30;
    --color-rose-50: #f7ecea; --color-rose-100: #f0dcd8; --color-rose-500: #8e2f2a; --color-rose-600: #7a2622; --color-rose-700: #621d1a;
    --color-red-50: #f7ecea; --color-red-100: #f0dcd8; --color-red-500: #8e2f2a; --color-red-600: #7a2622; --color-red-700: #621d1a;

    background: var(--v4-ivoire);
}
html[data-theme="etude"] body { background-color: var(--v4-ivoire) !important; color: var(--v4-encre); }
/* Sceau en filigrane : deux cercles de laiton qui tournent tres lentement. */
html[data-theme="etude"] body::before {
    content: ""; position: fixed; z-index: 0; pointer-events: none;
    width: 62vmin; height: 62vmin; right: -18vmin; bottom: -18vmin; border-radius: 50%;
    border: 1px solid rgb(168 133 63 / 0.35);
    outline: 1px dashed rgb(168 133 63 / 0.3); outline-offset: -14px;
    box-shadow: inset 0 0 0 30px rgb(168 133 63 / 0.03), inset 0 0 0 31px rgb(168 133 63 / 0.22);
    animation: v4-sceau 180s linear infinite;
}
html[data-theme="etude"] body > *:not(.fixed, .viewer-header, .viewer-content) { position: relative; z-index: 1; }
html[data-theme="etude"] body > :is(nav.fixed, .fixed, [class*="fixed "]) { position: fixed; }
/* La barre du haut passe AU-DESSUS du contenu (la regle precedente la ramenait a z-index 1 :
   sur telephone, le texte defilait par-dessus le logo). */
html[data-theme="etude"] body > nav.fixed { z-index: 50; }
html[data-theme="etude"] ::selection { background: var(--v4-empire); color: var(--v4-laiton-clair); }

/* --- Typographie de livre ---------------------------------------------------- */
html[data-theme="etude"] :is(h1, h2, h3) { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.012em; color: var(--v4-empire); }
/* 21/11/2026 : polices reduites a la demande de Patrick. Chaque titre GARDE la taille de sa vue
   (Tailwind) : la maquette imposait 5rem a tous les h1 et 3rem a tous les h2, y compris aux petits
   titres d'admin et de formulaire (« Que pensez-vous de JuriSign ? » sur trois lignes). Seuls les
   grands titres d'affiche des pages publiques recoivent la taille du theme. */
html[data-theme="etude"] h1 { font-weight: 600; }
/* Cormorant a un petit oeil : a taille egale il parait ~20 % plus petit que le texte courant.
   On aligne la hauteur des minuscules des titres ordinaires (pas des titres d'affiche). */
html[data-theme="etude"] :is(h1, h2, h3):not([class*="text-4xl"], [class*="text-5xl"], [class*="text-6xl"]) { font-size-adjust: 0.48; }
html[data-theme="etude"] h1:is([class*="text-5xl"], [class*="text-6xl"]) { font-size: clamp(2.3rem, 4.5vw, 4rem); line-height: 1.04; }
html[data-theme="etude"] h2:is([class*="text-4xl"], [class*="text-5xl"]) { font-size: clamp(1.6rem, 2.7vw, 2.4rem); line-height: 1.12; }
html[data-theme="etude"] :is(h1, h2) :is(span, em) {
    font-style: italic; font-weight: 500; color: #8c6d30; -webkit-text-fill-color: currentColor;
    -webkit-background-clip: border-box; background-clip: border-box;
    background-image: linear-gradient(var(--v4-laiton), var(--v4-laiton));
    background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px;
    animation: v4-filet 1.6s cubic-bezier(.2,.7,.2,1) both .3s;
}
/* Accueil : « en toute confiance » reste groupé sur sa propre ligne (choix de Patrick, 21/11/2026). */
html[data-theme="etude"] h1.lg\:text-6xl.tracking-tight > span { display: table; white-space: nowrap; }
@media (max-width: 380px) { html[data-theme="etude"] h1.lg\:text-6xl.tracking-tight > span { white-space: normal; } }
/* Sous 1024 px le titre est centre : la ligne « en toute confiance » aussi. */
@media (max-width: 1023px) { html[data-theme="etude"] h1.lg\:text-6xl.tracking-tight > span { margin-inline: auto; } }
/* Un paragraphe « § » ouvre chaque grand titre de l'accueil. */
html[data-theme="etude"] body > section:not(:first-of-type) h2::before {
    content: "§"; display: block; margin-bottom: 0.25em;
    font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 0.72em; color: var(--v4-laiton);
}
html[data-theme="etude"] :is(.uppercase, .tracking-wide, .tracking-wider, .tracking-widest, th) { letter-spacing: 0.14em; font-weight: 600; }
html[data-theme="etude"] body { font-feature-settings: "onum", "kern"; line-height: 1.65; }

/* --- Filets fins, ombres a peine visibles ------------------------------------ */
html[data-theme="etude"] :is(.shadow-sm, .shadow, .shadow-md) { box-shadow: 0 1px 2px 0 rgb(15 47 39 / 0.06) !important; }
html[data-theme="etude"] :is(.shadow-lg, .shadow-xl, .shadow-2xl) { box-shadow: 0 18px 40px -24px rgb(15 47 39 / 0.35) !important; }
html[data-theme="etude"] :is(.blur-3xl, .blur-2xl) { display: none !important; }
html[data-theme="etude"] body > section > .absolute[class*="bg-gradient-to"] { background-image: none; }
html[data-theme="etude"] :is(.border, .border-2, .border-b, .border-t, .border-r, .border-l):not([class*="border-transparent"]) { border-color: rgb(168 133 63 / 0.4); }

/* Cartes : feuille de velin, double filet de laiton comme un acte. */
html[data-theme="etude"] .bg-white:is(.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl) {
    border: 1px solid rgb(168 133 63 / 0.55);
    outline: 1px solid rgb(168 133 63 / 0.22); outline-offset: -6px;
    box-shadow: 0 1px 2px 0 rgb(15 47 39 / 0.05) !important;
    transition: box-shadow .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), outline-color .5s ease;
}
html[data-theme="etude"] a.bg-white:is(.rounded-lg, .rounded-xl, .rounded-2xl):hover,
html[data-theme="etude"] .bg-white:is(.rounded-xl, .rounded-2xl).group:hover {
    transform: translateY(-3px); outline-color: rgb(168 133 63 / 0.7);
    box-shadow: 0 22px 44px -26px rgb(15 47 39 / 0.5) !important;
}
html[data-theme="etude"] body > section:nth-of-type(even):not([class*="bg-primary-"]):not([class*="bg-gray-9"]):not([style*="background"]) { background-color: var(--v4-velin); border-block: 1px solid rgb(168 133 63 / 0.4); }

/* Sections sombres (Securite & conformite...) : panneau vert empire, texte clair, filets de laiton. */
html[data-theme="etude"] body > section:is(.bg-primary-900, .bg-primary-800) {
    background: radial-gradient(120% 120% at 100% 0%, #174a3c 0%, var(--v4-empire) 50%, #0a221c 100%) !important;
    border-block: 3px double var(--v4-laiton); color: #e7ede9;
}
html[data-theme="etude"] body > section:is(.bg-primary-900, .bg-primary-800) :is(h2, h3) { color: #f3ead3 !important; }
html[data-theme="etude"] body > section:is(.bg-primary-900, .bg-primary-800) h2::before { color: var(--v4-laiton-clair); }
html[data-theme="etude"] body > section:is(.bg-primary-900, .bg-primary-800) :is(p, li, [class*="text-primary-2"], [class*="text-primary-3"]) { color: #c9d6cf !important; }
html[data-theme="etude"] body > section:is(.bg-primary-900, .bg-primary-800) h2 + p,
html[data-theme="etude"] body > section:is(.bg-primary-900, .bg-primary-800) h2 + div + p { color: var(--v4-laiton-clair) !important; font-style: italic; }
html[data-theme="etude"] body > section:is(.bg-primary-900, .bg-primary-800) :is(.h-10, .h-12):is(.w-10, .w-12)[class][class][class] {
    background: transparent !important; border-radius: 50% !important;
    box-shadow: inset 0 0 0 1px rgb(217 192 138 / 0.75), inset 0 0 0 4px var(--v4-empire), inset 0 0 0 5px rgb(217 192 138 / 0.3) !important;
}
html[data-theme="etude"] body > section:is(.bg-primary-900, .bg-primary-800) :is(.h-10, .h-12) svg { color: var(--v4-laiton-clair) !important; }
html[data-theme="etude"] body > section:is(.bg-primary-900, .bg-primary-800) a:not([class*="bg-"]) { color: var(--v4-laiton-clair) !important; }

/* Cartes sur fond ivoire (bg-gray-50 + ring) : meme feuille de velin que les cartes blanches. */
html[data-theme="etude"] .bg-gray-50:is(.rounded-xl, .rounded-2xl):is([class*="ring-"]) {
    background-color: var(--v4-velin); --tw-ring-color: rgb(168 133 63 / 0.5);
    outline: 1px solid rgb(168 133 63 / 0.2); outline-offset: -7px;
    transition: box-shadow .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), outline-color .5s ease;
}
html[data-theme="etude"] .bg-gray-50:is(.rounded-xl, .rounded-2xl):is([class*="ring-"]):hover {
    transform: translateY(-3px); outline-color: rgb(168 133 63 / 0.6);
    box-shadow: 0 22px 44px -26px rgb(15 47 39 / 0.45) !important;
}
/* Pastilles d'icones : medaillon de laiton plutot qu'un carre colore. */
html[data-theme="etude"] :is(.w-10, .w-12, .w-14).rounded-lg:is([class*="bg-"][class*="-100"], [class*="bg-"][class*="-50"]),
html[data-theme="etude"] :is(.w-10, .w-12, .w-14).rounded-xl:is([class*="bg-"][class*="-100"], [class*="bg-"][class*="-50"]) {
    border-radius: 50% !important; background: var(--v4-velin) !important;
    box-shadow: inset 0 0 0 1px rgb(168 133 63 / 0.7), inset 0 0 0 4px var(--v4-velin), inset 0 0 0 5px rgb(168 133 63 / 0.25);
}
html[data-theme="etude"] :is(.w-10, .w-12, .w-14):is(.rounded-lg, .rounded-xl) svg { color: var(--v4-empire) !important; }

/* Bandeau Flash (degrade violet en style en ligne) : panneau vert empire a filet de laiton. */
html[data-theme="etude"] section[style*="#1e1b4b"] {
    background: radial-gradient(120% 140% at 0% 0%, #174a3c 0%, var(--v4-empire) 55%, #0a221c 100%) !important;
    border-block: 3px double var(--v4-laiton);
}
html[data-theme="etude"] section[style*="#1e1b4b"] :is(h2, h3) { color: var(--v4-laiton-clair) !important; }
html[data-theme="etude"] section[style*="#1e1b4b"] :is(h2, h3) :is(span, em) { color: #f0e5c9 !important; }
html[data-theme="etude"] section[style*="#1e1b4b"] svg[class*="text-amber"],
html[data-theme="etude"] section[style*="#1e1b4b"] .absolute svg { opacity: 0.18; }
html[data-theme="etude"] section[style*="#1e1b4b"] :is(p, li, span) { color: #dfe7e2; }
html[data-theme="etude"] section[style*="#1e1b4b"] :is(.animate-pulse, .blur-2xl) { display: none !important; }
html[data-theme="etude"] section[style*="#1e1b4b"] .text-yellow-400 { color: var(--v4-laiton-clair) !important; }
html[data-theme="etude"] section[style*="#1e1b4b"] .rounded-full.bg-yellow-400 {
    background: transparent !important; color: var(--v4-laiton-clair) !important; box-shadow: none !important;
    border: 1px solid rgb(217 192 138 / 0.6); border-radius: 2px !important; letter-spacing: 0.16em; font-weight: 600;
}
html[data-theme="etude"] section[style*="#1e1b4b"] .rounded-full.bg-yellow-400 * { color: inherit !important; }
html[data-theme="etude"] .flash-button-glow { animation: none !important; }
html[data-theme="etude"] .flash-button-glow::before, html[data-theme="etude"] .flash-button-glow::after { display: none !important; }

/* --- Barres ------------------------------------------------------------------- */
html[data-theme="etude"] :is(nav.fixed, header.sticky, body > header) {
    background-color: rgb(246 241 230 / 0.94) !important; backdrop-filter: blur(8px);
    border-bottom: 3px double var(--v4-laiton) !important;
}
html[data-theme="etude"] nav.fixed a:not([class*="bg-"]):not([class*="from-"]):not(:has(img)) {
    font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v4-empire) !important;
    background-image: linear-gradient(var(--v4-laiton), var(--v4-laiton));
    background-repeat: no-repeat; background-position: 50% 100%; background-size: 0% 1px;
    transition: background-size .45s cubic-bezier(.2,.7,.2,1); padding-bottom: 4px;
}
html[data-theme="etude"] nav.fixed a:not([class*="bg-"]):not([class*="from-"]):not(:has(img)):hover { background-size: 100% 1px; }
/* Menu (peaufine le 21/11/2026, demande de Patrick) : plus serre, un filet de laiton entre
   chaque lien, et de l'air apres le logo. Les liens restent sur une seule ligne. */
html[data-theme="etude"] nav.fixed a { white-space: nowrap; }
html[data-theme="etude"] nav.fixed .hidden.lg\:flex.gap-6 { gap: 0; margin-left: 1.75rem; }
html[data-theme="etude"] nav.fixed .hidden.lg\:flex.gap-6 > a:not([class*="bg-"]):not([class*="from-"]):not(:has(img)) {
    font-size: 0.72rem; letter-spacing: 0.09em; padding: 2px 0.85rem 4px; line-height: 1.1;
    border-left: 1px solid rgb(168 133 63 / 0.45); background-position: 50% 100%;
}
html[data-theme="etude"] nav.fixed .hidden.lg\:flex.gap-6 > a:not([class*="bg-"]):not([class*="from-"]):not(:has(img)):first-of-type { border-left: 0; }
html[data-theme="etude"] nav.fixed .hidden.lg\:flex.gap-6 > a:not([class*="bg-"]):not([class*="from-"]):not(:has(img)):hover { background-size: calc(100% - 1.7rem) 1px; }
html[data-theme="etude"] nav.fixed .hidden.lg\:flex.gap-6 > :is(div, a[class*="bg-"], a[class*="from-"]) { margin-left: 1rem; }
@media (max-width: 1279px) {
    html[data-theme="etude"] nav.fixed .hidden.lg\:flex.gap-6 { margin-left: 1rem; }
    html[data-theme="etude"] nav.fixed .hidden.lg\:flex.gap-6 > a:not([class*="bg-"]):not([class*="from-"]):not(:has(img)) { font-size: 0.66rem; letter-spacing: 0.06em; padding-inline: 0.55rem; }
    html[data-theme="etude"] nav.fixed .hidden.lg\:flex.gap-6 > :is(div, a[class*="bg-"], a[class*="from-"]) { margin-left: 0.6rem; }
}
html[data-theme="etude"] nav.fixed .gap-6 { gap: 1rem; }

/* --- Boutons : sobres, lisere de laiton au survol ------------------------------ */
/* v5 : la regle « petites capitales » des boutons etait neutralisee dans la maquette
   par une accolade orpheline ; Patrick a valide le rendu SANS elle, elle est retiree. */
html[data-theme="etude"] :is(a, button, input[type="submit"]):is([class^="bg-primary-"], [class*=" bg-primary-"]):hover {
    background-color: var(--v4-empire) !important; letter-spacing: 0.14em;
    box-shadow: inset 0 0 0 1px var(--v4-empire), inset 0 0 0 2px var(--v4-laiton-clair), 0 14px 28px -16px rgb(15 47 39 / 0.7) !important;
}
html[data-theme="etude"] :is(a, button):is([class^="from-amber-"], [class*=" from-amber-"]) {
    background: linear-gradient(180deg, #d9c08a, #b8964f) !important; color: var(--v4-empire) !important; animation: none !important;
    box-shadow: inset 0 0 0 1px #8c6d30, inset 0 1px 0 1px rgb(255 255 255 / 0.4) !important;
}
html[data-theme="etude"] :is(a, button):is([class^="from-amber-"], [class*=" from-amber-"]) svg { animation: none !important; }

html[data-theme="etude"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]), select, textarea) {
    background-color: var(--v4-velin); border-color: rgb(168 133 63 / 0.6); border-radius: 2px; box-shadow: none;
}
html[data-theme="etude"] :is(input, select, textarea):focus { outline: 1px solid var(--v4-empire) !important; outline-offset: 2px; border-color: var(--v4-empire) !important; --tw-ring-color: transparent; }
html[data-theme="etude"] :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--v4-empire); }
html[data-theme="etude"] :is(p, li, td, label, dd) a:not([class*="bg-"]) { text-decoration: underline; text-decoration-color: var(--v4-laiton); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* --- Espace client : panneau vert empire, repere de laiton -------------------- */
html[data-theme="etude"] aside { background: var(--v4-empire) !important; border-right: 3px double var(--v4-laiton) !important; }
html[data-theme="etude"] aside :is(a, button, span, p, div, h2, h3, svg) { color: #cfd9d3; }
html[data-theme="etude"] aside a { border-radius: 0 !important; letter-spacing: 0.03em; border-left: 2px solid transparent; transition: border-color .35s ease, background-color .35s ease; }
html[data-theme="etude"] aside a:hover { background: rgb(255 255 255 / 0.05) !important; border-left-color: rgb(217 192 138 / 0.5); }
html[data-theme="etude"] aside a:is([class^="bg-primary-"], [class*=" bg-primary-"]) {
    background: rgb(217 192 138 / 0.1) !important; border-left-color: var(--v4-laiton-clair); box-shadow: none !important;
    text-transform: none; font-size: inherit; letter-spacing: 0.03em;
}
html[data-theme="etude"] aside a:is([class^="bg-primary-"], [class*=" bg-primary-"]) * { color: var(--v4-laiton-clair) !important; }
html[data-theme="etude"] thead :is(th, tr) { background: var(--v4-empire) !important; color: var(--v4-laiton-clair) !important; }
html[data-theme="etude"] tbody tr { transition: background-color .3s ease; }
html[data-theme="etude"] tbody tr:hover { background: rgb(168 133 63 / 0.08) !important; }
html[data-theme="etude"] body > footer { background: var(--v4-empire) !important; border-top: 3px double var(--v4-laiton); }
html[data-theme="etude"] body > footer :is(p, a, span, li, h3, h4, div) { color: #cfd9d3; }
html[data-theme="etude"] body > footer :is(h3, h4) { color: var(--v4-laiton-clair); font-family: "Cormorant Garamond", Georgia, serif; }
html[data-theme="etude"] body > footer a:hover { color: var(--v4-laiton-clair) !important; }

@supports (animation-timeline: view()) {
    html[data-theme="etude"] body > section:not(:first-of-type) > div > :is(div, ul, h2, p) {
        animation: v4-parait linear both; animation-timeline: view(); animation-range: entry 0% entry 34%;
    }
}
@keyframes v4-sceau { to { transform: rotate(360deg); } }
@keyframes v4-filet { from { background-size: 0% 1px; } to { background-size: 100% 1px; } }
@keyframes v4-parait { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --- Telephone : le titre d'abord, le logo ensuite ; sceau et ruban discrets -- */
@media (max-width: 1023px) {
    html[data-theme="etude"] body > section:first-of-type .flex.flex-col.lg\:flex-row > .flex-1 { order: -1; }
    html[data-theme="etude"] body > section:first-of-type .flex.flex-col.lg\:flex-row > .flex-shrink-0 img:not([alt*="vid" i]) { max-width: 180px; height: auto; }
    html[data-theme="etude"] body::before { width: 90vmin; height: 90vmin; right: -55vmin; bottom: -40vmin; opacity: 0.6; }
    html[data-theme="etude"] h1:is([class*="text-5xl"], [class*="text-6xl"]) { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
}
@media (prefers-reduced-motion: reduce) {
    html[data-theme="etude"] *, html[data-theme="etude"] *::before, html[data-theme="etude"] *::after { animation: none !important; transition: none !important; }
}
@media print { html[data-theme="etude"] body::before { display: none; } }

/* 21/11/2026 : fonds bleus écrits en style inline (pas des classes Tailwind, donc non remappés) :
   bandeau du centre d'aide, boutons de la page « document signé ». */
html[data-theme="etude"] [style*="#1d4ed8"], html[data-theme="etude"] [style*="#1e3a8a"], html[data-theme="etude"] [style*="#2563eb"], html[data-theme="etude"] [style*="#1e40af"] {
    background: linear-gradient(135deg, #0a221c 0%, #0f3a2f 55%, #174a3c 100%) !important;
}
html[data-theme="etude"] section[style*="#1d4ed8"] :is(h1, h2, h3) { color: #f3ead3 !important; }
html[data-theme="etude"] section[style*="#1d4ed8"] :is(p, span, a) { color: #e4d2a2; }
/* Bleus écrits dans des <style> embarqués (bandeau cookies, onglets de l'aide, pages d'erreur). */
html[data-theme="etude"] #js-consent .js-consent-btn { background: #174a3c !important; border-color: #174a3c !important; }
html[data-theme="etude"] #js-consent .js-consent-texte a { color: #8c6d30 !important; }
html[data-theme="etude"] #js-consent .js-consent-btn:focus-visible { outline-color: #a8853f !important; }
html[data-theme="etude"] .tab-btn.active { background: #174a3c !important; box-shadow: 0 4px 6px -1px rgb(23 74 60 / .3) !important; }
html[data-theme="etude"] [style*="59,130,246"] { background: #edf3f0 !important; }
html[data-theme="etude"] .code { color: #174a3c !important; }
html[data-theme="etude"] a.btn { background: #174a3c !important; }
html[data-theme="etude"] .footer a:hover { color: #8c6d30 !important; }
html[data-theme="etude"] [style*="139,92,246"] { background: #f6f0e2 !important; }
/* 22/11/2026 : la regle « body > * { z-index: 1 } » mettait le pied de page AU-DESSUS du bandeau de
   prise en main (fixe, z-[100]) : « Revenir a mon compte » ne recevait plus le clic. Les blocs fixes
   de premier niveau gardent leur rang. */
html[data-theme="etude"] body > .fixed[class*="z-["]:not([class*="z-[200]"]), html[data-theme="etude"] body > [role="status"].fixed { z-index: 100; }

/* 22/11/2026 : bandeau d'essai du tableau de bord (fond vert foncé) : titre et texte lisibles. */
html[data-theme="etude"] :is(.bg-gradient-to-r, .bg-gradient-to-br).from-primary-600 :is(h2, h3) { color: #f3ead3 !important; }
html[data-theme="etude"] :is(.bg-gradient-to-r, .bg-gradient-to-br).from-primary-600 :is(p, .text-primary-100) { color: #e6dcc3 !important; }
html[data-theme="etude"] :is(.bg-gradient-to-r, .bg-gradient-to-br).from-primary-600 a:not([class*="bg-"]) { color: var(--v4-laiton-clair) !important; }

/* 22/11/2026 : logo JuriSign (bleu marine) quasi invisible sur le pied de page vert foncé : petit fond ivoire dessous. */
html[data-theme="etude"] footer img[src*="logo"]:not(.invert, [class*="brightness"]) {
    background: #f6f1e6; padding: 4px 8px; border-radius: 6px; opacity: 1 !important;
    box-sizing: content-box; box-shadow: 0 0 0 1px rgba(168, 133, 63, .45);
}

/* 22/11/2026 : un titre marqué text-white est posé sur un fond sombre (bandeaux d'appel à l'action de /aide,
   etc.) ; la couleur des titres du thème (vert empire) le rendait invisible. */
html[data-theme="etude"] :is(h1, h2, h3, h4).text-white { color: #f3ead3 !important; }
