/* Portfolio de Neil Moise Tchimbembe. Papier beige, rouge carmin, vert pour la veille Green IT. */
:root {
  --papier: #F4EDE1;
  --papier-fonce: #EADFCC;
  --blanc: #FFFCF7;
  --encre: #1D1815;
  --gris: #655C54;
  --trait: #DCD0BD;
  --rouge: #B3261E;
  --rouge-fonce: #8C1A14;
  --rouge-pale: #F6E1DB;
  --vert: #1E5B43;
  --vert-fonce: #16432F;
  --vert-pale: #DFEADF;
  --accent: var(--rouge);
  --accent-fonce: var(--rouge-fonce);
  --accent-pale: var(--rouge-pale);
  --titre: 'Fraunces', Georgia, 'Times New Roman', serif;
  --texte: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --large: 1180px;
  --marge: clamp(20px, 5vw, 48px);
  --rayon: 14px;
  --doux: cubic-bezier(.2, .7, .2, 1);
}
.theme-vert { --accent: var(--vert); --accent-fonce: var(--vert-fonce); --accent-pale: var(--vert-pale); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 17px/1.6 var(--texte); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.cadre { width: 100%; max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.evitement:focus { left: 8px; }

/* Typographie */
.t0, .t1, .t2, .t3 { font-family: var(--titre); font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
.t0 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); line-height: 1.06; }
.t1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; max-width: 22ch; }
.t2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.15; }
.t3 { font-size: 1.35rem; line-height: 1.25; }
.t4 { font: 600 .8rem/1.3 var(--texte); letter-spacing: .09em; text-transform: uppercase; color: var(--gris); }
.surtitre { font: 600 .8rem/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.surtitre a { text-decoration: none; }
.surtitre a:hover { text-decoration: underline; }
.chapo { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--gris); max-width: 58ch; margin-top: 22px; text-wrap: pretty; }
.chapo.etroit { margin-top: 14px; }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1em; }
.prose.grand { font-size: 1.08rem; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a:not(.bouton):not(.lien) { color: var(--accent); }
.illus { border-radius: var(--rayon); border: 1px solid var(--trait); margin-bottom: 1.4em; }
.puces li { position: relative; padding-left: 22px; }
.puces li + li { margin-top: 8px; }
.puces li::before { content: ''; position: absolute; left: 0; top: .68em; width: 10px; height: 2px; background: var(--accent); }

/* Boutons et liens */
.bouton {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid var(--accent);
  transition: background .2s var(--doux), transform .2s var(--doux), border-color .2s;
}
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton:active { transform: scale(.98); }
.bouton.clair { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton.clair:hover { background: var(--encre); color: var(--papier); }
.bouton.vert { background: var(--blanc); color: var(--vert-fonce); border-color: var(--blanc); }
.bouton.vert:hover { background: var(--papier-fonce); border-color: var(--papier-fonce); }
.bouton.petit { padding: 9px 16px; font-size: .9rem; }
.fl { width: 16px; height: 16px; flex: none; transition: transform .25s var(--doux); }
a:hover > .fl, .bouton:hover .fl, .suite:hover .fl, a:hover .suite .fl { transform: translateX(3px); }
.lien { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.etat { display: inline-block; font: 600 .74rem/1 var(--texte); letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.etat.fini { background: var(--papier-fonce); color: var(--encre); }
.etat.encours { background: var(--accent); color: #fff; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--papier) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.entete-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.sceau { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 1rem/1 var(--titre); letter-spacing: .02em; transition: background .3s; }
.marque-nom { font-weight: 600; font-size: .98rem; }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--gris); padding: 6px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--encre); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--doux); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.menu-b { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0 10px 10px; font-weight: 600; font-size: .95rem; }
.menu-b span { display: none; }
.menu-b i { font-style: normal; }
.menu-mobile { position: fixed; inset: 68px 0 0 0; z-index: 29; background: var(--papier); padding: 28px var(--marge) 40px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 28px; }
.menu-mobile[hidden] { display: none; }
.menu-mobile nav { display: flex; flex-direction: column; }
.menu-mobile nav a { font: 500 1.9rem/1.2 var(--titre); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.menu-mobile nav a[aria-current] { color: var(--accent); }
.menu-mobile .bouton { align-self: flex-start; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fiche { background: var(--blanc); border: 1px solid var(--trait); border-radius: 20px; padding: 28px; position: relative; overflow: hidden; }
.fiche::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent); }
.fiche-sceau { width: 64px; height: 64px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 1.6rem/1 var(--titre); margin-top: 8px; }
.fiche-photo { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; margin-top: 8px; }
.fiche-nom { font: 500 1.35rem/1.2 var(--titre); margin-top: 18px; }
.fiche dl { margin-top: 18px; border-top: 1px solid var(--trait); }
.fiche dl > div { padding: 12px 0; border-bottom: 1px solid var(--trait); }
.fiche dt { font: 600 .72rem/1.3 var(--texte); letter-spacing: .09em; text-transform: uppercase; color: var(--gris); }
.fiche dd { margin-top: 3px; font-size: .98rem; }
.fiche .dispo dd { color: var(--accent); font-weight: 600; }
.fiche-lien { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; text-decoration: none; }

/* Chiffres */
.chiffres { border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.chiffres-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.chiffres-in > div { padding: 30px 24px 30px 0; }
.chiffres-in > div + div { padding-left: 24px; border-left: 1px solid var(--trait); }
.chiffres strong { display: block; font: 500 2.6rem/1 var(--titre); color: var(--accent); }
.chiffres span { display: block; margin-top: 8px; color: var(--gris); font-size: .95rem; line-height: 1.4; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.fond-blanc { background: var(--blanc); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.entre { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tete { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--trait); }
.tete .etat { margin-top: 22px; }

/* Compétences */
.competences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--trait); }
.comp { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--trait); }
.comp:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--trait); }
.comp h3 { font: 500 1.25rem/1.2 var(--titre); margin-bottom: 12px; }
.comp li { color: var(--gris); font-size: .98rem; padding: 3px 0; }

