/*
Theme Name: Clé Futée
Theme URI: https://clefutee.fr
Author: Studio ML
Description: Thème de la chaîne YouTube Clé Futée : fond nuit, accent ambre, photos plein cadre, un article par vidéo. Maquette validée par Alex le 06/11/2026 (programme clefutee_site).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: clefutee
*/

/* Mise en page « soirée cinéma » : fond nuit éclairci (#171c27), photos plein cadre étalonnées nuit et ambre,
   grands titres serrés ; la lecture des articles passe sur une feuille claire. Un seul accent : l'ambre. */
:root {
  --noir: #171c27; --nuit: #1c2230; --nuit2: #232a3a; --filet: #313a4d;
  --ivoire: #f4f1ea; --doux: #a9adb8; --ambre: #ffb547; --ambre-fonce: #a86400; --sur-ambre: #1a1205;
  --papier: #f6f4ef; --encre: #15181f; --gris: #5d6270; --filet-clair: #e2ded5; --vert: #3ddc97;
  --ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lecture: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noir); color: var(--ivoire); font-family: var(--ui); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.env { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; padding: 13px 22px; border-radius: 999px; background: var(--ambre); color: var(--sur-ambre); border: 0; cursor: pointer; font-family: inherit; font-size: 16px; line-height: 1.2; }
.btn:hover { background: #ffc36a; }
.btn.ligne { background: transparent; color: var(--ivoire); box-shadow: inset 0 0 0 1.5px rgba(244,241,234,.45); }
.btn.ligne:hover { box-shadow: inset 0 0 0 1.5px var(--ivoire); }
.btn .tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* en-tête */
.tete { position: relative; z-index: 3; }
.tete.sur-photo { position: absolute; left: 0; right: 0; top: 0; }
.tete .env { display: flex; align-items: center; gap: 30px; padding-block: 20px; flex-wrap: wrap; }
.tete .logo img { height: 36px; width: auto; }
.tete nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 24px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.tete nav a { text-decoration: none; color: rgba(244,241,234,.8); }
.tete nav a:hover, .tete nav .actif a { color: var(--ivoire); }
.tete nav .actif a { box-shadow: 0 2px 0 var(--ambre); }
.tete .btn { margin-left: auto; padding: 9px 16px; font-size: 14px; }

/* accueil : grande photo */
.scene { position: relative; min-height: 640px; display: flex; align-items: flex-end; background-color: var(--noir); background-position: 70% center; background-size: cover; background-repeat: no-repeat; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,28,39,.82) 0%, rgba(23,28,39,.4) 40%, rgba(23,28,39,0) 62%), linear-gradient(0deg, var(--noir) 0%, rgba(23,28,39,0) 22%); }
.scene .env { position: relative; z-index: 1; width: 100%; padding-block: 140px 70px; }
.scene h1 { font-size: clamp(40px, 6.6vw, 88px); line-height: .98; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; max-width: 11.5em; text-wrap: balance; }
.scene h1 span { color: var(--ambre); }
.scene p { font-size: 20px; color: #d4d6dd; max-width: 31em; margin: 0 0 30px; }
.compte { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 46px; color: var(--doux); font-size: 14px; }
.compte b { display: block; color: var(--ivoire); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* cadres vidéo */
.cadre { position: relative; aspect-ratio: 16/9; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--nuit2); display: block; }
.cadre img { width: 100%; height: 100%; object-fit: cover; }
.cadre .duree { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.cadre .lire { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,181,71,.92); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0,0,0,.5); border: 0; cursor: pointer; }
.cadre .lire::before { content: ""; margin-left: 6px; border-left: 22px solid var(--sur-ambre); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.etiq { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ambre); }

/* dernière vidéo */
.derniere { padding-block: 30px 10px; }
.derniere .env { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.derniere h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.025em; margin: 10px 0 14px; text-wrap: balance; }
.derniere h2 a { text-decoration: none; }
.derniere p { color: var(--doux); font-size: 17px; margin: 0 0 24px; }
.bientot { border: 1px dashed var(--filet); border-radius: 14px; padding: 34px; text-align: center; color: var(--doux); }
.bientot b { display: block; color: var(--ivoire); font-size: 24px; margin-bottom: 6px; }

