/*
Theme Name: Jacques Rengou
Theme URI: https://jacques-rengou.com
Author: Jacques Rengou
Description: Thème bloc sur mesure de jacques-rengou.com. Charte Jacques Rengou (F2F1F0 / F23005 / BF2604 / 0D0D0D, Montserrat), registre de la référence « Alex Rose ». Tout le contenu est en blocs natifs, modifiable dans l'éditeur.
Version: 1.1.1
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: jacques-rengou
Tags: block-theme, full-site-editing, business
*/

:root {
  --creme: #F2F1F0;
  --blanc: #FFFFFF;
  --encre: #0D0D0D;
  --flamme: #F23005;
  --rouille: #BF2604;
  --gris: #5C5C5C;
  --gris-texte: #3A3A3A;
  --teinte: #FDEEEA;
  --filet: rgba(13, 13, 13, .09);
  --police: 'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif;
  --largeur: 1240px;
  --gouttiere: 32px;
  /* Icônes en masques CSS (substitution n° 1 de blocs-gutenberg.md) */
  --i-diag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11L11 3M5 3h6v6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-droite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-gauche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 8H3M7 3.5L2.5 8 7 12.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-suivant: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 3.5L13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip et non hidden : hidden casse l'en-tête collant */
}
img { display: block; max-width: 100%; height: auto; } /* height:auto obligatoire : l'attribut height des blocs image l'emporterait */
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* Espacement automatique de Gutenberg : coupé à la source dans theme.json
   (blockGap 0px), filet de sécurité ici À SPÉCIFICITÉ NULLE uniquement. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.wp-site-blocks > * { margin-block: 0; }

.enveloppe {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.section { padding: 150px 0; }

.titre-section {
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
  hyphens: none;
  text-wrap: balance;
}

.chapo { font-size: 16px; color: var(--gris); margin-top: 22px; }

/* ---------- Boutons (core/button : la classe est sur le conteneur) ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; }
.wp-block-button.b-plein, .wp-block-button.b-noir, .wp-block-button.b-lien {
  display: inline-block; background: none; border: 0; padding: 0; border-radius: 0; margin: 0;
}
.wp-block-button.b-plein .wp-block-button__link,
.wp-block-button.b-noir .wp-block-button__link,
.wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--flamme);
  color: #fff;
  text-decoration: none;
  font-family: var(--police);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 19px 32px;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 12px 24px -6px rgba(242, 48, 5, .45);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.wp-block-button.b-plein .wp-block-button__link:hover,
.wpcf7 .wpcf7-submit:hover { background: var(--rouille); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 28px -8px rgba(191, 38, 4, .5); }
.wp-block-button.b-noir .wp-block-button__link { background: var(--encre); box-shadow: none; padding: 16px 26px; border-radius: 6px; }
.wp-block-button.b-noir .wp-block-button__link:hover { background: #2B2B2B; color: #fff; transform: none; box-shadow: none; }
.wp-block-button.b-petit .wp-block-button__link { padding: 19px 54px; }

.wp-block-button.b-lien .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  color: var(--encre);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--police);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}
.wp-block-button.b-lien .wp-block-button__link::after,
.lien-fleche a::after {
  content: "";
  width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: var(--i-diag) center / contain no-repeat;
          mask: var(--i-diag) center / contain no-repeat;
  transition: transform .2s ease;
}
.wp-block-button.b-lien .wp-block-button__link:hover::after, .lien-fleche.diag a:hover::after { transform: translate(2px, -2px); }

.lien-fleche { display: flex; }
.lien-fleche a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  text-decoration: none;
}
.lien-fleche:not(.diag) a::after { -webkit-mask-image: var(--i-droite); mask-image: var(--i-droite); }
.lien-fleche:not(.diag) a:hover::after { transform: translateX(3px); }
.lien-fleche a:hover { color: var(--flamme); }

/* ---------- En-tête ---------- */
.entete { background: var(--creme); position: relative; z-index: 10; }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; height: 108px; gap: 40px; }
.logo { white-space: nowrap; }
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--encre);
}
.logo strong { font-size: 36px; font-weight: 800; letter-spacing: -.16em; padding-right: .16em; }

