/* ==========================================================================
   DESIGN SYSTEM - EDP CONSEIL & FORMATION 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #3d5a3c;          /* Vert forêt principal */
  --primary-light: #5a7a58;    /* Vert olive adouci (hover, focus) */
  --primary-dark: #2a3d29;     /* Vert profond (titres, footer) */
  --accent: #3d8b8b;           /* Teal / Accent interactif */
  --accent-light: #4c9c9c;     /* Hover accent */
  --accent-warm: #e8dcc8;      /* Beige chaleureux */
  --bg-cream: #f5f1ea;         /* Fond beige crème */
  --bg-white: #faf8f5;         /* Fond principal blanc chaud */
  --white: #ffffff;
  --text-dark: #2d2d2d;        /* Texte principal */
  --text-medium: #4a4a4a;      /* Texte secondaire */
  --text-light: #6b6b6b;       /* Texte discret / labels */
  --charcoal: #1a1a1a;         /* Fond de footer */
  --it-accent: #1a365d;        /* Bleu marine pour l'univers IT/Digital */
  --border-color: rgba(0, 0, 0, 0.08);
  --error-color: #d32f2f;

  /* Fonts */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 8px 24px rgba(61, 90, 60, 0.2);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-white);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-warm);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-white);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  color: var(--primary-dark);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-medium);
}

li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-cream);
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

.flex {
  display: flex;
  gap: 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

body {
  padding-top: 100px; /* Offset for fixed header */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.96); /* White-cream with transparency */
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  width: 100%;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 400;
}

.logo-circle {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--primary-dark);
}

.logo-subtitle {
  font-size: 0.75rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background-color: rgba(61, 90, 60, 0.05);
}

/* Dropdown Submenus */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '▾';
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-medium);
  border-radius: 0;
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: rgba(61, 90, 60, 0.08);
  color: var(--primary-dark);
  padding-left: 1.5rem;
}

/* Tag style in navigation */
.nav-links a.it-nav-link {
  border: 1px solid rgba(26, 54, 93, 0.2);
  color: var(--it-accent);
}

.nav-links a.it-nav-link:hover,
.nav-links a.it-nav-link.active {
  background-color: rgba(26, 54, 93, 0.08);
  color: var(--it-accent);
}

/* Mobile Menu Burger */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 5px;
  transition: all var(--transition-normal);
}

/* Mobile active state for hamburger */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(61, 90, 60, 0.25);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(61, 139, 139, 0.25);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
  padding: 0.7rem 1.65rem; /* account for border thickness */
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
  padding: 0.7rem 1.65rem;
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-warm {
  background-color: var(--accent-warm);
  color: var(--primary-dark);
}

.btn-warm:hover {
  background-color: #dfd2bb;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
}

.card-icon {
  font-size: 4rem;
  z-index: 1;
}

.card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  padding: 0 2rem 2rem;
  background: transparent;
  border: none;
}

/* Specific Card Styles */
.card-glass {
  background: rgba(250, 248, 245, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-it {
  border-left: 4px solid var(--it-accent);
}

.card-it .card-title {
  color: var(--it-accent);
}

/* ==========================================================================
   BADGES & TAGS
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  background-color: var(--accent-warm);
  color: var(--primary-dark);
}

.badge-primary {
  background-color: var(--primary);
  color: var(--white);
}

.badge-accent {
  background-color: var(--accent);
  color: var(--white);
}

.badge-it {
  background-color: var(--it-accent);
  color: var(--white);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--charcoal) 100%);
  color: var(--white);
  padding: 7rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, var(--bg-white), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-warm);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  line-height: 1.6;
}

.hero-credo {
  background: rgba(232, 220, 200, 0.12);
  border-left: 4px solid var(--accent-warm);
  padding: 1.5rem 2rem;
  margin: 2.5rem auto;
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  backdrop-filter: blur(5px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: left;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.hero-badge {
  background: rgba(232, 220, 200, 0.18);
  border: 1.5px solid var(--accent-warm);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.hero-badge:hover {
  background: rgba(232, 220, 200, 0.3);
  transform: scale(1.03);
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   TRAINING SHEET STYLES (formations/*.html)
   ========================================================================== */

.formation-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 5rem 2rem 4rem;
  color: var(--white);
  position: relative;
  text-align: left;
}

.formation-hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

.formation-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.formation-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--accent-warm);
  margin-bottom: 2rem;
  font-weight: 500;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--accent-warm);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

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

