/* =====================================================================
   VITRINE CAELYS · MODE CLAIR (maquette du 2026-11-12)
   Charge APRES vitrine.css par marketing/_layout_accueil.html. Actif
   seulement quand <html> porte `theme-clair` (pose avant le rendu par le
   script du <head> de base.html, d'apres le choix memorise du visiteur).

   L'IDEE. Le mode sombre est la nuit qui avance vers l'aube cuivree. Le
   mode clair est le PLEIN JOUR : papier chaud, lin, sable, argile, et le
   meme cuivre qui agit. Memes chapitres, memes formes, meme police : seules
   les couleurs changent. Tout passe par les jetons de vitrine.css ; ce
   fichier ne reecrit que les couleurs ecrites en dur ailleurs.

   Contrastes (WCAG, sur papier #F8F4EF) : encre 16:1, encre-2 7,7:1,
   encre-3 4,8:1, cuivre de lien 5,3:1, or bronze 4,5:1. Le blanc sur le
   bouton cuivre reste a 4,8:1.

   Ilots SOMBRES gardes tels quels : la spirale (fiches photo et aplats
   sourds), le cadre video. On y remet les jetons de la nuit, ils se lisent
   comme des objets poses sur le papier.
   ===================================================================== */

/* ---------- Jetons du jour -------------------------------------------- */
html.vitrine.theme-clair {
  --nuit: #F8F4EF;      /* papier */
  --espresso: #F0E8DF;  /* lin */
  --graphite: #E7DCCF;  /* sable */
  --brique: #EFD9CB;    /* argile */
  --cuivre: #C44A1E;
  --encre: #21160F;
  --encre-2: rgba(33, 22, 15, 0.76);
  --encre-3: rgba(33, 22, 15, 0.64);
  --encre-sombre: #170C07;
  --encre-sombre-2: rgba(23, 12, 7, 0.78);
  --action: #C44A1E;
  --action-survol: #A63A13;
  --action-clair: #A93D16;
  --or: #8E6A1F;
  background-color: var(--nuit) !important;
  color-scheme: light !important;
  scrollbar-color: #CDBBA8 var(--nuit);
}

/* Chapitres : pleins (le fond anime passe en poussiere tres legere). */
html.theme-clair .vit-chapitre[data-champ="nuit"] { --champ: transparent; }
html.theme-clair .vit-chapitre[data-champ="espresso"] { --champ: rgba(240, 232, 223, .9); }
html.theme-clair .vit-chapitre[data-champ="graphite"] { --champ: rgba(231, 220, 207, .92); }
html.theme-clair .vit-chapitre[data-champ="brique"] { --champ: rgba(239, 217, 203, .94); }

/* Fond anime : la nebuleuse de nuit, inversee, devient une poussiere
   cuivree tres legere sur le papier (multiplication : le blanc disparait,
   seuls les grains teintent). */
html.theme-clair #bgMesh { filter: invert(1) hue-rotate(180deg); mix-blend-mode: multiply; opacity: .3; }

/* ---------- Ilots sombres ------------------------------------------------ */
html.theme-clair .acc-spirale,
html.theme-clair .acc-video-cadre {
  --nuit: #0B0807; --encre: #F4EFE9; --encre-2: rgba(244, 239, 233, .76);
  --or: #E5C06E; --action-clair: #EE7A48;
}