.wp-block-navigation.navigation { gap: 36px; font-family: var(--police); }
.wp-block-navigation.navigation .wp-block-navigation__container { gap: 36px; }
.wp-block-navigation.navigation .wp-block-navigation-item__content { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--encre); padding: 0; }
.wp-block-navigation.navigation .wp-block-navigation-item__content:hover { color: var(--flamme); }
.wp-block-navigation.navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation.navigation .wp-block-navigation-item__content[aria-current="page"] {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px;
}
/* Le panneau mobile de core/navigation s'ouvre blanc sur blanc sans ceci :
   le CSS du bloc est imprimé après cette feuille. Seul !important justifié. */
.wp-block-navigation.navigation .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--creme) !important;
  color: var(--encre) !important;
  padding: 28px 24px !important;
}
.wp-block-navigation.navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 22px; }
.wp-block-navigation.navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 22px; font-weight: 600; }
.wp-block-navigation.navigation .wp-block-navigation__responsive-container-open svg,
.wp-block-navigation.navigation .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

/* En-tête fixé en haut ; app.js pose .est-defile dès que la page défile */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
[id] { scroll-margin-top: 96px; }
.entete { transition: background-color .35s ease, box-shadow .35s ease; }
.entete .enveloppe { transition: height .35s ease; }
.entete .logo a, .entete .wp-block-navigation-item__content, .entete .wp-block-button__link { transition: color .35s ease, background-color .35s ease; }
.entete.est-defile { background: var(--encre); box-shadow: 0 14px 30px -20px rgba(13, 13, 13, .7); }
.entete.est-defile .enveloppe { height: 80px; }
.entete.est-defile .logo a,
.entete.est-defile .wp-block-navigation.navigation .wp-block-navigation-item__content,
.entete.est-defile .wp-block-navigation__responsive-container-open { color: var(--blanc); }
.entete.est-defile .wp-block-navigation.navigation .wp-block-navigation-item__content:hover { color: var(--flamme); }
.entete.est-defile .wp-block-button.b-noir .wp-block-button__link { background: var(--flamme); }
.entete.est-defile .wp-block-button.b-noir .wp-block-button__link:hover { background: var(--rouille); }
/* le panneau mobile reste crème, texte encre */
.entete.est-defile .wp-block-navigation.navigation .is-menu-open .wp-block-navigation-item__content { color: var(--encre); }

/* ---------- Hero de l'accueil ---------- */
.hero { background: var(--creme); position: relative; overflow: hidden; }
.hero-grille {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px 1fr;
  grid-template-areas:
    ".        .  texte-d"
    "votre    .  mot-2"
    "texte-g  .  boucle"
    "mot-3    .  boucle"
    "actions  .  liste";
  grid-template-rows: auto auto auto auto 1fr;
  min-height: 830px;
  padding-top: 92px;
  padding-bottom: 70px;
}
/* Signature et flèche dessinée : décors, donc pseudo-éléments (substitution n° 5) */
.hero-grille::before {
  content: "";
  grid-area: votre;
  width: 108px; height: 29px;
  justify-self: start; align-self: start;
  margin: 44px 0 0 92px;
  background: url(assets/img/signature.svg) left center / contain no-repeat;
  opacity: .85;
  position: relative; z-index: 2;
}
.hero-grille::after {
  content: "";
  grid-area: boucle;
  width: 118px; height: 127px;
  margin: 30px 0 0 110px;
  background: url(assets/img/fleche-boucle.svg) center / contain no-repeat;
  position: relative; z-index: 2;
}
.hero-photo {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 610px;
  max-width: none;
  transform: translateX(-50%);
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 86%);
          mask-image: linear-gradient(to bottom, #000 58%, transparent 86%);
}
.hero-photo img { width: 100%; height: auto; }
.hero-grille > *:not(.hero-photo) { position: relative; z-index: 2; }

