/* nuageo.fr - blog WordPress : header, footer et habillage alignés sur les pages HTML */
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --nuit: #172B2C;
  --nuit-2: #20393A;
  --orange: #F3B045;
  --turquoise: #06A7BB;
  --turquoise-texte: #0A6F7C;
  --vert-texte: #3F6B12;
  --orange-texte: #8A5A00;
  --vert: #96CE4F;
  --beige: #EEEBE4;
  --beige-2: #F7F5F0;
  --vert-pale: #EEF6E3;
  --blanc: #FFFFFF;
  --texte: #172B2C;
  --texte-2: #3D5253;
  --sur-nuit: #D4DADA;      
  --perle-nuit: #E6EBEB;    
  --blob-blanc: #F3F7EC;
  --filet: #DCD7CC;
  --rayon: 20px;
  --large: 1160px;
  --gouttiere: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
/* Socle pour le header et le footer communs, posés dans le thème du blog (GeneratePress).
   :where() garde une spécificité nulle : les règles .nx-… ci-dessous l'emportent. */
:where(.nx-entete, .nx-pied) { font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.0625rem; line-height: 1.45; color: var(--texte); }
:where(.nx-entete, .nx-pied) *, :where(.nx-entete, .nx-pied) *::before, :where(.nx-entete, .nx-pied) *::after { box-sizing: border-box; }
:where(.nx-entete, .nx-pied) img { display: block; max-width: 100%; height: auto; }
:where(.nx-entete, .nx-pied) ul { margin: 0; padding: 0; list-style: none; }
:where(.nx-entete, .nx-pied) li { margin: 0; }
:where(.nx-pied) p { margin: 0 0 1em; }
:where(.nx-entete, .nx-pied) a { color: var(--turquoise-texte); text-underline-offset: .18em; }
:where(.nx-entete) button { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; font: inherit; color: inherit; line-height: inherit; text-transform: none; }
:where(.nx-entete) button:hover, :where(.nx-entete) button:focus { background: none; color: inherit; }

