/*
Theme Name: SOS Ordi
Theme URI: https://sosordipf.fr
Author: Kerne Web
Author URI: https://kerneweb.fr
Description: Thème bloc sur mesure de SOS ORDI Pays Fouesnantais, converti depuis la maquette du site en ligne.
Version: 1.5.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sosordi
*/

/* Tokens et styles partages du site.
   Repris tels quels de la maquette (site/site.css). Les selecteurs ne changent
   que la ou le balisage des blocs differe du HTML d'origine : chaque ecart est
   commente sur place. Les polices sont declarees dans theme.json (fontFace) et
   servies depuis le theme : aucune requete vers un domaine tiers. */
:root {
  --display: 'Archivo', system-ui, sans-serif;
  --texte: 'Source Sans 3', system-ui, sans-serif;

  --marine: #0d2e52;
  --marine-profond: #082038;
  --marine-clair: #1b4c82;
  --ajonc: #f5c500;
  --papier: #ffffff;
  --papier-2: #f2f5f8;
  --encre: #16202b;
  --gris: #5b6875;
  --trait: #d9e1e9;

  --large: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
body {
  font-family: var(--texte);
  font-size: 18px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.chiffre {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
a {
  color: inherit;
}
/* height:auto obligatoire : sinon l'attribut height des blocs image l'emporte
   sur aspect-ratio. */
img {
  max-width: 100%;
  height: auto;
}
figure.wp-block-image {
  margin: 0;
}

/* Gutenberg ajoute ses propres marges entre blocs freres. La neutralisation se
   fait dans theme.json (blockGap a 0px) et, en filet, ICI A SPECIFICITE NULLE :
   jamais en .wp-block-group > *, qui ecraserait les marges des composants. */
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons) {
  margin-block: 0;
}

/* Ce que les styles de mise en page de WordPress fournissaient, et qu'ils ne
   fournissent plus (disable-layout-styles, voir functions.php) : les groupes de
   boutons et le menu se rangent en ligne. */
.wp-block-buttons,
.wp-block-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.large {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 88px 0;
}
.titre-section {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}
/* Remplace le style="margin-top:40px" de la maquette (page contact). */
.titre-section--suite {
  margin-top: 40px;
}
.sous-titre-section {
  color: var(--gris);
  margin-bottom: 44px;
  max-width: 60ch;
}
/* Remplace le style="margin-bottom:0" de la maquette (accueil, services). */
.sous-titre-section--serre {
  margin-bottom: 0;
}

/* Le contour de focus doit rester visible partout : une part de la clientele
   navigue au clavier faute d'etre a l'aise avec la souris. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--marine-clair);
  outline-offset: 3px;
}

/* Texte reserve aux lecteurs d'ecran (etiquettes du formulaire). */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------- barre ---------- */
/* Le sticky porte sur l'enveloppe de la template part : c'est le seul element
   dont le parent couvre toute la page. Pose sur .barre, il ne collerait pas. */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .wp-site-blocks > header.wp-block-template-part {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar .wp-site-blocks > header.wp-block-template-part {
    top: 0;
  }
}
.barre {
  position: relative;
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
}
.barre__int {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
/* .marque etait le lien ; c'est maintenant le bloc Logo du site
   (div.wp-block-site-logo > a > img). */
.wp-block-site-logo.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 0;
}
.wp-block-site-logo.marque a {
  display: block;
  line-height: 0;
}
.wp-block-site-logo.marque img {
  height: 46px;
  width: auto;
  display: block;
}

/* Menu principal : bloc Navigation. Les liens sont des
   a.wp-block-navigation-item__content dans des li. */
.wp-block-navigation.nav {
  margin-left: auto;
}
.wp-block-navigation.nav .wp-block-navigation__container {
  gap: 28px;
}
.wp-block-navigation.nav .wp-block-navigation-item__content {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.65;
  color: var(--encre);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.wp-block-navigation.nav .wp-block-navigation-item__content:hover {
  border-bottom-color: var(--ajonc);
}
/* Dans la maquette, « .nav a » l'emporte sur « .nav__client » : le lien garde la
   taille, la graisse, la couleur et le retrait des autres. Seuls le filet de
   gauche et la marge de 4px s'appliquent. On reproduit le rendu, pas l'intention. */
.wp-block-navigation.nav .nav__client .wp-block-navigation-item__content {
  margin-left: 4px;
  border-left: 1px solid var(--trait);
}
.wp-block-navigation.nav .nav__client .wp-block-navigation-item__content:hover {
  color: var(--marine);
}

/* Le numero reste dans la barre a toutes les tailles d'ecran, jamais replie
   dans le menu : c'est le geste le plus frequent de cette clientele. */
.wp-block-button.tel .wp-block-button__link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ajonc);
  color: var(--marine-profond);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.65;
  text-decoration: none;
  white-space: nowrap;
}
.wp-block-button.tel .wp-block-button__link:hover {
  background: #e0b400;
}

/* ---------- menu mobile ---------- */
/* Le bloc Navigation ouvre un panneau plein ecran, et a partir de 600px.
   La maquette ouvre un panneau sous la barre, a partir de 960px : on recale
   le seuil, la position et l'apparence du bouton. */
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open,
.wp-block-navigation.nav .wp-block-navigation__responsive-container-close {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--trait);
  border-radius: 8px;
  background: #fff;
  color: var(--marine);
  cursor: pointer;
  flex: none;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open svg,
.wp-block-navigation.nav .wp-block-navigation__responsive-container-close svg {
  display: none;
}
/* Trois traits, puis une croix quand le panneau est ouvert : la croix est le
   bouton de fermeture du bloc, cale par app.js exactement sur le bouton d'ouverture. */
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open::before,
.wp-block-navigation.nav .wp-block-navigation__responsive-container-close::before,
.wp-block-navigation.nav .wp-block-navigation__responsive-container-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  background: var(--marine);
  border-radius: 2px;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open::before {
  box-shadow: 0 -7px 0 var(--marine), 0 7px 0 var(--marine);
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container-close::before {
  transform: rotate(45deg);
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container-close::after {
  transform: rotate(-45deg);
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open {
  position: absolute;
  top: 100%;
  right: 0;
  bottom: auto;
  left: 0;
  height: auto;
  padding: 0;
  overflow: visible;
  animation: none;
  background-color: #fff !important;
  color: var(--encre) !important;
  border-bottom: 1px solid var(--trait);
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-close,
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-dialog {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 24px;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-dialog {
  padding: 0;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-container-close {
  position: fixed;
  top: var(--burger-haut, 14px);
  left: var(--burger-gauche, auto);
  right: auto;
  display: flex;
  z-index: 2;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 0;
  align-items: stretch;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__container {
  gap: 0;
  align-items: stretch;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation-item {
  display: block;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation-item__content {
  display: block;
  margin: 0;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--encre);
  border-left: 0;
  border-bottom: 1px solid var(--trait);
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
  border-bottom: 0;
}
/* Le panneau de la maquette ne bloque pas le defilement de la page. */
:root.has-modal-open {
  overflow: visible;
}

/* ---------- hero ---------- */
/* La photo vient de la mediatheque (arriere-plan du groupe, remplacable depuis
   l'editeur) : seuls la couleur de fond et la repetition restent ici. */
.hero {
  position: relative;
  color: #fff;
  padding: 96px 0 0;
  background-color: var(--marine);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    96deg,
    rgba(8, 32, 56, 0.97) 0%,
    rgba(11, 40, 70, 0.94) 38%,
    rgba(13, 46, 82, 0.66) 66%,
    rgba(13, 46, 82, 0.34) 100%
  );
}
.hero__grille {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 34px;
  min-height: 440px;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--ajonc);
}
.hero__texte {
  margin-top: 22px;
  font-size: 20px;
  color: #c8d6e4;
  max-width: 46ch;
}
.wp-block-buttons.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 34px;
}
/* .bouton etait le lien ; la classe du bloc Bouton se pose sur son conteneur,
   le style va donc au lien interne et le conteneur reste neutre. */
.wp-block-button.bouton .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.65;
  text-decoration: none;
  word-break: normal;
}
.wp-block-button.bouton--plein .wp-block-button__link {
  background: var(--ajonc);
  color: var(--marine-profond);
}
.wp-block-button.bouton--plein .wp-block-button__link:hover {
  background: #e0b400;
}
.wp-block-button.bouton--creux .wp-block-button__link {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.wp-block-button.bouton--creux .wp-block-button__link:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* carte avis dans le hero */
.preuve {
  background: rgba(255, 255, 255, 0.97);
  color: var(--encre);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  max-width: 360px;
  margin-left: auto;
}
.preuve__note {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
/* Le <b>5,0</b> de la maquette devient un paragraphe porteur de la classe. */
.preuve__note .preuve__chiffre {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  color: var(--marine);
}
/* Les etoiles sont decoratives (aria-hidden dans la maquette) : elles passent en
   pseudo-element, la ou un bloc vide serait supprime par megarde dans l'editeur. */
.preuve__source::before,
.avis__carte::before {
  content: "★★★★★";
  content: "★★★★★" / "";
  display: block;
  color: var(--ajonc);
  font-size: 19px;
  letter-spacing: 2px;
}
.preuve__source::before {
  margin-bottom: 2px;
}
.preuve__source {
  font-size: 15px;
  color: var(--gris);
}
.preuve__source::before {
  line-height: 1.65;
}
.preuve__cite {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--trait);
  font-size: 16px;
  line-height: 1.55;
}
.preuve__cite .preuve__auteur {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gris);
}

/* bandeau credit d'impot : l'argument le plus fort, enterre sur l'ancien site */
.impot {
  margin-top: 0;
  background: var(--marine-profond);
  border-top: 3px solid var(--ajonc);
}
.impot__int {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 38px;
  align-items: center;
  padding-block: 34px;
}
.impot__chiffre {
  font-family: var(--display);
  font-weight: 800;
  font-size: 74px;
  line-height: 1;
  color: var(--ajonc);
}
.impot__texte {
  color: #fff;
  font-size: 21px;
  max-width: 62ch;
}
/* La maquette tenait tout dans un <p> (<b> puis <span> en bloc) : deux paragraphes. */
.impot__texte .impot__fort {
  font-weight: 700;
}
.impot__texte .impot__detail {
  display: block;
  margin-top: 8px;
  color: #bccedf;
  font-size: 17px;
}

/* ---------- services ---------- */
.services__intro {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 44px;
}
.services__photo {
  margin: 0;
}
.wp-block-image.services__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(13, 46, 82, 0.16);
}
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--trait);
  border: 1px solid var(--trait);
}
.service {
  background: #fff;
  padding: 30px 26px 32px;
}
.service h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-top: 14px;
  border-top: 3px solid var(--ajonc);
  display: inline-block;
}
.service p {
  color: var(--gris);
  font-size: 17px;
}

/* ---------- zone ---------- */
.zone {
  background: var(--papier-2);
}
.zone__grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 26px;
}
.secteur {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 24px;
}
.secteur h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marine);
  margin-bottom: 14px;
  font-family: var(--texte);
}
.secteur ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.secteur li {
  font-size: 16px;
  font-weight: 600;
  background: var(--papier-2);
  border: 1px solid var(--trait);
  border-radius: 6px;
  padding: 5px 11px;
}
.zone__note {
  color: var(--gris);
  margin-top: 16px;
  font-size: 16px;
}