/* Le titre est un seul h1 : ses trois mots en gras natif se placent dans la grille */
.hero-titre { display: contents; }
.hero-titre strong {
  display: block;
  position: relative;
  z-index: 2;
  font-size: clamp(48px, 5.6vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.hero-titre strong:nth-of-type(1) { grid-area: votre; justify-self: end; margin-top: 0; margin-right: 18px; }
.hero-titre strong:nth-of-type(2) { grid-area: mot-2; margin-top: 56px; }
.hero-titre strong:nth-of-type(3) { grid-area: mot-3; margin-top: 34px; }

.hero-texte { font-size: 17px; line-height: 1.65; color: #2E2E2E; }
.hero-texte-g { grid-area: texte-g; max-width: 440px; margin-top: 46px; }
.hero-texte-d { grid-area: texte-d; max-width: 380px; }
.hero-actions { gap: 34px; }
.hero-grille .hero-actions { grid-area: actions; margin-top: 60px; align-self: start; }

.liste-services { padding-left: 34px; }
.hero-grille .liste-services { grid-area: liste; margin-top: 4px; align-self: start; }
.liste-services li {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 58px;
  font-size: 22px;
  font-weight: 500;
  color: var(--gris-texte);
  letter-spacing: -.01em;
}
.liste-services li::before {
  content: "";
  width: 150px; height: 14px; flex: none;
  background: url(assets/img/fleche-longue.svg) left center / 100% 100% no-repeat;
}

/* ---------- Chiffres ---------- */
.chiffres { padding-bottom: 110px; }
.cartes-chiffres { display: grid; grid-template-columns: repeat(3, 300px); gap: 24px; margin-top: 70px; }
.carte-chiffre { background: var(--creme); border-radius: 12px; padding: 38px 34px 36px; min-height: 204px; }
.carte-chiffre .nombre { font-size: 60px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.carte-chiffre p:not(.nombre) { font-size: 16px; line-height: 1.5; color: var(--gris-texte); margin-top: 28px; max-width: 230px; }

/* ---------- À propos / exemples ---------- */
.apropos { padding-top: 60px; }
.apropos-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.collage { position: relative; height: 580px; }
.collage .wp-block-image {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 50px -18px rgba(13, 13, 13, .35);
}
.collage .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.collage .photo-1 { left: 10px; top: 0; transform: rotate(8deg); }
.collage .photo-2 { left: 180px; top: 225px; transform: rotate(-5deg); }
.apropos-texte { max-width: 500px; }
.apropos-texte p { font-size: 17px; line-height: 1.7; color: var(--gris-texte); margin-top: 30px; }
.apropos-texte .bloc-boutons { margin-top: 56px; }

/* ---------- Projets ---------- */
.projets { text-align: center; padding-top: 110px; }
.bande { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 76px; overflow: hidden; }
.bande .wp-block-image { flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(13, 13, 13, .35); }
.bande .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.bande .v-bord { width: 300px; height: 380px; }
.bande .v-cote { width: 360px; height: 418px; }
.bande .v-centre { width: 430px; height: 500px; }
.legendes { display: flex; justify-content: center; gap: 64px; margin-top: 48px; }
.legende a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; font-size: 14px; color: var(--gris); }
.legende br { display: none; }
.legende strong { font-size: 16px; font-weight: 600; color: var(--encre); }
.legende a:hover strong { color: var(--flamme); }

/* ---------- Témoignages ---------- */
.temoignages { background: var(--creme); text-align: center; }
.carrousel { position: relative; max-width: 1060px; margin: 76px auto 0; text-align: left; }
.fleches { position: absolute; top: 0; left: 0; width: 250px; display: flex; justify-content: flex-end; gap: 10px; z-index: 2; }
/* Boutons d'onglet → paragraphes éditables (substitution n° 3), le script ajoute role="button" */
.fleche {
  width: 44px; height: 44px;
  border-radius: 4px;
  display: grid; place-items: center;
  background: var(--encre); color: #fff;
  font-size: 0; line-height: 0;
  cursor: pointer;
  transition: background .2s ease;
}
.fleche::before {
  content: "";
  width: 16px; height: 16px;
  background: #fff;
  -webkit-mask: var(--i-gauche) center / contain no-repeat;
          mask: var(--i-gauche) center / contain no-repeat;
}
.fleche.suivant { background: var(--flamme); }
.fleche.suivant::before { -webkit-mask-image: var(--i-suivant); mask-image: var(--i-suivant); }
.fleche:hover { background: var(--rouille); }
.diapo { display: none; grid-template-columns: 250px 300px 1fr; gap: 30px; }
.diapo.est-actif { display: grid; }
.mini-carte { align-self: end; background: var(--blanc); border-radius: 10px; padding: 20px 20px 22px; box-shadow: 0 12px 30px -14px rgba(13, 13, 13, .18); }
.mini-tete { display: flex; align-items: center; gap: 12px; }
.mini-tete .wp-block-image { width: 42px; height: 42px; flex: none; border-radius: 6px; overflow: hidden; }
.mini-tete .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.mini-nom strong { font-size: 16px; font-weight: 600; }
.mini-role { font-size: 13px; color: var(--gris); }
.mini-note { font-size: 15px; font-weight: 500; margin-top: 34px; }
.etoiles { color: var(--flamme); letter-spacing: 3px; font-size: 15px; }
.temoin-photo { width: 300px; height: 352px; border-radius: 10px; overflow: hidden; }
.temoin-photo img { width: 100%; height: 100%; object-fit: cover; }
.temoin-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 4px 0 24px; border-bottom: 1px solid var(--filet); }
.temoin-nom strong { font-size: 23px; font-weight: 600; }
.temoin-role { font-size: 14px; color: var(--gris); margin-top: 4px; }
.note-titre { font-size: 21px; font-weight: 500; }
.temoin-tete .etoiles { font-size: 19px; margin-top: 6px; }
.citation { font-size: 24px; line-height: 1.55; color: #2A2A2A; margin-top: 30px; letter-spacing: -.01em; }

/* ---------- FAQ ---------- */
.faq-grille { display: grid; grid-template-columns: 1fr 640px; gap: 60px; align-items: stretch; }
.faq-gauche { display: flex; flex-direction: column; justify-content: space-between; gap: 60px; }
.carte-question { background: var(--creme); border-radius: 12px; padding: 34px 36px 36px; max-width: 520px; }
.carte-question-tete { display: flex; align-items: center; gap: 20px; }
.avatar { width: 58px; height: 58px; flex: none; border-radius: 50%; overflow: hidden; background: #E4E2DF; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.carte-question-tete p { font-size: 21px; line-height: 1.45; letter-spacing: -.01em; }
.carte-question .bloc-boutons { margin-top: 46px; }
.mail { margin-top: 26px; font-size: 19px; }
.mail a { color: var(--flamme); text-decoration: none; display: inline-block; }
.mail a:hover { text-decoration: underline; }

.accordeon { display: flex; flex-direction: column; gap: 14px; }
.accordeon .wp-block-details {
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: 8px;
  box-shadow: 0 6px 18px -12px rgba(13, 13, 13, .2);
  transition: background .2s ease, border-color .2s ease;
}
.accordeon summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 26px 27px 28px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
}
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--encre); color: #fff;
  font-size: 19px; font-weight: 500; line-height: 1;
}
.accordeon .wp-block-details[open] { background: var(--teinte); border-color: var(--flamme); }
.accordeon .wp-block-details[open] summary::after { content: "–"; background: var(--flamme); }
.reponse { padding: 0 76px 28px 28px; font-size: 15.5px; line-height: 1.65; color: var(--gris); }

/* ---------- Pied de page ---------- */
.pied { background: var(--creme); padding: 100px 0 40px; }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.pied-marque p:not(.logo) { font-size: 15px; color: var(--gris-texte); margin-top: 22px; max-width: 320px; }
.pied-titre { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); margin-bottom: 20px; }
.pied li { font-size: 15px; margin-bottom: 12px; }
.pied li a { text-decoration: none; }
.pied li a:hover { color: var(--flamme); }
.pied-bas { display: flex; justify-content: space-between; margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--gris); }

