/* =============================================
   Petits Zen — Feuille de style principale
   Thème : doux, naturel, vert & beige
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Variables ───────────────────────────────── */
:root {
  /* ─ Palette issue des illustrations décor ─ */
  --green-dark:    #3b6b50;   /* feuilles sombres plan01/plan04   */
  --green-medium:  #6aaa82;   /* onde plan05                       */
  --green-light:   #9dd4b0;   /* herbes claires                    */
  --green-pale:    #daeee2;   /* fond très clair                   */
  --beige-dark:    #c0b490;
  --beige-medium:  #e6e2d8;
  --beige-light:   #f2f8f4;   /* fond page, teinte menthe douce   */
  --accent:        #dfa020;   /* massettes dorées / ambre          */
  --accent-light:  #faecd0;   /* doré pâle                         */
  --text-dark:     #263a28;
  --text-medium:   #506055;
  --text-light:    #7a9a80;
  --white:         #ffffff;
  --radius:        14px;
  --radius-lg:     24px;
  --shadow-soft:   0 4px 24px rgba(59, 107, 80, 0.12);
  --shadow-card:   0 2px 16px rgba(38, 58, 40, 0.10);
  --transition:    0.3s ease;
}

/* ── Reset & Base ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--beige-light);
  color: var(--text-dark);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ── Typography ──────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-family: 'Nunito', sans-serif; font-weight: 700; }

p { margin-bottom: 1rem; color: var(--text-medium); }

/* ── Layout helpers ──────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--beige-medium); }
.section-green { background: var(--green-pale); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-medium); }

.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--green-medium), var(--accent));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(74, 124, 89, 0.3);
}
.btn-primary:hover {
  background: var(--green-medium);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-secondary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200, 149, 108, 0.3);
}
.btn-accent:hover {
  background: #c08018;
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Navigation ──────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(242, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 180, 144, 0.4);
  padding: 1rem 0;
  box-shadow: 0 2px 12px rgba(38, 58, 40, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-dark);
}
.navbar-brand .logo-icon {
  width: 40px; height: 40px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--green-dark);
  background: var(--green-pale);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: all var(--transition); }

/* ── Hero ────────────────────────────────────── */
.hero {
  padding: 5rem 0 0;
  background: #F7F3EB; /* couleur de repli si l'image met du temps à charger */
  position: relative;
  overflow: hidden;
  min-height: 92vh;
}

/* ── Fond : moitié droite uniquement ─────────── */
.parallax-layer-bg {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  bottom: auto !important;
  width: 50% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: left center;
  z-index: 0 !important;
}

/* Z-index : 01 = avant → 05 = arrière */
.layer-p01 { z-index: 5; }
.layer-p02 { z-index: 4; }
.layer-p03 { z-index: 3; }
.layer-p04 { z-index: 2; }
.layer-p05 { z-index: 1; }

/* ── Grenouille ───────────────────────────────────────────
   Position par rapport au héros.
   La valeur bottom en vw est calculée pour coller à plan01 :
   plan01 height = vw × (844/1920) → 15% du hero (≈100vh) ≈ 15vh
   On utilise JS pour recalculer dynamiquement (voir parallax JS)  */
.layer-frog {
  width: 16.25% !important;
  left: 52% !important;
  height: auto !important;
  animation: froatFloat 4s ease-in-out infinite;
}

/* Halo subtil en haut à gauche */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(218,238,226,.6) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Pas de déco en bas (la scène parallax s'en charge) */
.hero::after { display: none; }

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 42vh;  /* espace pour la scène illustrée */
}

/* ── Parallax scene ──────────────────────────── */
.hero-parallax {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.parallax-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  -webkit-user-drag: none;
}

/* Animation flottement grenouille */
@keyframes froatFloat {
  0%, 100% { margin-bottom: 0; }
  50%       { margin-bottom: -8px; }
}

.hero-content { }
.hero-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content h1 em { font-style: italic; color: var(--green-dark); }

.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Colonne droite : vide, la scène remplit l'espace visuellement */
.hero-visual { min-height: 1px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Services cards ──────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--green-medium), var(--green-light));
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(74, 124, 89, 0.18);
}

.service-icon {
  width: 64px; height: 64px;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; margin: 0; }

