/* ============================================
   LE POUVOIR DU MAGNÉTISME — Feuille de styles
   Formation magnétisme — Charlotte Colinet
   ============================================ */

/* --- VARIABLES --- */
:root {
  --bg-primary: #faf8f4;
  --bg-secondary: #f0ece4;
  --bg-white: #ffffff;
  --green-deep: #2c5f3f;
  --green-primary: #3a7d54;
  --green-light: #5a9e72;
  --green-pale: #e8f2ec;
  --green-glow: rgba(58, 125, 84, 0.1);
  --gold-primary: #b8942e;
  --gold-light: #d4ae3a;
  --gold-warm: #c9a033;
  --gold-glow: rgba(184, 148, 46, 0.12);
  --text-dark: #1a1a1a;
  --text-primary: #2d2d2d;
  --text-secondary: #4a4a4a;
  --text-light: #6b6b6b;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(58, 125, 84, 0.15);
  --card-shadow: rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- RESET --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.section-header p,
.hero-content p,
.trust-item p,
.footer-col p,
.footer-bottom p,
.formation-banner p,
.temoignage-card p,
.temoignage-card blockquote {
  text-align: center;
}

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

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-deep);
}

ul, ol {
  list-style: none;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 0.8rem;
}

h4, h5 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.script-font {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: #9a7a1e;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  position: relative;
}

section:nth-of-type(even) {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(58, 125, 84, 0.08);
  border-bottom: 1px solid rgba(58, 125, 84, 0.08);
}

section:nth-of-type(odd) {
  background: var(--bg-primary);
}

/* --- GLASSMORPHISM CARD --- */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--card-shadow), 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 24px var(--green-glow);
  border-color: var(--green-primary);
}

section:nth-of-type(even) .glass-card {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(58, 125, 84, 0.12);
}

/* --- BOUTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(58, 125, 84, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(58, 125, 84, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--green-deep);
  border: 1px solid var(--green-primary);
}

.btn-secondary:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
  color: var(--green-deep);
}

/* --- HEADER / NAV --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.8rem);
}

.nav-menu a {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-primary);
  transition: width var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--green-deep);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 0.5rem;
}

/* --- BURGER MENU --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--green-deep);
  transition: all var(--transition);
  border-radius: 2px;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 40, 30, 0.35) 0%,
    rgba(20, 40, 30, 0.6) 50%,
    rgba(250, 248, 244, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 2rem 2rem;
}

.hero-content h1 {
  margin-bottom: 1.2rem;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.hero-content .script-font {
  color: var(--gold-light);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-compact {
  min-height: 60vh;
}

.hero-compact .hero-content {
  padding-top: calc(var(--header-height) + 2rem);
}

.hero-gradient {
  min-height: 55vh;
  background: linear-gradient(160deg, var(--green-deep) 0%, #1a4a2e 40%, #2c5f3f 70%, #3a7d54 100%);
}

.hero-gradient .hero-content h1 {
  color: #ffffff;
}

.hero-gradient .hero-content .hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero-gradient .hero-content .script-font {
  color: var(--gold-light);
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  z-index: 1;
}

/* --- BANDEAU CONFIANCE --- */
.trust-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 2rem 0;
}

.trust-strip .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  text-align: center;
}

.trust-item .trust-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
}

.trust-item .trust-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* --- SÉPARATEUR SECTION --- */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
  color: var(--gold-warm);
  font-size: 0.9rem;
  opacity: 0.6;
  position: relative;
  z-index: 1;
}

.section-separator::before,
.section-separator::after {
  content: '';
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
}

/* --- TITRE DE SECTION --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h4 {
  margin-bottom: 0.5rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
}

.section-header p {
  color: var(--text-primary);
  margin-top: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- GRILLE CARDS --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* --- GRILLE VALEURS 2 COLONNES --- */
.valeurs-2col {
  grid-template-columns: repeat(2, 1fr);
}

/* --- TÉMOIGNAGES --- */
.temoignage-card {
  text-align: center;
}

.temoignage-card blockquote {
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.temoignage-card .temoignage-author {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--green-deep);
  letter-spacing: 0.05em;
}

