/*
Theme Name: Le Témoin
Author: Le Témoin
Description: Thème bloc sur mesure de Le Témoin — maquette convertie en blocs Gutenberg natifs, 100 % éditable.
Version: 1.0.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: le-temoin
Tags: block-theme, full-site-editing, business
*/

/* =========================================================
   Le Témoin — maquette
   Registre relevé sur la référence (Trendzi) : une sans-serif
   (Titillium Web), un seul accent rouge (étiquettes, boutons,
   encadré « dernière minute »), fond blanc, ouverture photo sombre,
   angles droits, grilles denses d'articles, pied de page sombre.
   ========================================================= */

:root {
  --rouge: #d7262d;
  --rouge-fonce: #a91b21;
  --noir: #17181b;
  --encre: #1c1d21;
  --gris: #6c6f76;
  --gris-clair: #9a9da3;
  --ligne: #e6e7ea;
  --fond: #f5f5f6;
  --blanc: #ffffff;

  --police: "Titillium Web", system-ui, sans-serif;
  --max: 1200px;
  --gut: clamp(16px, 3.6vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sig: var(--rouge); --sig-fonce: var(--rouge-fonce); --sig-2: var(--noir);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blanc); color: var(--encre); font-family: var(--police); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wp-site-blocks > header, .wp-site-blocks > footer { margin: 0; }
.entry-content > * { margin-top: 0; margin-bottom: 0; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
.wp-block-image { margin: 0; }
.wp-block-buttons { margin: 0; }

/* ---------- Étiquette de rubrique (référence : pavé rouge) ---------- */
.etiq { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.etiq a { display: inline-block; background: var(--rouge); color: var(--blanc); padding: 4px 8px; }
.carte__meta { font-size: 12px; color: var(--gris-clair); }
.section__t { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; position: relative; padding-left: 20px; }
.section__t::before { content: ""; position: absolute; left: 0; top: .15em; width: 6px; height: 1em; background: var(--rouge); }
.section__t em { font-style: normal; color: var(--rouge); }

/* ---------- Boutons (référence : rectangle rouge) + pastille signature ---------- */
.btn .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 12px; background: var(--rouge); color: var(--blanc);
  border-radius: 0; padding: 11px 12px 11px 20px; font-family: var(--police); font-size: 14px; font-weight: 600; border: 0;
  transition: background .25s;
}
.btn .wp-block-button__link::after {
  content: ""; width: 22px; height: 22px; flex: none; background: rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 7.5 7.5 2.5M3.5 2.5h4v4' fill='none' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") center / 10px no-repeat;
  transition: transform .4s var(--ease);
}
.btn .wp-block-button__link:hover { background: var(--rouge-fonce); }
.btn .wp-block-button__link:hover::after { transform: rotate(45deg); }
.btn--clair .wp-block-button__link { background: var(--blanc); color: var(--rouge); }
.btn--clair .wp-block-button__link::after { background-color: rgba(215,38,45,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 7.5 7.5 2.5M3.5 2.5h4v4' fill='none' stroke='%23d7262d' stroke-width='1.2'/%3E%3C/svg%3E"); }
.btn--clair .wp-block-button__link:hover { background: var(--fond); }
.btn--sm .wp-block-button__link { padding: 8px 10px 8px 16px; font-size: 13px; }
.btn--sm .wp-block-button__link::after { width: 20px; height: 20px; }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 50; background: var(--blanc); box-shadow: 0 1px 0 var(--ligne); }
.nav__haut { max-width: var(--max); margin: 0 auto; padding: 8px var(--gut); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--gris); border-bottom: 1px solid var(--ligne); }
.nav__utile { list-style: none; padding: 0; display: flex; gap: 22px; }
.nav__utile a:hover { color: var(--rouge); }
.nav__bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.logo { font-size: 10.5px; line-height: 1.2; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; max-width: 220px; }
.logo a { display: flex; flex-direction: column; gap: 3px; }
.logo strong { display: inline-block; align-self: flex-start; background: var(--rouge); color: var(--blanc); font-size: 24px; font-weight: 900; letter-spacing: .02em; padding: 2px 10px 0; line-height: 1.25; }
.nav__links { justify-self: end; font-size: 14px; font-weight: 600; }
.wp-block-navigation.nav__links .wp-block-navigation__container { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links .wp-block-navigation-item__content { color: var(--encre); transition: color .2s; }
.nav__links .wp-block-navigation-item__content:hover, .nav__links .current-menu-item > .wp-block-navigation-item__content { color: var(--rouge); }
.nav__links .current-menu-item > .wp-block-navigation-item__content::after { content: ""; display: block; height: 2px; margin-top: 2px; background: var(--rouge); }
.wp-block-navigation.nav__links .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--blanc) !important; color: var(--encre) !important; padding: 90px var(--gut) 40px; }
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation__container { flex-direction: column; gap: 4px; }
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation-item__content { font-size: 24px; padding: 6px 0; }
/* signature : progression de lecture */
.nav::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--defil, 0) * 100%); background: var(--rouge); }

