/*
Theme Name: AFORPEL V2 - Formation Santé Mentale
Theme URI: https://aforpel.org
Author: AFORPEL
Author URI: https://aforpel.org
Description: Thème WordPress commercial et moderne pour l'AFORPEL — formation professionnelle en santé mentale, trouble borderline. Design dynamique, orienté conversion.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aforpel
Tags: education, health, commercial, professional, training, mental-health
*/

/* ==========================================================================
   Design Tokens — V2 Commercial
   ========================================================================== */

:root {
  /* Palette émeraude / corail */
  --color-primary: #0d6b58;
  --color-primary-dark: #094a3d;
  --color-primary-light: #12967c;
  --color-secondary: #e8634a;
  --color-secondary-light: #f08a76;
  --color-secondary-dark: #c94a33;
  --color-accent: #3b82f6;
  --color-accent-light: #60a5fa;

  /* Gradient signatures */
  --gradient-primary: linear-gradient(135deg, #094a3d 0%, #12967c 100%);
  --gradient-hero: linear-gradient(
    160deg,
    #0d6b58 0%,
    #12967c 50%,
    #17b89a 100%
  );
  --gradient-cta: linear-gradient(135deg, #e8634a 0%, #f08a76 100%);
  --gradient-card: linear-gradient(180deg, #f0fdf9 0%, #ffffff 100%);

  /* Neutres chauds */
  --color-white: #ffffff;
  --color-off-white: #fafbfc;
  --color-warm-bg: #f0fdf9;
  --color-light-gray: #e5e7eb;
  --color-mid-gray: #9ca3af;
  --color-dark-gray: #4b5563;
  --color-text: #1f2937;
  --color-text-light: #6b7280;

  /* Feedback */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Typographie */
  --font-heading: "DM Sans", "Arial", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;

  /* Tailles (plus généreuses) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.875rem;
  --text-5xl: 3.75rem;
  --text-6xl: 4.5rem;

  /* Espacement */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 820px;
  --header-height: 76px;

  /* Bordures & ombres (plus prononcées) */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(13, 107, 88, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 107, 88, 0.08);
  --shadow-lg: 0 8px 32px rgba(13, 107, 88, 0.12);
  --shadow-xl: 0 20px 60px rgba(13, 107, 88, 0.16);
  --shadow-cta: 0 8px 24px rgba(232, 99, 74, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-primary-light);
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   Typographie
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
}
h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
}
h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}
h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-light);
}

.overline {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: inline-block;
  margin-bottom: var(--space-md);
  background: rgba(232, 99, 74, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.highlight-text {
  background: linear-gradient(
    120deg,
    var(--color-primary-light) 0%,
    var(--color-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--gray {
  background-color: var(--color-off-white);
}

.section--green {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--color-white);
}
.section--green p {
  color: rgba(255, 255, 255, 0.85);
}

.section--warm {
  background-color: var(--color-warm-bg);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-3xl);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: var(--space-3xl) 0;
  }
}

/* ==========================================================================
   Header — Commercial
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo .logo-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0;
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.main-nav a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark-gray);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--color-primary);
  background: var(--color-warm-bg);
}

.main-nav .menu-item-cta a {
  background: var(--gradient-cta);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-cta);
}

.main-nav .menu-item-cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(232, 99, 74, 0.35);
  color: var(--color-white);
}

/* Menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--color-white);
    padding: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }

  .main-nav a {
    font-size: var(--text-lg);
    padding: var(--space-md);
  }
}

/* Top bar */
.top-bar {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-xs);
  padding: var(--space-sm) 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.8);
}
.top-bar a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Hero — Bold & Commercial
   ========================================================================== */

.hero {
  position: relative;
  background: var(--gradient-hero);
  color: var(--color-white);
  padding: var(--space-5xl) 0;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

/* Decorative shapes */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content h1 {
  color: var(--color-white);
  font-size: var(--text-5xl);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero__content .lead {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2xl);
  font-size: var(--text-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.hero__trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-height: 420px;
  object-fit: cover;
}

/* Hero slideshow */
.hero__slideshow {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.hero__slide--active {
  display: block;
}

.hero__illustration {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    display: none;
  }
  .hero__content h1 {
    font-size: var(--text-3xl);
  }
  .hero {
    min-height: 440px;
    padding: var(--space-3xl) 0;
  }
}

/* ==========================================================================
   Boutons — Commercial style
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-cta);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 99, 74, 0.4);
  color: var(--color-white);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Stats — Dynamic counters
   ========================================================================== */

.stats {
  padding: var(--space-3xl) 0;
  background-color: var(--color-off-white);
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-weight: 600;
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat__number {
    font-size: var(--text-3xl);
  }
}

/* ==========================================================================
   Cartes — Rounded & shadowed
   ========================================================================== */

.card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gradient-card);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-lg);
}