.temoignage-card .temoignage-stars {
  color: #c49a1a;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* --- PORTRAIT SECTION --- */
.portrait-section {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: center;
}

.portrait-section.reverse {
  direction: rtl;
}

.portrait-section.reverse > * {
  direction: ltr;
}

.programme-block {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(58, 125, 84, 0.08);
}

.programme-block:nth-child(even) {
  background: var(--bg-secondary);
}

.programme-block:nth-child(odd) {
  background: var(--bg-primary);
}

.programme-block .portrait-section {
  margin-bottom: 0;
}

.portrait-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.portrait-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center center;
  max-height: 380px;
}

.portrait-img.portrait-person img {
  object-position: center 10%;
  aspect-ratio: 3/4;
  max-height: 420px;
}

/* --- PORTRAIT PAGE (Anthony, Charlotte) --- */
.page-portrait {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-portrait-img {
  flex-shrink: 0;
  width: 250px;
  height: 330px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.page-portrait-info h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

@media (max-width: 768px) {
  .page-portrait {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .page-portrait-img {
    width: 200px;
    height: 250px;
    margin: 0 auto;
  }
}

/* --- PROCHAINE FORMATION BANDEAU --- */
.formation-banner {
  background: linear-gradient(135deg, var(--green-pale), rgba(184, 148, 46, 0.08));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
}

.formation-banner .formation-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-deep);
}

.formation-banner .places-restantes {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.formation-banner .places-restantes.urgence {
  color: #e74c3c;
  font-weight: 700;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(58, 125, 84, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(58, 125, 84, 0.25);
  box-shadow: 0 4px 20px rgba(58, 125, 84, 0.08);
}

.faq-item.open {
  border-color: var(--green-primary);
  box-shadow: 0 6px 28px rgba(58, 125, 84, 0.1);
  background: rgba(58, 125, 84, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
  gap: 1rem;
}

.faq-question:hover {
  color: var(--green-primary);
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.open .faq-question {
  color: var(--green-deep);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--green-primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-answer ul {
  margin: 0.8rem 0;
  padding-left: 1.2rem;
}

.faq-answer ul li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
}

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

.footer-col h4 {
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: var(--gold-light);
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  hyphens: none;
  -webkit-hyphens: none;
}

.footer-col:first-child p {
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-regions {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.footer-regions h4 {
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.footer-regions-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}

.footer-regions-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-regions-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* --- FIL D'ARIANE --- */
.breadcrumb {
  padding: 1rem 0;
  margin-top: var(--header-height);
}

.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.breadcrumb li::after {
  content: '›';
  margin-left: 0.5rem;
}

.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--green-primary);
}

/* --- PAGES LÉGALES --- */

.page-legal {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  min-height: 60vh;
}

.page-legal h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green-primary);
  margin-bottom: 0.5rem;
}

.page-legal .legal-intro {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(44, 95, 63, 0.1);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--green-primary);
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin: 1.2rem 0 0.6rem;
}

.legal-section p,
.legal-section li {
  line-height: 1.8;
  color: var(--text-body);
}

.legal-section ul {
  padding-left: 1.5rem;
  margin: 0.8rem 0;
}

.legal-section li {
  margin-bottom: 0.4rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border: 1px solid rgba(44, 95, 63, 0.15);
}

.legal-table th {
  background: rgba(44, 95, 63, 0.06);
  color: var(--green-primary);
  font-weight: 600;
}

.legal-table td {
  color: var(--text-body);
}

/* Breadcrumb simple (pages légales) */
.page-legal .breadcrumb,
.page-404 .breadcrumb {
  margin-top: 0;
  padding: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.page-legal .breadcrumb a,
.page-404 .breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.page-legal .breadcrumb a:hover,
.page-404 .breadcrumb a:hover {
  color: var(--green-primary);
}

.page-legal .breadcrumb span,
.page-404 .breadcrumb span {
  margin: 0 0.3rem;
}

/* --- PAGE 404 --- */

.page-404 {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.error-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 700;
  color: var(--green-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -1rem;
}

.error-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green-primary);
  margin-bottom: 1rem;
}

.error-message {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.error-submessage {
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.error-actions {
  margin-bottom: 3rem;
}

.error-links h2 {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 1rem;
}

.error-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.error-links a {
  color: var(--green-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--green-primary);
  border-radius: 4px;
  transition: all 0.2s;
}

.error-links a:hover {
  background: var(--green-primary);
  color: #fff;
}

@media (max-width: 768px) {
  .legal-table {
    font-size: 0.85rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.6rem 0.7rem;
  }

  .error-links ul {
    flex-direction: column;
    align-items: center;
  }
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- CANVAS PARTICULES --- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- IMAGES D'ARTICLES ET PAGES --- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 40, 30, 0.4) 0%,
    rgba(20, 40, 30, 0.65) 60%,
    rgba(250, 248, 244, 1) 100%
  );
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 3rem 1.5rem;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2rem -2rem 1.5rem;
  width: calc(100% + 4rem);
}

.article-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 2rem 0;
  border: 1px solid var(--card-border);
}

/* --- BLOG GRID --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(58, 125, 84, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(58, 125, 84, 0.12);
  border-color: rgba(58, 125, 84, 0.3);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-primary);
  background: var(--green-pale);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.blog-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

.blog-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card h3 a:hover {
  color: var(--green-primary);
}

.blog-card p {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.blog-card-read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-read:hover {
  color: var(--green-deep);
}

.blog-card-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Blog card icon placeholder (no image) */
.blog-card-icon {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.blog-card-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background: radial-gradient(circle at 30% 40%, var(--green-primary), transparent 70%),
              radial-gradient(circle at 70% 60%, var(--gold-primary, #b8942e), transparent 60%);
}

.blog-card-icon span {
  position: relative;
  z-index: 1;
  filter: grayscale(0.15);
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-icon span {
  transform: scale(1.15);
}

.blog-featured .blog-card-icon {
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 5rem;
}

@media (max-width: 992px) {
  .blog-featured .blog-card-icon {
    height: 220px;
    min-height: auto;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

/* Featured blog card (first/main article) */
.blog-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.blog-featured .blog-card-img {
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.blog-featured .blog-card-body {
  padding: 2rem;
}

.blog-featured h3 {
  font-size: 1.4rem;
}

.blog-featured p {
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured .blog-card-img {
    height: 220px;
    min-height: auto;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* --- BLOG ARTICLE PAGE --- */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-content h2 {
  font-size: 1.6rem;
  color: var(--green-deep);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-pale);
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 2rem 0 0.8rem;
}

.article-intro {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  border-left: 3px solid var(--green-primary);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.article-highlight {
  background: var(--green-pale);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.article-highlight p {
  margin: 0;
  color: var(--green-deep);
  font-weight: 600;
}

.article-cta {
  background: linear-gradient(135deg, var(--green-pale), rgba(184, 148, 46, 0.06));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.article-cta h3 {
  border: none;
  margin: 0 0 0.8rem;
  padding: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--green-deep);
}

.article-cta p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
}

.article-nav a {
  font-size: 0.9rem;
  color: var(--green-primary);
  text-decoration: none;
  font-weight: 600;
}

.article-nav a:hover {
  color: var(--green-deep);
}

.programme-card {
  position: relative;
  overflow: hidden;
}

.programme-card img {
  transition: transform 0.5s ease;
}

.programme-card:hover img {
  transform: scale(1.03);
}

.programme-card .card-img {
  height: 160px;
  margin: -2rem -2rem 1.2rem;
  width: calc(100% + 4rem);
}

/* --- CONTACT FORM --- */
.form-group {
  margin-bottom: 1.2rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px var(--green-glow);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.3rem;
}

/* --- TEMOIGNAGES PAGE --- */
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .portrait-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portrait-section.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero {
    min-height: 40vh;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #faf8f4;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1000;
    padding: 4rem 2rem 2rem;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1.15rem;
    padding: 0.6rem 0;
    display: block;
    text-align: center;
  }

  .nav-menu .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .burger {
    display: flex;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-content .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-content .hero-subtitle br {
    display: none;
  }

  .cards-grid-3 {
    grid-template-columns: 1fr;
  }

  .trust-strip .container {
    gap: 1.5rem;
    justify-content: space-around;
  }

  .trust-item .trust-number {
    font-size: 1.8rem;
  }

  .trust-item .trust-label {
    font-size: 0.7rem;
  }

  /* Justify -> left on mobile for readability */
  p {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

  .section-header p,
  .hero-content p,
  .trust-item p,
  .footer-col p,
  .footer-bottom p,
  .formation-banner p,
  .temoignage-card p,
  .temoignage-card blockquote,
  .article-cta p {
    text-align: center;
  }

  .footer-col:first-child p {
    text-align: left;
  }

  .formation-banner {
    padding: 1.5rem 1rem;
  }

  .formation-banner .formation-date {
    font-size: 1.3rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h4 {
    font-size: 0.85rem;
  }

  .portrait-img img {
    aspect-ratio: 4/3;
    object-position: center 15%;
    max-height: 360px;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1.2rem 1.2rem;
  }

  .page-hero {
    min-height: 35vh;
  }

  .page-hero .hero-content {
    padding: 2rem 1rem;
  }

  .card-img {
    height: 160px;
  }

  .temoignages-grid {
    grid-template-columns: 1fr;
  }

  .valeurs-2col {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    padding: 1.5rem 1rem;
  }

  .glass-card table {
    font-size: 0.88rem;
  }

  .glass-card table td {
    padding: 0.7rem 0;
  }

  .breadcrumb ol {
    flex-wrap: wrap;
  }

  /* Blog grid -> 1 col on tablet */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Blog articles mobile */
  .article-intro {
    padding-left: 1rem;
    font-size: 1rem;
  }

  .article-highlight,
  .article-cta {
    padding: 1.25rem 1rem;
  }

  .article-content h2 {
    font-size: 1.35rem;
  }

  .article-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Programme blocks */
  .programme-block {
    padding: 2.5rem 0;
  }

  /* Burger touch target */
  .burger {
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .glass-card {
    padding: 1.2rem;
  }

  .card-img {
    margin: -1.2rem -1.2rem 1rem;
    width: calc(100% + 2.4rem);
    height: 140px;
  }

  .programme-card .card-img {
    margin: -1.2rem -1.2rem 1rem;
    width: calc(100% + 2.4rem);
  }

  .hero {
    min-height: 80vh;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.8rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col:first-child p {
    text-align: left;
  }

  .footer-regions {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .footer-regions h4 {
    font-size: 0.8rem;
  }

  .footer-regions-links {
    justify-content: center;
    gap: 0.3rem 0.6rem;
  }

  .footer-regions-links a {
    font-size: 0.7rem;
  }

  .footer-bottom p {
    font-size: 0.7rem;
    line-height: 1.6;
  }

  .trust-strip .container {
    gap: 1rem;
  }

  .trust-item {
    min-width: 80px;
  }

  .trust-item .trust-number {
    font-size: 1.5rem;
  }

  .trust-item .trust-label {
    font-size: 0.65rem;
  }

  .script-font {
    font-size: 1.1rem;
  }

  .section-separator {
    padding: 0.5rem 0;
  }

  .section-separator::before,
  .section-separator::after {
    width: 40px;
  }

  .citation-charlotte {
    font-size: 1.25rem !important;
    padding: 1.5rem 0.5rem !important;
  }

  .nav-logo {
    font-size: 0.95rem;
    max-width: calc(100% - 56px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .blog-card-icon {
    height: 160px;
    font-size: 2.75rem;
  }

  .blog-featured .blog-card-icon {
    height: 180px;
    font-size: 3.5rem;
  }

  .cookie-banner button {
    min-height: 44px;
    padding: 0.65rem 1.5rem;
  }
}

/* --- BANDEAU COOKIES --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--card-border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cookie-banner a {
  color: var(--green-primary);
}

.cookie-banner button {
  background: var(--green-primary);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}

.cookie-banner button:hover {
  background: var(--green-deep);
}

@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}
