/*
Theme Name: wouaweb
Theme URI: https://www.wouaweb.fr
Author: wouaweb
Description: L ecran allume. Fond clair bleute, encre marine, un seul accent corail. Une barre d adresse en ouverture, une cascade de photos qui se chevauchent, la feuille de route d un site, puis le journal.
Version: 1.0.1
Text Domain: wouaweb
*/

/* =========================================================
   JETONS
   Contrastes calcules sur le fond lait #F4F6FA :
     encre  #141B2D  15,6:1
     encre2 #3B4560   9,0:1
     brume  #6B7488   4,9:1  (texte secondaire, AA)
     corail #FF5A3C   3,0:1  jamais en texte sur clair
     corail fonce #C93A22 5,1:1 en texte
   Bouton corail : texte encre dessus, 5,6:1.
   Sur l encre : blanc 15,6:1, gris clair #C9D1E3 10,5:1, corail 4,7:1.
   ========================================================= */
:root {
  --lait:    #F4F6FA;
  --blanc:   #FFFFFF;
  --encre:   #141B2D;
  --encre2:  #3B4560;
  --brume:   #6B7488;
  --filet:   #DCE1EA;
  --halo:    #DDE8FF;
  --corail:  #FF5A3C;
  --corail2: #C93A22;
  --clair:   #C9D1E3;

  --titre: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --texte: "Nunito Sans", "Segoe UI", sans-serif;

  /* gamme fermee */
  --t0: 12px;
  --t1: 13px;
  --t2: 14px;
  --t3: 15.5px;
  --t4: 17px;
  --t5: 20px;
  --t6: 24px;
  --t7: 30px;
  --t8: clamp(30px, 3.4vw, 40px);
  --t9: clamp(40px, 5.2vw, 60px);

  /* un seul systeme de formes : doux */
  --r: 14px;
  --pilule: 999px;

  --ombre: 0 30px 60px -20px rgba(20, 27, 45, .28), 0 10px 20px -12px rgba(20, 27, 45, .18);
  --ombre-douce: 0 14px 30px -14px rgba(20, 27, 45, .22);
  --mouvement: cubic-bezier(.16, 1, .3, 1);
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; max-width: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; max-width: 100%; position: relative;
  background: var(--lait); color: var(--encre);
  font-family: var(--texte); font-size: var(--t4); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Atmosphere : deux halos fixes derriere tout le document, un grain
   par-dessus. Les deux sont coupes sur les pages article, qui se
   lisent sur du blanc pur. */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -10%, var(--halo) 0%, rgba(221, 232, 255, 0) 70%),
    radial-gradient(700px 400px at -10% 40%, #FFE4DD 0%, rgba(255, 228, 221, 0) 70%);
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.1 0 0 0 0 0.18 0 0 0 .18 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
body.single { background: var(--blanc); }
body.single::before, body.single::after { display: none; }

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--titre); margin: 0; line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.cadrage { width: min(1180px, 100% - 48px); margin-left: auto; margin-right: auto; }

.saut-contenu { position: absolute; left: -9999px; top: 0; background: var(--encre); color: var(--blanc); padding: 10px 16px; z-index: 999; border-radius: var(--r); }
.saut-contenu:focus { left: 8px; top: 8px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.vide { color: var(--brume); font-size: var(--t3); }

/* =========================================================
   ONGLET (en-tete)
   ========================================================= */
.onglet { position: sticky; top: 0; z-index: 50; background: rgba(244, 246, 250, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.onglet.est-pose { border-bottom-color: var(--filet); }
.onglet-rang { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.sigle { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titre); font-size: var(--t6); font-weight: 800; letter-spacing: -.01em; color: var(--encre); }
.sigle svg { flex: none; }
.sigle-clair { color: var(--blanc); }

.liens { display: flex; align-items: center; gap: 30px; font-size: var(--t3); font-weight: 600; color: var(--encre2); }
.liens a { position: relative; padding: 6px 0; transition: color .2s ease; }
.liens a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--corail); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--mouvement); }
.liens a:hover { color: var(--encre); }
.liens a:hover::after { transform: scaleX(1); }
.liens-contact { color: var(--corail2); }
.liens-fermer { display: none; }