/* sections */
.sec { padding-block: 70px 0; }
.bande { background: var(--nuit); margin-top: 70px; padding-block: 0 70px; }
.bande + .sec { padding-top: 70px; }
.sec-tete { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-tete h2, .sec-tete h1 { margin: 0; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; line-height: 1; font-weight: 800; }
.sec-tete a { color: var(--doux); font-weight: 700; text-decoration: none; }
.sec-tete a:hover { color: var(--ambre); }
.sec-tete p { color: var(--doux); margin: 10px 0 0; max-width: 40em; }

.rangee { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.vid { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.vid .cadre { border-radius: 12px; }
.vid .cadre img { transition: transform .4s ease; }
.vid:hover .cadre img { transform: scale(1.04); }
.vid b { font-size: 18px; line-height: 1.3; }
.vid .m { color: var(--doux); font-size: 14px; }

.portes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.porte { position: relative; aspect-ratio: 7/9; max-width: 100%; border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; align-items: flex-end; background: var(--nuit2); }
.porte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.porte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,28,39,.88) 0%, rgba(23,28,39,.2) 42%, rgba(23,28,39,0) 62%); }
.porte:hover img { transform: scale(1.05); }
.porte .txt { position: relative; z-index: 1; padding: 22px; display: grid; gap: 8px; }
.porte .qui { color: var(--ambre); font-weight: 700; font-size: 15px; }
.porte b { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.porte .suite { color: #d4d6dd; font-size: 15px; }

.offres { border-top: 1px solid var(--filet); }
.offre { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 20px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--filet); }
.offre .nom { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.offre .quoi b { display: block; color: var(--ambre); font-size: 19px; }
.offre .quoi span { color: var(--doux); font-size: 15px; }
.mention { color: var(--doux); font-size: 14px; max-width: 54em; margin: 20px 0 0; }

.pagination { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.pagination .page-numbers { text-decoration: none; padding: 8px 14px; border: 1px solid var(--filet); border-radius: 999px; }
.pagination .current { background: var(--ambre); color: var(--sur-ambre); border-color: var(--ambre); }

/* abonnement, pied */
.abo { margin-top: 70px; background: linear-gradient(120deg, #3a2a10 0%, #1c2230 60%); border-top: 1px solid #4a3815; }
.abo .env { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 44px; }
.abo .g { display: flex; gap: 20px; align-items: center; min-width: 0; }
.abo img { width: 76px; height: 76px; border-radius: 18px; }
.abo b { font-size: 26px; letter-spacing: -.02em; }
.abo p { margin: 4px 0 0; color: var(--doux); }
.pied { background: var(--noir); color: #7c818d; font-size: 14px; border-top: 1px solid var(--filet); }
.pied .env { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; padding-block: 24px 36px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--ivoire); }

/* article et pages */
.couverture { position: relative; min-height: 460px; display: flex; align-items: flex-end; background-color: var(--noir); background-position: center; background-size: cover; }
.couverture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,28,39,.92) 6%, rgba(23,28,39,.38) 55%, rgba(23,28,39,.08) 100%); }
.couverture .env { position: relative; z-index: 1; width: 100%; padding-block: 120px 40px; }
.couverture h1 { font-size: clamp(32px, 5vw, 62px); line-height: 1.02; letter-spacing: -.03em; margin: 12px 0 14px; max-width: 16em; text-wrap: balance; }
.couverture .m { color: #c9ccd4; }
.couverture.simple { min-height: 0; }
.couverture.simple .env { padding-block: 40px 34px; }
.feuille { background: var(--papier); color: var(--encre); }
.feuille .env { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-block: 44px 64px; }
.feuille.seule .env { grid-template-columns: minmax(0, 1fr); }
.texte { font-family: var(--lecture); font-size: 19px; line-height: 1.68; max-width: 40em; min-width: 0; }
.texte p, .texte ul, .texte ol { margin: 0 0 18px; }
.texte h2, .texte h3 { font-family: var(--ui); letter-spacing: -.02em; line-height: 1.2; margin: 36px 0 10px; }
.texte h2 { font-size: 26px; } .texte h3 { font-size: 21px; }
.texte a { color: var(--ambre-fonce); text-underline-offset: 3px; }
.texte img { border-radius: 10px; }
.texte .wp-block-table, .texte .tableau { overflow-x: auto; margin: 12px 0 8px; }
.texte table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 15px; font-variant-numeric: tabular-nums; }
.texte th, .texte td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--filet-clair); }
.texte thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); border-bottom: 2px solid var(--encre); }
.texte figcaption, .source { font-family: var(--ui); font-size: 13px; color: var(--gris); }
.chapeau { font-size: 22px; line-height: 1.5; color: #2b2f39; }
.bref { background: var(--encre); color: var(--ivoire); border-radius: 14px; padding: 20px 24px; margin: 26px 0; font-family: var(--ui); font-size: 16px; }
.bref ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bref li { padding-left: 26px; position: relative; }
.bref li::before { content: "+"; position: absolute; left: 0; color: var(--vert); font-weight: 800; }
.bref li.non::before { content: "–"; color: var(--ambre); }
.cote { align-self: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); display: grid; gap: 22px; }
.carte-offre { background: var(--encre); color: var(--ivoire); border-radius: 18px; overflow: hidden; }
.carte-offre .haut { background: linear-gradient(135deg, var(--ambre), #f08f2a); color: var(--sur-ambre); padding: 18px 20px; }
.carte-offre .haut b { display: block; font-size: 28px; letter-spacing: -.02em; line-height: 1.05; }
.carte-offre .bas { padding: 18px 20px 20px; display: grid; gap: 12px; font-size: 14px; color: var(--doux); }
.carte-offre .btn { justify-content: center; }
.aussi { display: grid; gap: 14px; }
.aussi h3 { margin: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.aussi a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; text-decoration: none; align-items: center; font-weight: 700; font-size: 15px; line-height: 1.3; }
.aussi img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.vide { color: var(--doux); padding-block: 30px; }

@media (max-width: 960px) {
  .derniere .env, .feuille .env { grid-template-columns: minmax(0, 1fr); }
  .rangee, .portes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .offre { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cote { position: static; }
  .tete .btn { margin-left: 0; }
}
@media (max-width: 600px) {
  .rangee, .portes { grid-template-columns: minmax(0, 1fr); }
  .porte { aspect-ratio: 4/3; }
  .scene { min-height: 0; background-position: 75% center; }
  .scene::after { background: linear-gradient(0deg, rgba(23,28,39,.95) 10%, rgba(23,28,39,.55) 60%, rgba(23,28,39,.3) 100%); }
  .scene .env { padding-block: 170px 40px; }
  .tete .logo img { height: 30px; }
  .tete nav ul { gap: 4px 16px; font-size: 14px; }
  .texte { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