/* ---------- a propos ---------- */
.propos {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.portrait {
  margin: 0;
  max-width: 340px;
  background: var(--papier-2);
  border: 1px solid var(--trait);
  border-radius: 12px;
  overflow: hidden;
}
.wp-block-image.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.propos p {
  font-size: 19px;
  margin-bottom: 18px;
}
/* .agrement etait une div : devenue paragraphe, elle echappe a « .propos p ». */
.propos .agrement,
.agrement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  background: var(--papier-2);
  border: 1px solid var(--trait);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 16px;
}

/* ---------- avis ---------- */
.section--grise {
  background: var(--papier-2);
}
.avis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.avis__carte {
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 24px;
  background: #fff;
}
.avis__carte::before {
  font-size: 17px;
}
.avis__carte .avis__texte {
  margin: 12px 0 14px;
  font-size: 17px;
  line-height: 1.55;
}
/* <cite> etait en ligne dans la carte : sa ligne prenait la hauteur du corps
   (18px x 1,65). Devenu paragraphe a 15px, il garde cette hauteur de ligne. */
.avis__carte .avis__auteur {
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  line-height: calc(18px * 1.65);
}
.avis__carte .avis__source {
  display: block;
  color: var(--gris);
  font-size: 14px;
}

/* ---------- faq ---------- */
.faq {
  max-width: 800px;
  margin-top: 28px;
}
.faq details {
  border-bottom: 1px solid var(--trait);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--marine);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  padding: 0 0 20px;
  color: var(--gris);
  font-size: 17px;
  max-width: 70ch;
}