/* ==========================================================================
   Pages internes
   ========================================================================== */
.hero-page { background: var(--creme); overflow: hidden; }
.hero-page-grille {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  align-items: center;
  min-height: 620px;
  padding-top: 70px;
  padding-bottom: 100px;
}
.titre-page {
  font-size: clamp(40px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
  hyphens: none;
}
.hero-page .hero-texte { max-width: 520px; margin-top: 34px; }
.hero-page .hero-actions { margin-top: 50px; }
.hero-page-visuel { position: relative; justify-self: center; }
.hero-page-visuel::before {
  content: "";
  position: absolute; left: -128px; top: -54px;
  width: 110px; height: 118px;
  background: url(assets/img/fleche-boucle.svg) center / contain no-repeat;
  transform: scaleX(-1);
}
.visuel-portrait::before { content: none; }
.photo-tournee {
  width: 440px;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(5deg);
  box-shadow: 0 30px 60px -24px rgba(13, 13, 13, .4);
}
.photo-tournee img { width: 100%; height: 100%; object-fit: cover; }
.visuel-liste { justify-self: end; padding-top: 70px; }
.visuel-liste::before { left: 40px; top: -70px; transform: none; }
.visuel-liste .liste-services { padding-left: 0; margin-top: 4px; }
.visuel-liste .liste-services a { text-decoration: none; }
.visuel-liste .liste-services a:hover { color: var(--flamme); }
.visuel-portrait { align-self: end; margin-bottom: -100px; }
.portrait-page {
  width: 430px;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
}
.portrait-page img { width: 100%; }

.section-creme { background: var(--creme); }
.grille-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 70px; }
.grille-cartes.colonnes-4 { grid-template-columns: repeat(4, 1fr); }
.carte { display: flex; flex-direction: column; background: var(--creme); border-radius: 12px; padding: 38px 34px 36px; }
.section-creme .carte { background: var(--blanc); box-shadow: 0 12px 30px -14px rgba(13, 13, 13, .18); }
.carte .numero { font-size: 60px; font-weight: 700; line-height: 1; letter-spacing: -.04em; margin-bottom: 30px; }
.carte h3 { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.carte p:not(.numero):not(.categorie):not(.etat):not(.lien-fleche) { font-size: 16px; line-height: 1.6; color: var(--gris-texte); margin-top: 14px; }
.carte .lien-fleche { margin-top: auto; padding-top: 30px; align-self: flex-start; }
.carte-appel { justify-content: center; border: 1px dashed rgba(13, 13, 13, .18); background: var(--blanc); }
.carte-appel .bloc-boutons { margin-top: 30px; }
.categorie { font-size: 14px; font-weight: 600; color: var(--gris); margin-bottom: 18px; }
.carte-article h3 { font-size: 21px; }
.etat { margin-top: auto; padding-top: 30px; font-size: 14px; font-weight: 500; color: var(--gris); }

.livrables-grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.liste-livrables li {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px 0;
  border-bottom: 1px solid var(--filet);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--gris-texte);
}
.liste-livrables li:first-child { border-top: 1px solid var(--filet); }
.liste-livrables li::before {
  content: "";
  width: 120px; height: 14px; flex: none;
  background: url(assets/img/fleche-longue.svg) left center / 100% 100% no-repeat;
}
.liste-courte { margin-top: 30px; }
.liste-courte li { font-size: 17px; padding: 14px 0; gap: 20px; }
.liste-courte li::before { width: 70px; }