/* ---------- Boutons, liens, formulaires ---------------------------------- */
html.theme-clair .vit-btn--clair,
html.theme-clair .vit-btn--sombre { background: var(--encre); color: var(--nuit); }
html.theme-clair .vit-lien { text-decoration-color: rgba(33, 22, 15, .35); }
html.theme-clair [data-champ="cuivre"] .vit-lien { text-decoration-color: rgba(23, 12, 7, .4); }
html.theme-clair .btn-secondary { border-color: rgba(33, 22, 15, .24) !important; }
@media (hover: hover) and (pointer: fine) {
  html.theme-clair .vit-btn--clair:hover, html.theme-clair .vit-btn--sombre:hover { background: #000; }
  html.theme-clair .btn-secondary:hover { border-color: rgba(33, 22, 15, .5) !important; background: rgba(33, 22, 15, .04) !important; }
}
html.theme-clair .input-mp { border-color: rgba(33, 22, 15, .18); background-color: #fff; }
html.theme-clair select.input-mp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2321160F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html.theme-clair .vp-prose th, html.theme-clair .vp-prose td { border-bottom-color: rgba(33, 22, 15, .12); }
html.theme-clair .vit-photo, html.theme-clair .vp-media { background: var(--graphite); }

/* ---------- En-tete ---------------------------------------------------------- */
/* Ecran tactile : socle.css force une barre presque noire (fond franc a la
   place du flou). Le jour, la barre reprend la couleur du chapitre dessous. */
@media (hover: none) and (pointer: coarse) {
  html.theme-clair .mkt-nav { background: var(--nav-fond, var(--nuit)) !important; }
}
html.theme-clair .mkt-nav-links > a, html.theme-clair .mkt-ress-btn { color: var(--encre-2); }
html.theme-clair .mkt-nav-links > a.active, html.theme-clair .mkt-ress-btn.active { background: rgba(33, 22, 15, .07); }
html.theme-clair .mkt-plus-menu { background: #fff; box-shadow: 0 24px 60px rgba(60, 35, 20, .16), 0 0 0 1px rgba(33, 22, 15, .06); }
@media (hover: hover) and (pointer: fine) {
  html.theme-clair .mkt-nav-links > a:hover, html.theme-clair .mkt-ress-btn:hover { background: rgba(33, 22, 15, .05); }
  html.theme-clair .mkt-plus-item:hover { background: rgba(33, 22, 15, .05); }
}
html.theme-clair .mkt-nav-burger, html.theme-clair .mkt-nav-fermer,
html.theme-clair .mkt-nav-panneau-connexion { background: rgba(33, 22, 15, .07); }
html.theme-clair .mkt-nav-langue { background: rgba(33, 22, 15, .06); }
html.theme-clair .mkt-nav-langue.active { background: var(--encre); color: var(--nuit); }
html.theme-clair .mkt-langues a.active { background: rgba(33, 22, 15, .07); }
html.theme-clair .mkt-btn-connexion { background: var(--encre); color: var(--nuit); }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  html.theme-clair .mkt-btn-connexion:hover { background: #000; }
}

/* ---------- Accueil ------------------------------------------------------------ */
html.theme-clair .acc-video-lire { background: #0B0807; }
html.theme-clair .acc-video-cadre::after { box-shadow: inset 0 0 0 1.5px rgba(142, 106, 31, .7); }
/* Carrousel : les cartes de cote se fondent dans le papier, pas dans la nuit. */
html.theme-clair .acc-c3d-on .acc-c3d-slot::after { background: rgba(240, 232, 223, .62); }
html.theme-clair .acc-offre { background: #fff; }
html.theme-clair .acc-points { background: rgba(33, 22, 15, .06); }
html.theme-clair .acc-points button::before { background: rgba(33, 22, 15, .3); }
/* Pour vous / pour votre equipe : la photo se fond dans le papier ; le texte
   pose sur son bas prend une lueur claire au lieu de l'ombre noire. */
html.theme-clair .acc-qui-equipe { background: rgba(239, 217, 203, .94); }
html.theme-clair .acc-qui-intro { text-shadow: 0 0 18px rgba(248, 244, 239, .95), 0 0 4px rgba(248, 244, 239, .8); }
html.theme-clair .acc-qui-champ .vit-titre { text-shadow: 0 0 28px rgba(248, 244, 239, .95), 0 0 6px rgba(248, 244, 239, .7); }
html.theme-clair .acc-qui-equipe .acc-qui-intro { text-shadow: 0 0 18px rgba(239, 217, 203, .95), 0 0 4px rgba(239, 217, 203, .8); }
html.theme-clair .acc-qui-equipe .vit-titre { text-shadow: 0 0 28px rgba(239, 217, 203, .95), 0 0 6px rgba(239, 217, 203, .7); }
html.theme-clair .acc-etape.est-active .acc-etape-btn { background: rgba(33, 22, 15, .06); }
html.theme-clair .acc-roue-carte { background: #fff; }
html.theme-clair .acc-roue-carte.est-active { background: var(--cuivre); }
html.theme-clair .rv-card { background: #fff; }
html.theme-clair .rv-demo { background: rgba(142, 106, 31, .12); }
html.theme-clair .rv-google { text-decoration-color: rgba(33, 22, 15, .35); }
html.theme-clair .acc-faq-liste details, html.theme-clair .vp-faq details { background: #fff; }
html.theme-clair .lien-certif { background: #fff; }
html.theme-clair .lien-certif:hover, html.theme-clair .lien-certif:focus-visible { background: var(--graphite); }

/* ---------- Tarifs (selecteur de modules, offres entreprise) ------------------------ */
html.theme-clair .ms-card { background: var(--graphite); }
html.theme-clair .ms-card.is-on { background: #fff; }
html.theme-clair .ms-check { background: rgba(255, 255, 255, .7); border-color: rgba(33, 22, 15, .32); }
html.theme-clair .ms-card.is-on .ms-check { background: var(--action); border-color: var(--action); }
html.theme-clair .ms-pill, html.theme-clair .tc-licences-pill, html.theme-clair .tc-cta.tc-cta-second { background: rgba(33, 22, 15, .07); }
@media (hover: hover) and (pointer: fine) { html.theme-clair .tc-cta.tc-cta-second:hover { background: rgba(33, 22, 15, .12); } }
/* Bouton du recapitulatif (sur le cuivre) : sombre, texte papier. */
html.theme-clair.vitrine .ms-summary .ms-cta { color: var(--nuit) !important; }

/* ---------- Pied de page ---------------------------------------------------------- */
/* Les blocs du nom gardent leurs lettres evidees (couleur du papier) ; leurs
   aplats sont un cran plus soutenus pour se detacher du fond clair. */
html.theme-clair .mkt-footer { --espresso: #E9DDD0; --graphite: #DCCBB9; --brique: #E8C9B6; }
html.theme-clair .pf-langues a.active { background: rgba(33, 22, 15, .07); }

/* ---------- Bouton jour / nuit ------------------------------------------------------ */
.mkt-theme {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(244, 239, 233, .08); color: var(--encre);
  transition: transform var(--duree-appui) var(--ease-out), background-color var(--duree-ui) ease;
}
html.theme-clair .mkt-theme { background: rgba(33, 22, 15, .07); }
.mkt-theme:active { transform: scale(.94); }
.mkt-theme svg { width: 20px; height: 20px; }
.mkt-theme .lune { display: none; }
html.theme-clair .mkt-theme .soleil { display: none; }
html.theme-clair .mkt-theme .lune { display: block; }
@media (hover: hover) and (pointer: fine) {
  .mkt-theme:hover { background: rgba(244, 239, 233, .14); }
  html.theme-clair .mkt-theme:hover { background: rgba(33, 22, 15, .12); }
}
/* Portables (1024 a 1319 px) : la barre est pleine (« Anmelden » sortait de
   l'ecran en allemand, audit du 2026-11-12). Le choix jour / nuit y passe
   dans le menu « Ressources » ; l'icone revient dans la barre au-dela. */
.mkt-plus-theme { display: none; }
@media (min-width: 1024px) and (max-width: 1319px) {
  .mkt-nav-inner > .mkt-theme { display: none; }
  .mkt-plus-theme {
    display: flex; gap: 10px; width: 100%; margin-top: 4px; border: 0; cursor: pointer;
    background: none; font: inherit; text-align: left;
    box-shadow: 0 -1px 0 rgba(244, 239, 233, .1);
  }
  html.theme-clair .mkt-plus-theme { box-shadow: 0 -1px 0 rgba(33, 22, 15, .08); }
  .mkt-plus-theme svg { width: 18px; height: 18px; flex: none; }
}
.mkt-plus-theme .lune, .mkt-plus-theme .lib-sombre { display: none; }
html.theme-clair .mkt-plus-theme .soleil, html.theme-clair .mkt-plus-theme .lib-clair { display: none; }
html.theme-clair .mkt-plus-theme .lune, html.theme-clair .mkt-plus-theme .lib-sombre { display: inline; }
@media (max-width: 1023px) {
  .mkt-theme { width: 48px; height: 48px; margin-left: auto; }
  .mkt-nav-inner > .mkt-nav-burger { margin-left: 0; }
}
/* Passage d'un mode a l'autre : un fondu court sur les fonds, pas plus. */
html.theme-bascule, html.theme-bascule * {
  transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease !important;
}