/* =========================================================
   LA UNE — photo sombre pleine largeur + encadré rouge
   ========================================================= */
.une { position: relative; background: var(--noir); color: var(--blanc); }
.une__photo { position: absolute; inset: 0; }
.une__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.une__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.55) 50%, rgba(10,10,12,.15) 100%); }
.une__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 90px var(--gut) 0; min-height: 520px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: end; }
.une__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 70px; }
.une__sur { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #ff8d90; }
.une__t { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; line-height: 1.12; }
.une__t a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.une__p { font-size: 15px; color: rgba(255,255,255,.82); max-width: 560px; }
/* encadré rouge qui déborde sous la photo (référence) */
.breve { align-self: end; background: var(--rouge); padding: 26px 26px 10px; margin-bottom: -60px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.breve__sur { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.breve__item { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.22); }
.breve__t { font-size: 16px; font-weight: 600; line-height: 1.35; }
.breve__t a:hover { text-decoration: underline; }
.breve__m { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 6px; }

/* Rangée des rubriques sous la une (référence) */
.onglets { max-width: var(--max); margin: 0 auto; padding: 22px var(--gut); display: flex; align-items: center; gap: 26px; border-bottom: 1px solid var(--ligne); }
.onglets__date { font-size: 12px; font-weight: 600; line-height: 1.3; padding-right: 26px; border-right: 1px solid var(--ligne); }
.onglets__liste { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; color: var(--gris); }
.onglets__liste a:hover { color: var(--rouge); }

/* =========================================================
   CARTES D'ARTICLES
   ========================================================= */
.carte { display: flex; flex-direction: column; gap: 14px; }
.carte__img { overflow: hidden; }
.carte__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.carte:hover .carte__img img { transform: scale(1.04); }
.carte__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.carte__t { font-size: 18px; line-height: 1.3; }
.carte__t a:hover, .ligne__t a:hover, .vedette__t a:hover { color: var(--rouge); }
.carte__p { font-size: 14px; color: var(--gris); }
.carte--large { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.carte--large .carte__t { font-size: clamp(22px, 2.2vw, 28px); }
.carte--h { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: start; }
.carte--h .carte__img img { aspect-ratio: 1 / 1; }
.carte--h .carte__t { font-size: 16px; }
.carte--h .carte__p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte--mini .carte__img img { aspect-ratio: 16 / 10; }
.carte--mini .carte__t { font-size: 17px; }

.selection { max-width: var(--max); margin: 0 auto; padding: 80px var(--gut) 70px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; }
.selection__d { display: flex; flex-direction: column; gap: 26px; }

/* Trois colonnes : dernières / vedette / plus lus (référence) */
.trois-col { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 80px; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 36px; }
.col { display: flex; flex-direction: column; }
.col__t { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 2px solid var(--encre); }
.ligne { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--ligne); }
.ligne__t { font-size: 15.5px; line-height: 1.35; }
.vedette { position: relative; color: var(--blanc); min-height: 480px; display: flex; overflow: hidden; }
.vedette__img { position: absolute; inset: 0; }
.vedette__img img { width: 100%; height: 100%; object-fit: cover; }
.vedette__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.2) 60%); }
.vedette__txt { position: relative; z-index: 1; margin-top: auto; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.vedette__t { font-size: 24px; line-height: 1.25; }
.vedette__t a:hover { color: var(--blanc); text-decoration: underline; }
.vedette__p { font-size: 14px; color: rgba(255,255,255,.8); }
.lu { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--ligne); }
.lu__n { font-size: 30px; font-weight: 300; color: var(--rouge); line-height: 1; }
.lu__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* Citation (référence : guillemets rouges + photo) */
.citation { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 90px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }
.citation__txt { display: flex; flex-direction: column; gap: 14px; }
.citation__t { font-size: clamp(24px, 2.8vw, 36px); font-weight: 300; line-height: 1.3; }
.citation__t::before { content: "\201C"; display: block; font-size: 90px; line-height: .7; color: var(--rouge); opacity: .5; font-weight: 900; height: 40px; }
.citation__a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--rouge); }
.citation__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Rubriques (fond gris clair) */
.rubriques { background: var(--fond); padding: 80px var(--gut); }
.rubriques .section__t { max-width: var(--max); margin: 0 auto 36px; }
.rubriques__grille { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.rubrique { display: flex; flex-direction: column; gap: 14px; }
.rubrique__t { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 10px; border-bottom: 2px solid var(--rouge); }
.rubrique__t a:hover { color: var(--rouge); }

/* Section pleine couleur (signature) : annonces */
.pub { background: var(--rouge); color: var(--blanc); padding: 70px var(--gut); }
.pub__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 14px 50px; align-items: center; }
.pub__sur { grid-column: 1 / -1; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.pub__t { font-size: clamp(26px, 3vw, 38px); font-weight: 600; }
.pub__t em { font-style: normal; color: var(--noir); }
.pub__p { font-size: 15px; color: rgba(255,255,255,.88); max-width: 640px; grid-column: 1; }
.pub__inner > .wp-block-buttons { grid-column: 2; grid-row: 2 / span 2; }

/* =========================================================
   RUBRIQUE / LISTES / ARTICLE / PAGES
   ========================================================= */
.rtete { max-width: var(--max); margin: 0 auto; padding: 60px var(--gut) 40px; border-bottom: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 10px; }
.rtete__sur { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--rouge); }
.rtete__t { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.01em; line-height: 1.05; }
.rtete__p { font-size: 16px; color: var(--gris); max-width: 680px; }
.liste { max-width: var(--max); margin: 0 auto; padding: 20px var(--gut) 80px; }
.liste .section__t { margin-bottom: 30px; }
.liste__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }

