/* DejaVu Sans Bold : vrai fichier 700, sans graisse synthétique. */
@font-face {
  font-family: "Reysource DejaVu Sans";
  src: url("../fonts/dejavu-sans-bold-webfont.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
/* Police locale Reysource — déclarée explicitement pour le site et Gutenberg. */
@font-face {
  font-family: "Reysource DejaVu Sans";
  src: url("../fonts/dejavu-sans-webfont.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Reysource — identité épurée, typographie expressive et surfaces lumineuses. */
html{scroll-behavior:smooth}
:where(.wp-site-blocks) a{text-underline-offset:.2em}
:where(.wp-block-group) {box-sizing:border-box}
.rs-form input,.rs-form textarea{width:100%;box-sizing:border-box;padding:.75rem;border:1px solid #D5C9AB;border-radius:.5rem;background:#fff}
.rs-form label{display:block;margin:.75rem 0 .35rem;font-weight:600}
.rs-form button,.rs-btn{display:inline-block;border:0;border-radius:30px;background:#202447;color:#fff;padding:.75rem 1.3rem;cursor:pointer;text-decoration:none}
.rs-panel{padding:1.4rem;border:1px solid #E9DFC5;border-radius:.75rem;background:#FFF4D6;margin-bottom:1rem}
.rs-comment{padding:1rem 0;border-bottom:1px solid #ddd}
.rs-status{font-size:.8rem;font-weight:650;color:#202447}
.rs-alert{padding:1rem;background:#FFF4D6;border-radius:.6rem}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Accueil existant v0.3 : les tailles intégrées aux blocs sont surchargées
   uniquement sur la page d'accueil, sans réécrire le contenu Gutenberg. */
body.home .wp-block-post-content h1 {font-size:clamp(4rem,9vw,8.5rem)!important;line-height:1.04;letter-spacing:-.065em;font-weight:750;max-width:13ch}
body.home .wp-block-post-content h2 {font-family:"Reysource DejaVu Sans", "DejaVu Sans", Arial, sans-serif!important;font-size:clamp(2.25rem,4.4vw,4.25rem)!important;line-height:1.17!important;letter-spacing:-.024em!important;font-weight:700;max-width:25ch}
body.home .wp-block-post-content > .wp-block-group {scroll-margin-top:4rem}
body.home .wp-block-post-content > .wp-block-group > .wp-block-group {max-width:1280px}
body.home .wp-block-post-content .wp-block-buttons {margin-top:2rem}
body.home .wp-block-post-content .wp-block-button__link {transition:transform .2s ease,background-color .2s ease}
body.home .wp-block-post-content .wp-block-button__link:hover {transform:translateY(-2px);background-color:#161A33}
@media(max-width:600px){body.home .wp-block-post-content h1{font-size:clamp(3.2rem,12vw,4.8rem)!important}body.home .wp-block-post-content h2{font-size:clamp(2.05rem,8vw,3rem)!important}}
@media(prefers-reduced-motion:reduce){body.home .wp-block-post-content .wp-block-button__link{transition:none}body.home .wp-block-post-content .wp-block-button__link:hover{transform:none}}

/* Titres H2 : DejaVu Sans Bold locale. */
.wp-site-blocks h2 {font-family:"Reysource DejaVu Sans", "DejaVu Sans", Arial, sans-serif;font-weight:700}

/* Reysource 1.4 — navigation, sections pleine largeur et portail privé. */
.rs-site-header { position:relative; z-index:30; }
.rs-site-header .rs-header-inner { width:100%; box-sizing:border-box; gap:clamp(.75rem,2vw,2rem); padding:1rem clamp(16px,3vw,36px); min-width:0; }
.rs-site-header .wp-block-site-title { flex-shrink:0; margin:0; }
.rs-site-header .wp-block-site-title a { text-decoration:none; }
.rs-primary-navigation { min-width:0; }
.rs-primary-navigation .wp-block-navigation-item__content { font-size:clamp(.83rem,1vw,.98rem); text-decoration:none; }
.rs-primary-navigation .wp-block-navigation-item__content:hover { text-decoration:underline; text-underline-offset:.3em; }
.rs-header-inner .wp-block-shortcode { flex-shrink:0; }
/* Le bloc mobile WordPress reste accessible et intégralement dans le viewport. */
@media(max-width:900px) {
  .rs-site-header .rs-header-inner { flex-wrap:wrap!important; justify-content:space-between; gap:.65rem; }
  .rs-header-inner .wp-block-shortcode { margin-left:auto; }
  .rs-primary-navigation .wp-block-navigation__responsive-container.is-menu-open { box-sizing:border-box; position:fixed; inset:0; width:100vw; max-width:100vw; max-height:100dvh; overflow-x:hidden; overflow-y:auto; padding:clamp(1rem,5vw,2rem)!important; background:#FFFCF4; z-index:100000; }
  .rs-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { box-sizing:border-box; width:100%; max-width:100%; padding-top:3rem; }
  .rs-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { width:100%; max-width:100%; align-items:flex-start; }
  .rs-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { max-width:100%; overflow-wrap:anywhere; }
}
@media(max-width:480px){.rs-site-header .wp-block-site-title{font-size:clamp(1rem,4.2vw,1.35rem)!important}.rs-header-links,.rcs-header-links{font-size:.75rem;gap:.5rem;}}
/* Les fonds des sections Gutenberg s'étendent au viewport sans étirer leurs contenus. */
body.home .wp-block-post-content > .wp-block-group.alignfull { box-sizing:border-box; width:100%; max-width:none; margin-inline:0; }
body.home .wp-block-post-content > .wp-block-group.alignfull > .wp-block-group { max-width:1280px; margin-inline:auto; }
body.home .wp-block-post-content > .wp-block-group.alignfull, body.home .wp-block-post-content [id="expertise"], body.home .wp-block-post-content [id="agence"], body.home .wp-block-post-content [id="projets"], body.home .wp-block-post-content [id="temoignage"], body.home .wp-block-post-content [id="contact"] { scroll-margin-top:5rem; }
/* Uniquement les pages où le contenu WordPress est déjà en alignement pleine largeur. */
body.home .wp-block-post-content { max-width:none; }
/* Titre automatique de la page portail, aligné sur les cartes et contenu. */
body.rcs-portal-page .wp-block-post-title { box-sizing:border-box; width:min(100% - 48px, 1100px); margin-inline:auto!important; }
body.rcs-portal-page .wp-block-post-content { width:100%; }
body.rcs-portal-page .rcs-portal { box-sizing:border-box; width:min(100%,1100px); margin-inline:auto; }
/* Retour en haut, accessible au clavier, sans affichage dans l'administration. */
.rs-back-to-top { position:fixed; z-index:50; bottom:max(22px,env(safe-area-inset-bottom)); right:max(22px,env(safe-area-inset-right)); display:flex; width:48px; height:48px; align-items:center; justify-content:center; background:#202447; color:#fff!important; border:1px solid #202447; border-radius:999px; font-size:1.5rem; line-height:1; text-decoration:none!important; box-shadow:0 7px 20px rgba(32,36,71,.22); transition:transform .2s ease,background .2s ease; }
.rs-back-to-top:hover { transform:translateY(-3px); background:#161A33; }
.rs-back-to-top:focus-visible { outline:3px solid #795018; outline-offset:4px; }
@media(prefers-reduced-motion:reduce){ .rs-back-to-top{transition:none}.rs-back-to-top:hover{transform:none} }

/* Reysource 1.6 — fond pleine largeur pour Groupe et Empilement Gutenberg.
   Une classe sur le bloc extérieur suffit, même lorsque le contenu reste contraint.
   Ne pas utiliser width:100vw : scrollbar et conteneurs contraints peuvent déborder.
   Le pseudo-élément étend uniquement le FOND, pas le texte ou les cartes. */
:where(.wp-site-blocks, .editor-styles-wrapper) .reysource-section-full {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    padding-block: clamp(48px, 6vw, 80px);
    scroll-margin-top: 5rem;
    --rs-section-bg: #FFF4D6;
    background: transparent !important;
}
:where(.wp-site-blocks, .editor-styles-wrapper) .reysource-section-full::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    width: 100dvw;
    transform: translateX(-50%);
    background: var(--rs-section-bg);
    pointer-events: none;
}
:where(.wp-site-blocks, .editor-styles-wrapper) .reysource-section-champagne { --rs-section-bg: #FFF4D6; }
:where(.wp-site-blocks, .editor-styles-wrapper) .reysource-section-ivoire { --rs-section-bg: #FFFCF4; }
:where(.wp-site-blocks, .editor-styles-wrapper) .reysource-section-indigo { --rs-section-bg: #202447; color: #FFFFFF; }
:where(.wp-site-blocks, .editor-styles-wrapper) .reysource-section-indigo :where(h1,h2,h3,h4,h5,h6,p,li) { color: inherit; }
/* Fixe le débordement possible dû au décor sur petits écrans. */
.wp-site-blocks { overflow-x: clip; }
/* Variante pratique : Groupe avec la couleur native « Champagne vanille » et alignement full. */
.wp-site-blocks .wp-block-post-content > .wp-block-group.alignfull.has-paper-background-color { box-sizing:border-box; max-width:none; }
