/* ==========================================================================
   Direction artistique « Brume boréale » (novembre 2026), par-dessus site.css.
   Un éditeur de code sombre et calme (onglets de fichiers, chemin ~/, explorateur, barre d'état),
   avec deux choses du thème Aurora de SEO New Tab : l'accent qui passe lentement du vert au cyan
   puis au bleu (aurore.js) et une brume d'aurore animée derrière le haut de la page (.rc-aurore).
   Les couleurs de la nuit sont dans theme.json ; le mode clair « Plein ciel » est dans plein-ciel.css.
   Calme : rien ne clignote, rien ne saute au survol, pas d'ombre portée.
   ========================================================================== */

/* Couleurs : celles d'Aurora. Le sombre vient de theme.json ; l'accent suit le cycle écrit par aurore.js sur <html>,
   et les filets en prennent une pointe, comme les bordures de l'extension. Les couleurs secondaires
   (pastilles des onglets, dates, étiquettes) sont celles du ciel d'Aurora : violet, magenta, turquoise. */
:root { color-scheme: dark; --rc-accent: #00e87b; --rc-aurore-texte: #c0ffd8; --rc-halo: rgb(0 232 123 / .4); --rc-halo-loin: rgb(0 232 123 / .13); }
html body {
  --wp--preset--color--accent: var(--rc-accent);
  --wp--preset--color--filet: color-mix(in srgb, var(--rc-accent) 11%, #171d20);
  --barre: #0b0f12; --titres: var(--wp--preset--font-family--mono);
  --code-mot: #b38bff; --code-chaine: #4fdccb; --code-nombre: #ff7ab8; --code-commentaire: #6b8782;
  font-size: 1.06rem; scrollbar-color: var(--wp--preset--color--filet) transparent;
}
/* Pendant l'écriture d'une nouvelle teinte (4 fois par seconde), les transitions de couleur ne repartent pas */
.rc-teinte-pause *:not(:hover) { transition: none !important; }
::selection { background: color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent); color: var(--wp--preset--color--encre); }

/* ==========================================================================
   La brume d'aurore, derrière le menu et l'ouverture : quatre couches qui dérivent lentement.
   Deux nappes, avec les quatre lueurs du ciel d'Aurora (vert, cyan, magenta, violet), et deux voiles :
   des rideaux verticaux, verts en bas (teintés par l'accent), qui virent au violet ou au magenta en montant,
   comme les voiles de l'extension. Seuls transform et opacity sont animés : la carte graphique s'en charge.
   ========================================================================== */
html { overflow-x: clip; }
.rc-aurore { position: absolute; top: 0; left: 0; right: 0; height: 800px; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.rc-aurore i { position: absolute; inset: -25% -20%; }
.rc-aurore i:nth-child(1) {
  background:
    radial-gradient(ellipse 42% 24% at 26% 24%, rgb(0 232 123 / .18) 0%, transparent 70%),
    radial-gradient(ellipse 32% 30% at 68% 20%, rgb(0 200 220 / .13) 0%, transparent 65%);
  filter: blur(40px); animation: rc-fumee-1 26s ease-in-out infinite alternate; }
.rc-aurore i:nth-child(2) {
  background:
    radial-gradient(ellipse 28% 22% at 50% 32%, rgb(255 0 128 / .10) 0%, transparent 65%),
    radial-gradient(ellipse 36% 20% at 84% 26%, rgb(180 0 255 / .10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 18% at 42% 18%, rgb(0 232 123 / .08) 0%, transparent 65%);
  filter: blur(52px); animation: rc-fumee-2 34s ease-in-out infinite alternate; }
.rc-aurore i:nth-child(3), .rc-aurore i:nth-child(4) { inset: -6% -30% 28%; transform-origin: 50% 0; filter: blur(14px);
  -webkit-mask-image: var(--bandes); mask-image: var(--bandes); }
.rc-aurore i:nth-child(3) {
  --bandes: linear-gradient(90deg, transparent 8%, #000 13%, transparent 17%, transparent 24%, #000 29%, rgb(0 0 0 / .6) 33%, transparent 37%,
    transparent 57%, #000 62%, transparent 67%, transparent 75%, rgb(0 0 0 / .6) 80%, transparent 85%);
  background: linear-gradient(to top, transparent 0%, color-mix(in srgb, var(--rc-accent) 24%, transparent) 22%, rgb(128 31 230 / .16) 62%, transparent 100%);
  animation: rc-voiles-1 44s ease-in-out infinite alternate; }
.rc-aurore i:nth-child(4) {
  --bandes: linear-gradient(90deg, transparent 18%, rgb(0 0 0 / .7) 22%, transparent 26%, transparent 40%, #000 45%, transparent 50%,
    transparent 66%, rgb(0 0 0 / .8) 70%, #000 73%, transparent 78%, transparent 88%, rgb(0 0 0 / .5) 92%, transparent 95%);
  background: linear-gradient(to top, transparent 0%, rgb(0 217 217 / .16) 26%, rgb(217 26 140 / .13) 66%, transparent 100%);
  animation: rc-voiles-2 56s ease-in-out infinite alternate; }
@keyframes rc-fumee-1 {
  0% { transform: translate3d(-4%, 0, 0) scale(1) rotate(0deg); opacity: .7; }
  25% { transform: translate3d(8%, -5%, 0) scale(1.14) rotate(3deg); opacity: 1; }
  50% { transform: translate3d(-7%, 4%, 0) scale(.92) rotate(-2deg); opacity: .75; }
  75% { transform: translate3d(5%, -2%, 0) scale(1.1) rotate(2deg); opacity: .95; }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.04) rotate(-1deg); opacity: .85; } }
@keyframes rc-fumee-2 {
  0% { transform: translate3d(3%, 0, 0) scale(1.05) rotate(0deg); opacity: .8; }
  25% { transform: translate3d(-10%, 5%, 0) scale(.88) rotate(-3deg); opacity: 1; }
  50% { transform: translate3d(8%, -6%, 0) scale(1.15) rotate(2deg); opacity: .6; }
  75% { transform: translate3d(-5%, -3%, 0) scale(.95) rotate(-2deg); opacity: .9; }
  100% { transform: translate3d(4%, 3%, 0) scale(1.08) rotate(1deg); opacity: .75; } }
@keyframes rc-voiles-1 {
  0% { transform: translate3d(-8%, 0, 0) skewX(-10deg) scaleY(1); opacity: .55; }
  33% { transform: translate3d(2%, 2%, 0) skewX(6deg) scaleY(1.12); opacity: 1; }
  66% { transform: translate3d(9%, -1%, 0) skewX(-4deg) scaleY(.94); opacity: .7; }
  100% { transform: translate3d(-3%, 1%, 0) skewX(8deg) scaleY(1.06); opacity: .9; } }
@keyframes rc-voiles-2 {
  0% { transform: translate3d(7%, 1%, 0) skewX(8deg) scaleY(1.05); opacity: .8; }
  40% { transform: translate3d(-4%, -1%, 0) skewX(-7deg) scaleY(.92); opacity: .5; }
  75% { transform: translate3d(-9%, 2%, 0) skewX(5deg) scaleY(1.14); opacity: 1; }
  100% { transform: translate3d(2%, 0, 0) skewX(-3deg) scaleY(1); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .rc-aurore i { animation: none; } }
/* Quand le ciel WebGL (aurore-ciel.js) dessine les voiles de l'extension, il remplace ces couches.
   Il s'estompe lui-même jusqu'à la couleur du fond : pas de masque CSS autour du canevas,
   que certains navigateurs mobiles ne redessinent plus quand il est masqué. */
html.rc-aurore-gl .rc-aurore i { display: none; }
html.rc-aurore-gl .rc-aurore { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 700px) { .rc-aurore { height: 620px; } }
.wp-site-blocks { position: relative; z-index: 1; }

/* ==========================================================================
   Typographie
   ========================================================================== */
[class*="rc-ico-"]::before, .rc-clients::before, .rc-actions-cv a[href="/contact/"]::before, .rc-expertises summary strong::before,
.wp-block-navigation-item[class*="rc-ico-"] > .wp-block-navigation-item__content::before { display: none !important; }
h1, h2, h3, .wp-block-heading, .rc-entete-titre, .wp-block-post-title, .rc-parole-titre, .rc-carte-titre { font-family: var(--titres); font-weight: 600; letter-spacing: -.01em; }
h2.wp-block-heading { font-size: 1.55rem; }
a { color: var(--wp--preset--color--accent); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }

/* ==========================================================================
   Barre de titre et onglets : transparente, la brume monte jusque dans le menu
   ========================================================================== */
.wp-site-blocks > header { background: transparent; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--filet) 80%, transparent); }
.wp-site-blocks > header > .wp-block-group.alignwide { padding-top: 0 !important; padding-bottom: 0 !important; align-items: stretch; min-height: 48px; }
.wp-site-blocks > header .wp-block-group { align-items: stretch; }
.wp-block-site-title { align-self: center; font-family: var(--wp--preset--font-family--mono) !important; font-weight: 500 !important; font-size: .9rem !important; }
.wp-block-site-title a { color: var(--wp--preset--color--encre) !important; }
.wp-block-site-title a::before { content: "~/" !important; color: var(--code-commentaire) !important; }
/* Le curseur clignote (animation de site.css), avec le halo de l'accent */
.wp-block-site-title a::after { width: .5ch !important; background: var(--wp--preset--color--accent) !important; box-shadow: 0 0 8px var(--rc-halo); }
.wp-block-navigation__container { gap: 0 !important; align-self: stretch; }
.wp-block-navigation .wp-block-navigation-item { align-self: stretch; }
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content { display: flex !important; align-items: center; height: 100%; gap: .5em;
  padding: 0 1.05rem; border-left: 1px solid var(--wp--preset--color--filet); font-family: var(--wp--preset--font-family--mono); font-size: .8rem; text-transform: lowercase; color: var(--wp--preset--color--discret) !important; }
.wp-block-navigation-item:last-child > .wp-block-navigation-item__content { border-right: 1px solid var(--wp--preset--color--filet); }
.wp-block-navigation-item__content:hover { color: var(--wp--preset--color--encre) !important; text-decoration: none !important; }
/* Survol et onglet de la rubrique ouverte : pas de pavé sombre sur l'aurore, mais une lueur d'accent qui monte du bas
   de l'onglet, comme le pied d'un voile, avec un trait de lumière posé sur le filet du menu.
   (classe rc-onglet-actif posée par inc/brume-boreale.php) */
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content { transition: color .2s, box-shadow .2s; }
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item:not(.rc-onglet-actif) > .wp-block-navigation-item__content:hover {
  background: radial-gradient(ellipse 75% 95% at 50% 100%, color-mix(in srgb, var(--wp--preset--color--encre) 10%, transparent), transparent 75%);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent); }
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item.rc-onglet-actif > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--encre) !important; font-weight: 600;
  background: radial-gradient(ellipse 75% 100% at 50% 100%, color-mix(in srgb, var(--wp--preset--color--accent) 34%, transparent), transparent 80%);
  box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent), 0 8px 16px -10px var(--rc-halo); }
