/* ==========================================================================
   Gabarits secondaires — 404, recherche, archive, flux, article, page.

   Ces six gabarits existaient sans une seule règle : le titre s'affichait à la
   taille par défaut du navigateur, la prose courait sur toute la largeur de
   l'écran, et rien ne les rattachait au reste du site. Une page légale, un
   article, un résultat de recherche — tout ce que le client publiera hors des
   quatre pages composées — atterrissait là.

   Cette feuille ne dessine pas une direction artistique : elle en pose le
   minimum tenable. Aucune famille, aucune taille, aucune couleur ne lui
   appartient — tout vient des jetons de l'accueil, si bien que la reprise de
   ces gabarits, le jour venu, partira d'une base cohérente plutôt que de rien.

   Elle ne se charge QUE hors des pages structurées : l'accueil, « Pourquoi
   nous ? », Services et Tarifs n'en reçoivent pas un octet.
   ========================================================================== */

/* L'en-tête flotte au-dessus du document : chaque première section lui
   réserve sa hauteur. Les trois pages composées le font (pourquoi.css,
   services.css, tarifs.css) ; cette feuille l'avait oublié, et le titre des
   six gabarits secondaires passait DESSOUS — mesuré à 390px sur la page 404,
   l'étiquette « Erreur 404 » était interceptée par la bande de l'en-tête.

   En mode de secours « --header-h » vaut zéro et l'en-tête reprend sa place
   dans le flux : la compensation disparaît d'elle-même, sans règle de plus. */
.page{
  padding-top:calc(var(--header-h) + clamp(64px, min(9vw, 12vh), 132px));
  padding-bottom:clamp(64px, min(9vw, 12vh), 132px);
  background:var(--white);
}
.page--centre{ text-align:center; }
.page--centre .shell{ display:grid; justify-items:center; }
.page--centre .page__title{ max-width:15ch; }

/* --------------------------------------------------------------------------
   L'en-tête : même rythme que les sections de l'accueil, en plus sobre.

   La mesure de lecture se pose sur le TEXTE, jamais sur le conteneur :
   « ch » se calcule d'après la police de l'élément qui le porte, et un
   en-tête resté à 16px enfermerait un titre de 50px dans 272px de large.
   -------------------------------------------------------------------------- */
.page__head{
  margin-bottom:clamp(32px, 4vw, 56px);
}

.page__title{
  max-width:20ch;
  font-family:var(--f-display);
  font-size:var(--nf-titre);
  font-weight:300;
  line-height:1.06;
  letter-spacing:-.015em;
  color:var(--ink);
  text-wrap:balance;
}

.page__lead{
  margin-top:18px;
  max-width:56ch;
  font-family:var(--f-sans);
  font-size:var(--nf-enonce);
  font-weight:300;
  line-height:1.62;
  color:var(--ink-2);
}
.page--centre .page__lead{ margin-inline:auto; }

.page__media{
  margin-bottom:clamp(28px, 3.6vw, 52px);
}
.page__media img{
  display:block;
  width:100%;
  height:auto;
}

.page__actions{
  margin-top:clamp(28px, 3.4vw, 44px);
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.page--centre .page__actions{ justify-content:center; }

/* --------------------------------------------------------------------------
   La prose. Une seule mesure de lecture, un seul rythme vertical : ce que
   l'éditeur produit s'y range sans qu'on ait à y penser.
   -------------------------------------------------------------------------- */
.page__body{
  max-width:66ch;
  font-family:var(--f-sans);
  font-size:var(--nf-corps);
  font-weight:300;
  line-height:1.72;
  color:var(--ink-2);
}
.page__body > * + *{ margin-top:1.1em; }

.page__body h2,
.page__body h3,
.page__body h4{
  font-family:var(--f-display);
  font-weight:300;
  line-height:1.18;
  letter-spacing:-.01em;
  color:var(--ink);
  margin-top:1.9em;
  text-wrap:balance;
}
.page__body h2{ font-size:var(--nf-emphase); }
.page__body h3{ font-size:var(--nf-enonce); }
.page__body h4{ font-size:var(--nf-corps); font-family:var(--f-sans); letter-spacing:.02em; }

.page__body ul,
.page__body ol{ padding-left:1.35em; }
.page__body li + li{ margin-top:.45em; }
.page__body ul{ list-style:disc; }
.page__body ol{ list-style:decimal; }

.page__body blockquote{
  padding-left:clamp(16px, 2vw, 28px);
  border-left:1px solid var(--cherry);
  color:var(--ink);
}

.page__body img,
.page__body iframe{ max-width:100%; height:auto; }

.page__body figcaption{
  margin-top:10px;
  font-size:var(--nf-meta);
  color:var(--ink-3);
}

.page__body code,
.page__body pre{
  font-size:var(--nf-meta);
  background:var(--paper);
}
.page__body pre{
  padding:16px 18px;
  overflow-x:auto;
  border:1px solid var(--line);
}

.page__body table{
  width:100%;
  border-collapse:collapse;
  font-size:var(--nf-meta);
}
.page__body th,
.page__body td{
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid var(--line);
}
.page__body th{ color:var(--ink); font-weight:400; }

/* Le lien de prose reprend le trait cerise du reste du site. */
.page__body a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-color:var(--cherry);
  text-underline-offset:.22em;
  text-decoration-thickness:1px;
  transition:color .35s var(--ease-soft);
}
.page__body a:hover{ color:var(--cherry-deep); }

.page__pages{
  margin-top:2.4em;
  font-size:var(--nf-meta);
  color:var(--ink-3);
}

