/*
Theme Name: Recettes Mixte
Theme URI: https://recettesmixte.com/
Author: Ahmed Mouatarif
Author URI: https://recettesmixte.com/
Description: Thème culinaire professionnel personnalisé pour Recettes Mixte.
Template: generatepress
Version: 8.15.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recettesmixte
*/

/* ---------- Variables par style ---------- */
:root{
  --rm-bg:#fff; --rm-surface:#fff; --rm-ink:#1f2328; --rm-muted:#5d6570; --rm-line:#e6e3dd;
  --rm-accent:#e8590c; --rm-accent-ink:#fff; --rm-soft:#fff4ec; --rm-star:#f2a20c;
  --rm-radius:12px; --rm-head:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --rm-body:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --rm-maxw:1180px;
}
/* A : pratique et moderne (inspiration RecipeTin Eats) */
body.rm-skin-a{ --rm-accent:#d9480f; --rm-soft:#fff1e8; --rm-radius:10px; }
/* B : chaleureux et éditorial (inspiration Sally's Baking Addiction) */
body.rm-skin-b{ --rm-bg:#fbf7f2; --rm-surface:#fff; --rm-ink:#2b2420; --rm-muted:#6f645c; --rm-line:#eadfd3;
  --rm-accent:#b4534b; --rm-soft:#f6e9e4; --rm-radius:4px;
  --rm-head:Georgia,"Times New Roman",Cambria,serif; }
/* C : Recettes Mixte (vert olive + safran, identité du logo) */
body.rm-skin-c{ --rm-bg:#fcfbf7; --rm-ink:#1e2a22; --rm-muted:#5b665e; --rm-line:#e3e6dc;
  --rm-accent:#3f7d3a; --rm-soft:#eef5e9; --rm-star:#e9a400; --rm-radius:16px;
  --rm-head:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; }

/* ---------- Base ---------- */
body{ background:var(--rm-bg); color:var(--rm-ink); font-family:var(--rm-body); font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased; }
h1,h2,h3,.main-title,.rm-h{ font-family:var(--rm-head); color:var(--rm-ink); line-height:1.2; letter-spacing:-.01em; }
h1{ font-size:clamp(1.75rem,5.5vw,2.6rem); font-weight:700; }
h2{ font-size:clamp(1.35rem,4vw,1.8rem); margin-top:1.6em; }
a{ color:var(--rm-accent); text-underline-offset:2px; }
img{ height:auto; }
.rm-wrap{ max-width:var(--rm-maxw); margin:0 auto; padding:0 16px; }

/* ---------- En-tête compact ---------- */
.site-header{ background:var(--rm-surface); border-bottom:1px solid var(--rm-line); position:sticky; top:0; z-index:50; }
.inside-header{ padding:10px 16px; }
.site-logo img,.header-image{ max-height:44px; width:auto; }
.main-navigation{ background:var(--rm-surface); }
.main-navigation .main-nav ul li a{ font-weight:600; font-size:15px; color:var(--rm-ink); }
.main-navigation .menu-bar-item a,.menu-toggle{ color:var(--rm-ink); }

/* ---------- Puces de catégories ---------- */
.rm-chips{ display:flex; gap:10px; overflow-x:auto; padding:14px 16px; margin:0; list-style:none; scrollbar-width:none; }
.rm-chips::-webkit-scrollbar{ display:none; }
.rm-chip{ flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none; color:var(--rm-ink); font-size:13px; font-weight:600; width:76px; text-align:center; }
.rm-chip img{ width:64px; height:64px; border-radius:50%; object-fit:cover; border:2px solid var(--rm-surface); box-shadow:0 0 0 2px var(--rm-line); }
body.rm-skin-a .rm-chip img{ border-radius:14px; }

/* ---------- Cartes recettes ---------- */
.rm-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
@media (min-width:760px){ .rm-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; } }
@media (min-width:1080px){ .rm-grid.rm-grid-4{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
.rm-card{ background:var(--rm-surface); border-radius:var(--rm-radius); overflow:hidden; display:flex; flex-direction:column; text-decoration:none; color:var(--rm-ink); border:1px solid var(--rm-line); }
body.rm-skin-b .rm-card{ border:0; background:transparent; }
.rm-card-img{ position:relative; aspect-ratio:1200/920; background:var(--rm-soft); }
.rm-card-img img{ width:100%; height:100%; object-fit:cover; display:block; }
body.rm-skin-c .rm-card-img{ margin:8px 8px 0; border-radius:calc(var(--rm-radius) - 6px); overflow:hidden; }
.rm-card-body{ padding:10px 12px 14px; display:flex; flex-direction:column; gap:4px; }
body.rm-skin-b .rm-card-body{ padding:10px 2px 6px; text-align:center; }
.rm-card-cat{ font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--rm-accent); }
.rm-card-title{ font-family:var(--rm-head); font-size:16px; font-weight:700; line-height:1.3; margin:0; }
@media (min-width:760px){ .rm-card-title{ font-size:18px; } }
.rm-card-meta{ font-size:12.5px; color:var(--rm-muted); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
body.rm-skin-b .rm-card-meta{ justify-content:center; }

/* Étoiles (affichage) */
.rm-stars{ --pct:0%; display:inline-block; font-size:14px; line-height:1; letter-spacing:1px; position:relative; color:#d7d2c8; font-family:Arial,sans-serif; }
.rm-stars::before{ content:"★★★★★"; }
.rm-stars::after{ content:"★★★★★"; position:absolute; left:0; top:0; width:var(--pct); overflow:hidden; color:var(--rm-star); white-space:nowrap; }

/* ---------- Accueil ---------- */
.rm-hero{ display:grid; gap:0; margin:8px 0 6px; }
.rm-hero .rm-card{ border-radius:var(--rm-radius); }
.rm-hero .rm-card-img{ aspect-ratio:4/3; margin:0; border-radius:0; }
.rm-hero .rm-card-title{ font-size:clamp(1.3rem,5vw,2rem); }
@media (min-width:900px){ .rm-hero .rm-card{ flex-direction:row; } .rm-hero .rm-card-img{ flex:0 0 58%; } .rm-hero .rm-card-body{ justify-content:center; padding:28px; } }
.rm-section{ margin:28px 0; }
.rm-section-head{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:12px; }
.rm-section-head h2{ margin:0; font-size:clamp(1.25rem,4.5vw,1.6rem); }
.rm-section-head a{ font-size:14px; font-weight:700; text-decoration:none; white-space:nowrap; }
body.rm-skin-b .rm-section-head{ justify-content:center; flex-direction:column; align-items:center; text-align:center; }
body.rm-skin-b .rm-section-head h2{ font-style:italic; font-weight:400; font-size:clamp(1.5rem,5vw,2rem); }

/* ---------- Catégorie ---------- */
.rm-archive-head{ padding:20px 0 6px; }
.rm-archive-head h1{ margin:0 0 6px; }
.rm-archive-desc{ color:var(--rm-muted); font-size:15px; max-width:70ch; }
.rm-pagination{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:26px 0; }
.rm-pagination .page-numbers{ min-width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; border:1px solid var(--rm-line); text-decoration:none; color:var(--rm-ink); background:var(--rm-surface); padding:0 12px; }
.rm-pagination .current{ background:var(--rm-accent); color:var(--rm-accent-ink); border-color:var(--rm-accent); }

/* ---------- Article recette ---------- */
.rm-entry-meta{ display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; margin:6px 0 14px; font-size:14px; color:var(--rm-muted); }
.rm-entry-meta a{ color:var(--rm-muted); }
.rm-actions{ display:flex; gap:10px; margin:6px 0 18px; }
.rm-btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:0 18px; border-radius:999px; font-weight:700; font-size:15px; text-decoration:none; border:2px solid var(--rm-accent); cursor:pointer; font-family:var(--rm-body); }
.rm-btn-primary{ background:var(--rm-accent); color:var(--rm-accent-ink); flex:1; }
.rm-btn-ghost{ background:transparent; color:var(--rm-accent); }
body.rm-skin-b .rm-btn{ border-radius:3px; text-transform:uppercase; letter-spacing:.06em; font-size:13px; }
.entry-content img{ border-radius:var(--rm-radius); }

/* ---------- Carte recette ---------- */
.rm-recipe{ background:var(--rm-surface); border:1px solid var(--rm-line); border-radius:var(--rm-radius); margin:32px 0; overflow:hidden; scroll-margin-top:80px; }
body.rm-skin-a .rm-recipe{ border:2px solid var(--rm-accent); }
body.rm-skin-c .rm-recipe{ box-shadow:0 1px 0 var(--rm-line), 0 12px 32px -18px rgba(30,42,34,.35); }
.rm-recipe-top{ display:grid; gap:14px; padding:18px; }
@media (min-width:700px){ .rm-recipe-top{ grid-template-columns:200px 1fr; align-items:center; } }
.rm-recipe-top img{ width:100%; aspect-ratio:1200/920; object-fit:cover; border-radius:calc(var(--rm-radius) - 4px); }
.rm-recipe-title{ margin:0; font-size:clamp(1.3rem,5vw,1.7rem); }
.rm-recipe-rating{ display:flex; align-items:center; gap:8px; font-size:14px; color:var(--rm-muted); margin-top:6px; }
.rm-recipe-rating .rm-stars{ font-size:18px; }
.rm-recipe-buttons{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.rm-recipe-facts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(100px,1fr)); border-top:1px solid var(--rm-line); border-bottom:1px solid var(--rm-line); background:var(--rm-soft); }
.rm-fact{ padding:12px 10px; text-align:center; font-size:12px; color:var(--rm-muted); text-transform:uppercase; letter-spacing:.05em; }
.rm-fact strong{ display:block; font-size:16px; color:var(--rm-ink); text-transform:none; letter-spacing:0; margin-top:2px; }
.rm-recipe-body{ padding:6px 18px 18px; }
.rm-recipe-body h3{ font-size:1.25rem; margin:22px 0 10px; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.rm-scale{ display:inline-flex; border:1px solid var(--rm-line); border-radius:999px; overflow:hidden; font-family:var(--rm-body); }
.rm-scale button{ border:0; background:transparent; padding:6px 12px; font-weight:700; font-size:13px; color:var(--rm-ink); cursor:pointer; min-height:36px; }
.rm-scale button[aria-pressed="true"]{ background:var(--rm-accent); color:var(--rm-accent-ink); }
.rm-ingredients{ list-style:none; margin:0; padding:0; }
.rm-ingredients li{ border-bottom:1px dashed var(--rm-line); }
.rm-ingredients label{ display:flex; gap:12px; align-items:flex-start; padding:10px 2px; cursor:pointer; }
.rm-ingredients input{ width:22px; height:22px; margin-top:2px; accent-color:var(--rm-accent); flex:0 0 auto; }
.rm-ingredients input:checked + span{ text-decoration:line-through; color:var(--rm-muted); }
.rm-steps{ list-style:none; counter-reset:rmstep; margin:0; padding:0; }
.rm-steps li{ counter-increment:rmstep; position:relative; padding:4px 0 16px 46px; }
.rm-steps li::before{ content:counter(rmstep); position:absolute; left:0; top:2px; width:32px; height:32px; border-radius:50%; background:var(--rm-accent); color:var(--rm-accent-ink); font-weight:700; display:flex; align-items:center; justify-content:center; font-size:15px; }
body.rm-skin-b .rm-steps li::before{ background:transparent; color:var(--rm-accent); border:2px solid var(--rm-accent); }
.rm-note{ background:var(--rm-soft); border-radius:calc(var(--rm-radius) - 4px); padding:12px 14px; font-size:15px; }

/* Notez cette recette */
.rm-rate{ border-top:1px solid var(--rm-line); padding:18px; text-align:center; }
.rm-rate fieldset{ border:0; margin:0; padding:0; }
.rm-rate legend{ font-family:var(--rm-head); font-weight:700; font-size:1.15rem; margin:0 auto 6px; }
.rm-rate-stars{ display:inline-flex; flex-direction:row-reverse; gap:4px; }
.rm-rate-stars input{ position:absolute; opacity:0; width:1px; height:1px; }
.rm-rate-stars label{ font-size:34px; line-height:1; color:#d7d2c8; cursor:pointer; padding:2px; font-family:Arial,sans-serif; }
.rm-rate-stars label:hover,.rm-rate-stars label:hover ~ label,.rm-rate-stars input:checked ~ label{ color:var(--rm-star); }
.rm-rate-stars input:focus-visible + label{ outline:3px solid var(--rm-accent); outline-offset:2px; border-radius:6px; }
.rm-rate-msg{ min-height:1.4em; font-size:14px; color:var(--rm-muted); margin-top:6px; }
.rm-hp{ position:absolute; left:-9999px; }

/* Recettes similaires */
.rm-related{ margin:34px 0; }

/* ---------- Publicités ---------- */
.code-block{ margin:24px auto !important; text-align:center; }
/* Le libellé « Annonce » vient d'Ad Inserter : pas de doublon. */

/* ---------- Pied de page ---------- */
.rm-footer{ background:var(--rm-ink); color:#e9e6df; padding:32px 0 20px; margin-top:40px; font-size:14px; }
body.rm-skin-c .rm-footer{ background:#203325; }
.rm-footer a{ color:#fff; text-decoration:none; }
.rm-footer-cols{ display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width:760px){ .rm-footer-cols{ grid-template-columns:2fr 1fr 1fr; } }
.rm-footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.rm-footer small{ display:block; margin-top:22px; color:#b9b4aa; }

/* ---------- Sélecteur de démonstration (staging seulement) ---------- */
.rm-demo-switch{ position:fixed; right:8px; top:50%; transform:translateY(-50%); z-index:999; background:#111; color:#fff; border-radius:14px; padding:4px; display:flex; flex-direction:column; gap:2px; font:700 13px/1 system-ui,sans-serif; box-shadow:0 6px 20px rgba(0,0,0,.25); opacity:.92; }
.rm-demo-switch a{ color:#fff; text-decoration:none; padding:10px 12px; border-radius:10px; text-align:center; }
.rm-demo-switch a.on{ background:#fff; color:#111; }

/* ---------- Impression : uniquement la carte recette ---------- */
@media print{
  /* Impression : seul le bloc #rm-print (copie de la carte recette) est imprimé. */
  body.rm-printing > *:not(#rm-print){ display:none !important; }
  #rm-print{ display:block !important; font:12pt/1.45 Georgia, "Times New Roman", serif; color:#000; }
  #rm-print h2{ font-size:20pt; margin:0 0 4pt; }
  #rm-print .rm-print-meta{ font-size:10pt; margin:0 0 10pt; }
  #rm-print .rm-facts{ display:flex; gap:14pt; border:1px solid #999; padding:6pt 8pt; margin:0 0 10pt; font-size:10pt; }
  #rm-print .rm-fact strong{ display:block; font-size:11pt; }
  #rm-print h3{ font-size:13pt; margin:12pt 0 4pt; border-bottom:1px solid #999; }
  #rm-print ul{ list-style:none; padding:0; margin:0; columns:2; column-gap:18pt; }
  #rm-print ul li{ break-inside:avoid; padding:2pt 0 2pt 14pt; position:relative; }
  #rm-print ul li::before{ content:""; position:absolute; left:0; top:5pt; width:8pt; height:8pt; border:1px solid #000; }
  #rm-print ol{ padding-left:18pt; margin:0; }
  #rm-print ol li{ margin:0 0 5pt; break-inside:avoid; }
  #rm-print img{ float:right; width:42mm; height:auto; margin:0 0 6pt 10pt; border-radius:3pt; }
  #rm-print .rm-print-src{ margin-top:12pt; font-size:9pt; color:#444; }
  @page{ margin:14mm; }
}
#rm-print{ display:none; }
}

/* ======================================================================
   Variantes de mise en page (démonstration) : A pratique, B éditorial, C Recettes Mixte
   ====================================================================== */

/* A – pratique : puces texte compactes, cartes plates, barre d'actions collante sur la recette */
body.rm-skin-a .rm-chip{ width:auto; flex-direction:row; padding:8px 14px; border-radius:999px; background:var(--rm-soft); color:var(--rm-accent); font-size:14px; }
body.rm-skin-a .rm-chip img{ display:none; }
body.rm-skin-a .rm-card{ border:0; border-radius:0; background:transparent; }
body.rm-skin-a .rm-card-img{ border-radius:var(--rm-radius); overflow:hidden; }
body.rm-skin-a .rm-card-body{ padding:8px 0 4px; }
body.rm-skin-a .rm-card-title{ font-size:15px; }
body.rm-skin-a .rm-hero .rm-card-body{ padding:12px 0; }
body.rm-skin-a .rm-section-head h2{ text-transform:uppercase; font-size:15px; letter-spacing:.08em; }
@media (max-width:759px){
  body.rm-skin-a.single-post .rm-actions-top{ position:fixed; left:0; right:0; bottom:0; z-index:60; margin:0; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:var(--rm-surface); box-shadow:0 -6px 18px rgba(0,0,0,.12); }
  body.rm-skin-a.single-post .rm-actions-top .rm-btn{ flex:1; }
  body.rm-skin-a.single-post{ padding-bottom:70px; }
}

/* B – éditorial chaleureux : grande photo d'ouverture avec titre en surimpression, onglets texte, carte recette encadrée */
body.rm-skin-b .rm-hero .rm-card{ position:relative; border-radius:0; }
body.rm-skin-b .rm-hero .rm-card-img{ aspect-ratio:4/5; }
body.rm-skin-b .rm-hero .rm-card-body{ position:absolute; left:0; right:0; bottom:0; padding:60px 18px 20px; text-align:left;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.72)); }
body.rm-skin-b .rm-hero .rm-card-title,body.rm-skin-b .rm-hero .rm-card-meta,body.rm-skin-b .rm-hero .rm-card-cat{ color:#fff; justify-content:flex-start; }
body.rm-skin-b .rm-hero .rm-stars{ color:rgba(255,255,255,.45); }
@media (min-width:900px){ body.rm-skin-b .rm-hero .rm-card-img{ flex:1 1 auto; aspect-ratio:16/7; } }
body.rm-skin-b .rm-chips{ gap:0; border-top:1px solid var(--rm-line); border-bottom:1px solid var(--rm-line); padding:0 8px; }
body.rm-skin-b .rm-chip{ width:auto; padding:13px 12px; font-family:var(--rm-head); font-weight:400; font-size:15px; font-style:italic; }
body.rm-skin-b .rm-chip img{ display:none; }
body.rm-skin-b .rm-section-head{ justify-content:center; text-align:center; flex-direction:column; gap:2px; }
body.rm-skin-b .rm-section-head h2{ font-weight:400; font-size:clamp(1.5rem,5vw,2rem); }
body.rm-skin-b .rm-card-img{ border-radius:2px; overflow:hidden; }
body.rm-skin-b .rm-recipe{ border:1px solid var(--rm-line); outline:1px solid var(--rm-line); outline-offset:5px; margin:40px 6px; }
body.rm-skin-b .rm-recipe-top{ text-align:center; }
body.rm-skin-b .rm-recipe-top .rm-actions{ justify-content:center; }
body.rm-skin-b .rm-btn{ border-radius:2px; text-transform:uppercase; letter-spacing:.08em; font-size:13px; }

/* C – Recettes Mixte : cartes arrondies, pastilles photo rondes (réglages de base ci-dessus) */
.rm-archive-intro{ color:var(--rm-muted); margin:4px 0 0; font-size:15px; }
.rm-archive-desc{ margin:40px 0 20px; padding-top:24px; border-top:1px solid var(--rm-line); font-size:16px; }

/* ======================================================================
   H – Hybride C + A : identité Recettes Mixte noir / blanc / jaune, simplicité du modèle A
   ====================================================================== */
body.rm-skin-h{ --rm-bg:#fff; --rm-surface:#fff; --rm-ink:#111; --rm-muted:#5e5e5e; --rm-line:#ebebeb;
  --rm-accent:#111; --rm-accent-ink:#fff; --rm-yellow:#f7bf09; --rm-soft:#fff8de; --rm-star:#f5b400; --rm-radius:14px;
  --rm-head:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; }
body.rm-skin-h h1,body.rm-skin-h h2,body.rm-skin-h h3{ font-weight:800; letter-spacing:-.02em; }
body.rm-skin-h .entry-content a{ color:var(--rm-ink); text-decoration:underline; text-decoration-color:var(--rm-yellow); text-decoration-thickness:2px; }
/* En-tête */
body.rm-skin-h .site-header{ border-bottom:1px solid var(--rm-line); }
body.rm-skin-h .inside-header{ padding:8px 14px; }
/* Boutons : jaune + texte noir (contraste 11:1), contour noir */
body.rm-skin-h .rm-btn{ border-radius:999px; }
body.rm-skin-h .rm-btn-primary{ background:var(--rm-yellow); border-color:var(--rm-yellow); color:#111; }
body.rm-skin-h .rm-btn-ghost{ border-color:#111; color:#111; }
/* Catégories : pastilles photo de C, liseré jaune au survol */
body.rm-skin-h .rm-chip img{ width:60px; height:60px; box-shadow:0 0 0 2px var(--rm-line); }
body.rm-skin-h .rm-chip:hover img,body.rm-skin-h .rm-chip:focus-visible img{ box-shadow:0 0 0 3px var(--rm-yellow); }
/* Cartes : plates comme A, coins arrondis de C */
body.rm-skin-h .rm-card{ border:0; background:transparent; border-radius:0; }
body.rm-skin-h .rm-card-img{ border-radius:var(--rm-radius); overflow:hidden; }
body.rm-skin-h .rm-card-body{ padding:9px 2px 4px; }
body.rm-skin-h .rm-card-cat{ color:#111; display:inline-flex; align-items:center; gap:6px; }
body.rm-skin-h .rm-card-cat::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--rm-yellow); }
body.rm-skin-h .rm-card-title{ font-size:15.5px; font-weight:750; }
body.rm-skin-h .rm-hero .rm-card-body{ padding:12px 2px 6px; }
body.rm-skin-h .rm-hero .rm-card-img{ border-radius:var(--rm-radius); }
/* Titres de section : trait jaune */
body.rm-skin-h .rm-section-head h2{ position:relative; padding-bottom:6px; }
body.rm-skin-h .rm-section-head h2::after{ content:""; position:absolute; left:0; bottom:0; width:34px; height:4px; border-radius:2px; background:var(--rm-yellow); }
body.rm-skin-h .rm-section-head a{ color:#111; }
/* Carte recette */
body.rm-skin-h .rm-recipe{ border:1px solid var(--rm-line); border-top:6px solid var(--rm-yellow); box-shadow:0 12px 30px -20px rgba(0,0,0,.35); }
body.rm-skin-h .rm-steps li::before{ background:var(--rm-yellow); color:#111; }
body.rm-skin-h .rm-scale button[aria-pressed="true"]{ background:#111; color:#fff; }
body.rm-skin-h .rm-ingredients input{ accent-color:#111; }
body.rm-skin-h .rm-pagination .current{ background:#111; border-color:#111; color:#fff; }
/* Pied de page noir */
body.rm-skin-h .rm-footer{ background:#111; color:#d9d9d9; }
body.rm-skin-h .rm-footer a:hover{ color:var(--rm-yellow); }

/* ---------- Logo (SVG vectoriel, 4,7 Ko compressé) ---------- */
.site-logo img.rm-logo,.site-logo .rm-logo{ height:32px; width:auto; max-height:none; }
@media (min-width:768px){ .site-logo img.rm-logo{ height:42px; } }
.rm-footer-logo{ height:34px; width:auto; display:block; }

/* ---------- Recherche d'accueil ---------- */
.rm-search{ display:flex; align-items:center; margin:14px 0 6px; border:1.5px solid var(--rm-ink); border-radius:999px; background:var(--rm-surface); overflow:hidden; height:48px; }
.rm-search input{ flex:1; border:0 !important; background:transparent !important; padding:0 18px !important; font-size:16px; height:100%; outline:0; color:var(--rm-ink); min-width:0; }
.rm-search button{ width:48px; height:48px; border:0; background:var(--rm-yellow,var(--rm-accent)); color:#111; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.rm-search:focus-within{ box-shadow:0 0 0 3px rgba(247,191,9,.45); }

/* ---------- Formulaire de contact ---------- */
.rm-contact{ max-width:620px; margin:24px 0; }
.rm-contact label{ display:block; font-weight:700; font-size:15px; margin-bottom:4px; }
.rm-contact label span{ font-weight:400; color:var(--rm-muted); }
.rm-contact input[type=text],.rm-contact input[type=email],.rm-contact textarea{ width:100%; border:1.5px solid #cfcfcf; border-radius:10px; padding:11px 13px; font-size:16px; background:#fff; }
.rm-contact input:focus,.rm-contact textarea:focus{ border-color:#111; outline:3px solid rgba(247,191,9,.45); }
.rm-contact-note{ font-size:13px; color:var(--rm-muted); }
.rm-contact-msg{ padding:12px 14px; border-radius:10px; font-weight:600; }
.rm-contact-ok{ background:#eaf7ec; color:#1d5e2a; }
.rm-contact-err{ background:#fdecea; color:#8a1f12; }
.rm-step-name{ display:block; margin-bottom:2px; }
/* Champs et boutons : même police que le texte (aucune police externe) */
button,input,select,textarea,.main-navigation,.main-title,h1,h2,h3,h4,h5,h6{ font-family:var(--rm-head); }
body,p,li,.entry-content{ font-family:var(--rm-body); }
.menu-toggle,.main-navigation .menu-toggle,.main-navigation .menu-bar-item>a{ background:transparent !important; }
@media (max-width:767px){ body.rm-skin-h .inside-article{ padding:18px 16px; } body.rm-skin-h .site-main{ margin:0; } }
body.rm-skin-h .entry-content{ margin-top:12px; }
body.rm-skin-h .entry-content a.rm-btn,body.rm-skin-h .entry-content .rm-card{ text-decoration:none; }
body.rm-skin-h .generate-back-to-top{ background:#111; color:#f7bf09; border-radius:50%; }
body.rm-skin-h .rm-hero .rm-card-title{ font-size:clamp(1.25rem,4.6vw,2.1rem); }
@media (min-width:900px){ body.rm-skin-h .rm-hero .rm-card{ background:var(--rm-soft); border-radius:var(--rm-radius); overflow:hidden; } body.rm-skin-h .rm-hero .rm-card-img{ border-radius:0; } body.rm-skin-h .rm-hero .rm-card-body{ padding:28px 36px; gap:10px; } body.rm-skin-h .rm-hero .rm-card-meta{ font-size:14px; } }
/* Carte recette : deux colonnes seulement si la carte elle-même est assez large (requête de conteneur) */
.rm-recipe{ container-type:inline-size; }
@media (min-width:700px){ .rm-recipe-top{ grid-template-columns:1fr; } }
@container (min-width:600px){ .rm-recipe-top{ grid-template-columns:220px 1fr; align-items:center; } }
.rm-recipe-title{ overflow-wrap:anywhere; }
/* Tablette : menu sur une ligne */
@media (min-width:769px) and (max-width:1099px){ .main-navigation .main-nav ul li a{ padding-left:9px; padding-right:9px; font-size:13px; } .site-logo img.rm-logo{ height:34px; } }
@media (min-width:769px) and (max-width:1099px){ .main-navigation .main-nav ul li a{ text-transform:none; letter-spacing:0; padding-left:7px; padding-right:7px; } }
body.rm-skin-h .main-navigation .main-nav ul li.current-menu-item>a,body.rm-skin-h .main-navigation .main-nav ul li.current-menu-ancestor>a,body.rm-skin-h .main-navigation .main-nav ul li:hover>a{ color:#111; box-shadow:inset 0 -3px 0 var(--rm-yellow); }
@media (min-width:769px) and (max-width:1099px){ .main-navigation .inside-navigation,.main-navigation .main-nav>ul{ flex-wrap:nowrap; } .main-navigation .menu-item-has-children .dropdown-menu-toggle{ padding-left:3px; padding-right:4px; } .main-navigation .menu-bar-item>a{ padding-left:8px; padding-right:8px; } }
body.rm-skin-h .main-navigation .main-nav ul li[class*="current-menu-"]>a,body.rm-skin-h .main-navigation .main-nav ul li[class*="current-menu-"]>a:hover{ color:#111; box-shadow:inset 0 -3px 0 var(--rm-yellow); }

/* ===== Proportions (v0.3) ===== */
/* Ordinateur : article en colonne centrée de 960 px (texte ≈ 860 px), carte recette pleine largeur de la colonne */
@media (min-width:769px){
  body.rm-skin-h.single-post .site-content{ display:block; }
  body.rm-skin-h.single-post #primary,body.rm-skin-h.single-post .content-area{ width:100%; max-width:960px; margin:0 auto; float:none; }
  body.rm-skin-h.single-post .inside-article{ padding:40px 48px; }
}
/* Tablette : images moins hautes, l'information arrive plus vite */
@media (min-width:600px) and (max-width:1099px){
  body.single-post .featured-image img,body.single-post .post-image img{ width:100%; aspect-ratio:16/9; max-height:440px; object-fit:cover; }
  .rm-hero .rm-card-img{ aspect-ratio:16/9; }
}
@media (min-width:600px) and (max-width:899px){ body.rm-skin-b .rm-hero .rm-card-img{ aspect-ratio:16/9; } }
@media (min-width:1100px){ body.single-post .featured-image img{ width:100%; aspect-ratio:16/9; max-height:480px; object-fit:cover; } }

/* 0.3.1 : les <button> héritent de la casse majuscule de GeneratePress ; on aligne sur les liens. */
body:not(.rm-skin-b) button.rm-btn{ text-transform:none; letter-spacing:0; }
@media (min-width:769px){ body.rm-skin-h .rm-chips{ justify-content:space-between; padding:20px 0 8px; } body.rm-skin-h .rm-chip{ width:112px; font-size:14px; } body.rm-skin-h .rm-chip img{ width:84px; height:84px; } }

/* ===== 0.3.2 : lisibilité des articles (enfants directs du texte : la carte recette n'est pas touchée) ===== */
.single-post .entry-content{ overflow-wrap:break-word; }
.single-post .entry-content > *:first-child{ margin-top:0; }
.single-post .entry-content > h2{ margin:1.6em 0 .6em; line-height:1.25; }
.single-post .entry-content > h3,.single-post .entry-content > h4{ margin:1.3em 0 .5em; line-height:1.3; }
.single-post .entry-content > h2 + h3,.single-post .entry-content > h2 + h4{ margin-top:.4em; }
.single-post .entry-content > p{ margin:0 0 1em; }
.single-post .entry-content > ul,.single-post .entry-content > ol{ margin:0 0 1.2em 1.25em; padding:0; }
.single-post .entry-content > ul > li,.single-post .entry-content > ol > li{ margin:0 0 .35em; }
.single-post .entry-content img{ max-width:100%; height:auto; }
.single-post .entry-content > figure{ margin:1.2em 0; max-width:100%; }
.single-post .entry-content table{ display:block; max-width:100%; overflow-x:auto; }
.single-post .entry-content iframe,.single-post .entry-content video{ max-width:100%; }
@media (max-width:768px){ .single-post .entry-content > p,.single-post .entry-content > ul,.single-post .entry-content > ol{ font-size:17px; line-height:1.65; } .single-post .entry-content > h2{ font-size:1.35em; } .single-post .entry-content > h3{ font-size:1.15em; } }
.rm-print-photo{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--rm-muted); cursor:pointer; }
/* La photo de la carte n'est qu'une vignette : la grande photo reste celle du haut de l'article (pas de doublon). */
.rm-recipe-top{ grid-template-columns:84px 1fr !important; align-items:center; }
.rm-recipe-top img.rm-recipe-photo{ width:84px; height:84px; aspect-ratio:1; border-radius:12px; }
@container (min-width:600px){ .rm-recipe-top{ grid-template-columns:96px 1fr !important; } .rm-recipe-top img.rm-recipe-photo{ width:96px; height:96px; } }
/* En-tête de carte : vignette + titre + note sur deux colonnes, boutons sur toute la largeur */
.rm-recipe-top{ column-gap:14px; row-gap:8px; }
.rm-recipe-top > div{ display:contents; }
.rm-recipe-top img.rm-recipe-photo{ grid-row:1 / 3; align-self:start; }
.rm-recipe-top .rm-recipe-title{ grid-column:2; margin:0; align-self:end; }
.rm-recipe-top .rm-recipe-rating{ grid-column:2; align-self:start; }
.rm-recipe-top .rm-recipe-buttons{ grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:4px 0 0; }
.rm-recipe-top .rm-recipe-buttons .rm-btn-primary{ flex:1 1 auto; }
.rm-recipe-top .rm-print-photo{ flex-basis:100%; }
@container (min-width:600px){ .rm-recipe-top .rm-print-photo{ flex-basis:auto; } }

/* ===== 0.3.3 : contrôle qualité final ===== */
/* Grilles d'archives (catégories, pages 2+, recherche) : 3 colonnes sur ordinateur pour 9 recettes par page ; sur mobile, une carte seule en fin de liste prend toute la largeur. */
@media (min-width:1080px){ .rm-grid.rm-grid-arch{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; } }
@media (max-width:759px){ .rm-grid-arch > :last-child:nth-child(odd){ grid-column:1 / -1; } .rm-grid-arch > :last-child:nth-child(odd) .rm-card-img img{ aspect-ratio:16/9; } }
.rm-archive-count{ margin:0 0 12px; color:var(--rm-muted); font-size:15px; }
.rm-archive-head .rm-search{ margin:0 0 6px; }
.rm-page-num{ font-weight:400; color:var(--rm-muted); font-size:.7em; }
@media (max-width:480px){ .rm-pagination .rm-pg-txt{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); } }
.rm-pagination .page-numbers.dots{ border:0; background:none; min-width:24px; padding:0; }
/* Cibles tactiles confortables (44 px) */
.rm-section-head a{ display:inline-flex; align-items:center; min-height:44px; padding:0 4px; }
.rm-print-photo{ min-height:44px; }
.rm-print-photo input{ width:20px; height:20px; accent-color:#111; }
.rm-ingredients input[type=checkbox]{ width:22px; height:22px; accent-color:#111; }
.rm-entry-meta a{ display:inline-flex; align-items:center; min-height:32px; }
/* 0.3.4 : liens du pied de page plus faciles à toucher */
.rm-footer ul{ gap:2px; }
.rm-footer ul a{ display:inline-flex; align-items:center; min-height:40px; }
/* 0.3.9 : avertissement quand les quantités sont adaptées */
.rm-scale-note{ margin:8px 0 0; font-size:13px; color:#555; font-style:italic; }
@media print{ #rm-print .rm-print-note{ font-size:9.5pt; font-style:italic; margin:4pt 0 0; } }
/* 0.4.0 : partage social (SVG intégrés, aucun script externe) */
.rm-share{ border-top:1px solid var(--rm-line); padding:16px 18px 18px; text-align:center; }
.rm-share-t{ margin:0 0 10px; font-family:var(--rm-head); font-weight:700; font-size:1rem; }
.rm-share-row{ display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.rm-sh{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:#111; color:#fff; border:0; padding:0; cursor:pointer; text-decoration:none; transition:background .15s, color .15s, transform .15s; }
.rm-sh:hover,.rm-sh:focus-visible{ background:var(--rm-yellow,#f5c400); color:#111; transform:translateY(-1px); }
.rm-sh:focus-visible{ outline:3px solid #111; outline-offset:2px; }
.rm-share-msg{ min-height:1.3em; margin:8px 0 0; font-size:13px; color:var(--rm-muted); overflow-wrap:anywhere; }
.rm-engage{ margin:28px 0; border:1px solid var(--rm-line); border-radius:14px; background:#fff; }
.rm-engage .rm-rate{ border-top:0; }
@media print{ .rm-share,.rm-engage{ display:none !important; } }
.rm-share a.rm-sh, body.rm-skin-h .entry-content .rm-share a.rm-sh{ color:#fff; text-decoration:none; }
.rm-share a.rm-sh:hover, .rm-share a.rm-sh:focus-visible, body.rm-skin-h .entry-content .rm-share a.rm-sh:hover{ color:#111; }

/* 0.5.0 : bloc d'informations (RM Recettes) */
.rm-info{ margin:14px 0 18px; border:1px solid var(--rm-line); border-radius:14px; background:#fff; overflow:hidden; }
.rm-info-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(118px,1fr)); }
.rm-info-list li{ display:grid; grid-template-columns:auto 1fr; column-gap:10px; align-items:center; padding:12px 14px; border-bottom:1px solid var(--rm-line); border-right:1px solid var(--rm-line); margin:-1px -1px 0 0; }
.rm-info-list svg{ grid-row:span 2; color:#111; background:var(--rm-yellow,#f7bf09); border-radius:50%; padding:7px; width:36px; height:36px; box-sizing:border-box; }
.rm-info-k{ font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--rm-muted); }
.rm-info-list strong{ font-size:15px; line-height:1.25; color:var(--rm-ink); }
.rm-info-tools{ display:flex; gap:8px; flex-wrap:wrap; padding:10px 12px; background:#fafaf7; }
.rm-info-btn{ display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 14px; border-radius:999px; border:1px solid #111; background:#fff; color:#111 !important; font:600 14px/1 var(--rm-body); text-decoration:none !important; cursor:pointer; }
.rm-info-btn[aria-pressed="true"]{ background:#111; color:#fff !important; }
.rm-info-btn[hidden]{ display:none; }
@media print{ .rm-info{ display:none !important; } }