.nx-evitement {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--nuit); color: var(--blanc); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.nx-evitement:focus { top: 12px; color: var(--blanc); }
.nx-entete { background: var(--blanc); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 50; font-family: "Roboto", system-ui, sans-serif; }
.nx-entete__in {
  max-width: var(--large); margin: 0 auto; padding: 14px var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.nx-logo img { display: block; width: 112px; height: auto; }
.nx-burger {
  display: none; align-items: center; gap: 10px;
  font: inherit; font-weight: 700; color: var(--nuit); background: none;
  border: 2px solid var(--nuit); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.nx-burger__barre, .nx-burger__barre::before, .nx-burger__barre::after {
  display: block; width: 18px; height: 2px; background: var(--nuit); border-radius: 2px; position: relative;
}
.nx-burger__barre::before, .nx-burger__barre::after { content: ""; position: absolute; left: 0; }
.nx-burger__barre::before { top: -6px; }
.nx-burger__barre::after { top: 6px; }
.nx-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nx-menu > li { position: relative; margin: 0; }
.nx-menu a, .nx-menu__ouvrir {
  display: block; padding: 8px 12px; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--nuit); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nx-menu a:hover, .nx-menu__ouvrir:hover { background: var(--beige); color: var(--nuit); }
.nx-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nx-menu__groupe:has([aria-current="page"]) > .nx-menu__ouvrir { background: var(--beige); }
.nx-menu__ouvrir::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.nx-menu__ouvrir[aria-expanded="true"]::after { transform: rotate(-135deg); vertical-align: -1px; }
.nx-menu__contact a { background: var(--nuit); color: var(--blanc); font-weight: 700; margin-left: 8px; padding: 9px 18px; }
.nx-menu__contact a:hover { background: var(--turquoise-texte); color: var(--blanc); }
.nx-sous {
  list-style: none; margin: 0; padding: 10px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon);
}
.nx-sous li { margin: 0; }
.nx-sous a { border-radius: 12px; font-size: .975rem; }
.nx-sous__intertitre { margin: 6px 0 0; padding: 8px 14px 2px; border-top: 1px solid var(--filet); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-texte, #5b6b6e); }
.nx-js .nx-menu__ouvrir:not([aria-expanded="true"]) + .nx-sous { display: none; }
html:not(.nx-js) .nx-sous { display: none; }
html:not(.nx-js) .nx-menu__groupe:hover .nx-sous,
html:not(.nx-js) .nx-menu__groupe:focus-within .nx-sous { display: block; }
@media (max-width: 960px) {
  .nx-js .nx-burger { display: inline-flex; }
  .nx-nav { flex-basis: 100%; }
  .nx-js .nx-nav:not(.est-ouvert) { display: none; }
  .nx-nav.est-ouvert { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .nx-menu { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 12px; }
  .nx-menu a, .nx-menu__ouvrir { width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; }
  .nx-sous { position: static; min-width: 0; border: 0; padding: 0 0 6px 14px; }
  html:not(.nx-js) .nx-sous { display: block; }
  .nx-menu__contact a { margin: 8px 0 0; text-align: center; }
}
@media (max-height: 480px) {
  .nx-entete { position: static; }
}
.nx-pied { background: var(--nuit-2); color: var(--sur-nuit); font-size: .975rem; font-family: "Roboto", system-ui, sans-serif; line-height: 1.45; }
.nx-pied__in {
  max-width: var(--large); margin: 0 auto; padding: 64px var(--gouttiere) 32px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px;
}
.nx-pied p { margin: 0 0 1em; }
.nx-pied__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--blanc); font-size: 1.25rem; font-weight: 900; letter-spacing: .02em; }
.nx-pied__logo img { width: 44px; height: 44px; }
.nx-pied__titre { color: var(--blanc); font-weight: 700; margin-bottom: 10px; }
.nx-pied ul { list-style: none; margin: 0; padding: 0; }
.nx-pied li { margin: 0 0 8px; }
.nx-pied a { color: var(--sur-nuit); text-decoration: none; }
.nx-pied a:hover { color: var(--orange); text-decoration: underline; }
.nx-pied :focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.nx-pied .nx-pied__legal { max-width: var(--large); margin: 0 auto; padding: 20px var(--gouttiere) 32px; border-top: 1px solid var(--nuit); font-size: .875rem;  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.nx-pied__legal > p { margin: 0; }
.nx-carbone { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.nx-pied .nx-carbone p { margin: 0; }
.nx-carbone__badge { display: inline-flex; align-items: stretch; border: 1px solid rgba(238, 235, 228, .35); border-radius: 999px; overflow: hidden; line-height: 1.2; }
.nx-carbone__mesure { padding: 5px 12px; color: var(--beige); font-variant-numeric: tabular-nums; }
.nx-pied .nx-carbone__source { padding: 5px 12px; background: var(--vert); color: var(--nuit); font-weight: 700; text-decoration: none; }
.nx-pied .nx-carbone__source:hover { background: var(--blanc); color: var(--nuit); text-decoration: none; }
.nx-carbone__comparaison { font-size: .8rem; }
.nx-pied__legal a { text-decoration: underline; }
@media (max-width: 860px) {
  .nx-pied__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nx-pied__in { grid-template-columns: 1fr; }
}
@media print {
  .nx-entete, .nx-pied, .nx-blob, .nx-form { display: none; }
}
.nx-burger { min-height: 44px; }
@media (pointer: coarse) {
  .nx-fil a,
  .nx-pied li a,
  .nx-lien-suite { display: inline-flex; align-items: center; min-height: 44px; }
  .nx-fil a, .nx-pied li a { min-width: 44px; justify-content: center; }
  .nx-pied li { margin: 0; }
}
.nx-in,.nx-entete__in,.nx-pied__in,.nx-pied__legal{padding-left:max(var(--gouttiere),env(safe-area-inset-left,0px));padding-right:max(var(--gouttiere),env(safe-area-inset-right,0px))}
.nx-entete{top:env(safe-area-inset-top,0px)}

/* ---------- Habillage du blog (thème GeneratePress) ----------
   Typographie et couleurs des pages HTML appliquées aux articles, aux listes et aux catégories.
   Les réglages de mise en page (largeur, colonnes, barre latérale) se font dans Personnaliser. */
body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texte);
  background: var(--beige-2, #F7F5F0);
}
body .site-header, body .main-navigation, body #site-navigation, body .site-footer .footer-bar { display: none; }

.entry-title, .page-title, .entry-content h2, .entry-content h3, .entry-content h4, .widget-title {
  color: var(--nuit);
  letter-spacing: -.01em;
  line-height: 1.15;
  text-wrap: balance;
}
.single .entry-title, .page .entry-title, .page-header .page-title { font-weight: 900; font-size: clamp(2rem, 4.2vw, 2.75rem); }
.entry-content h2 { font-weight: 900; font-size: clamp(1.45rem, 2.8vw, 1.9rem); margin-top: 1.6em; }
.entry-content h3 { font-weight: 700; font-size: 1.25rem; margin-top: 1.4em; }
.entry-content, .entry-summary { font-size: 1.0625rem; line-height: 1.6; }
.entry-content p, .entry-content li { text-wrap: pretty; }

.entry-content a, .entry-summary a, .entry-meta a, .page-header a, .paging-navigation a, .nav-links a {
  color: var(--turquoise-texte);
  text-underline-offset: .18em;
}
.entry-content a:hover, .entry-meta a:hover { color: var(--nuit); }
.entry-title a { color: var(--nuit); text-decoration: none; }
.entry-title a:hover { text-decoration: underline; text-underline-offset: .18em; }
.entry-meta, .entry-meta a, .posted-on, .byline { color: var(--texte-2); font-size: .9rem; }

/* Cartes de la page /blog/ et des catégories : fond blanc, coins arrondis, sans ombre */
.separate-containers .inside-article, .separate-containers .page-header {
  background: var(--blanc);
  border-radius: var(--rayon, 20px);
}
.generate-columns .inside-article { height: 100%; }
.post-image img, .featured-image img { border-radius: 14px; }

/* Citations : seul encadré autorisé à porter un filet de couleur */
.entry-content blockquote {
  border-left: 4px solid var(--turquoise);
  padding: .2em 0 .2em 1.2em;
  margin: 1.5em 0;
  font-style: normal;
  color: var(--nuit);
}

/* Boutons WordPress dans les articles */
.entry-content .wp-block-button__link, .entry-content .button {
  background: var(--nuit);
  color: var(--blanc);
  border-radius: 999px;
  font-weight: 700;
  padding: .7em 1.4em;
  text-decoration: none;
}

/* Bloc de fin d'article (Élément « Nuageo - fin d'article ») */
.nx-fin-article {
  margin: 2.5em 0 0;
  padding: 24px 28px;
  background: var(--beige);
  border-radius: var(--rayon, 20px);
  color: var(--nuit);
}
.nx-fin-article__titre { font-weight: 900; font-size: 1.25rem; line-height: 1.2; margin: 0 0 .4em; }
.nx-fin-article p { margin: 0 0 .8em; }
.nx-fin-article__liens { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; }
.nx-fin-article__liens a { color: var(--nuit); font-weight: 700; text-underline-offset: .18em; }
.nx-fin-article__liens a.nx-fin-article__contact {
  background: var(--nuit); color: var(--blanc); border-radius: 999px; padding: .55em 1.2em; text-decoration: none;
}
.nx-fin-article__liens a.nx-fin-article__contact:hover { text-decoration: underline; }