/* Une pastille de couleur par onglet, comme les icônes de fichiers : violet, magenta, turquoise, puis l'accent */
.wp-block-navigation-item > .wp-block-navigation-item__content::after { content: ""; order: -1; width: .5em; height: .5em; border-radius: 2px; background: var(--code-mot); }
.wp-block-navigation-item:nth-child(2) > .wp-block-navigation-item__content::after { background: var(--code-chaine); }
.wp-block-navigation-item:nth-child(3) > .wp-block-navigation-item__content::after { background: var(--code-nombre); }
.wp-block-navigation-item:nth-child(4) > .wp-block-navigation-item__content::after { background: var(--wp--preset--color--accent); }
.rc-switch { align-self: center; border-radius: 5px; border-color: transparent; color: var(--wp--preset--color--discret); margin-left: .6rem; }
.rc-switch:hover { border-color: var(--wp--preset--color--filet); color: var(--wp--preset--color--encre); }
/* Menu mobile ouvert */
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--fond) !important; }
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
  font-family: var(--titres); font-weight: 500; font-size: 1.25rem; text-transform: none; border: 0; height: auto; padding: 1rem 0; }
.wp-block-navigation .is-menu-open .wp-block-navigation-item > .wp-block-navigation-item__content::after { width: .45em; height: .45em; }