/* --------------------------------------------------------------------------
   Les listes d'articles : archive, recherche, flux.
   -------------------------------------------------------------------------- */
.entry{
  padding-block:clamp(26px, 3vw, 40px);
  border-top:1px solid var(--line);
  max-width:46rem;
}
.entry:first-of-type{ border-top:0; padding-top:0; }

.entry__title{
  max-width:24ch;
  font-family:var(--f-display);
  font-size:var(--nf-emphase);
  font-weight:300;
  line-height:1.18;
  letter-spacing:-.01em;
  color:var(--ink);
  text-wrap:balance;
}
.entry__title a{
  color:inherit;
  text-decoration:none;
  background-image:linear-gradient(var(--cherry), var(--cherry));
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:0 1px;
  transition:background-size .55s var(--ease);
}
.entry__title a:hover{ background-size:100% 1px; }

.entry__meta{
  margin-top:10px;
  font-family:var(--f-sans);
  font-size:var(--nf-etiquette);
  font-weight:400;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--ink-3);
}

.entry__excerpt{
  margin-top:14px;
  max-width:62ch;
  font-family:var(--f-sans);
  font-size:var(--nf-corps);
  font-weight:300;
  line-height:1.7;
  color:var(--ink-2);
}

/* --------------------------------------------------------------------------
   La pagination de WordPress.
   -------------------------------------------------------------------------- */
.pagination{ margin-top:clamp(34px, 4vw, 56px); }
.pagination .nav-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  padding:8px 10px;
  font-family:var(--f-sans);
  font-size:var(--nf-etiquette);
  font-weight:400;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--ink-2);
  text-decoration:none;
  border:1px solid var(--line);
  transition:color .35s var(--ease-soft), border-color .35s var(--ease-soft);
}
a.page-numbers:hover{ color:var(--ink); border-color:var(--ink); }
.page-numbers.current{ color:var(--white); background:var(--ink); border-color:var(--ink); }
.page-numbers.dots{ border-color:transparent; }

/* --------------------------------------------------------------------------
   Le formulaire de recherche.
   -------------------------------------------------------------------------- */
.recherche{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-bottom:clamp(30px, 3.6vw, 48px);
  max-width:32rem;
}
.recherche input[type="search"]{
  flex:1 1 220px;
  min-width:0;
  padding:13px 15px;
  font-family:var(--f-sans);
  font-size:var(--nf-corps);
  font-weight:300;
  color:var(--ink);
  background:var(--white);
  border:1px solid var(--line);
  transition:border-color .35s var(--ease-soft);
}
.recherche input[type="search"]:focus{ border-color:var(--ink); }

/* --------------------------------------------------------------------------
   Les commentaires. Le thème ne les met pas en avant, mais WordPress peut
   les ouvrir : ils doivent alors être lisibles, pas seulement présents.
   -------------------------------------------------------------------------- */
.comments{
  margin-top:clamp(48px, 5.5vw, 84px);
  padding-top:clamp(30px, 3.4vw, 46px);
  border-top:1px solid var(--line);
  max-width:42rem;
}
.comments__titre,
.comment-reply-title{
  font-family:var(--f-display);
  font-size:var(--nf-emphase);
  font-weight:300;
  line-height:1.2;
  color:var(--ink);
}
.comment-list{ margin-top:26px; list-style:none; }
.comment-list ol.children{ list-style:none; padding-left:clamp(16px, 2.4vw, 34px); }
.comment-list li{ padding-block:20px; border-top:1px solid var(--line-soft); }
.comment-list > li:first-child{ border-top:0; }

.comment-author,
.comment-metadata{
  font-family:var(--f-sans);
  font-size:var(--nf-etiquette);
  font-weight:400;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--ink-3);
}
.comment-author{ color:var(--ink); }
.comment-content{
  margin-top:12px;
  font-family:var(--f-sans);
  font-size:var(--nf-corps);
  font-weight:300;
  line-height:1.7;
  color:var(--ink-2);
}
.comment-content > * + *{ margin-top:1em; }

.comment-respond{ margin-top:clamp(34px, 4vw, 52px); }
.comment-form{ margin-top:20px; display:grid; gap:16px; }
.comment-form label{
  display:block;
  margin-bottom:6px;
  font-family:var(--f-sans);
  font-size:var(--nf-etiquette);
  font-weight:400;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--ink-3);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width:100%;
  padding:12px 14px;
  font-family:var(--f-sans);
  font-size:var(--nf-corps);
  font-weight:300;
  color:var(--ink);
  background:var(--white);
  border:1px solid var(--line);
  transition:border-color .35s var(--ease-soft);
}
.comment-form textarea{ min-height:150px; resize:vertical; }
.comment-form input:focus,
.comment-form textarea:focus{ border-color:var(--ink); }
.comment-form .comment-notes,
.comment-form .comment-form-cookies-consent label{
  font-family:var(--f-sans);
  font-size:var(--nf-meta);
  font-weight:300;
  letter-spacing:0;
  text-transform:none;
  line-height:1.6;
  color:var(--ink-3);
}
.comment-form .form-submit{ margin-top:4px; }

.comments__fermes{
  margin-top:20px;
  font-family:var(--f-sans);
  font-size:var(--nf-meta);
  font-weight:300;
  color:var(--ink-3);
}

/* --------------------------------------------------------------------------
   Étroit.
   -------------------------------------------------------------------------- */
@media (max-width:640px){
  .page__title,
  .page--centre .page__title{ max-width:none; }
  .page__body{ max-width:none; }
  .recherche{ max-width:none; }
}
