/* ==========================================================================
   Mode clair « Plein ciel » (bouton soleil/lune), par-dessus brume-boreale.css.
   Le thème Sunset de SEO New Tab en version jour : un ciel qui passe de l'aube orangée au matin bleu clair, un soleil
   qui monte puis redescend, les crêtes de montagne de l'extension en bleus pâles ; la plus proche a la
   couleur du fond, le contenu semble posé dessus. Il remplace l'aurore, qui se met en pause.
   Bleu pour le texte et les liens (lisibles), jaune pour la lumière : soleil, curseur, bouton, surlignage.
   La structure (onglets, ~/, explorateur, barre d'état, polices) ne change pas.
   ========================================================================== */
:root[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] body {
  --wp--preset--color--fond: #f3f7fb; --wp--preset--color--surface: #ffffff; --wp--preset--color--encre: #10223a;
  --wp--preset--color--discret: #4a5d74; --wp--preset--color--accent-2: #2a4fc0;
  --wp--preset--color--filet: color-mix(in srgb, var(--rc-accent) 16%, #d5e1ec);
  --barre: #e7eff7; --soleil: #f5b700;
  --code-mot: #2a4fc0; --code-chaine: #0d6f94; --code-nombre: #946000; --code-commentaire: #5b6c80;
  /* les halos, faits pour la nuit, deviennent de simples ombres colorées */
  --rc-halo: color-mix(in srgb, var(--rc-accent) 28%, transparent); --rc-halo-loin: transparent;
  scrollbar-color: color-mix(in srgb, var(--rc-accent) 30%, #d5e1ec) transparent;
  background: #f3f7fb;
}
/* Voile derrière les listes (prises de parole, articles) : un blanc léger sur le ciel et les crêtes */
html[data-theme="light"] body { --rc-voile: rgb(255 255 255 / .5); }
html[data-theme="light"] ::selection { background: rgb(245 183 0 / .35); color: #10223a; }

/* L'aurore laisse la place à la scène de jour */
html[data-theme="light"] .rc-aurore { display: none; }
.rc-soleil-scene { display: none; }
/* Sous la barre d'administration quand elle est là, comme l'en-tête : le soleil du mobile finit sa course dans l'en-tête */
html[data-theme="light"] .rc-soleil-scene { display: block; position: absolute; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; height: 760px; overflow: hidden; pointer-events: none; z-index: 0; }
/* La course du soleil : un aller-retour en 2 minutes (1 minute pour monter, 1 pour redescendre), en animations CSS que la
   carte graphique joue seule, donc fluides. Elles sont toutes calées sur l'horloge par aurore.js (--soleil-retard),
   pour que d'une page à l'autre le soleil reprenne où il en était ; l'accent suit la même course. Le ciel et le soleil passent de l'aube au matin par
   fondu entre deux couches : orangé quand le soleil est bas, bleu clair quand il est haut. */
@keyframes rc-soleil-course { from { transform: translate(-50%, 0); } to { transform: translate(-50%, calc(-1 * var(--soleil-course))); } }
@keyframes rc-soleil-jour { from { opacity: 0; } to { opacity: 1; } }
/* le ciel de l'aube, puis celui du matin par-dessus, en fondu */
.rc-soleil-ciel { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(120 150 200) 0%, rgb(194 184 200) 30%, rgb(244 192 150) 60%, rgb(255 212 164) 100%); }
.rc-soleil-ciel::after { content: ""; position: absolute; inset: 0; opacity: 0; animation-name: rc-soleil-jour;
  background: linear-gradient(180deg, rgb(116 172 226) 0%, rgb(156 200 238) 30%, rgb(202 227 246) 60%, rgb(232 243 250) 100%); }
/* le soleil : orangé et bas à l'aube, jaune et haut le matin ; il se lève derrière les crêtes */
.rc-soleil-disque { position: absolute; left: 91%; bottom: 40%; width: 140px; height: 140px; border-radius: 50%; --soleil-course: 198px;
  background: rgb(255 170 62); box-shadow: 0 0 120px rgb(255 160 60 / .65); animation-name: rc-soleil-course; will-change: transform; }
.rc-soleil-disque::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; animation-name: rc-soleil-jour;
  background: rgb(255 212 84); box-shadow: 0 0 80px rgb(255 212 84 / .6); }
.rc-soleil-ciel::after, .rc-soleil-disque, .rc-soleil-disque::after { animation-duration: 60s; animation-timing-function: ease-in-out;
  animation-delay: var(--soleil-retard, 0s); animation-iteration-count: infinite; animation-direction: alternate; animation-fill-mode: both; }
/* les crêtes dépassent un peu en bas : la dernière ligne de pixels est toujours celle de la crête la plus proche */
.rc-soleil-cretes { position: absolute; left: 0; bottom: -3px; width: 100%; height: 56%; }
.rc-crete-1 { fill: rgb(170 190 218); } .rc-crete-2 { fill: rgb(190 207 228); } .rc-crete-3 { fill: rgb(209 223 237); } .rc-crete-4 { fill: rgb(226 236 244); }
.rc-crete-5 { fill: #f3f7fb; }
@media (max-width: 900px) { .rc-soleil-disque { left: 84%; width: 92px; height: 92px; } }
/* Sur mobile aussi, le soleil se lève derrière les montagnes : à l'aube, à moitié caché par la crête la plus lointaine
   (464 px sous le haut de la scène, à toutes les largeurs de téléphone). Il monte jusque dans l'en-tête, entre le nom et
   les boutons, le seul endroit toujours libre : au matin, rien ne le cache. En chemin, il passe derrière le titre. */
@media (max-width: 700px) {
  html[data-theme="light"] .rc-soleil-scene { height: 620px; }
  .rc-soleil-cretes { height: 46%; }
  .rc-soleil-disque { left: calc(50% + 50px); top: 444px; bottom: auto; width: 40px; height: 40px; --soleil-course: 441px;
    box-shadow: 0 0 36px rgb(255 160 60 / .7); }
  .rc-soleil-disque::after { box-shadow: 0 0 28px rgb(255 212 84 / .6); }
}
@media (max-width: 380px) { .rc-soleil-disque { width: 34px; height: 34px; top: 447px; --soleil-course: 438px; } }
/* Moins d'animations demandé : le soleil reste à mi-course, ciel entre l'aube et le matin */
@media (prefers-reduced-motion: reduce) {
  .rc-soleil-ciel::after, .rc-soleil-disque, .rc-soleil-disque::after { animation-play-state: paused; animation-delay: -30s; }
}
/* … sauf sur mobile, où la mi-course est derrière le titre : le soleil reste levé, dans l'en-tête */
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { .rc-soleil-disque, .rc-soleil-disque::after { animation-delay: -60s; } }
/* Captures : plein-ciel.js fige toute la scène à un instant donné */
.rc-soleil-fige .rc-soleil-ciel::after, .rc-soleil-fige .rc-soleil-disque, .rc-soleil-fige .rc-soleil-disque::after,
.rc-soleil-fige .rc-hero .wp-block-column:first-child > p:first-child { animation-play-state: paused !important; }

/* En-tête : directement sur le ciel, le menu passe en bleu nuit pour rester lisible */
html[data-theme="light"] .wp-site-blocks > header { border-bottom-color: rgb(255 255 255 / .45); }
html[data-theme="light"] .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content { color: #10223a !important; border-color: rgb(255 255 255 / .35); }
html[data-theme="light"] .rc-switch { color: #10223a; }
/* Onglet ouvert et survol : une lueur de soleil qui monte du bas, et un trait jaune */
html[data-theme="light"] .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item.rc-onglet-actif > .wp-block-navigation-item__content {
  background: radial-gradient(ellipse 75% 100% at 50% 100%, rgb(255 255 255 / .75), transparent 80%);
  box-shadow: inset 0 -2px 0 var(--soleil), 0 8px 16px -10px rgb(245 183 0 / .7); }
html[data-theme="light"] .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%, rgb(255 255 255 / .5), transparent 75%);
  box-shadow: inset 0 -1px 0 rgb(245 183 0 / .8); }
/* « Salut! » n'émet pas de lumière : éclairé par le soleil (en haut à droite), il projette une ombre douce vers la gauche,
   longue quand le soleil est bas, courte quand il est haut. Calée sur la course du soleil. */
@keyframes rc-salut-ombre { from { text-shadow: -12px 9px 16px rgb(16 34 58 / .17); } to { text-shadow: -4px 5px 9px rgb(16 34 58 / .12); } }
html[data-theme="light"] .rc-hero .wp-block-column:first-child > p:first-child { color: var(--rc-aurore-texte);
  animation: rc-salut-ombre 60s ease-in-out var(--soleil-retard, 0s) infinite alternate both; }
@media (prefers-reduced-motion: reduce) { html[data-theme="light"] .rc-hero .wp-block-column:first-child > p:first-child { animation-play-state: paused; animation-delay: -30s; } }
html[data-theme="light"] .rc-hero .wp-block-column:first-child > p:first-child::after { color: var(--soleil); opacity: 1; }
html[data-theme="light"] .wp-block-site-title a::after { background: var(--soleil) !important; box-shadow: 0 0 8px rgb(245 183 0 / .6); }
html[data-theme="light"] .rc-photo img { filter: none; }
/* Pastilles des onglets : soleil, ciel, ambre, puis l'accent */
html[data-theme="light"] .wp-block-navigation-item > .wp-block-navigation-item__content::after { background: var(--soleil); }
html[data-theme="light"] .wp-block-navigation-item:nth-child(2) > .wp-block-navigation-item__content::after { background: #4a9be0; }
html[data-theme="light"] .wp-block-navigation-item:nth-child(3) > .wp-block-navigation-item__content::after { background: #e39a00; }
html[data-theme="light"] .wp-block-navigation-item:nth-child(4) > .wp-block-navigation-item__content::after { background: var(--wp--preset--color--accent); }
/* Boutons : le principal est teinté de soleil, texte bleu nuit */
html[data-theme="light"] .rc-actions-cv > :is(a, .jslink-span):first-child, html[data-theme="light"] .rc-btn--plein, html[data-theme="light"] .wpcf7 input[type=submit] {
  background: color-mix(in srgb, var(--soleil) 24%, #fff) !important; border-color: var(--soleil) !important; color: #10223a !important; }
html[data-theme="light"] .rc-carte:hover { background: color-mix(in srgb, var(--wp--preset--color--accent) 5%, #fff); }
html[data-theme="light"] .wpcf7 :is(input[type=text], input[type=email], textarea) { background: #fff; }
/* Points de lumière : jaunes */
html[data-theme="light"] .rc-poste:first-child::before { background: var(--soleil); border-color: var(--soleil); box-shadow: 0 0 10px rgb(245 183 0 / .5); }
html[data-theme="light"] .rc-statusbar .rc-point::before { background: var(--soleil); box-shadow: 0 0 7px rgb(245 183 0 / .6); }
html[data-theme="light"] .rc-onglet.is-actif { box-shadow: inset 0 -2px 0 var(--soleil); }