.exemple { padding-top: 150px; overflow-x: clip; } /* la photo inclinée des fiches inversées dépassait vers 900-1100 px */
.exemple .apropos-texte .lien-fleche { margin-top: 40px; }
.exemple .categorie { margin-bottom: 22px; }
.inverse .collage { order: 2; }
.section-cartes + .exemple, .livrables + .exemple { padding-top: 90px; }

.carte-appel-large { background: var(--creme); border-radius: 12px; padding: 90px 40px; text-align: center; }
.carte-appel-large .chapo { max-width: 560px; margin-left: auto; margin-right: auto; }
.carte-appel-large .hero-actions { justify-content: center; margin-top: 44px; }

/* ---------- Contact : Contact Form 7 avec les classes de la maquette ---------- */
.contact-grille { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: start; }
.wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.wpcf7-form > div:first-child { display: none; }
.champ { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.champ.large, .note-formulaire, .wpcf7-response-output { grid-column: 1 / -1; }
.champ label { font-size: 15px; font-weight: 500; }
.champ br { display: none; }
.wpcf7-form-control-wrap { display: block; }
.champ input:not([type="submit"]), .champ select, .champ textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--encre);
  padding: 16px 18px;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: 8px;
  box-shadow: 0 6px 18px -12px rgba(13, 13, 13, .2);
  transition: border-color .2s ease;
}
.champ textarea { min-height: 170px; resize: vertical; display: block; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--flamme); }
.champ .wpcf7-submit { align-self: flex-start; }
.wpcf7-spinner { display: none; }
.wpcf7-not-valid-tip { color: var(--rouille); font-size: 13px; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 14px 18px; border-radius: 8px; border: 1px solid var(--flamme); background: var(--teinte); font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--encre); background: var(--creme); }
.note-formulaire { font-size: 14px; color: var(--gris); }
.carte-contact { background: var(--creme); border-radius: 12px; padding: 34px 34px 20px; margin-top: 20px; }
.carte-contact .carte-question-tete p { font-size: 17px; line-height: 1.45; }
.coordonnees { margin-top: 26px; }
.coordonnees li { padding: 16px 0; border-top: 1px solid var(--filet); font-size: 17px; font-weight: 500; }
.coordonnees br { display: none; }
.coordonnees strong { display: block; font-size: 13px; font-weight: 500; color: var(--gris); margin-bottom: 2px; }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { color: var(--flamme); }