/* Repères : des commentaires */
.rc-kicker, .rc-section-titre .rc-kicker { font-family: var(--wp--preset--font-family--mono); font-style: italic; color: var(--code-commentaire); font-size: .82rem; }
.rc-kicker::before { color: var(--code-commentaire); }

/* ==========================================================================
   Ouverture : « Salut! » prend la couleur et le halo de l'horloge de SEO New Tab
   ========================================================================== */
.rc-hero .wp-block-column:first-child > p:first-child { font-family: var(--titres); font-weight: 600 !important; font-size: clamp(3.2rem, 2rem + 5vw, 5.6rem) !important; letter-spacing: -.04em;
  color: var(--rc-aurore-texte); text-shadow: 0 0 22px var(--rc-halo), 0 0 60px var(--rc-halo-loin); }
.rc-hero .wp-block-column:first-child > p:first-child::after { content: "_"; color: var(--wp--preset--color--accent); opacity: .8; margin-left: .05em; }
.rc-hero h1 { font-family: var(--wp--preset--font-family--serif); font-weight: 500; line-height: 1.4; }
.rc-hero h1 a { color: var(--wp--preset--color--accent); }
.rc-photo img { border-radius: 6px !important; border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 22%, var(--wp--preset--color--filet)) !important; filter: saturate(.8) brightness(.95); }
.rc-perso-bande { border-top: 1px solid var(--wp--preset--color--filet); }
.rc-cv .wp-block-list li::marker { color: var(--code-commentaire); }