.menu-bouton { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-bouton span { display: block; height: 2px; background: var(--encre); border-radius: var(--pilule); transition: transform .25s var(--mouvement); }

/* =========================================================
   ACCUEIL : la barre d adresse
   ========================================================= */
.accueil-tete { padding-top: 64px; padding-bottom: 40px; text-align: center; }

.omnibar {
  margin: 0 auto 36px; width: min(760px, 100%); height: 74px;
  display: flex; align-items: center; gap: 16px; padding-left: 26px; padding-right: 12px;
  background: var(--blanc); border: 1px solid rgba(20, 27, 45, .06);
  border-radius: var(--pilule); box-shadow: var(--ombre); text-align: left;
  transition: box-shadow .3s ease;
}
.omnibar:focus-within { box-shadow: var(--ombre), 0 0 0 4px rgba(255, 90, 60, .25); }
.omnibar-cadenas { width: 12px; height: 12px; border-radius: 50%; background: var(--corail); flex: none; box-shadow: 0 0 0 4px rgba(255, 90, 60, .18); }
.omnibar-champ { flex: 1; min-width: 0; }
.omnibar input {
  width: 100%; border: 0; background: transparent; outline: none;
  font-family: var(--titre); font-size: var(--t6); font-weight: 600; color: var(--encre); letter-spacing: -.01em;
  appearance: none; -webkit-appearance: none;
}
.omnibar input::placeholder { color: var(--encre2); opacity: 1; }
.omnibar input::-webkit-search-decoration, .omnibar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.omnibar-envoi {
  flex: none; border: 0; cursor: pointer;
  background: var(--encre); color: var(--blanc);
  font-family: var(--texte); font-size: var(--t2); font-weight: 700;
  padding: 13px 24px; border-radius: var(--pilule);
  transition: background .2s ease;
}
.omnibar-envoi:hover { background: var(--corail); color: var(--encre); }

.accueil-h { font-size: var(--t9); font-weight: 800; letter-spacing: -.02em; max-width: 900px; margin: 0 auto; }
.accueil-h em { display: block; font-style: normal; font-weight: 500; font-size: var(--t6); color: var(--encre2); margin-top: 12px; line-height: 1.25; letter-spacing: 0; }
.accueil-chapo { font-size: var(--t5); color: var(--encre2); max-width: 560px; margin: 22px auto 26px; }

.pousse {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--corail); color: var(--encre);
  font-size: var(--t3); font-weight: 700; padding: 14px 26px; border-radius: var(--pilule);
  box-shadow: 0 14px 30px -12px rgba(255, 90, 60, .7);
  transition: transform .25s var(--mouvement), box-shadow .25s ease;
}
.pousse::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.pousse:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(255, 90, 60, .8); }

/* =========================================================
   LA CASCADE
   ========================================================= */
.cascade { display: grid; grid-template-columns: repeat(12, 1fr); height: 540px; position: relative; margin-top: 44px; }
.cascade::before { content: ''; position: absolute; left: 10%; right: 10%; top: 20%; bottom: 0; background: radial-gradient(closest-side, rgba(221, 232, 255, .9), rgba(221, 232, 255, 0)); filter: blur(20px); z-index: 0; }
.cascade-photo { margin: 0; grid-row: 1; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); background: var(--blanc); position: relative; }
.cascade-photo img { width: 100%; height: 100%; object-fit: cover; }
.cascade-1 { grid-column: 1 / 6; height: 360px; margin-top: 110px; z-index: 1; }
.cascade-2 { grid-column: 4 / 9; height: 440px; z-index: 2; transform: rotate(-1.5deg); }
.cascade-3 { grid-column: 8 / 13; height: 400px; margin-top: 130px; z-index: 3; transform: rotate(1.5deg); }
.cascade-legende { text-align: center; color: var(--brume); font-size: var(--t2); margin-top: 24px; margin-bottom: 90px; }

/* =========================================================
   LA FEUILLE DE ROUTE
   ========================================================= */
.feuille-de-route {
  background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre);
  padding: 56px 64px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; margin-bottom: 100px;
}
.route-h { font-size: var(--t8); font-weight: 700; line-height: 1.05; }
.route-h b { color: var(--corail2); font-weight: 700; }
.route-mot p { color: var(--encre2); margin: 18px 0 0; max-width: 340px; }
.route-liste { list-style: none; margin: 0; padding: 0; }
.route-etape { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--filet); }
.route-etape:last-child { border-bottom: 0; }
.route-icone { width: 56px; height: 56px; border-radius: var(--r); background: var(--lait); display: grid; place-items: center; }
.route-icone::before { content: ''; width: 22px; height: 22px; background: var(--encre); }
.route-icone-rond::before { border-radius: 50%; background: var(--corail); }
.route-icone-losange::before { transform: rotate(45deg); }
.route-icone-anneau::before { border-radius: 50%; background: transparent; border: 5px solid var(--encre); width: 20px; height: 20px; }
.route-etape h3 { font-size: var(--t5); font-weight: 700; margin-bottom: 4px; }
.route-etape p { margin: 0; color: var(--encre2); font-size: var(--t3); }
.route-etape a { font-size: var(--t2); font-weight: 700; color: var(--corail2); white-space: nowrap; padding: 8px 14px; border-radius: var(--pilule); transition: background .2s ease; }
.route-etape a:hover { background: var(--lait); }