/* ---------- contact ---------- */
.contact {
  background: var(--marine);
  color: #fff;
}
.contact__grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact .titre-section {
  color: #fff;
}
.contact__intro {
  color: #c8d6e4;
  margin-bottom: 28px;
  font-size: 19px;
}
.coord {
  list-style: none;
  display: grid;
  gap: 14px;
}
.coord li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 18px;
}
/* <b> devient <strong>, le format gras natif de l'editeur. */
.coord strong,
.coord b {
  font-family: var(--display);
  font-size: 20px;
}

/* Formulaire : Contact Form 7, avec la classe « form » posee sur la balise form
   (html_class du shortcode). Les etiquettes enveloppent les champs. */
.form {
  display: grid;
  gap: 14px;
}
.form label,
.form .wpcf7-form-control-wrap {
  display: block;
}
.form input,
.form textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 17px;
}
.form textarea {
  min-height: 130px;
  resize: vertical;
}
.form input::placeholder,
.form textarea::placeholder {
  color: #9fb4c9;
}
.form button,
.form input[type="submit"] {
  width: 100%;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--ajonc);
  color: var(--marine-profond);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: normal;
  cursor: pointer;
}
.form button:hover,
.form input[type="submit"]:hover {
  background: #e0b400;
}
.form button:disabled,
.form input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}
/* La zone de message de Contact Form 7 tient la place du <p role="status"> de
   la maquette : vide au repos, elle occupe une rangee de la grille. */