.formation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item span {
  font-size: 1.25rem;
}

.formation-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.formation-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3.5rem;
}

.formation-main h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin: 2.5rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2.5px solid var(--accent-warm);
}

.formation-main h2:first-of-type {
  margin-top: 0;
}

.formation-main h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: var(--primary);
}

.formation-main p {
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.formation-main ul {
  margin: 1rem 0 1.5rem 1.25rem;
}

.formation-main li {
  margin-bottom: 0.5rem;
  color: var(--text-medium);
}

/* Sidebar Info Card */
.formation-sidebar {
  position: sticky;
  top: 130px;
  height: fit-content;
}

.info-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-icon {
  font-size: 1.4rem;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
}

.price-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-primary);
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.price-note {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  color: var(--accent-warm);
  font-weight: 600;
}

.price-card .cta-button {
  background-color: var(--white);
  color: var(--primary-dark);
  display: block;
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-fast);
}

.price-card .cta-button:hover {
  background-color: var(--accent-warm);
  transform: translateY(-2px);
}

.price-card .cta-button-secondary {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: underline;
  margin-top: 1rem;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.price-card .cta-button-secondary:hover {
  opacity: 1;
  color: var(--accent-warm);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 90, 60, 0.15);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
}

.form-row > .form-group {
  flex: 1;
}

/* ==========================================================================
   TESTIMONIAL CARDS
   ========================================================================== */

.testimonial-card {
  background-color: var(--white);
  padding: 3rem 2.5rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--border-color);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 6rem;
  font-family: var(--font-heading);
  color: rgba(61, 90, 60, 0.08);
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  font-size: 0.95rem;
}

.testimonial-org {
  font-weight: 500;
  color: var(--text-light);
  text-align: right;
  font-size: 0.85rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background-color: var(--charcoal);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 2rem 2.5rem;
  font-family: var(--font-body);
  border-top: 3px solid var(--primary);
  font-size: 0.95rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-brand .contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-brand .contact-info li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand .contact-info a {
  color: var(--accent-warm);
}

.footer-brand .contact-info a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-section h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.65);
  transition: all var(--transition-fast);
}