/* =========================================================
   LE JOURNAL
   ========================================================= */
.journal { margin-bottom: 110px; }
.journal-h, .voisinage-h, .arbo h2 { font-family: var(--texte); font-size: var(--t3); font-weight: 600; color: var(--brume); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }

.entree { display: grid; grid-template-columns: 120px 1fr 300px; gap: 40px; align-items: center; padding: 30px 0; border-top: 1px solid var(--filet); }
.entree-sans-vue { grid-template-columns: 120px 1fr; }
.entree-date { font-size: var(--t2); font-weight: 700; color: var(--brume); line-height: 1.35; }
.entree-date b { display: block; font-family: var(--titre); font-size: var(--t6); font-weight: 700; line-height: 1.1; color: var(--encre); }
.balise { display: inline-block; font-size: var(--t0); font-weight: 700; color: var(--corail2); text-transform: uppercase; letter-spacing: .06em; }
.entree-h { font-size: var(--t7); font-weight: 700; margin: 6px 0 10px; line-height: 1.12; }
.entree-h a { transition: color .2s ease; }
.entree-h a:hover { color: var(--corail2); }
.entree-chapo { margin: 0; color: var(--encre2); }
.entree-vue img { width: 300px; height: 190px; object-fit: cover; border-radius: var(--r); box-shadow: var(--ombre); transition: transform .35s var(--mouvement); }
.entree-vue:hover img { transform: translateY(-3px); }

.entree-une { grid-template-columns: 120px 1fr 460px; padding: 40px 0; }
.entree-une .entree-h { font-size: var(--t8); }
.entree-une .entree-vue img { width: 460px; height: 300px; }

/* =========================================================
   LA PLUME (redaction)
   ========================================================= */
.plume { text-align: center; max-width: 720px; margin-bottom: 110px; }
.plume-portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 22px; box-shadow: var(--ombre); border: 5px solid var(--blanc); }
.plume-nom { font-size: var(--t8); font-weight: 700; }
.plume-role { color: var(--corail2); font-weight: 700; margin: 6px 0 18px; }
.plume-bio { color: var(--encre2); text-align: left; }
.plume-bio p { margin: 0 0 14px; }
.plume-bio ul { list-style: none; margin: 0 0 14px; padding: 0; }
.plume-bio li { margin-bottom: 6px; }
.plume-bio strong { color: var(--encre); }

/* =========================================================
   BARRE D ETAT (pied de page)
   ========================================================= */
.barre-etat { background: var(--encre); color: var(--clair); padding-top: 36px; padding-bottom: 36px; font-size: var(--t2); }
.barre-etat-l1 { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.barre-etat-liens { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; color: var(--blanc); }
.barre-etat-liens a { border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.barre-etat-liens a:hover { border-bottom-color: var(--corail); }
.barre-etat-l2 { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.barre-etat-dire { margin: 0; max-width: 520px; }
.barre-etat-recent { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.barre-etat-recent a { color: var(--blanc); }
.barre-etat-recent a:hover { color: var(--corail); }
.barre-etat-droit { margin: 22px 0 0; color: var(--brume); }

/* =========================================================
   FIL D ARIANE
   ========================================================= */
.chemin { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 22px; font-size: var(--t2); color: var(--brume); }
.chemin a:hover { color: var(--encre); }
.chemin span:last-child { color: var(--encre2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* =========================================================
   LECTURE (article) : colonne unique, blanche, centree.
   Tete, image, corps et pied portent tous le meme plafond,
   l image ne sort jamais du texte.
   ========================================================= */
.lecture-tete, .lecture-vue, .lecture-corps, .lecture-pied { max-width: 860px; }
.lecture-tete { padding-top: 26px; }
.lecture-h { font-size: var(--t9); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin: 12px 0 18px; }
.lecture-signe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: var(--t2); color: var(--brume); padding-bottom: 26px; }
.lecture-etoiles .kk-star-ratings { margin: 0; }

.lecture-vue { margin-top: 0; margin-bottom: 0; }
.lecture-vue img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--ombre); }

.lecture-corps { padding-top: 40px; font-size: var(--t4); line-height: 1.75; }
.lecture-corps h2 { font-size: var(--t7); margin: 1.7em 0 .5em; }
.lecture-corps h3 { font-size: var(--t6); margin: 1.4em 0 .4em; }
.lecture-corps a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--corail); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lecture-corps a:hover { color: var(--corail2); }
.lecture-corps ul, .lecture-corps ol { padding-left: 22px; }
.lecture-corps li { margin-bottom: .45em; }
.lecture-corps img { margin: 1.5em 0; border-radius: var(--r); box-shadow: var(--ombre-douce); }
.lecture-corps table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: var(--t3); }
.lecture-corps th, .lecture-corps td { padding: 13px 15px; border-bottom: 1px solid var(--filet); text-align: left; }
.lecture-corps th { background: var(--lait); font-weight: 700; color: var(--encre); }
.lecture-corps blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--corail); color: var(--encre2); font-style: italic; }
.lecture-corps blockquote p { margin: 0; }