/* Boutons : discrets ; le principal est teinté, pas plein */
.rc-actions-cv :is(a, .jslink-span), .rc-btn, .wpcf7 input[type=submit] { border-radius: 5px !important; border: 1px solid var(--wp--preset--color--filet) !important; background: var(--wp--preset--color--surface) !important;
  color: var(--wp--preset--color--encre) !important; font-family: var(--wp--preset--font-family--mono) !important; font-weight: 500; font-size: .85rem !important; padding: .6rem 1.05rem !important; box-shadow: none !important; }
.rc-actions-cv > :is(a, .jslink-span):first-child, .rc-btn--plein, .wpcf7 input[type=submit] {
  background: color-mix(in srgb, var(--wp--preset--color--accent) 16%, var(--wp--preset--color--fond)) !important;
  border-color: color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent) !important; color: var(--wp--preset--color--accent) !important; }
.rc-actions-cv :is(a, .jslink-span):hover, .rc-btn:hover { border-color: color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent) !important; background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, var(--wp--preset--color--surface)) !important; color: var(--wp--preset--color--encre) !important; }

/* Parcours */
.rc-timeline::before { background: var(--wp--preset--color--filet); }
.rc-poste::before { border-width: 1.5px; border-color: var(--code-commentaire); background: var(--wp--preset--color--fond); }
.rc-poste:first-child::before { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); box-shadow: 0 0 10px var(--rc-halo); }
.rc-poste-periode, .rc-role-date { color: var(--code-nombre) !important; }
.rc-role-titre { font-family: var(--titres); }
.rc-clients { border-left-color: var(--wp--preset--color--filet); }

/* Dépliants : le repli de code est dans l'esprit, on l'adoucit */
.wp-block-details { border-radius: 6px; background-color: var(--wp--preset--color--surface); }
.wp-block-details:hover, .wp-block-details[open] { border-color: color-mix(in srgb, var(--wp--preset--color--accent) 35%, var(--wp--preset--color--filet)); }
.rc-expertises summary strong { font-family: var(--titres); font-weight: 600; }

.rc-formule { border-radius: 6px; background: var(--barre); border-color: var(--wp--preset--color--filet); border-left: 2px solid var(--code-mot); color: var(--wp--preset--color--encre); }
.rc-formule::before { color: var(--code-mot); }
.rc-etapes li { border-bottom-color: var(--wp--preset--color--filet); }
.rc-etapes li::before { color: var(--code-commentaire); }
.rc-section-titre > p a { font-family: var(--wp--preset--font-family--mono); }

/* ==========================================================================
   Outils : un explorateur de fichiers plutôt qu'une grille de cartes
   ========================================================================== */