/* ---------- Blog et articles ---------- */
.articles .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.articles .wp-block-post { margin: 0; display: flex; }
.articles .wp-block-post > .carte { width: 100%; }
.carte .wp-block-post-title { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.carte .wp-block-post-title a { text-decoration: none; }
.carte .wp-block-post-title a:hover { color: var(--flamme); }
.carte .wp-block-post-excerpt { margin-top: 14px; }
.carte .wp-block-post-excerpt__excerpt { font-size: 16px; line-height: 1.6; color: var(--gris-texte); margin: 0; }
.carte .wp-block-post-excerpt__more-text { display: none; }
.carte .wp-block-post-terms { font-size: 14px; font-weight: 600; color: var(--gris); margin-bottom: 18px; }
.carte .wp-block-post-terms a { text-decoration: none; }
.carte .wp-block-post-date { margin-top: auto; padding-top: 30px; font-size: 14px; font-weight: 500; color: var(--gris); }
.vide-articles { font-size: 17px; color: var(--gris-texte); margin-top: 40px; }
.article-tete > .enveloppe { padding-top: 90px; padding-bottom: 90px; }
.article-tete .titre-page { max-width: 920px; }
.article-tete .wp-block-post-terms a { text-decoration: none; }
.article-tete .wp-block-post-date { margin-top: 26px; font-size: 15px; color: var(--gris); }
.article-corps { max-width: 760px; margin: 0 auto; padding: 90px var(--gouttiere) 120px; font-size: 18px; line-height: 1.75; color: #222; }
.article-corps > * + * { margin-top: 1.1em; }
.article-corps h2 { font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin-top: 1.8em; }
.article-corps h3 { font-size: 23px; font-weight: 600; margin-top: 1.6em; }
.article-corps ul { list-style: disc; padding-left: 1.3em; }
.article-corps ol { padding-left: 1.3em; }
.article-corps a { color: var(--flamme); }
.article-corps .wp-block-image img { border-radius: 12px; }
.article-corps blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--flamme); font-size: 21px; }

