/*
Theme Name: Jenna Académie
Description: Vitrine des cours d'arabe de Jenna Académie : bannière « iqra », menu, parcours en 3 cours, liste d'attente et blog.
Author: Jenna Académie
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jenna-academie
License: GPL-2.0-or-later
*/

:root {
  --prune-950: #1f1322;
  --prune-900: #2b1a2f;
  --prune-800: #362338;
  --prune-700: #422a47;
  --prune-600: #573a5d;
  --prune-500: #6d4b74;
  --prune-400: #8f7195;
  --prune-200: #d5c9d8;
  --prune-100: #ece5ee;
  --or: #fecd35;
  --or-clair: #ffdb60;
  --or-texte: #7a5c00;
  --creme: #fbf7f2;
  --creme-2: #f6efe6;
  --titres: "JC Playfair", Georgia, serif;
  --corps: "JC Nunito", system-ui, sans-serif;
  --arabe: "JC Amiri", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--corps); font-size: 16px; line-height: 1.6; color: var(--prune-900); background: var(--creme); }
img { max-width: 100%; height: auto; }
a { color: var(--prune-700); }
h1, h2, h3 { font-family: var(--titres); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(29px, 3.6vw, 44px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.conteneur { max-width: 1160px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.or { color: var(--or); }
.clair { color: var(--prune-200); }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 12px; top: 12px; z-index: 100; background: var(--creme); padding: 10px 16px; border-radius: 8px; }
:target { scroll-margin-top: 90px; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 10px 30px; border: 2px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .2s; }
.bouton:hover { transform: translateY(-2px); }
.bouton-petit { min-height: 44px; padding: 6px 22px; font-size: 15px; }
.bouton-large { display: flex; width: 100%; padding-left: 14px; padding-right: 14px; }
.bouton-or { background: var(--or); color: var(--prune-900); }
.bouton-clair { border-color: var(--prune-400); color: var(--creme); }
.bouton-prune { background: var(--prune-700); color: var(--creme); }
.bouton-sombre { background: var(--prune-900); color: var(--creme); }
.bouton-contour { border-color: var(--prune-700); color: var(--prune-700); }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.boutons-centre { justify-content: center; }

/* Menu */
.entete { position: sticky; top: 0; z-index: 30; background: var(--prune-950); color: var(--creme); }
.admin-bar .entete { top: 32px; }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.marque { font-family: var(--titres); font-weight: 700; font-size: 23px; color: var(--creme); text-decoration: none; white-space: nowrap; }
.marque span { color: var(--or); }
.entete-droite { display: flex; align-items: center; gap: 28px; }
.menu ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--creme); text-decoration: none; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.menu a:hover { color: var(--or); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--prune-400); background: none; color: var(--creme); font-size: 18px; cursor: pointer; }

/* Bannière */
.hero { background: var(--prune-950); color: var(--creme); overflow: hidden; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 60px; }
.surtitre { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--or); }
.surtitre-sombre { color: var(--or-texte); }
.hero h1 { margin: 20px 0 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.08; }
.hero h1 em { font-weight: 600; }
.hero-intro { max-width: 460px; margin-top: 22px; font-size: 18px; color: var(--prune-200); }
.hero-dessin { width: 100%; max-width: 580px; margin: 0 auto; }
.hero-dessin canvas { display: block; width: 100%; height: auto; aspect-ratio: 640 / 580; }
.chiffres { display: flex; flex-wrap: wrap; gap: 16px 38px; margin: 36px 0 0; }
.chiffres dt { font-family: var(--titres); font-size: 28px; font-weight: 700; color: var(--or); }
.chiffres dd { margin: 0; font-size: 13px; color: var(--prune-200); }