.footer-section a:hover {
  color: var(--accent-warm);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

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

.footer-bottom a:hover {
  color: var(--accent-warm);
}

/* Partner Links in Footer */
.footer-partners {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

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

.footer-partners a:hover {
  color: var(--accent-warm);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

@media (max-width: 1100px) {
  /* Header & Navigation on Tablet/Mobile */
  header {
    height: 90px;
  }
  body {
    padding-top: 90px;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 90px;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    transform: translateY(-150%);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    gap: 0.5rem;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1.15rem;
    padding: 0.75rem 1rem;
  }

  /* Mobile Dropdowns */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent-warm);
    background-color: transparent;
    padding: 0.25rem 0 0.5rem 1rem;
    display: none; /* Toggle via JS in mobile */
    margin-top: 0.25rem;
    width: 100%;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-toggle::after {
    margin-left: auto;
  }

  .burger {
    display: flex;
  }

  /* Active Nav State */
  .nav-active {
    transform: translateY(0%);
  }

  /* Footer layout */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand .contact-info li {
    justify-content: center;
  }

  .footer-section a:hover {
    padding-left: 0;
  }
}

@media (max-width: 968px) {
  .formation-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .formation-sidebar {
    position: static;
  }

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

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 5rem 1rem 4rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-credo {
    padding: 1.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .formation-hero {
    padding: 3rem 1rem 2.5rem;
  }

  .formation-meta {
    gap: 1rem;
    flex-direction: column;
  }
}


/* ==========================================================================
   ALTERNATIVE THEME - BLUE & SAGE (CHARTE ALTERNATIVE)
   To activate, simply add class="theme-alt" to the <body> tag.
   ========================================================================== */
body.theme-alt {
  --primary: #1a365d;          /* Bleu abysse / Tech corporate */
  --primary-light: #2a4d7c;    /* Bleu ardoise clair */
  --primary-dark: #0f223f;     /* Bleu nuit profond */
  --accent: #2d7a7a;           /* Sauge / Teal médical */
  --accent-light: #3d8f8f;     /* Sauge claire */
  --accent-warm: #d9c5a0;      /* Sable doré de prestige */
  --bg-cream: #edf2f7;         /* Gris brume épuré */
  --bg-white: #f7fafc;         /* Blanc de sécurité épuré */
  --it-accent: #3182ce;        /* Bleu cobalt */
  --shadow-primary: 0 8px 24px rgba(26, 54, 93, 0.15);
}

/* ==========================================================================
   VOLET LATÉRAL DE NAVIGATION (SIDEBAR DRAWER)
   ========================================================================== */

/* Overlay d'arrière-plan sombre */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 1900;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.sidebar-overlay.overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Panneau latéral rétractable */
.sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background-color: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(15px);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

/* Adaptation du fond en charte alternative */
body.theme-alt .sidebar-drawer {
  background-color: rgba(247, 250, 252, 0.97);
  border-left-color: rgba(255, 255, 255, 0.1);
}

.sidebar-drawer.sidebar-active {
  transform: translateX(0);
}

/* En-tête du volet */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sidebar-close-btn {
  background: none;
  border: none;
  font-size: 2.25rem;
  color: var(--text-medium);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.sidebar-close-btn:hover {
  color: var(--error-color);
  transform: rotate(90deg);
}

/* Zone de contenu défilante */
.sidebar-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Navigation */
.sidebar-nav {
  width: 100%;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-links a {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-medium);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.sidebar-links a:hover,
.sidebar-links a.active {
  color: var(--primary);
  background-color: rgba(61, 90, 60, 0.06);
  padding-left: 1.35rem;
}

body.theme-alt .sidebar-links a:hover,
body.theme-alt .sidebar-links a.active {
  color: var(--primary);
  background-color: rgba(26, 54, 93, 0.06);
}

/* Titres de sous-rubriques */
.sidebar-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-warm);
  font-family: var(--font-body);
}

body.theme-alt .sidebar-section-title {
  border-left-color: var(--accent);
}

/* Encart RPS-ONLINE */
.sidebar-card-cornerstone {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-card-cornerstone h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin: 0;
}

.sidebar-card-cornerstone p {
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.5;
  margin: 0;
}

.rps-launch-link {
  display: block;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.rps-launch-link:hover {
  background-color: var(--primary-light);
  color: var(--white);
}

/* Pied de page du volet */
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.sidebar-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-footer a:hover {
  text-decoration: underline;
}

/* Masquer le déclencheur bureau sur les petits écrans */
@media (max-width: 1100px) {
  .desktop-menu-trigger-li {
    display: none !important;
  }
}

/* ==========================================================================
   MODULE DE RECHERCHE - EDP CONSEIL & FORMATION 2026
   ========================================================================== */

dialog#search-modal {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 650px;
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
  padding: 0;
  margin: 12vh auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--text-dark);
}

dialog#search-modal[open] {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  dialog#search-modal[open] {
    opacity: 0;
    transform: translateY(-20px);
  }
}

dialog#search-modal::backdrop {
  background: rgba(42, 61, 41, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

dialog#search-modal[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog#search-modal[open]::backdrop {
    opacity: 0;
  }
}

.search-modal-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 75vh;
}

/* En-tête de recherche */
.search-header {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
}

.search-header-icon {
  position: absolute;
  left: 1.25rem;
  font-size: 1.15rem;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 1.2rem 3rem 1.2rem 3.2rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-dark);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.search-clear-btn {
  position: absolute;
  right: 3.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  width: 24px;
  height: 24px;
  transition: background-color var(--transition-fast);
}

.search-clear-btn:hover {
  background-color: var(--border-color);
  color: var(--text-dark);
}

.search-close-x {
  position: absolute;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-medium);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.search-close-x:hover {
  background-color: var(--error-color);
  color: var(--white);
}

/* Zone des résultats */
.search-results-wrapper {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.search-results-wrapper::-webkit-scrollbar {
  width: 6px;
}
.search-results-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.search-results-wrapper::-webkit-scrollbar-thumb {
  background: var(--accent-warm);
  border-radius: var(--radius-sm);
}
.search-results-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

.search-category-section {
  margin-bottom: 1.5rem;
}

.search-category-section:last-child {
  margin-bottom: 0;
}

.search-category-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.5rem;
  font-family: var(--font-body);
}