.card__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-warm-bg);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.card__title a {
  color: var(--color-text);
}
.card__title a:hover {
  color: var(--color-primary);
}

.card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.card__meta {
  font-size: var(--text-xs);
  color: var(--color-mid-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-light-gray);
}

.card__meta-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  transition:
    gap var(--transition-fast),
    color var(--transition-fast);
}

.card__more:hover {
  color: var(--color-primary-dark);
  gap: 0.5rem;
}

.card__meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* Formateur — photo de profil (page single) */
.formateur-photo {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-2xl);
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-white);
  outline: 3px solid var(--color-light-gray);
}

.formateur-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 480px) {
  .formateur-photo {
    width: 240px;
    height: 240px;
  }
}

/* Formateur card */
.card--formateur {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border: none;
  background: var(--gradient-card);
}

.card--formateur .card__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  background: var(--color-light-gray);
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.card--formateur .card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--formateur .card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.card--formateur .card__role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.card--formateur .card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Event card */
.card--event {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-lg);
}

.card--event .card__date {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: var(--space-md);
  text-align: center;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.card--event .card__date-day {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-heading);
}

.card--event .card__date-month {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
  font-weight: 600;
}

.card--event .card__body {
  padding: var(--space-lg);
  flex: 1;
}

@media (max-width: 640px) {
  .card--event {
    flex-direction: column;
  }
  .card--event .card__date {
    width: 100%;
    flex-direction: row;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* ==========================================================================
   Raisons — Modern numbered list
   ========================================================================== */

.reasons {
  counter-reset: reason;
}

.reason {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  counter-increment: reason;
}

.reason:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 107, 88, 0.12);
}

.reason__header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.reason__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason__header h3 {
  font-size: var(--text-xl);
  margin-bottom: 0;
}

.reason__content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.reason__content p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.reason__content ul {
  list-style: none;
  padding: 0;
}

.reason__content ul li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-dark-gray);
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.reason__content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .reason {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* ==========================================================================
   Promo Banner — Bold CTA
   ========================================================================== */

.promo-banner {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.promo-banner::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.promo-banner h2 {
  color: var(--color-white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.promo-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.promo-banner .promo-price {
  font-size: var(--text-5xl);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-white);
  margin: var(--space-lg) 0;
  letter-spacing: -0.03em;
}

.promo-banner .promo-price del {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  text-decoration: line-through;
}

.promo-banner .promo-deadline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  color: var(--color-mid-gray);
}

.breadcrumbs a {
  color: var(--color-mid-gray);
}
.breadcrumbs a:hover {
  color: var(--color-primary);
}
.breadcrumbs .separator {
  margin: 0 var(--space-sm);
  opacity: 0.4;
}
.breadcrumbs .current {
  color: var(--color-primary);
  font-weight: 600;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
  background: var(--gradient-card);
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
}

.page-header h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.page-header .lead {
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   Content & Sidebar
   ========================================================================== */

.content-area {
  padding: var(--space-3xl) 0;
}

.content-area h2 {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--color-warm-bg);
}

.content-area h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-area ul,
.content-area ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}
.content-area ul {
  list-style: disc;
}
.content-area ol {
  list-style: decimal;
}

.content-area li {
  margin-bottom: var(--space-sm);
  color: var(--color-dark-gray);
  line-height: 1.7;
}

.content-area blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--color-warm-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-light);
}

.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-3xl);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
  align-self: start;
}

@media (max-width: 960px) {
  .with-sidebar {
    grid-template-columns: 1fr;
  }

  .content-area blockquote {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    max-width: 100%;
  }
}

/* ==========================================================================
   Widgets
   ========================================================================== */

.widget {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.widget__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-group label .required {
  color: var(--color-secondary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-off-white);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(13, 107, 88, 0.1);
}

.form-control::placeholder {
  color: var(--color-mid-gray);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  appearance: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  margin-top: 0.25rem;
  accent-color: var(--color-primary);
}

.form-check label {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-dark-gray);
  margin-bottom: 0;
}