/* ── About / Description ─────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-blob {
  width: 340px; height: 340px;
  background: linear-gradient(135deg, var(--green-light), var(--green-pale));
  border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
  animation: float 8s ease-in-out infinite reverse;
}

.about-content .features { list-style: none; margin-top: 1.5rem; }
.about-content .features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.about-content .features li::before {
  content: '✦';
  color: var(--green-medium);
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* ── Témoignages ─────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--green-pale);
  line-height: 1;
}

.stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 1rem; }
.testimonial-author { margin-top: 1.25rem; font-weight: 700; color: var(--green-dark); font-size: 0.9rem; }
.testimonial-role { color: var(--text-light); font-size: 0.85rem; }

/* ── CTA Banner ──────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), #3a6648);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 500px; margin: 0 auto 2rem; }

/* ── Blog cards ──────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(74, 124, 89, 0.16); }

.blog-card-header {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-pale), var(--beige-medium));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

.blog-card-body { padding: 1.5rem; }
.blog-meta { display: flex; gap: 1rem; margin-bottom: 0.75rem; align-items: center; flex-wrap: wrap; }
.blog-date { font-size: 0.8rem; color: var(--text-light); }
.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-pale);
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
}

.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-family: 'Nunito', sans-serif; }
.blog-card-body p { font-size: 0.9rem; margin: 0; color: var(--text-medium); }

.blog-read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
}
.blog-read-more::after { content: ' →'; }

/* ── Contact / Dates ─────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.dates-list { display: flex; flex-direction: column; gap: 1rem; }

.date-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
  border-left: 4px solid var(--green-medium);
}

.date-item:hover { transform: translateX(4px); }

.date-badge {
  min-width: 64px;
  text-align: center;
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 0.5rem;
}
.date-day { font-size: 1.6rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.date-month { font-size: 0.75rem; font-weight: 700; color: var(--text-medium); text-transform: uppercase; letter-spacing: 0.05em; }

.date-info h4 { margin-bottom: 0.2rem; font-size: 1rem; }
.date-info p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.date-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.date-tag.cours { background: var(--green-pale); color: var(--green-dark); }
.date-tag.seminaire { background: var(--accent-light); color: var(--accent); }
.date-tag.complet { background: #fde8e8; color: #c0392b; }

/* ── Forms ───────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.form-card h3 { margin-bottom: 0.5rem; }
.form-card > p { margin-bottom: 2rem; font-size: 0.95rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.form-group label span { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--beige-dark);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--beige-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-medium);
  box-shadow: 0 0 0 3px rgba(106, 170, 130, 0.15);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--beige-light);
  border-radius: var(--radius);
  border: 2px solid var(--beige-dark);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
}
.checkbox-item:hover { border-color: var(--green-medium); background: var(--green-pale); }
.checkbox-item input[type="checkbox"] { accent-color: var(--green-dark); width: 16px; height: 16px; }

.radio-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.radio-item input[type="radio"] { accent-color: var(--green-dark); width: 16px; height: 16px; }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .navbar-brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; }

.footer-col h4 { color: var(--white); margin-bottom: 1.25rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--green-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ── Page hero (intérieur) ───────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-pale), var(--beige-medium));
  padding: 4rem 0;
  text-align: center;
}
.page-hero p { max-width: 500px; margin: 0.75rem auto 0; font-size: 1.05rem; }

/* ── Admin ───────────────────────────────────── */
.admin-body { background: #f0f4f1; min-height: 100vh; }

.admin-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h1 { font-size: 1.3rem; color: var(--white); font-family: 'Nunito', sans-serif; font-weight: 700; }

.admin-layout { display: flex; min-height: calc(100vh - 60px); }

.admin-sidebar {
  width: 220px;
  background: var(--white);
  border-right: 1px solid var(--beige-dark);
  padding: 1.5rem 0;
  flex-shrink: 0;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: var(--text-medium);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: var(--green-pale);
  color: var(--green-dark);
  border-right: 3px solid var(--green-dark);
}

.admin-main { flex: 1; padding: 2rem; }

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.admin-card h2 {
  font-size: 1.3rem;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--beige-medium);
  padding-bottom: 0.75rem;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  background: var(--beige-light);
  color: var(--text-medium);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--beige-medium); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--beige-light); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-green { background: var(--green-pale); color: var(--green-dark); }