.search-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-item {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background-color: rgba(61, 90, 60, 0.02);
  transition: all var(--transition-fast);
  cursor: pointer;
  outline: none;
}

.search-item:hover,
.search-item:focus {
  background-color: rgba(61, 90, 60, 0.06);
  border-color: rgba(61, 90, 60, 0.12);
  transform: translateX(4px);
}

.search-item.search-item-focused {
  background-color: rgba(61, 90, 60, 0.08);
  border-color: var(--primary);
  transform: translateX(4px);
}

/* Modulations de couleur de survol en thème alternatif */
body.theme-alt .search-item:hover,
body.theme-alt .search-item:focus,
body.theme-alt .search-item.search-item-focused {
  background-color: rgba(26, 54, 93, 0.06);
  border-color: rgba(26, 54, 93, 0.12);
}

body.theme-alt .search-category-title {
  border-left-color: var(--accent);
}

.search-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.search-item-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.search-item-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  background-color: var(--accent-warm);
  color: var(--primary-dark);
}

.search-item-desc {
  font-size: 0.88rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.4;
}

/* Surbrillance du texte */
mark.search-highlight {
  background-color: rgba(232, 220, 200, 0.85);
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: 2px;
  padding: 0 1px;
}

body.theme-alt mark.search-highlight {
  background-color: rgba(232, 220, 200, 0.85);
}

/* État vide */
.search-no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-light);
}

.search-no-results span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.search-no-results p {
  margin-bottom: 0.25rem;
}

/* Pied de page de la modale */
.search-footer {
  border-top: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.01);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-light);
}

.search-shortcuts {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-shortcuts li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.search-key {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
  padding: 0.1rem 0.35rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-medium);
}

/* Responsive Search Modal */
@media (max-width: 768px) {
  dialog#search-modal {
    margin: 5vh auto;
    width: 95%;
    max-height: 85vh;
  }
  
  .search-results-wrapper {
    padding: 1rem;
  }
  
  .search-footer {
    display: none;
  }
}

/* Intégration styles boutons déclencheurs */
.search-trigger-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.2s ease, color var(--transition-fast);
}

.search-trigger-btn:hover {
  transform: scale(1.15);
  color: var(--accent);
}

.sidebar-search-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  margin-bottom: 0.5rem;
}

.sidebar-search-btn:hover {
  border-color: var(--primary-light);
  background: rgba(61, 90, 60, 0.04);
  color: var(--primary-dark);
}

body.theme-alt .sidebar-search-btn:hover {
  border-color: var(--primary-light);
  background: rgba(26, 54, 93, 0.04);
  color: var(--it-accent);
}


/* ==========================================================================
   INTERACTIVE TRUST SECTION (Ils me font confiance - Onglets)
   ========================================================================== */

.trust-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.trust-tab {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-body);
  text-align: left;
  flex: 1 1 220px;
  max-width: 280px;
  box-shadow: var(--shadow-sm);
}

.trust-tab:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.trust-tab-icon {
  font-size: 2.2rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.trust-tab:hover .trust-tab-icon {
  transform: scale(1.15);
}

.trust-tab-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-tab-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  transition: color var(--transition-fast);
}

.trust-tab-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  transition: color var(--transition-fast);
  font-weight: 600;
}

/* Active Tab State */
.trust-tab.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.trust-tab.active .trust-tab-title {
  color: var(--white);
}

.trust-tab.active .trust-tab-subtitle {
  color: var(--accent-warm);
}

/* Panels & Content Grid */
.trust-panels {
  position: relative;
  min-height: 320px;
}

.trust-panel {
  display: none;
}

.trust-panel.active {
  display: block;
  animation: fadeIn var(--transition-normal) forwards;
}

.trust-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

/* Left side: Testimonial Card Override */
.trust-panel .testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--accent);
  padding: 3rem 2.5rem 2.5rem;
}

/* Right side: Case Details */
.trust-details {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.trust-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.details-title {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 700;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.details-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-medium);
  margin-bottom: 0;
}

.details-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.details-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-dark);
}

.details-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.05rem;
}

.details-cta {
  margin-top: auto;
  padding-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 968px) {
  .trust-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .trust-tab {
    flex: 1 1 45%;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .trust-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .trust-tab {
    flex: 1 1 auto;
    padding: 1rem 1.25rem;
  }
  .trust-details {
    padding: 1.75rem;
  }
}