:where(a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--flamme); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Animations au défilement : app.js pose .anim sur <html>, .apparait sur les blocs, puis .est-visible.
   translate et scale (propriétés séparées) se cumulent avec les transform existants (photos inclinées). */
.anim .apparait {
  opacity: 0;
  translate: 0 36px;
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1), scale .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delai, 0s);
}
.anim .apparait.depuis-gauche { translate: -56px 0; }
.anim .apparait.depuis-droite { translate: 56px 0; }
.anim .apparait.zoom { translate: 0 24px; scale: .94; }
.anim .apparait.est-visible { opacity: 1; translate: 0 0; scale: 1; }
@media (prefers-reduced-motion: reduce) { .anim .apparait { opacity: 1; translate: none; scale: none; } }

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (max-width: 1180px) {
  .hero-grille { grid-template-columns: 1fr 280px 1fr; }
  .hero-photo { width: 470px; }
  .liste-services li::before { width: 110px; }
  .cartes-chiffres { grid-template-columns: repeat(3, 1fr); }
  .faq-grille { grid-template-columns: 1fr 1fr; }
  .grille-cartes.colonnes-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-tournee { width: 360px; height: 310px; }
  .portrait-page { width: 360px; }
  .livrables-grille { gap: 50px; }
  .liste-livrables li::before { width: 70px; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 900px) {
  :root { --gouttiere: 20px; }
  .section { padding: 90px 0; }

  .entete .enveloppe { height: 76px; }
  .logo a { font-size: 20px; }
  .logo strong { font-size: 24px; }
  .entete .entete-cta { display: none; } /* plus fort que « body .is-layout-flex » des styles globaux */
  .entete.est-defile .enveloppe { height: 64px; }
  [id] { scroll-margin-top: 76px; }
  .wp-block-navigation.navigation, .wp-block-navigation.navigation .wp-block-navigation__container { gap: 22px; }
  .wp-block-navigation.navigation .wp-block-navigation-item__content { font-size: 14px; }

  .hero-grille {
    grid-template-columns: 1fr;
    grid-template-areas: "signature" "titre" "texte-g" "actions" "photo" "texte-d" "liste";
    grid-template-rows: none;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 0;
  }
  .hero-grille::before { grid-area: signature; margin: 0 0 10px; width: 96px; height: 26px; }
  .hero-grille::after { display: none; }
  .hero-titre { display: block; grid-area: titre; font-size: 32px; line-height: 1.6; }
  .hero-titre strong { display: inline; font-size: 42px; line-height: 1.08; white-space: normal; margin: 0 !important; letter-spacing: -.04em; }
  .hero-texte-g { margin-top: 22px; }
  .hero-grille .hero-actions { margin-top: 30px; gap: 26px; }
  .hero-grille .hero-photo { grid-area: photo; position: relative; left: auto; transform: none; width: 100%; max-width: 380px; margin: 36px auto 0; }
  .hero-texte-d { margin-top: 30px; }
  .hero-grille .liste-services, .visuel-liste .liste-services { margin: 14px 0 60px; padding-left: 0; }
  .liste-services li { height: 46px; font-size: 17px; gap: 16px; }
  .liste-services li::before { width: 64px; }

  .chiffres { padding-bottom: 50px; }
  .cartes-chiffres { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .carte-chiffre { min-height: 0; padding: 28px 26px; }
  .carte-chiffre .nombre { font-size: 48px; }
  .carte-chiffre p:not(.nombre) { margin-top: 16px; max-width: none; }

  .apropos { padding-top: 50px; }
  .apropos-grille { grid-template-columns: 1fr; gap: 40px; }
  .collage { height: 380px; }
  .collage .wp-block-image { width: 220px; height: 220px; }
  .collage .photo-1 { left: 6px; }
  .collage .photo-2 { left: auto; right: 6px; top: 140px; }
  .apropos-texte .bloc-boutons { margin-top: 36px; }

  .projets { padding-top: 60px; }
  .bande { gap: 14px; margin-top: 44px; }
  .bande .v-bord { display: none; }
  .bande .v-cote { width: 210px; height: 244px; }
  .bande .v-centre { width: 250px; height: 290px; }
  .legendes { flex-direction: column; gap: 22px; margin-top: 36px; }

  .carrousel { margin-top: 44px; }
  .fleches { position: static; width: auto; justify-content: flex-start; margin-bottom: 22px; }
  .diapo { grid-template-columns: 1fr; gap: 24px; }
  .mini-carte { display: none; }
  .temoin-photo { width: 100%; height: 360px; }
  .temoin-tete { flex-direction: column; gap: 10px; }
  .citation { font-size: 17px; margin-top: 22px; }

  .faq-grille { grid-template-columns: 1fr; gap: 36px; }
  .faq-gauche { display: contents; }
  .faq-gauche .titre-section { order: 1; }
  .accordeon { order: 2; }
  .carte-question { order: 3; padding: 26px 22px; }
  .accordeon summary { font-size: 16px; padding: 20px 18px 20px 20px; }
  .reponse { padding: 0 20px 22px; }

  .pied { padding-top: 70px; }
  .pied-grille { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .pied-marque, .pied-grille > .wp-block-group:last-child { grid-column: 1 / -1; }
  .pied-bas { flex-direction: column; gap: 8px; margin-top: 50px; }

  .hero-page-grille { grid-template-columns: 1fr; gap: 50px; min-height: 0; padding-top: 44px; padding-bottom: 70px; }
  .titre-page { font-size: 31px; }
  .hero-page .hero-texte { margin-top: 22px; }
  .hero-page .hero-actions { margin-top: 30px; gap: 22px 26px; }
  .hero-page-visuel { justify-self: center; }
  .hero-page-visuel::before { display: none; }
  .photo-tournee { width: 290px; height: 250px; }
  .visuel-liste { justify-self: start; padding-top: 0; }
  .visuel-portrait { margin-bottom: -70px; }
  .portrait-page { width: 300px; }
  .grille-cartes, .grille-cartes.colonnes-4 { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .carte { padding: 30px 26px; }
  .carte .numero { font-size: 48px; margin-bottom: 20px; }
  .livrables-grille { grid-template-columns: 1fr; gap: 30px; }
  .liste-livrables li { font-size: 17px; gap: 16px; padding: 16px 0; }
  .liste-livrables li::before { width: 50px; }
  .exemple, .section-cartes + .exemple, .livrables + .exemple { padding-top: 70px; }
  .inverse .collage { order: 0; }
  .carte-appel-large { padding: 56px 22px; }
  .carte-appel-large .hero-actions { flex-direction: column; }
  .contact-grille { grid-template-columns: 1fr; gap: 40px; }
  .wpcf7-form { grid-template-columns: 1fr; margin-top: 30px; }
  .carte-contact { margin-top: 0; padding: 26px 22px 12px; }
  .article-corps { padding-top: 60px; font-size: 17px; }
}