/* Projets */
.projets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.projet { display: flex; flex-direction: column; gap: 12px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; text-decoration: none; transition: border-color .25s, transform .3s var(--doux), box-shadow .3s; }
.projet:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(29, 24, 21, .45); }
.projet img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.projet-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 .76rem/1 var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.projet h3 { font: 500 1.3rem/1.22 var(--titre); }
.projet > p:not(.projet-meta) { color: var(--gris); font-size: .97rem; line-height: 1.5; }
.suite { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; color: var(--accent); }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filtres button { background: transparent; border: 1px solid var(--trait); border-radius: 999px; padding: 9px 16px; font-size: .92rem; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.filtres button i { font-style: normal; color: var(--gris); margin-left: 4px; font-size: .85em; }
.filtres button:hover { border-color: var(--encre); }
.filtres button.actif { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.filtres button.actif i { color: inherit; opacity: .7; }
[data-liste] > [hidden] { display: none; }

/* Détail projet */
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.cote { position: sticky; top: 96px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.outils { margin-top: 14px; }
.outils li { padding: 9px 0; border-bottom: 1px solid var(--trait); font-weight: 500; }
.outils li:last-child { border-bottom: 0; padding-bottom: 0; }
.suivant { border-top: 1px solid var(--trait); }
.suivant a { display: flex; align-items: center; gap: 18px; padding: 34px 0; text-decoration: none; }
.suivant span { font: 600 .78rem/1 var(--texte); letter-spacing: .09em; text-transform: uppercase; color: var(--gris); }
.suivant strong { font: 500 clamp(1.2rem, 2.4vw, 1.7rem)/1.2 var(--titre); margin-right: auto; }
.suivant a:hover strong { color: var(--accent); }

/* Parcours */
.frise { border-left: 2px solid var(--trait); }
.frise li { position: relative; padding: 0 0 34px 30px; }
.frise li:last-child { padding-bottom: 0; }
.frise li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--papier); border: 2px solid var(--gris); }
.frise li.actuel::before { background: var(--accent); border-color: var(--accent); }
.frise-date { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9rem; color: var(--gris); margin-bottom: 6px; }
.frise h3 { font: 500 1.35rem/1.25 var(--titre); }
.frise-lieu { color: var(--gris); }
.options { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 36px; }
.option { border: 1px solid var(--trait); border-radius: 20px; padding: 30px; background: var(--papier); }
.option.mienne { background: var(--accent); color: #fff; border-color: var(--accent); }
.option-tag { font: 600 .74rem/1 var(--texte); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.option h3 { font: 500 3rem/1 var(--titre); margin-top: 16px; }
.option-sous { font-weight: 600; margin: 8px 0 16px; }
.option ul { margin-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.option li { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: .98rem; }
.option-metiers { margin-top: 18px; font-size: .95rem; }
.option-metiers span { display: block; font: 600 .72rem/1.3 var(--texte); letter-spacing: .09em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.plat { margin-top: 16px; }
.plat li { padding: 12px 0; border-bottom: 1px solid var(--trait); display: flex; flex-direction: column; }
.plat li span { color: var(--gris); font-size: .95rem; }
.plat.simple li { color: var(--gris); }
.glisser { display: none; margin-top: 18px; font-size: .88rem; color: var(--gris); }
.tableau-zone { margin-top: 32px; overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); }
.synthese { border-collapse: collapse; width: 100%; min-width: 820px; font-size: .92rem; }
.synthese th, .synthese td { padding: 13px 14px; border-bottom: 1px solid var(--trait); text-align: left; }
.synthese thead th { vertical-align: bottom; font-weight: 600; font-size: .8rem; line-height: 1.3; color: var(--gris); background: var(--papier); width: 12%; }
.synthese thead th:first-child { width: 28%; }
.synthese tbody th { font-weight: 500; }
.synthese td { text-align: center; border-left: 1px solid var(--trait); }
.synthese td.coche { color: var(--accent); font-size: 1.05rem; background: var(--accent-pale); }
.synthese tbody tr:last-child th, .synthese tbody tr:last-child td { border-bottom: 0; }

/* Stages */
.stages { display: grid; gap: 22px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 64px); background: var(--blanc); border: 1px solid var(--trait); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.stage-date { font-weight: 600; font-size: .9rem; color: var(--accent); margin-bottom: 10px; }
.stage-poste { color: var(--gris); margin: 8px 0 16px; }

/* Veille */
.bande-veille { background: var(--vert); color: #fff; }
.bande-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); flex-wrap: wrap; }
.bande-in > div { max-width: 62ch; }
.bande-in .surtitre { color: #BFE0CC; }
.bande-in p:not(.surtitre) { margin-top: 14px; opacity: .88; }
.reperes { background: var(--vert); color: #fff; }
.reperes-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.reperes-in > div { padding: 36px 24px 36px 0; }
.reperes-in > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .22); }
.reperes strong { display: block; font: 500 clamp(2.2rem, 4vw, 3rem)/1 var(--titre); }
.reperes p { margin-top: 10px; line-height: 1.4; }
.reperes small { display: block; margin-top: 8px; font-size: .8rem; opacity: .7; }
.leviers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); margin-top: 32px; counter-reset: l; border-top: 1px solid var(--trait); }
.leviers li { counter-increment: l; padding: 26px 0 28px 58px; border-bottom: 1px solid var(--trait); position: relative; }
.leviers li::before { content: counter(l, decimal-leading-zero); position: absolute; left: 0; top: 28px; font: 500 1.35rem/1 var(--titre); color: var(--accent); }
.leviers h3 { font: 500 1.3rem/1.25 var(--titre); margin-bottom: 8px; }
.leviers p { color: var(--gris); }
.sources { margin-top: 12px; border-top: 1px solid var(--trait); }
.sources li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.sources a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--encre) !important; }
.sources a:hover { color: var(--accent) !important; }
.sources span { color: var(--gris); font-size: .9rem; text-align: right; }
.articles { margin-top: 28px; border-top: 1px solid var(--trait); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 8px clamp(24px, 5vw, 72px); padding: 32px 0; border-bottom: 1px solid var(--trait); }
.article-meta { grid-row: span 3; font-size: .92rem; color: var(--gris); }
.article-meta span { display: block; font: 600 .76rem/1 var(--texte); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.article h3 { font: 500 1.4rem/1.25 var(--titre); }
.article h3 a { text-decoration: none; }
.article h3 a:hover { color: var(--accent); }
.article h3 .fl { display: inline-block; vertical-align: baseline; margin-left: 2px; }
.article > p:not(.article-meta) { grid-column: 2; color: var(--gris); max-width: 64ch; }
.article .retenir { background: var(--accent-pale); color: var(--encre) !important; border-radius: 10px; padding: 14px 16px; margin-top: 8px; font-size: .97rem; }
.retenir strong { display: block; font: 600 .74rem/1.3 var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.conclusion { background: var(--vert); color: #fff; padding: clamp(56px, 8vw, 104px) 0; }
.conclusion .surtitre { color: #BFE0CC; }
.conclusion blockquote { font: 500 clamp(1.4rem, 3vw, 2.2rem)/1.3 var(--titre); max-width: 30ch; text-wrap: balance; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contact-carte { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: end; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; text-decoration: none; transition: border-color .25s, background .25s, color .25s; }
.contact-carte span { grid-column: 1 / -1; font: 600 .76rem/1 var(--texte); letter-spacing: .09em; text-transform: uppercase; color: var(--gris); transition: color .25s; }
.contact-carte strong { font: 500 1.2rem/1.3 var(--titre); overflow-wrap: anywhere; }
.contact-carte:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-carte:hover span { color: rgba(255, 255, 255, .8); }
.contact-ville { margin-top: 28px; color: var(--gris); }

/* Pied */
.pied { background: var(--encre); color: #D9CFC2; padding: 48px 0 28px; font-size: .95rem; }
.pied-in { display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.pied-nom { font: 500 1.4rem/1.2 var(--titre); color: #fff; margin-bottom: 4px; }
.pied-liens { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-bas { grid-column: 1 / -1; display: flex; gap: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #A39A8E; }

/* Apparition au défilement */
@media (prefers-reduced-motion: no-preference) {
  .js [data-apparait] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--doux), transform .7s var(--doux); }
  .js [data-apparait].vu { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Tablette */
@media (max-width: 980px) {
  .nav, .cv-haut { display: none; }
  .menu-b { display: inline-flex; }
  .menu-b span { display: block; width: 22px; height: 2px; background: var(--encre); position: absolute; transition: transform .3s var(--doux); }
  .menu-b { position: relative; padding-left: 34px; }
  .menu-b span { left: 0; }
  .menu-b span:nth-child(1) { transform: translateY(-4px); }
  .menu-b span:nth-child(2) { transform: translateY(4px); }
  .menu-b[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .menu-b[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
  .hero-in, .deux, .detail, .stage { grid-template-columns: 1fr; }
  .hero-in { align-items: start; }
  .projets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .competences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .comp:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--trait); }
  .cote { position: static; }
  .options, .trois { grid-template-columns: 1fr; }
  .t1 { max-width: none; }
}

/* Téléphone */
@media (max-width: 900px) { .glisser { display: block; } .glisser + .tableau-zone { margin-top: 10px; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .marque-nom { display: none; }
  .projets, .competences, .leviers { grid-template-columns: 1fr; }
  .comp:nth-child(even) { padding-left: 0; border-left: 0; }
  .comp { padding-right: 0; }
  .chiffres-in { grid-template-columns: 1fr 1fr; }
  .chiffres-in > div { padding: 22px 12px 22px 0; }
  .chiffres-in > div + div { padding-left: 0; border-left: 0; }
  .chiffres-in > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--trait); }
  .chiffres-in > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .chiffres strong { font-size: 2.1rem; }
  .reperes-in { grid-template-columns: 1fr; }
  .reperes-in > div { padding: 24px 0; }
  .reperes-in > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
  .article { grid-template-columns: 1fr; }
  .article-meta { grid-row: auto; }
  .article > p:not(.article-meta) { grid-column: 1; }
  .actions .bouton { width: 100%; justify-content: center; }
  .pied-in { grid-template-columns: 1fr; }
  .pied-liens { align-items: flex-start; }
  .sources li { flex-direction: column; gap: 2px; }
  .sources span { text-align: left; }
  .suivant a { flex-wrap: wrap; gap: 8px; }
  .suivant span { width: 100%; }
  .option h3 { font-size: 2.4rem; }
}

/* Largeurs intermédiaires : les chiffres passent sur deux colonnes au lieu de laisser un dernier bloc seul */
@media (min-width: 641px) and (max-width: 980px) {
  .reperes-in { grid-template-columns: 1fr 1fr; }
  .reperes-in > div { padding: 28px 20px 28px 0; }
  .reperes-in > div + div { padding-left: 0; border-left: 0; }
  .reperes-in > div:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .22); }
  .reperes-in > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .22); }
}
@media (min-width: 641px) and (max-width: 760px) {
  .chiffres-in { grid-template-columns: 1fr 1fr; }
  .chiffres-in > div + div { padding-left: 0; border-left: 0; }
  .chiffres-in > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--trait); }
  .chiffres-in > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
}