.wpcf7 form.form .wpcf7-response-output,
.wpcf7 form.form.init .wpcf7-response-output {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
}
.wpcf7 form.form.invalid .wpcf7-response-output,
.wpcf7 form.form.failed .wpcf7-response-output,
.wpcf7 form.form.spam .wpcf7-response-output {
  color: #ffd9d9;
}
.form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #ffd9d9;
  font-size: 16px;
}
.form .wpcf7-spinner {
  display: none;
}

/* ---------- pied ---------- */
.pied {
  background: var(--marine-profond);
  color: #a9bdd1;
  padding: 44px 0;
  font-size: 16px;
}
.pied__int {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
}
.pied a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.pied .droite {
  margin-left: auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
/* Les liens de la maquette etaient eux-memes les elements du flex, donc des
   blocs : leur filet tombait sous la ligne entiere. Chacun est maintenant dans
   un paragraphe ; le lien repasse en bloc pour garder le meme filet. */
.pied .droite p > a {
  display: block;
}

@media (max-width: 960px) {
  .hero__grille,
  .propos,
  .contact__grille {
    grid-template-columns: 1fr;
  }
  .preuve {
    margin-left: 0;
    max-width: 100%;
  }
  .services,
  .avis,
  .zone__grille {
    grid-template-columns: 1fr 1fr;
  }
  .services__intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .impot__int {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* La maquette masque le menu et affiche son bouton ; le bouton du bloc
     Navigation se place apres le telephone, comme celui de la maquette. */
  .wp-block-navigation.nav {
    order: 3;
    margin-left: 0;
    position: static;
  }
  .wp-block-buttons.barre__appel {
    order: 2;
  }
  .wp-block-navigation.nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: inline-flex;
  }
  .wp-block-navigation.nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none;
  }
  section {
    padding: 64px 0;
  }
}
@media (max-width: 700px) {
  .large {
    padding: 0 18px;
  }
  .barre__int {
    gap: 10px;
    height: 68px;
  }
  .wp-block-site-logo.marque img {
    height: 34px;
  }
  .wp-block-button.tel .wp-block-button__link {
    font-size: 15px;
    padding: 0 13px;
    min-height: 44px;
  }
  .wp-block-navigation.nav .wp-block-navigation__responsive-container-open,
  .wp-block-navigation.nav .wp-block-navigation__responsive-container-close {
    width: 44px;
    height: 44px;
  }
  .wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-close {
    padding: 0 18px;
  }
  .hero h1 {
    font-size: clamp(30px, 7.6vw, 40px);
  }
  .hero {
    padding-top: 60px;
  }
  .impot__int {
    padding-block: 26px;
  }
}
@media (max-width: 640px) {
  .services,
  .avis,
  .zone__grille {
    grid-template-columns: 1fr;
  }
  .impot__chiffre {
    font-size: 58px;
  }
  .titre-section {
    font-size: 28px;
  }
}