/* Cours */
.titre-centre { text-align: center; }
div.titre-centre p:not(.surtitre) { max-width: 560px; margin-left: auto; margin-right: auto; color: var(--prune-600); font-size: 17px; }
.titre-centre h2 { margin-top: 10px; }
.titre-centre em, .apropos h2 em { color: var(--prune-500); }
/* À propos, étapes, liste d'attente */
.apropos { background: var(--creme-2); }
.apropos-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 52px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.apropos img { border-radius: 28px; width: 100%; max-width: 440px; margin: 0 auto; display: block; }
.apropos p { font-size: 17px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 28px; padding: 0; font-size: 14px; font-weight: 700; }
.pastilles li { padding: 8px 16px; border: 1px solid #b4a0b9; border-radius: 999px; }
.marche { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; list-style: none; margin: 36px 0 0; padding: 0; }
.marche li { padding: 28px 22px; text-align: center; background: #fff; border: 1px solid var(--prune-100); border-radius: 20px; color: var(--prune-600); font-size: 15px; }
.marche b { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--or); color: var(--prune-900); font-size: 18px; }
.marche h3 { margin: 16px 0 6px; font-family: var(--corps); font-size: 18px; color: var(--prune-900); }
.liste { padding: 60px 22px; text-align: center; background: var(--or); }
.appel { padding: 76px 22px; text-align: center; background: var(--prune-900); color: var(--creme); }
.appel p { color: var(--prune-200); font-size: 17px; }

/* Blog et pages */
.titre-page { font-size: clamp(32px, 4.4vw, 50px); }
.lecture { max-width: 760px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.date { margin: 0 0 6px; font-size: 13px; color: var(--prune-500); }
.contenu { font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.contenu h2 { font-size: 30px; margin-top: 1.4em; }
.contenu h3 { font-size: 23px; margin-top: 1.3em; }
.contenu .alignwide, .contenu .alignfull { max-width: 100%; }
.une { border-radius: 20px; margin: 0 0 28px; }
.invitation { margin-top: 48px; padding: 28px; text-align: center; background: var(--creme-2); border-radius: 20px; font-weight: 800; }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 30px; }
.article-carte { overflow: hidden; background: #fff; border: 1px solid var(--prune-100); border-radius: 20px; }
.article-carte > div { padding: 22px; }
.article-carte img { display: block; width: 100%; }
.article-carte h2 { font-size: 22px; }
.article-carte h2 a { text-decoration: none; }
.navigation.pagination { margin-top: 32px; text-align: center; }
.page-numbers { display: inline-block; padding: 8px 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Pied de page */
.pied { background: var(--prune-950); color: var(--prune-200); font-size: 15px; }
.pied-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 50px; padding-bottom: 28px; }
.pied ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.pied a { color: var(--prune-200); text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied-titre { margin: 0 0 6px; font-weight: 800; color: var(--creme); }
.pied-bas { margin: 0; padding: 18px; text-align: center; font-size: 13px; border-top: 1px solid var(--prune-700); }

/* Tablette et téléphone */
@media (max-width: 960px) {
  .hero-grille, .apropos-grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
  .admin-bar .entete { top: 46px; }
  .burger { display: block; }
  .entete-droite { gap: 10px; }
  .marque { font-size: 19px; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 22px 16px; background: var(--prune-950); border-top: 1px solid var(--prune-700); }
  .menu.ouvert { display: block; }
  .menu ul { flex-direction: column; gap: 0; }
}
@media (max-width: 420px) {
  .entete-ligne { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .entete-droite { gap: 8px; }
  .entete .marque img { height: 50px; }
  .entete .bouton-petit { padding-left: 14px; padding-right: 14px; font-size: 13px; }
  .burger { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}

/* Pages de cours */
.contenu .wp-block-button__link { display: inline-flex; align-items: center; min-height: 54px; padding: 10px 30px; border-radius: 999px; background: var(--prune-700); color: var(--creme); font-weight: 800; text-decoration: none; }
.contenu .wp-block-buttons { margin-top: 28px; }
.contenu li { margin-bottom: 4px; }

/* En-tête des pages de cours et livre en volume */
.cours-tete { background: var(--prune-950); color: var(--creme); overflow: hidden; }
.cours-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 70px; }
.cours-tete h1 { margin: 18px 0 30px; font-size: clamp(34px, 4.4vw, 56px); }
.cours-visuel { display: flex; justify-content: center; }
.cours-image { border-radius: 16px; max-height: 420px; width: auto; }
.livre-scene { perspective: 1200px; padding: 20px 40px; }
.livre { position: relative; width: 230px; height: 310px; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(5deg); animation: livre 7s ease-in-out infinite; }
@keyframes livre { 50% { transform: rotateY(-14deg) rotateX(3deg) translateY(-12px); } }
.livre-couverture, .livre-fond { position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; background: var(--prune-700); }
.livre-couverture { transform: translateZ(18px); padding: 14px; box-shadow: 0 0 70px rgba(254, 205, 53, .16); }
.livre-fond { transform: translateZ(-18px); background: var(--prune-900); box-shadow: 30px 30px 50px rgba(0, 0, 0, .45); }
.livre-filet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; padding: 12px; text-align: center; border: 1px solid rgba(254, 205, 53, .65); border-radius: 4px 8px 8px 4px; }
.livre-arabe { font-family: var(--arabe); font-size: 38px; line-height: 1.7; color: var(--or); }
.livre-titre { font-family: var(--titres); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--creme); }
.livre-mention { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--prune-200); }
.livre-dos { position: absolute; top: 0; left: -18px; width: 36px; height: 100%; transform: rotateY(-90deg); background: var(--prune-600); border-left: 3px solid var(--or); }
.livre-tranche { position: absolute; top: 4px; right: -14px; width: 34px; height: calc(100% - 8px); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #fbf7f2 0 2px, #d9cfc0 2px 3px); }
@media (max-width: 800px) { .cours-grille { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .livre { animation: none; } }

/* Logo */
.marque img { display: block; height: 66px; width: auto; }
.pied .marque img { height: 80px; }
@media (max-width: 420px) { .entete .marque img { height: 50px; } }

/* Articles et page Blog */
.page-tete { position: relative; overflow: hidden; background: var(--prune-950); color: var(--creme); text-align: center; }
.page-tete::before, .page-tete::after { content: ""; position: absolute; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 15px solid var(--or); opacity: .3; animation: jc-derive-t 8s ease-in-out infinite; }
.page-tete::before { left: 11%; top: 34%; }
.page-tete::after { right: 12%; top: 56%; animation-delay: -3s; border-bottom-color: #b4a0b9; }
@keyframes jc-derive-t { 50% { translate: 10px -18px; rotate: 160deg; } }
.page-tete-int { max-width: 860px; margin: 0 auto; padding: 56px 22px 64px; }
.page-tete h1 { margin: 18px 0 16px; font-size: clamp(32px, 4.6vw, 54px); }
.page-tete-date { margin: 0; font-size: 14px; color: var(--prune-200); }
.article-corps { max-width: 740px; margin: 0 auto; padding: 56px 22px 80px; }
.contenu-article > p:first-child { font-size: 21px; line-height: 1.7; color: var(--prune-700); }
.contenu-article h2 { padding-top: 26px; border-top: 1px solid var(--prune-100); }
.contenu-article a { color: var(--prune-700); font-weight: 700; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contenu-article p:has(> strong:only-child) + ul { margin-top: -8px; padding: 18px 24px 18px 44px; background: #fff; border: 1px solid var(--prune-100); border-radius: 20px; box-shadow: 0 14px 36px rgba(43, 26, 47, .07); }
.contenu-article li { margin-bottom: 8px; }
.contenu-article li::marker { color: var(--or-texte); font-weight: 800; }
.contenu-article blockquote { margin: 28px 0; padding: 6px 0; text-align: center; font-family: var(--titres); font-style: italic; font-size: 24px; }
.article-corps .invitation { margin-top: 56px; padding: 38px 26px; background: var(--prune-950); color: var(--creme); font-weight: 400; box-shadow: 0 0 60px rgba(254, 205, 53, .14); }
.invitation-titre { margin: 0 0 6px; font-family: var(--titres); font-size: 26px; font-weight: 700; }
.article-corps .invitation p:not(.invitation-titre) { color: var(--prune-200); }
.blog-liste { background: var(--prune-950); color: var(--creme); padding: 10px 0 90px; }
.blog-liste .articles { margin-top: 0; }
.blog-liste .article-carte { position: relative; background: #2c1d31; border-color: rgba(229, 231, 235, .13); transition: transform .45s cubic-bezier(.2, .7, .2, 1), border-color .45s, box-shadow .45s; }
.blog-liste .article-carte:hover, .blog-liste .article-carte:focus-within { transform: translateY(-8px); border-color: rgba(254, 205, 53, .6); box-shadow: 0 0 60px rgba(254, 205, 53, .13); }
.blog-liste .article-carte h2 a { color: var(--creme); }
.blog-liste .article-carte h2 a::after { content: ""; position: absolute; inset: 0; }
.blog-liste .article-carte p { color: #d0c4d2; }
.blog-liste .date { font-size: 12px; color: var(--or); font-weight: 800; }
.lire-suite { display: inline-flex; gap: 8px; font-weight: 800; font-size: 15px; }
.lire-suite i { font-style: normal; color: var(--or); transition: transform .3s; }
.article-carte:hover .lire-suite i { transform: translateX(7px); }
.blog-liste .page-numbers, .blog-liste .vide { color: var(--creme); }
.blog-liste .vide { text-align: center; }
@media (prefers-reduced-motion: reduce) { .page-tete::before, .page-tete::after { animation: none; } .blog-liste .article-carte { transition: none; } }