.article { max-width: 820px; margin: 0 auto; padding: 60px var(--gut) 50px; }
.article__tete { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
.article__t { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; line-height: 1.15; }
.article__chapo { font-size: 19px; line-height: 1.5; color: #3a3c42; }
.article__meta { font-size: 13px; color: var(--gris); padding-top: 14px; border-top: 1px solid var(--ligne); width: 100%; }
.article__img { margin: 0 calc(-1 * min(140px, 8vw)) 30px; }
.article__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__img figcaption { font-size: 12.5px; color: var(--gris); margin-top: 8px; }
.article__corps { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.75; }
.article__inter { font-size: 24px; margin-top: 14px; }
.article__exergue { font-size: 24px; font-weight: 300; line-height: 1.4; color: var(--rouge); border-left: 4px solid var(--rouge); padding: 4px 0 4px 22px; margin: 10px 0; }
.partage { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ligne); }
.partage__t { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.partage__l a { display: inline-block; padding: 7px 14px; border: 1px solid var(--ligne); font-size: 13px; font-weight: 600; transition: all .2s; }
.partage__l a:hover { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }

.offres { max-width: var(--max); margin: 0 auto; padding: 60px var(--gut); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.offre { border: 1px solid var(--ligne); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.offre__n { font-size: 13px; font-weight: 700; color: var(--rouge); margin-bottom: 20px; }
.offre__t { font-size: 20px; }
.offre__p { font-size: 14px; color: var(--gris); }
.offre--rouge { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }
.offre--rouge .offre__n, .offre--rouge .offre__p { color: rgba(255,255,255,.85); }

.apropos { max-width: var(--max); margin: 0 auto; padding: 70px var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.apropos__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.apropos__txt { display: flex; flex-direction: column; gap: 18px; }
.apropos__p { font-size: 16px; color: #3a3c42; }
.valeurs { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 90px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.valeur { border-top: 3px solid var(--rouge); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.valeur__n { font-size: 13px; font-weight: 700; color: var(--rouge); }
.valeur__t { font-size: 22px; }
.valeur__p { font-size: 14.5px; color: var(--gris); }

.contact { max-width: var(--max); margin: 0 auto; padding: 60px var(--gut) 90px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 60px; }
.contact__g { display: flex; flex-direction: column; gap: 18px; }
.contact__intro { color: var(--gris); }
.voies { display: flex; flex-direction: column; border-top: 1px solid var(--ligne); }
.voie { padding: 15px 0; border-bottom: 1px solid var(--ligne); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.voie__l { font-size: 13px; color: var(--gris); }
.voie__v { font-weight: 600; }
.voie__v a:hover { color: var(--rouge); }
.contact__d { background: var(--fond); padding: 34px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__l { font-size: 12.5px; font-weight: 600; color: var(--gris); }
.field input, .field textarea { font: inherit; font-size: 15px; width: 100%; min-width: 0; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 0; padding: 11px 13px; outline: none; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--rouge); }
.field.is-error input, .field.is-error textarea { border-color: var(--rouge); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label > span { display: inline-block; padding: 8px 14px; border: 1px solid var(--ligne); background: var(--blanc); font-size: 13px; font-weight: 600; transition: all .2s; }
.choice input:checked + span { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }
.choice .wpcf7-form-control-wrap, .choice .wpcf7-form-control { display: contents; }
.choice .wpcf7-list-item { margin: 0; }
.form__group { border: 0; padding: 0; margin: 0; }
.form__group legend { font-size: 12.5px; font-weight: 600; color: var(--gris); padding: 0; margin-bottom: 10px; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__submit { font-family: var(--police); font-size: 14px; font-weight: 600; background: var(--rouge); color: var(--blanc); border: 0; padding: 13px 28px; cursor: pointer; transition: background .2s; }
.form__submit:hover { background: var(--rouge-fonce); }
.form__note { font-size: 12px; color: var(--gris); }
.form__ok { display: none; color: var(--rouge); font-weight: 600; }
#contact-form.is-sent .form__ok { display: block; }
#contact-form.is-sent .form__foot { display: none; }
.contact__d .wpcf7-response-output { margin: 16px 0 0; padding: 10px 14px; font-size: 13px; }
.contact__d .wpcf7-not-valid-tip { font-size: 12px; color: var(--rouge); margin-top: 4px; }
.contact__d .wpcf7-spinner { display: none; }

/* =========================================================
   PIED DE PAGE (référence : sombre) + signature
   ========================================================= */
.foot { background: var(--noir); color: #b9bbc0; padding: 70px var(--gut) 30px; }
.foot__top, .foot__bottom { max-width: var(--max); margin: 0 auto; }
.foot__top { display: flex; justify-content: space-between; gap: 50px; padding-bottom: 60px; }
.foot__marque { max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.foot__logo strong { display: inline-block; background: var(--rouge); color: var(--blanc); font-size: 26px; font-weight: 900; padding: 2px 12px 0; }
.foot__intro { font-size: 14px; }
.foot__cols { display: flex; gap: 70px; }
.foot__col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot__h { color: var(--blanc); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.foot__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot__list a:hover, .foot__c a:hover { color: var(--blanc); }
.foot__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; border-top: 1px solid #2c2d31; padding-top: 28px; }
.foot__geant { font-size: clamp(54px, 10vw, 140px); font-weight: 900; line-height: .8; letter-spacing: -.02em; color: var(--rouge); }
.foot__droite { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.foot__copy { font-size: 12px; color: #7d8086; }
.signature { font-size: 11.5px; }
.signature a { color: #7d8086; display: inline-flex; align-items: center; gap: 8px; }
.signature a::before { content: ""; width: 7px; height: 7px; background: var(--rouge); transform: rotate(45deg); }
.signature a:hover { color: var(--blanc); }

.js .mots .m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .mots .m > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.js .mots.is-in .m > span { transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .wp-block-navigation.nav__links .wp-block-navigation__container { gap: 14px; font-size: 13px; }
  .nav__bar > .wp-block-buttons { display: none; }
  .nav__bar { grid-template-columns: auto 1fr; }
  .rubriques__grille, .offres { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .une__inner { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-top: 70px; }
  .une__txt { padding-bottom: 40px; }
  .breve { margin-bottom: 0; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); }
  .selection, .trois-col, .citation, .apropos, .contact { grid-template-columns: minmax(0, 1fr); }
  .carte--large { grid-template-columns: 1fr; }
  .liste__grille { grid-template-columns: 1fr 1fr; }
  .vedette { min-height: 380px; }
  .pub__inner { grid-template-columns: 1fr; }
  .pub__inner > .wp-block-buttons { grid-column: 1; grid-row: auto; }
  .valeurs { grid-template-columns: 1fr; }
  .foot__top { flex-direction: column; }
  .foot__cols { flex-wrap: wrap; gap: 40px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
  .foot__droite { align-items: flex-start; }
  .article__img { margin-left: 0; margin-right: 0; }
}
@media (max-width: 599px) {
  .nav__haut { display: none; }
  .nav__bar { height: 66px; }
  .logo { font-size: 9px; max-width: 170px; }
  .logo strong { font-size: 20px; }
  .onglets { gap: 14px; }
  .onglets__date { display: none; }
  .carte--h { grid-template-columns: 110px 1fr; gap: 14px; }
  .rubriques__grille, .offres, .liste__grille { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__d { padding: 22px 18px; }
  .voie { grid-template-columns: 1fr; gap: 2px; }
  .article__corps { font-size: 16px; }
}

/* Bouton du menu replié (core/navigation, sous 600 px) */
.nav__links .wp-block-navigation__responsive-container-open { color: var(--blanc); background: var(--rouge); width: 42px; height: 42px; place-items: center; }
.nav__links .wp-block-navigation__responsive-container-open svg { fill: currentColor; width: 22px; height: 22px; }
@media (max-width: 599px) { .nav__links .wp-block-navigation__responsive-container-open { display: grid; } }
/* Maquette locale uniquement : imite le menu replié de core/navigation sous 600 px */
@media (max-width: 599px) {
  .wp-block-navigation.nav__links > .wp-block-navigation__container { display: none; }
  .nav__links:not(:has(.wp-block-navigation__responsive-container))::after {
    content: ""; display: block; width: 42px; height: 42px;
    background: linear-gradient(#fff, #fff) center calc(50% - 4px) / 18px 2px no-repeat, linear-gradient(#fff, #fff) center calc(50% + 4px) / 18px 2px no-repeat, var(--rouge);
  }
}
@media (prefers-reduced-motion: reduce) { .js .mots .m > span { transform: none; transition: none; } }

/* =========================================================
   WORDPRESS — boucles d'articles (core/query)
   Les cartes portent les classes de la maquette ; ce bloc neutralise
   le balisage propre aux blocs d'articles (ul/li, figure, extrait…).
   ========================================================= */
.wp-block-query, .wp-block-post-template, .wp-block-post { margin: 0; }
.wp-block-post-template { list-style: none; padding: 0; }
.wp-block-post-template > li { margin: 0; }
.wp-block-post-featured-image { margin: 0; }
.wp-block-post-featured-image a { display: block; height: 100%; }
.wp-block-post-featured-image img { width: 100%; }
.wp-block-post-title { margin: 0; }
.wp-block-post-excerpt, .wp-block-post-excerpt__excerpt { margin: 0; }
.wp-block-post-excerpt__more-text { display: none; }
.wp-block-post-terms__separator { display: none; }
.etiq.wp-block-post-terms { display: flex; flex-wrap: wrap; gap: 4px; }

/* La une : la photo de l'article reste calée sur toute la section */
.une__photo.wp-block-post-featured-image { position: absolute; inset: 0; }
.une__photo img { height: 100%; }
.une__sur { display: flex; flex-wrap: wrap; gap: 0 6px; }
.une__rub a { background: none; color: inherit; padding: 0; }
.une__rub .wp-block-post-terms__separator { display: inline; }
.une .lire {
  display: inline-flex; align-items: center; gap: 12px; background: var(--rouge); color: var(--blanc);
  padding: 11px 12px 11px 20px; font-size: 14px; font-weight: 600; transition: background .25s;
}
.une .lire::after {
  content: ""; width: 22px; height: 22px; flex: none; background: rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 7.5 7.5 2.5M3.5 2.5h4v4' fill='none' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") center / 10px no-repeat;
  transition: transform .4s var(--ease);
}
.une .lire:hover { background: var(--rouge-fonce); }
.une .lire:hover::after { transform: rotate(45deg); }
.breve__m { display: flex; flex-wrap: wrap; gap: 0 6px; }
.breve__m > * { margin: 0; }
.breve__m .wp-block-post-date::after { content: " ·"; }
.breve__rub a { color: inherit; }

/* Sélection et trois colonnes : la boucle prend la place de la carte */
.selection__d { display: flex; flex-direction: column; gap: 26px; }
.col__liste, .lus { display: flex; flex-direction: column; }
.vedette-q, .vedette__boucle, .vedette__boucle > li { display: flex; flex-direction: column; }
.vedette-q, .vedette__boucle > li, .vedette { flex: 1; }
.lus { counter-reset: lu; }
.lu { counter-increment: lu; }
.lu::before { content: "0" counter(lu); font-size: 30px; font-weight: 300; color: var(--rouge); line-height: 1; }
.rubrique__une, .rubrique__suite { display: flex; flex-direction: column; }
.rubrique__une { margin-bottom: 0; }

/* Rubrique : le premier article en grand, les suivants en grille */
.rubrique-liste { max-width: var(--max); margin: 0 auto; padding: 60px var(--gut) 40px; }
.rgrille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.rgrille > li:first-child { grid-column: 1 / -1; padding-bottom: 36px; border-bottom: 1px solid var(--ligne); }
.rgrille > li:first-child .carte { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.rgrille > li:first-child .carte__t { font-size: clamp(22px, 2.2vw, 30px); }
.liste__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.vide { font-size: 16px; color: var(--gris); padding: 20px 0; }
.pagination { margin-top: 44px; gap: 10px; font-weight: 600; font-size: 14px; }
.pagination .page-numbers { display: inline-block; min-width: 36px; padding: 6px 10px; text-align: center; border: 1px solid var(--ligne); }
.pagination .page-numbers.current { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }
.pagination a:hover { color: var(--rouge); }

/* Article */
.article__meta { display: flex; flex-wrap: wrap; gap: 0 6px; }
.article__meta > * { margin: 0; }
.article__img.wp-block-post-featured-image { margin: 0 calc(-1 * min(140px, 8vw)) 30px; }
.article__img img { aspect-ratio: 16 / 9; object-fit: cover; }
.article__corps > * { margin: 0; }
.article__corps h2 { font-size: 24px; margin-top: 14px; }
.article__corps blockquote { font-size: 24px; font-weight: 300; line-height: 1.4; color: var(--rouge); border-left: 4px solid var(--rouge); padding: 4px 0 4px 22px; margin: 10px 0; }
.article__corps a { color: var(--rouge); text-decoration: underline; }

/* Sur le site, une section sans article publié ne s'affiche pas */
.wp-site-blocks :is(.selection, .trois-col, .rubriques, .rubrique, .col, .liste):not(:has(.wp-block-post)) { display: none; }
.wp-site-blocks .vedette-q:not(:has(.wp-block-post)), .wp-site-blocks .breve:not(:has(.wp-block-post)) { display: none; }

@media (max-width: 900px) {
  .rgrille, .liste__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rgrille > li:first-child .carte { grid-template-columns: 1fr; }
  .article__img.wp-block-post-featured-image { margin-left: 0; margin-right: 0; }
}
@media (max-width: 599px) {
  .rgrille, .liste__grille { grid-template-columns: minmax(0, 1fr); }
}
.article__corps .exemple { background: var(--fond); border-left: 4px solid var(--rouge); padding: 12px 16px; font-size: 15px; }