.wwb-aussi { display: block; margin: 1.9em 0; padding: 22px 26px; background: var(--lait); border-radius: var(--r); box-shadow: var(--ombre-douce); }
.wwb-aussi b { display: block; margin-bottom: 8px; font-size: var(--t0); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brume); }
.wwb-aussi a { font-family: var(--titre); font-size: var(--t5); font-weight: 700; line-height: 1.24; color: var(--encre) !important; text-decoration: none !important; }
.wwb-aussi a:hover { color: var(--corail2) !important; }

/* Blocs de la chaine de contenu. Son prefixe change a chaque
   version et d un site a l autre : les selecteurs portent donc
   sur la FIN du nom de classe, jamais sur un prefixe nomme en dur.
   Le picto est centre verticalement sur le point a savoir. */
.lecture-corps [class$="-key-top"] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }

.lecture-corps [class$="-key"] ul { padding-left: 0; }
.lecture-corps [class$="-key"] li { position: relative; list-style: none; padding-left: 34px; }
.lecture-corps [class$="-key"] li::before {
  content: ''; position: absolute; left: 0; top: 50%; margin-top: -10px;
  width: 20px; height: 20px;
  border-radius: 50%; background: var(--corail); opacity: .3;
}
.lecture-corps [class$="-key"] li::after {
  content: ''; position: absolute; left: 6.5px; top: 50%; margin-top: -5px;
  width: 5px; height: 9px;
  border: 0; border-right: 2px solid var(--encre); border-bottom: 2px solid var(--encre);
  transform: rotate(45deg);
}

.lecture-corps [class$="-badge"] { display: inline-flex; align-items: center; gap: 6px; }
.lecture-corps [class$="-badge"]::before {
  content: ''; width: 14px; height: 14px; flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
}

.lecture-corps [class$="-foot"] { display: flex; flex-wrap: wrap; gap: 21px; align-items: center; }
.lecture-corps [class$="-foot"] span { position: relative; padding-left: 21px; display: inline-flex; align-items: center; }
.lecture-corps [class$="-foot"] span::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; background: var(--encre); opacity: .9;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.lecture-corps [class$="-foot"] span:nth-child(1)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 12.2l2.4 2.4 4.6-4.9'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 12.2l2.4 2.4 4.6-4.9'/%3E%3C/svg%3E");
}
.lecture-corps [class$="-foot"] span:nth-child(2)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E");
}
.lecture-corps [class$="-foot"] span:nth-child(3)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.2l3.4 2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.2l3.4 2'/%3E%3C/svg%3E");
}

.lecture-corps #ez-toc-container { background: var(--lait); border: 1px solid var(--filet); border-radius: var(--r); box-shadow: var(--ombre-douce); padding: 18px 22px; }

/* signature de l auteur en bas d article */
.lecture-pied { padding-top: 40px; }
.signature { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: start; padding: 26px 30px; background: var(--lait); border-radius: var(--r); }
.signature-vue { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid var(--blanc); box-shadow: var(--ombre-douce); }
.signature-nom { display: block; font-family: var(--titre); font-size: var(--t5); font-weight: 700; }
.signature-role { display: block; font-size: var(--t2); font-weight: 700; color: var(--corail2); margin: 2px 0 10px; }
.signature p { margin: 0; color: var(--encre2); font-size: var(--t3); }