/* ==========================================================================
   Footer — Dark flat
   ========================================================================== */

.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-4xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 300px;
}
.footer__brand .site-logo {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

.footer__social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.footer__social-link svg {
  display: block;
  flex-shrink: 0;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer__links li {
  margin-bottom: var(--space-sm);
}
.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}
.footer__links a:hover {
  color: var(--color-white);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.5;
}

.footer__bottom {
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.35);
}
.footer__bottom a:hover {
  color: var(--color-white);
}
.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

/* Widgets dans le footer — annulation du style carte blanc */
.site-footer .widget {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
}

/* Titre de widget → même style que .footer__heading */
.site-footer .widget__title,
.site-footer .widget .widgettitle {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  padding-bottom: 0;
  border-bottom: none;
}

/* Liens de menu widget → même style que .footer__links */
.site-footer .widget ul li {
  margin-bottom: var(--space-sm);
}

.site-footer .widget ul a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.site-footer .widget ul a:hover {
  color: var(--color-white);
}

/* Texte de paragraphe widget */
.site-footer .widget p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer__brand {
    max-width: none;
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ==========================================================================
   Resources
   ========================================================================== */

.resource-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.resource-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.resource-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.resource-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-warm-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.resource-item__content h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}
.resource-item__content p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}
.resource-item__meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-mid-gray);
}

/* ==========================================================================
   Filters
   ========================================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark-gray);
  background: var(--color-white);
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding-top: var(--space-2xl);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark-gray);
  border: 2px solid var(--color-light-gray);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  clip: auto !important;
  clip-path: none;
  color: var(--color-primary);
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  height: auto;
  left: var(--space-sm);
  padding: var(--space-md);
  top: var(--space-sm);
  width: auto;
  z-index: 888;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--space-md);
}
.mt-2 {
  margin-top: var(--space-xl);
}
.mt-3 {
  margin-top: var(--space-2xl);
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--space-md);
}
.mb-2 {
  margin-bottom: var(--space-xl);
}
.mb-3 {
  margin-bottom: var(--space-2xl);
}
.pt-0 {
  padding-top: 0;
}
.pb-0 {
  padding-bottom: 0;
}

.hidden {
  display: none;
}
.visible {
  display: block;
}

.divider {
  border: none;
  border-top: 2px solid var(--color-warm-bg);
  margin: var(--space-2xl) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--new {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}
.badge--promo {
  background: rgba(232, 99, 74, 0.1);
  color: var(--color-secondary);
}
.badge--online {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */

/* Conteneur général */
.wpcf7 {
  width: 100%;
}

/* Espacement entre champs */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: var(--space-lg);
}

/* Champs texte, email, tél, URL, date, nombre */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-off-white);
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Focus */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(13, 107, 88, 0.1);
}

/* Placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--color-mid-gray);
}

/* Textarea */
.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

/* Select */
.wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Checkbox & Radio */
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.wpcf7 .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
}

.wpcf7 .wpcf7-list-item input[type="checkbox"],
.wpcf7 .wpcf7-list-item input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin: 0;
}

.wpcf7 .wpcf7-list-item-label {
  font-size: var(--text-sm);
  color: var(--color-dark-gray);
  cursor: pointer;
}

/* Bouton de soumission */
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  background: var(--gradient-cta);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: auto;
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 99, 74, 0.4);
}

.wpcf7 input[type="submit"]:disabled,
.wpcf7 input[type="submit"].wpcf7-submit-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* État invalide */
.wpcf7 .wpcf7-not-valid {
  border-color: var(--color-error) !important;
  background: rgba(239, 68, 68, 0.04) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08) !important;
}

/* Message d'erreur de champ */
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 500;
}

/* Message de réponse (succès / erreur global) */
.wpcf7 .wpcf7-response-output {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-left: 4px solid var(--color-success);
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-spam-blocked,
.wpcf7 .wpcf7-acceptance-missing,
.wpcf7 .wpcf7-validation-errors {
  background: rgba(239, 68, 68, 0.06);
  color: var(--color-error);
  border-left: 4px solid var(--color-error);
}

/* Spinner de chargement */
.wpcf7 .wpcf7-spinner {
  margin-left: var(--space-sm);
  vertical-align: middle;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .btn,
  .promo-banner {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}
