/*
Theme Name: Les Recettes de Véro
Theme URI: https://example.com
Author: Fait avec Claude
Description: Thème simple et raffiné pour le blog de recettes de Véro. Fonctionne avec le plugin gratuit "WP Recipe Maker" (ingrédients, étapes avec photo, temps de préparation/cuisson, portions). Aucun commentaire, aucune page de contact : juste les recettes.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recettes-de-vero
*/

/* =========================================================
   0. VARIABLES & RESET
========================================================= */
:root{
  --bg: #FBF2E4;
  --bg-soft: #F5E4CD;
  --ink: #2B2019;
  --ink-soft: #7A6B5C;
  --card: #FFFFFF;
  --clay: #D5734B;
  --clay-dark: #B85B39;
  --sage: #8A8467;
  --border: #EEDFC7;
  --header-bg: #FBF2E4;
  --header-text: #2B2019;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 6px;
  --shadow: 0 4px 18px rgba(43,32,25,0.08);
  --shadow-hover: 0 10px 26px rgba(43,32,25,0.14);
  --maxw: 1160px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--clay); text-decoration: none; }
a:hover{ color: var(--clay-dark); }
ul{ padding-left: 1.2em; }
h1,h2,h3,h4{
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .45em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.3rem, 4.5vw, 3.6rem); font-weight: 800; text-transform: uppercase; line-height: 1.02; }
h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; text-transform: uppercase; }
h3{ font-size: 1.25rem; }
.script-tag{
  display: block;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--clay);
  margin-bottom: 6px;
}
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.screen-reader-text{
  position: absolute !important; width:1px; height:1px; overflow:hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.eyebrow{
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clay);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(213,115,75,.3);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover{ background: var(--clay-dark); color:#fff; transform: translateY(-1px); }
.btn-ghost{
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
}
.btn-ghost:hover{ border-color: var(--ink); }

/* =========================================================
   1. HEADER
========================================================= */
.site-header{
  background: var(--header-bg);
  color: var(--header-text);
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-branding img.custom-logo{ max-height: 50px; width: auto; }
.site-title{
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--header-text);
  letter-spacing: -.01em;
}
.site-title a{ color: var(--header-text); }
.main-navigation ul{
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-navigation a{
  color: var(--header-text);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a{
  border-bottom-color: var(--clay);
  color: var(--clay);
}
.menu-toggle{
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--header-text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 780px){
  .menu-toggle{ display: block; }
  .main-navigation{ display: none; width: 100%; order: 3; }
  .main-navigation.is-open{ display: block; }
  .main-navigation ul{ flex-direction: column; gap: 6px; padding-top: 14px; }
}

/* =========================================================
   2. HERO (accueil)
========================================================= */
.hero{
  position: relative;
  background: radial-gradient(120% 100% at 50% 0%, var(--bg-soft) 0%, var(--bg) 60%);
  text-align: center;
  padding: 64px 24px 60px;
}
.hero h1{ margin: 0 0 16px; }
.hero h1 em{ font-style: normal; color: var(--clay); }
.hero p{ color: var(--ink-soft); font-size: 1.1rem; max-width: 560px; margin: 0 auto 26px; }
.hero-badge{
  position: absolute;
  top: 18px;
  right: 6%;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-heading); font-weight: 700; font-size: .8rem; line-height: 1.25;
  box-shadow: 0 8px 20px rgba(213,115,75,.35);
  transform: rotate(8deg);
}
@media (max-width: 700px){ .hero-badge{ display: none; } }

/* =========================================================
   3. GRILLE DE RECETTES / CARTES
========================================================= */
.section{ padding: 56px 0; }
.section-head{ text-align: center; margin-bottom: 36px; }
.section-head h2{ margin-bottom: 6px; }
.section-head p{ color: var(--ink-soft); margin: 0; }

.category-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.category-pills a{
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .87rem;
}
.category-pills a:hover,
.category-pills .current-cat a{
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.recipe-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.recipe-card{
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.recipe-card-go{
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(213,115,75,.4);
  pointer-events: none;
}
.recipe-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.recipe-card-thumb{
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
}
.recipe-card-thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.recipe-card:hover .recipe-card-thumb img{ transform: scale(1.05); }
.recipe-card-cat{
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(251,247,241,0.92);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 999px;
}
.recipe-card-body{ padding: 20px 60px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.recipe-card-body h3{ margin-bottom: 14px; font-size: 1.2rem; }
.recipe-card-body h3 a{ color: var(--ink); }
.recipe-card-meta{
  display: flex;
  gap: 16px;
  font-size: .82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
  flex-wrap: wrap;
}
.recipe-card-meta span{ display: inline-flex; align-items: center; gap: 5px; }
.recipe-card-meta svg{ width: 15px; height: 15px; flex-shrink: 0; stroke: var(--clay); fill: none; }

.empty-state{ text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* =========================================================
   4. PAGE RECETTE (single)
========================================================= */
.content-wrap{ padding: 52px 0 76px; }
.recipe-header{ max-width: 780px; margin: 0 auto 34px; text-align: center; }
.recipe-header .recipe-card-cat{ position: static; display: inline-block; margin-bottom: 14px; background: var(--bg-soft); }
.recipe-header h1{ margin-bottom: 18px; }

.recipe-stats{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin: 26px auto 0;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.recipe-stat{ text-align: center; min-width: 90px; }
.recipe-stat svg{ width: 22px; height: 22px; stroke: var(--clay); fill: none; margin-bottom: 6px; }
.recipe-stat b{ display: block; font-family: var(--font-heading); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.recipe-stat span{ font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

.difficulty-dots{ display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 2px; }
.difficulty-dots i{ width: 7px; height: 7px; border-radius: 50%; background: var(--border); display: inline-block; }
.difficulty-dots i.filled{ background: var(--clay); }

.recipe-author{
  text-align: center;
  font-size: .88rem;
  color: var(--ink-soft);
  margin-top: 18px;
}
.recipe-author b{ color: var(--ink); font-weight: 600; }

.entry-thumbnail{ margin: 40px auto; max-width: 900px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.entry-content{ max-width: 720px; margin: 0 auto; }
.entry-content p{ margin: 0 0 1.3em; }
.entry-content h2, .entry-content h3{ margin-top: 1.7em; }

/* --- Habillage du bloc WP Recipe Maker --- */
.wprm-recipe-container{
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  padding: 10px !important;
  margin: 3em auto !important;
  max-width: 780px;
}
.wprm-recipe-name{
  font-family: var(--font-heading) !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
}
.wprm-recipe-container a{ color: var(--clay) !important; }
.wprm-recipe-ingredient-group-name, .wprm-recipe-instruction-group-name{
  font-family: var(--font-heading) !important;
  color: var(--ink) !important;
}
.wprm-recipe-container .wprm-btn,
.wprm-recipe-container button{
  background: var(--clay) !important;
  border-color: var(--clay) !important;
}
/* Note de service à Véro : la case rating / commentaires n'apparaît plus
   puisque les commentaires sont désactivés sur tout le site. */
.wprm-recipe-rating, .wprm-comment-rating, .wprm-recipe-block-summary-rating{
  display: none !important;
}

/* =========================================================
   5. PAGE "LES RECETTES" (grille complète paginée)
========================================================= */
.page-header{ text-align: center; max-width: 700px; margin: 0 auto 20px; }
.page-header .eyebrow{ display:block; margin-bottom: 8px; }

/* =========================================================
   6. PAGE STANDARD (À propos)
========================================================= */
.simple-page{ max-width: 720px; margin: 0 auto; }
.simple-page .entry-thumbnail{ max-width: 100%; margin: 0 0 36px; }
.simple-page h1{ margin-bottom: 24px; }

/* =========================================================
   7. FOOTER
========================================================= */
.site-footer{
  background: var(--header-bg);
  color: #C9BEB0;
  padding: 40px 0;
  margin-top: 50px;
  text-align: center;
}
.site-footer .footer-name{
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.site-footer a{ color: #C9BEB0; }
.site-footer a:hover{ color: #fff; }
.footer-links{ list-style:none; display:flex; gap:20px; justify-content:center; padding:0; margin: 14px 0; flex-wrap: wrap; }
.footer-bottom{ font-size: .8rem; opacity: .7; margin-top: 10px; }

/* =========================================================
   8. DIVERS (404, pagination)
========================================================= */
.pagination{ display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span{
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
  font-size: .9rem;
}
.pagination .current{ background: var(--ink); color: #fff; border-color: var(--ink); }

.admin-plugin-notice{
  background: #FBEFE8;
  border: 1px solid var(--clay);
  color: var(--ink);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
}