/* voisins : trois articles de la meme rubrique */
.voisinage { max-width: 860px; padding-top: 60px; padding-bottom: 80px; }
.voisinage-liste { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.voisin { display: block; padding: 14px; background: var(--lait); border-radius: var(--r); transition: transform .3s var(--mouvement), box-shadow .3s ease; }
.voisin:hover { transform: translateY(-3px); box-shadow: var(--ombre-douce); }
.voisin-vue img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); margin-bottom: 12px; }
.voisin h3 { font-size: var(--t4); font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.voisin-note { font-size: var(--t1); color: var(--brume); }

/* =========================================================
   RUBRIQUE (archive)
   ========================================================= */
.rubrique-tete { position: relative; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--r); margin-top: 22px; }
.rubrique-vue { position: absolute; inset: 0; background-size: cover; background-position: center; }
.rubrique-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 27, 45, .25) 0%, rgba(20, 27, 45, .82) 100%); }
.rubrique-mot { position: relative; padding: 48px; color: var(--blanc); max-width: 720px; }
.rubrique-h { font-size: var(--t9); font-weight: 800; letter-spacing: -.02em; color: var(--blanc); }
.rubrique-compte { display: block; margin: 10px 0 12px; font-size: var(--t2); font-weight: 700; color: var(--corail); }
.rubrique-desc { color: var(--blanc) !important; font-size: var(--t3); }
.rubrique-desc p { color: var(--blanc) !important; margin: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.rubrique-liste { padding-top: 30px; margin-bottom: 60px; }

.rubrique-seo { max-width: 860px; padding-top: 20px; padding-bottom: 90px; color: var(--encre2); }
.rubrique-seo h2 { font-size: var(--t7); margin-bottom: 14px; color: var(--encre); }

/* =========================================================
   PAGES
   ========================================================= */
.page-cadre { max-width: 860px; padding-top: 22px; padding-bottom: 90px; }
.page-tete h1 { font-size: var(--t9); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 30px; }
.page-corps { font-size: var(--t4); line-height: 1.7; color: var(--encre2); }
.page-corps h2 { font-size: var(--t6); color: var(--encre); margin: 1.8em 0 .5em; }
.page-corps a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--corail); text-decoration-thickness: 2px; }

/* contact */
.courriel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.courriel-mot h2 { font-size: var(--t6); margin-bottom: 10px; }
.courriel-mot p { color: var(--encre2); font-size: var(--t3); max-width: 46ch; }
.courriel-mot a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--corail); text-decoration-thickness: 2px; }
.courriel-bloc { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--filet); }