/* ---------- pages internes ---------- */
/* Chapo sombre en tete de page : reprend le contraste du hero sans en refaire
   la photo, qui reste la signature de l'accueil. */
.chapo {
  background: var(--marine);
  color: #fff;
  padding: 72px 0 64px;
  border-bottom: 3px solid var(--ajonc);
}
.chapo h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
}
.chapo p {
  margin-top: 16px;
  font-size: 20px;
  color: #c8d6e4;
  max-width: 58ch;
}

.prose {
  max-width: 74ch;
}
.prose h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 44px 0 14px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 10px;
}
.prose p {
  margin-bottom: 16px;
}
.prose ul {
  margin: 0 0 16px 22px;
}
.prose li {
  margin-bottom: 8px;
}

/* Fiche d'un service : le filet jaune reprend celui des cartes de l'accueil. */
.fiche {
  border-top: 3px solid var(--ajonc);
  padding-top: 18px;
  margin-bottom: 40px;
  max-width: 74ch;
}
.fiche h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.engagements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.engagement {
  background: var(--papier-2);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 24px;
}
.engagement h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.engagement p {
  color: var(--gris);
  font-size: 17px;
}

/* Rappel d'appel en fin de page interne. */
.rappel {
  background: var(--papier-2);
  border-top: 1px solid var(--trait);
  text-align: center;
}
.rappel h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.rappel p {
  color: var(--gris);
  margin-bottom: 24px;
}
.wp-block-buttons.rappel__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.rappel .wp-block-button.bouton--creux .wp-block-button__link {
  border-color: var(--marine);
  color: var(--marine);
}
.rappel .wp-block-button.bouton--creux .wp-block-button__link:hover {
  background: rgba(13, 46, 82, 0.06);
  border-color: var(--marine);
}

@media (max-width: 860px) {
  .engagements {
    grid-template-columns: 1fr;
  }
}

/* Derniere ligne du pied : copyright a gauche, signature de l'atelier a droite.
   Volontairement discrete, elle informe sans concurrencer les liens du site. */
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  color: #8fa6bc;
}
.pied__bas a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}
