/*
Theme Name: Cils Expert 2026
Description: Thème léger du blog Cils Expert (sans constructeur de pages). Lecture mobile, liens vers la boutique.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: cilsexpert-2026
*/

@font-face{font-family:"Playfair Display";src:url(fonts/playfair-display.woff2) format("woff2");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:"Roboto";src:url(fonts/roboto.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{
  --encre:#282f37;--texte:#2f3640;--doux:#5b6270;--gris:#6a7080;
  --accent:#cc2e72;--accent-fonce:#a3205a;--rose:#f5b9c1;--rose-pale:#fcebf1;
  --fond-doux:#faf6f7;--trait:#efe7ea;--blanc:#ffffff;
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Roboto",Arial,Helvetica,sans-serif;
  --largeur:1200px;--lecture:760px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--blanc);color:var(--encre);font-family:var(--sans);font-size:17px;line-height:1.6}
img{max-width:100%;height:auto}
a{color:var(--accent)}a:hover{color:var(--accent-fonce)}
.cx-ecran-lecteur{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.cx-aller-contenu{position:absolute;left:-999px;top:8px;background:var(--encre);color:#fff;padding:10px 14px;border-radius:8px;z-index:100}
.cx-aller-contenu:focus{left:8px}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.cx-conteneur{max-width:var(--largeur);margin:0 auto;padding:0 20px}

/* En-tête */
.cx-entete{border-bottom:1px solid var(--trait);background:var(--blanc)}
.cx-entete .cx-conteneur{min-height:60px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.cx-logo{margin-right:auto}
.cx-logo{text-decoration:none;display:flex;align-items:baseline;gap:8px}
/* en-tete toujours sur une ligne, meme avant les polices (CLS 0,36 -> ~0, 2026-11-10) */
.cx-logo{flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap}
.cx-logo__nom{font-family:var(--serif);font-size:21px;font-weight:700;color:var(--encre)}
.cx-logo__blog{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent);font-weight:500}
.cx-bouton{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;background:var(--accent);color:#fff;text-decoration:none;font-size:15px;font-weight:500;border:0;font-family:var(--sans);cursor:pointer}
.cx-bouton:hover{background:var(--accent-fonce);color:#fff}
.cx-bouton--contour{background:transparent;color:var(--encre);border:1px solid var(--encre)}
.cx-bouton--contour:hover{background:var(--encre);color:#fff}
/* Menu unique : déplié par la case à cocher sur mobile, en ligne sur ordinateur. */
.cx-menu-case{position:absolute;opacity:0;width:44px;height:44px;margin:0;pointer-events:none}
.cx-menu-bouton{order:3;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}
.cx-menu-case:focus-visible+.cx-menu-bouton{outline:2px solid var(--accent);outline-offset:2px}
.cx-entete__boutique{order:2}
.cx-nav{order:4;flex-basis:100%;display:none;flex-direction:column;padding:4px 0 12px}
.cx-menu-case:checked~.cx-nav{display:flex}
.cx-nav a{color:var(--encre);text-decoration:none;font-size:16px;font-weight:500;padding:12px 4px;border-top:1px solid var(--trait)}
.cx-nav a:hover,.cx-nav a[aria-current]{color:var(--accent)}

/* Éléments communs */
.cx-pastille{display:inline-block;font-size:12px;font-weight:500;letter-spacing:1px;text-transform:uppercase;color:var(--accent-fonce);background:var(--rose-pale);border-radius:999px;padding:6px 12px;text-decoration:none}
.cx-surtitre{font-size:12px;font-weight:500;letter-spacing:1px;text-transform:uppercase;color:var(--accent)}
.cx-etiquette{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--accent-fonce)}
.cx-titre-section{font-family:var(--serif);font-weight:600;font-size:24px;line-height:1.25;margin:0 0 16px;color:var(--encre)}
.cx-avatar{width:40px;height:40px;border-radius:50%;background:var(--rose);color:#7a1c45;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cx-avatar--grand{width:56px;height:56px;font-size:18px}

/* Article */
.cx-article{padding:20px 0 0}
.cx-ariane{font-size:13px;color:var(--gris)}
.cx-ariane a{color:var(--gris);text-decoration:none}
.cx-ariane a:hover{color:var(--accent)}
.cx-article__tete{margin-top:18px;max-width:820px}
.cx-article__titre{font-family:var(--serif);font-weight:700;font-size:34px;line-height:1.15;margin:14px 0 16px;color:var(--encre)}
.cx-article__chapo{margin:0 0 18px;font-size:18px;line-height:1.6;color:var(--doux)}
.cx-auteur-ligne{display:flex;align-items:center;gap:12px}
.cx-auteur-ligne__nom{display:block;font-size:14px;font-weight:500}
.cx-auteur-ligne__infos{display:block;font-size:13px;color:var(--gris)}
.cx-article__image{display:block;width:100%;height:232px;object-fit:cover;border-radius:14px;margin:22px 0 0}
.cx-grille-article{display:flex;flex-wrap:wrap;gap:48px;margin-top:22px;align-items:flex-start}
.cx-colonne-texte{flex:999 1 560px;min-width:0;max-width:var(--lecture)}
.cx-colonne-cote{flex:1 1 280px;min-width:260px;display:none;flex-direction:column;gap:20px;position:sticky;top:20px}
.cx-essentiel{background:var(--rose-pale);border-radius:14px;padding:18px 20px 6px;margin-bottom:22px}
.cx-essentiel ul{margin:0;padding:0 0 0 18px;font-size:16px;line-height:1.6;color:var(--texte)}
.cx-essentiel li{margin-bottom:10px}

.cx-contenu{font-size:17px;line-height:1.7;color:var(--texte)}
.cx-contenu p{margin:0 0 18px}
.cx-contenu h2{font-family:var(--serif);font-weight:600;font-size:26px;line-height:1.25;color:var(--encre);margin:36px 0 14px;scroll-margin-top:20px}
.cx-contenu h3{font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.3;color:var(--encre);margin:28px 0 10px;scroll-margin-top:20px}
.cx-contenu h4{font-size:18px;margin:22px 0 8px;color:var(--encre)}
.cx-contenu ul,.cx-contenu ol{margin:0 0 18px;padding-left:22px}
.cx-contenu li{margin-bottom:8px}
.cx-contenu img{border-radius:10px}
.cx-contenu figure{margin:0 0 20px}
.cx-contenu figcaption,.cx-contenu .wp-caption-text{font-size:14px;color:var(--gris);margin-top:6px}
.cx-contenu .wp-caption{max-width:100%}
.cx-contenu blockquote{margin:8px 0 24px;padding:18px 20px;border-radius:14px;background:var(--fond-doux);font-size:17px}
.cx-contenu table{width:100%;border-collapse:collapse;display:block;overflow-x:auto;margin:0 0 20px;font-size:15px}
.cx-contenu th,.cx-contenu td{border:1px solid var(--trait);padding:8px 10px;text-align:left}
.cx-contenu iframe{max-width:100%}
.cx-contenu .alignleft{float:left;margin:4px 18px 10px 0}
.cx-contenu .alignright{float:right;margin:4px 0 10px 18px}
.cx-contenu .aligncenter{display:block;margin-left:auto;margin-right:auto}
.cx-contenu::after{content:"";display:table;clear:both}
.cx-contenu .wpj-jtoc{margin:0 0 24px!important;border-radius:12px}

/* Encadré produit */
.cx-produit{margin:8px 0 26px;border:1px solid var(--trait);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 6px 18px rgba(40,47,55,.06)}
.cx-produit__corps{display:flex;gap:14px;padding:14px}
.cx-produit__image{width:96px;height:96px;object-fit:cover;border-radius:10px;flex-shrink:0;background:var(--fond-doux)}
.cx-produit__textes{display:flex;flex-direction:column;gap:4px;min-width:0}
.cx-produit__nom{font-family:var(--serif);font-size:18px;font-weight:600;line-height:1.25;color:var(--encre);text-decoration:none}
a.cx-produit__nom:hover{color:var(--accent);text-decoration:underline}
.cx-produit a:has(.cx-produit__image){flex-shrink:0;display:block}
.cx-produit__pied{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:var(--fond-doux);border-top:1px solid var(--trait)}
.cx-produit__prix{font-size:18px;font-weight:700;color:var(--encre)}

/* Autrice, à lire aussi */
.cx-autrice{margin-top:12px;border-top:1px solid var(--trait);border-bottom:1px solid var(--trait);padding:22px 0;display:flex;gap:14px;align-items:flex-start}
.cx-autrice__nom{display:block;font-family:var(--serif);font-size:19px;font-weight:600}
.cx-autrice__bio{display:block;font-size:14px;line-height:1.5;color:var(--doux);margin-top:4px}
.cx-sommaire{border:1px solid var(--trait);border-radius:16px;padding:20px 22px}
.cx-sommaire ol{margin:0;padding:0 0 0 18px;font-size:15px;line-height:1.5}
.cx-sommaire li{margin-bottom:8px}
.cx-sommaire a{color:var(--texte);text-decoration:none}
.cx-sommaire a:hover{color:var(--accent)}
.cx-encart-cote{background:var(--fond-doux);border-radius:16px;padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.cx-encart-cote__titre{font-family:var(--serif);font-size:20px;font-weight:600;line-height:1.25}

.cx-section{padding:28px 0 8px}
.cx-liste{display:flex;flex-direction:column}
.cx-ligne{display:flex;gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--trait);text-decoration:none;color:var(--encre)}
.cx-ligne:last-child{border-bottom:1px solid var(--trait)}
.cx-ligne img{width:96px;height:76px;object-fit:cover;border-radius:10px;flex-shrink:0}
.cx-ligne__textes{display:flex;flex-direction:column;gap:4px}
.cx-ligne__titre{font-size:16px;font-weight:500;line-height:1.35;color:var(--encre)}
.cx-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.cx-carte{text-decoration:none;color:var(--encre);display:flex;flex-direction:column;gap:10px}
.cx-carte img{width:100%;height:200px;object-fit:cover;border-radius:14px;background:var(--fond-doux)}
.cx-carte__titre{font-size:18px;font-weight:500;line-height:1.35;color:var(--encre)}
.cx-carte:hover .cx-carte__titre{color:var(--accent)}
.cx-image-vide{display:block;width:100%;height:200px;border-radius:14px;background:linear-gradient(135deg,var(--rose-pale),var(--fond-doux))}
.cx-ligne .cx-image-vide{width:96px;height:76px;flex-shrink:0;border-radius:10px}

/* Accueil */
.cx-intro{background:var(--fond-doux);padding:26px 0 22px}
.cx-intro__grille{display:flex;flex-wrap:wrap;gap:32px;align-items:center}
.cx-intro__texte{flex:1 1 380px;display:flex;flex-direction:column;gap:12px}
.cx-intro h1{font-family:var(--serif);font-weight:700;font-size:32px;line-height:1.15;margin:0}
.cx-intro p{margin:0;font-size:16px;line-height:1.55;color:var(--doux)}
.cx-une{flex:1 1 440px;text-decoration:none;color:var(--encre);display:flex;flex-direction:column;gap:10px}
.cx-une img{width:100%;height:220px;object-fit:cover;border-radius:16px}
.cx-une__titre{font-family:var(--serif);font-size:26px;font-weight:600;line-height:1.2}
.cx-recherche label{display:block;font-size:13px;font-weight:500;color:var(--doux);margin-bottom:6px}
.cx-recherche__champ{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e3d9dd;border-radius:12px;padding:0 6px 0 14px;min-height:48px;max-width:480px}
.cx-recherche input{border:0;outline:none;flex:1;font-size:16px;font-family:var(--sans);background:transparent;color:var(--encre);min-height:44px;min-width:0}
.cx-recherche button{border:0;background:transparent;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:8px}
.cx-themes{display:flex;gap:8px;overflow-x:auto;padding:16px 0;border-bottom:1px solid var(--trait);scrollbar-width:none}
.cx-themes a{flex-shrink:0;text-decoration:none;font-size:14px;font-weight:500;color:var(--encre);background:var(--rose-pale);border-radius:999px;padding:0 16px;min-height:40px;display:flex;align-items:center}
.cx-themes a[aria-current]{background:var(--encre);color:#fff}
.cx-boutique{margin:24px 0 0;background:var(--encre);border-radius:18px;padding:22px 18px;color:#fff;display:flex;flex-wrap:wrap;gap:24px;align-items:center}
.cx-boutique__texte{flex:1 1 300px;display:flex;flex-direction:column;gap:8px}
.cx-boutique__texte h2{font-family:var(--serif);font-weight:600;font-size:23px;margin:0;color:#fff}
.cx-boutique__texte p{margin:0;color:#dfe1e6;font-size:15px}
.cx-boutique .cx-etiquette{color:var(--rose);margin:0}
.cx-boutique__produits{flex:2 1 300px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cx-boutique__produit{text-decoration:none;background:#fff;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:6px;color:var(--encre)}
.cx-boutique__produit img{width:100%;height:120px;object-fit:contain;border-radius:8px;background:var(--fond-doux)}
.cx-boutique__produit span{font-size:14px;font-weight:500;line-height:1.3}
.cx-boutique__produit strong{font-size:15px}

/* Archives */
.cx-archive-tete{padding:28px 0 8px}
.cx-archive-tete h1{font-family:var(--serif);font-weight:700;font-size:32px;margin:6px 0 8px}
.cx-archive-tete p{margin:0;color:var(--doux)}
.cx-archive-intro{max-width:720px;margin-top:14px}
.cx-archive-intro p{font-size:17px;line-height:1.75;color:var(--doux)}
.cx-archive-desc{max-width:var(--lecture);margin:48px 0 8px;padding-top:32px;border-top:1px solid var(--trait)}
.cx-archive-desc h2{font-family:var(--serif);font-weight:600;font-size:22px;line-height:1.3;color:var(--encre);margin:28px 0 10px}
.cx-archive-desc h2:first-child{margin-top:0}
.cx-archive-desc p{margin:0 0 16px;font-size:16px;line-height:1.75;color:var(--texte)}
.cx-pagination{margin:32px 0 8px}
.cx-pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px}
.cx-pagination .page-numbers{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--trait);border-radius:10px;text-decoration:none;color:var(--encre);padding:0 12px}
.cx-pagination .current{background:var(--encre);color:#fff;border-color:var(--encre)}

/* Pied de page */
.cx-pied{margin-top:48px;background:var(--encre);color:#fff}
.cx-pied .cx-conteneur{padding-top:28px;padding-bottom:28px;display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;align-items:center}
.cx-pied__nom{display:block;font-family:var(--serif);font-size:22px;font-weight:700}
.cx-pied__accroche{display:block;font-size:13px;color:#c9ccd3;margin-top:4px}
.cx-pied nav{display:flex;flex-wrap:wrap;gap:18px;font-size:14px}
.cx-pied a{color:#fff}

/* Ordinateur */
@media (min-width:1024px){
  body{font-size:18px}
  .cx-conteneur{padding:0 32px}
  .cx-entete .cx-conteneur{min-height:72px}
  .cx-logo__nom{font-size:26px}
  .cx-menu-case,.cx-menu-bouton{display:none}
  .cx-nav{order:1;flex-basis:auto;display:flex;flex-direction:row;flex-wrap:wrap;gap:26px;padding:0;margin-right:auto}
  .cx-logo{margin-right:0;flex:0 0 auto}
  .cx-entete .cx-conteneur{gap:24px}
  .cx-entete__boutique{order:2}
  .cx-nav a{font-size:15px;padding:6px 0;border-top:0;border-bottom:2px solid transparent}
  .cx-nav a:hover,.cx-nav a[aria-current]{border-bottom-color:var(--accent)}
  .cx-article{padding-top:32px}
  .cx-article__titre{font-size:56px;line-height:1.08;margin:18px 0 20px}
  .cx-article__chapo{font-size:20px}
  .cx-article__image{height:460px;border-radius:20px;margin-top:32px}
  .cx-grille-article{gap:56px;margin-top:40px}
  .cx-colonne-cote{display:flex}
  .cx-contenu{font-size:18px;line-height:1.75}
  .cx-contenu p{margin-bottom:20px}
  .cx-contenu h2{font-size:30px;margin:44px 0 16px}
  .cx-contenu .wpj-jtoc{display:none!important}
  .cx-produit{display:flex}
  .cx-produit__corps{flex:1 1 auto;padding:20px 22px}
  .cx-produit__image{width:140px;height:140px}
  .cx-produit__nom{font-size:22px}
  .cx-produit__pied{flex-direction:column;justify-content:center;align-items:flex-start;border-top:0;border-left:1px solid var(--trait);min-width:200px;padding:20px 22px}
  .cx-intro{padding:48px 0}
  .cx-intro h1{font-size:52px;line-height:1.08}
  .cx-intro p{font-size:19px}
  .cx-une img{height:320px;border-radius:20px}
  .cx-une__titre{font-size:30px}
  .cx-titre-section{font-size:32px}
  .cx-section{padding:48px 0 8px}
  .cx-boutique{margin-top:48px;padding:36px;border-radius:24px}
  .cx-boutique__texte h2{font-size:32px}
  .cx-boutique__produit img{height:150px}
  .cx-archive-tete h1{font-size:46px}
  .cx-pied .cx-conteneur{padding-top:40px;padding-bottom:40px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Plusieurs produits à la suite */
.cx-produits{margin:8px 0 26px}
.cx-produits .cx-produit{margin:0}
.cx-produits .cx-produit+.cx-produit{margin-top:12px}

/* Sommaire mobile (le sommaire de la colonne de droite le remplace sur ordinateur) */
.cx-sommaire-mobile{margin:0 0 24px;border:1px solid var(--trait);border-radius:12px;background:#fff}
.cx-sommaire-mobile summary{min-height:52px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:500;font-size:15px;list-style:none}
.cx-sommaire-mobile summary::-webkit-details-marker{display:none}
.cx-sommaire-mobile summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--encre);border-bottom:2px solid var(--encre);transform:rotate(45deg);margin-top:-4px}
.cx-sommaire-mobile[open] summary::after{transform:rotate(-135deg);margin-top:4px}
.cx-sommaire-mobile ol{margin:0;padding:4px 16px 14px 34px;font-size:15px;line-height:1.5}
.cx-sommaire-mobile li{margin-bottom:8px}
.cx-sommaire-mobile a{color:var(--texte);text-decoration:none}
@media (min-width:1024px){.cx-sommaire-mobile{display:none}}

/* Newsletter */
.cx-newsletter{margin:36px 0 8px;background:var(--rose-pale);border-radius:18px;padding:24px 20px;display:flex;flex-wrap:wrap;gap:20px 36px;align-items:center}
.cx-newsletter__texte{flex:1 1 300px}
.cx-newsletter__texte h2{font-family:var(--serif);font-weight:600;font-size:24px;line-height:1.25;margin:0 0 8px;color:var(--encre)}
.cx-newsletter__texte p{margin:0;font-size:16px;line-height:1.6;color:var(--texte)}
.cx-newsletter__texte .cx-etiquette--rose{color:var(--accent-fonce);margin-bottom:8px;font-size:13px}
.cx-newsletter__form{flex:1 1 340px}
.cx-newsletter__form label{display:block;font-size:14px;font-weight:500;margin-bottom:6px;color:var(--encre)}
.cx-newsletter__ligne{display:flex;flex-wrap:wrap;gap:10px}
.cx-newsletter__ligne input{flex:1 1 200px;min-width:0;min-height:48px;border:1px solid #e3d9dd;border-radius:999px;padding:0 18px;font-size:16px;font-family:var(--sans);background:#fff;color:var(--encre)}
.cx-newsletter__ligne input:focus{outline:2px solid var(--accent);outline-offset:1px}
.cx-newsletter__ligne .cx-bouton{min-height:48px}
.cx-newsletter__ligne .cx-bouton:disabled{opacity:.6;cursor:wait}
.cx-newsletter__piege{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.cx-newsletter__message{margin:10px 0 0;font-size:15px;font-weight:500;min-height:1px}
.cx-newsletter__form--ok .cx-newsletter__message{color:#1f6b3a}
.cx-newsletter__form--erreur .cx-newsletter__message{color:var(--accent-fonce)}
.cx-newsletter__legal{margin:10px 0 0;font-size:12.5px;line-height:1.5;color:var(--doux)}
.cx-newsletter__legal a{color:var(--doux)}
@media (min-width:1024px){.cx-newsletter{padding:32px 36px;margin-top:48px}.cx-newsletter__texte h2{font-size:28px}}

/* Classes utilitaires (au lieu de style="…") */
.cx-espace{margin-top:24px}
.cx-surtitre--gris{color:var(--gris)}
.cx-etiquette--encre{color:var(--encre)}
.cx-etiquette--serre{margin:0}
.cx-bouton--gauche{align-self:flex-start;margin-top:6px}