.formulaire { padding: 32px; background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); }
.formulaire .wpcf7-form p { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; }
.formulaire .wpcf7-form br { display: none; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire textarea {
  width: 100%; padding: 13px 16px;
  background: var(--lait); border: 1px solid var(--filet); border-radius: var(--r);
  font-family: var(--texte); font-size: var(--t3); color: var(--encre);
}
.formulaire input::placeholder, .formulaire textarea::placeholder { color: var(--brume); }
.formulaire input:focus, .formulaire textarea:focus { outline: 3px solid rgba(255, 90, 60, .4); outline-offset: 0; border-color: var(--corail); }
.formulaire textarea { min-height: 168px; resize: vertical; }
.formulaire input.wpcf7-submit {
  width: 100%; padding: 16px 24px;
  background: var(--encre); border: 0; border-radius: var(--pilule);
  font-family: var(--texte); font-size: var(--t3); font-weight: 700;
  color: var(--blanc); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.formulaire input.wpcf7-submit:hover { background: var(--corail); color: var(--encre); }
.formulaire .wpcf7-not-valid-tip { color: var(--corail2); font-size: var(--t1); }
.formulaire .wpcf7-response-output { margin: 14px 0 0 !important; padding: 12px 15px !important; border-radius: var(--r); font-size: var(--t2); }

/* plan du site */
.arbo { margin-bottom: 34px; }
.arbo h2 a:hover { color: var(--corail2); }
.arbo-liste { list-style: none; margin: 0; padding: 0; }
.arbo-liste li { padding: 10px 0; border-bottom: 1px solid var(--filet); }
.arbo-liste a { font-weight: 600; }
.arbo-liste a:hover { color: var(--corail2); }

/* 404 */
.introuvable { max-width: 720px; text-align: center; padding-top: 60px; padding-bottom: 40px; }
.introuvable h1 { font-size: var(--t9); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.introuvable p { color: var(--encre2); font-size: var(--t5); }
.introuvable-actes { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.pousse-ligne { display: inline-flex; align-items: center; padding: 14px 26px; border: 1.5px solid var(--encre); border-radius: var(--pilule); font-size: var(--t3); font-weight: 700; transition: background .2s ease, color .2s ease; }
.pousse-ligne:hover { background: var(--encre); color: var(--blanc); }
.introuvable-route { margin-bottom: 90px; }

/* recherche */
.resultats { padding-top: 22px; padding-bottom: 90px; }
.resultats h1 { font-size: var(--t8); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 20px; }

/* =========================================================
   REVELATIONS
   ========================================================= */
.apparait { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--mouvement), transform .6s var(--mouvement); }
.apparait.est-visible { opacity: 1; transform: none; }
.cascade-2.apparait.est-visible { transform: rotate(-1.5deg); }
.cascade-3.apparait.est-visible { transform: rotate(1.5deg); }

/* =========================================================
   TABLETTE
   ========================================================= */
@media (max-width: 1024px) {
  .entree { grid-template-columns: 100px 1fr 240px; gap: 28px; }
  .entree-vue img { width: 240px; height: 160px; }
  .entree-une { grid-template-columns: 100px 1fr 320px; }
  .entree-une .entree-vue img { width: 320px; height: 210px; }
  .feuille-de-route { padding: 40px; gap: 40px; }
  .courriel { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .onglet { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--lait); }
  .onglet-rang { height: 64px; }
  .menu-bouton { display: flex; }
  .liens {
    position: fixed; inset: 0; z-index: 200;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px;
    background: var(--blanc); font-family: var(--titre); font-size: var(--t7); font-weight: 700; color: var(--encre);
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: transform .4s var(--mouvement), opacity .3s ease, visibility 0s .4s;
  }
  .liens.est-ouvert { transform: none; opacity: 1; visibility: visible; transition: transform .4s var(--mouvement), opacity .3s ease; }
  .liens a, .single .liens a, .category .liens a { color: var(--encre) !important; }
  .liens-contact { color: var(--corail2) !important; }
  .liens-fermer { display: block; position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 36px; line-height: 1; color: var(--encre); cursor: pointer; }

  .accueil-tete { padding-top: 40px; }
  .omnibar { height: 60px; padding-left: 18px; padding-right: 8px; gap: 10px; margin-bottom: 28px; }
  .omnibar input { font-size: var(--t4); }
  .omnibar-envoi { padding: 10px 14px; font-size: var(--t1); }
  .accueil-h em { font-size: var(--t5); }
  .accueil-chapo { font-size: var(--t4); }

  .cascade { height: auto; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .cascade::before { display: none; }
  .cascade-photo { grid-column: auto; grid-row: auto; margin-top: 0; height: 240px; transform: none; }
  .cascade-2.apparait.est-visible, .cascade-3.apparait.est-visible { transform: none; }
  .cascade-legende { margin-top: 18px; margin-bottom: 60px; }

  .feuille-de-route { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; margin-bottom: 70px; }
  .route-etape { grid-template-columns: 44px 1fr; gap: 14px; }
  .route-icone { width: 44px; height: 44px; }
  .route-etape a { grid-column: 2; justify-self: start; padding-left: 0; }

  .journal { margin-bottom: 70px; }
  .entree, .entree-une, .entree-sans-vue { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .entree-date { display: flex; gap: 8px; align-items: baseline; }
  .entree-date b { font-size: var(--t5); }
  .entree-h, .entree-une .entree-h { font-size: var(--t6); }
  .entree-vue img, .entree-une .entree-vue img { width: 100%; height: 200px; }

  .plume { margin-bottom: 70px; }

  .lecture-h { font-size: var(--t8); }
  .lecture-corps { padding-top: 28px; }
  .voisinage-liste { grid-template-columns: 1fr; }
  .signature { grid-template-columns: 64px 1fr; gap: 16px; padding: 20px; }
  .signature-vue { width: 64px; height: 64px; }

  .rubrique-tete { min-height: 300px; }
  .rubrique-mot { padding: 28px 22px; }

  .formulaire { padding: 22px; }
  .barre-etat-l2 { flex-direction: column; gap: 22px; }
}

/* =========================================================
   MOUVEMENT REDUIT
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .apparait { opacity: 1; transform: none; }
}