.rc-cartes { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--wp--preset--color--filet); border-radius: 6px; overflow: hidden; background: var(--wp--preset--color--surface); }
.rc-carte { flex-direction: row; align-items: flex-start; gap: 1rem; border: 0; border-radius: 0; border-bottom: 1px solid var(--wp--preset--color--filet); background: transparent; padding: 1rem 1.2rem; }
.rc-carte:last-child { border-bottom: 0; }
.rc-carte:hover { transform: none; box-shadow: none; border-color: var(--wp--preset--color--filet); background: color-mix(in srgb, var(--wp--preset--color--accent) 6%, transparent); }
.rc-carte:hover .rc-monogramme { color: var(--wp--preset--color--accent); }
.rc-icone { width: 34px; height: 34px; border-radius: 5px; background: var(--wp--preset--color--fond); border-color: var(--wp--preset--color--filet); }
/* Les logos des outils ont leur propre forme et un fond transparent : pas de tuile derrière eux (sur l'aurore ou une carte
   anthracite, elle faisait un carré noir). La tuile reste pour les outils sans logo, qui affichent leurs initiales. */
.rc-icone:has(img), .rc-entete-icone:has(img) { background: transparent; border-color: transparent; box-shadow: none; border-radius: 0 !important; overflow: visible; }
.rc-icone img, .rc-entete-icone img { object-fit: contain; }
.rc-monogramme { font-size: .8rem; color: var(--code-mot); }
.rc-carte-corps { gap: .2rem; }
.rc-carte-titre { font-size: 1rem; }
.rc-carte-texte { color: var(--wp--preset--color--discret); }
.rc-carte-pied { flex: none; width: 200px; justify-content: flex-end; align-self: center; }
.rc-tag { color: var(--code-chaine); background: color-mix(in srgb, var(--code-chaine) 12%, transparent); border-radius: 4px; }
.rc-origine { color: var(--code-nombre); border-color: color-mix(in srgb, var(--code-nombre) 40%, transparent); border-radius: 4px; margin-left: 0; }
.rc-ruban { position: static; order: 5; align-self: center; white-space: nowrap; border-radius: 4px; background: transparent; color: var(--code-commentaire); }
.rc-onglet { border-radius: 5px; }
.rc-onglet.is-actif { box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent); }
@media (max-width: 700px) {
  .rc-carte { flex-wrap: wrap; }
  .rc-carte-pied { width: 100%; justify-content: flex-start; padding-left: calc(34px + 1rem); }
  .rc-ruban { margin-left: calc(34px + 1rem); }
}

/* Listes des prises de parole et des articles : elles passent sur le ciel, un voile léger aide à les lire.
   (--rc-voile : une surface presque transparente ; le mode clair a la sienne) */
html body { --rc-voile: color-mix(in srgb, var(--wp--preset--color--surface) 62%, transparent); }
.rc-paroles, .rc-liste .wp-block-post-template { background: var(--rc-voile); border: 1px solid color-mix(in srgb, var(--wp--preset--color--filet) 70%, transparent);
  border-radius: 8px; padding-inline: clamp(.9rem, 2.5vw, 1.6rem); }
.rc-paroles > .rc-parole:first-child, .rc-liste .wp-block-post:first-child { border-top: 0; }
.rc-liste .wp-block-post:last-child { border-bottom: 0; }

/* Images, dates, code */
.rc-parole-vignette, .rc-video, .rc-diapos-scene, .rc-capture, .rc-entete-icone { border-radius: 6px !important; }
.rc-parole-vignette img { filter: saturate(.8); }
.rc-parole-date, .rc-liste .wp-block-post-date { color: var(--code-nombre); }
.rc-diplome code { color: var(--code-nombre); }
pre, .wp-block-code { background: var(--barre); border-color: var(--wp--preset--color--filet); }
:not(pre) > code { background: var(--barre); border-color: var(--wp--preset--color--filet); color: var(--code-chaine); }

/* Appel à contact et barre d'état, comme en bas d'un éditeur */
.rc-cta { border-radius: 6px; background-color: var(--wp--preset--color--surface);
  background-image: radial-gradient(ellipse 70% 60% at 92% 0%, color-mix(in srgb, var(--wp--preset--color--accent) 9%, transparent), transparent 70%); }
.rc-statusbar { background: var(--barre); border-top: 1px solid var(--wp--preset--color--filet) !important; padding-block: .45rem !important; font-size: .75rem !important; }
.rc-statusbar .rc-point::before { background: var(--wp--preset--color--accent); box-shadow: 0 0 7px var(--rc-halo); }
.rc-statusbar p, .rc-statusbar a { color: var(--wp--preset--color--discret) !important; }