.badge-orange { background: var(--accent-light); color: var(--accent); }
.badge-red { background: #fde8e8; color: #c0392b; }

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}
.action-btn.edit { color: var(--green-dark); }
.action-btn.edit:hover { background: var(--green-pale); }
.action-btn.delete { color: #c0392b; }
.action-btn.delete:hover { background: #fde8e8; }

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-pale), var(--beige-light));
}
.login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.login-box .logo-icon-lg {
  width: 72px; height: 72px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
}
.login-box h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.login-box p { margin-bottom: 2rem; font-size: 0.9rem; }
.login-error { background: #fde8e8; color: #c0392b; padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }

/* ── Modal ───────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 58, 46, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
/* Modal large — pour l'édition des articles */
.modal.modal-wide {
  max-width: 860px;
  padding: 2rem 2.5rem;
}
/* Modal article — lecture de news */
.modal.modal-article {
  max-width: 800px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-img-zone {
  position: relative;
  flex-shrink: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-pale), var(--beige-medium));
  min-height: 52px;
}
.modal-img-zone img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.modal-img-zone .modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  color: var(--text-dark);
}
.modal-img-zone .modal-close:hover {
  background: white;
  color: var(--accent);
  transform: scale(1.08);
}
.modal-body-zone {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2.5rem 2.5rem;
}
.modal-article-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}
.modal-article-meta strong {
  color: var(--green-dark);
  font-weight: 700;
}
h2.modal-article-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}
@media (max-width: 700px) {
  .modal.modal-wide { padding: 1.25rem; }
  /* Repli 1 colonne sur mobile */
  .modal.modal-wide form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .modal-body-zone { padding: 1.25rem 1.25rem 2rem; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-header h3 { font-size: 1.2rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

/* ── Toast notification ──────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3000;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #c0392b; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .hero { min-height: 100svh; }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-bottom: 38vh;
  }
  .hero-cta { justify-content: center; }
  .hero-content p { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Fond pleine largeur sur mobile */
  .parallax-layer-bg { left: 0 !important; width: 100% !important; }
  /* Grenouille sur mobile : légèrement plus grande pour rester visible */
  .layer-frog { width: 50% !important; left: 38% !important; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--beige-light); padding: 1rem; box-shadow: var(--shadow-soft); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { width: 180px; }
}

/* ── Accessibilité : mouvement réduit ─────────── */
@media (prefers-reduced-motion: reduce) {
  .parallax-layer, .scene-layer {
    will-change: auto;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 500px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--beige-dark); display: flex; flex-wrap: wrap; padding: 0.5rem; }
  .admin-sidebar a { padding: 0.6rem 1rem; }
}

/* ── Share bar (dans la modal article) ──────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--beige-medium);
}
.share-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-right: 0.15rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.85rem;
  border-radius: 50px;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.share-btn-facebook { background: #1877f2; color: #fff; }
.share-btn-facebook:hover { background: #1060d0; transform: translateY(-1px); }
.share-btn-twitter  { background: #111; color: #fff; }
.share-btn-twitter:hover  { background: #333; transform: translateY(-1px); }
.share-btn-whatsapp { background: #25d366; color: #fff; }
.share-btn-whatsapp:hover { background: #1ebb58; transform: translateY(-1px); }
.share-btn-linkedin { background: #0a66c2; color: #fff; }
.share-btn-linkedin:hover { background: #0857a5; transform: translateY(-1px); }
.share-btn-copy {
  background: var(--beige-medium);
  color: var(--text-dark);
  border: 1.5px solid var(--beige-dark);
}
.share-btn-copy:hover { background: var(--beige-dark); transform: translateY(-1px); }
.share-btn-copy.copied {
  background: var(--green-pale);
  color: var(--green-dark);
  border-color: var(--green-medium);
}
.share-btn-native { background: var(--green-dark); color: #fff; }
.share-btn-native:hover { background: var(--green-medium); transform: translateY(-1px); }

/* ── Icône de partage sur les cards ──────────── */
.blog-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.card-share-icon {
  background: none;
  border: 1.5px solid var(--beige-dark);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.card-share-icon:hover {
  background: var(--green-pale);
  border-color: var(--green-medium);
  color: var(--green-dark);
  transform: scale(1.1);
}
/* Mini-toast de confirmation lien copié */
.mini-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--text-dark);
  color: white;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.mini-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Blog : card image ────────────────────────── */
.blog-card-header {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  height: auto;
}
.blog-card-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-header img { transform: scale(1.04); }
.blog-card-header-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-pale), var(--beige-medium));
  font-size: 4rem;
}

/* ── Quill editor overrides ───────────────────── */
.ql-toolbar.ql-snow {
  border: 2px solid var(--beige-dark) !important;
  border-bottom: none !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  background: var(--beige-light) !important;
  font-family: 'Nunito', sans-serif !important;
}
.ql-container.ql-snow {
  border: 2px solid var(--beige-dark) !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  color: var(--text-dark) !important;
  min-height: 160px;
  background: var(--white);
}
.ql-editor { min-height: 160px; line-height: 1.7; }
.ql-editor.ql-blank::before { color: var(--text-light) !important; font-style: normal !important; }
.ql-snow .ql-stroke { stroke: var(--text-medium) !important; }
.ql-snow .ql-fill  { fill:   var(--text-medium) !important; }
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-active .ql-stroke { stroke: var(--green-dark) !important; }
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar .ql-active .ql-fill   { fill:   var(--green-dark) !important; }

/* ── Image upload zone (admin) ────────────────── */
.img-upload-zone {
  border: 2px dashed var(--beige-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--beige-light);
  color: var(--text-light);
  font-size: 0.9rem;
}
.img-upload-zone:hover { border-color: var(--green-medium); background: var(--green-pale); color: var(--green-dark); }
.img-upload-zone.has-image { padding: 0; border-style: solid; border-color: var(--green-medium); }
.img-preview-wrap {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
}
.img-preview-wrap img { width: 100%; display: block; object-fit: cover; }
.img-preview-actions {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  display: flex; gap: 0.4rem;
}
.img-preview-btn {
  background: rgba(0,0,0,0.65);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(