/*
Theme Name: Co-Déclic
Theme URI: https://co-declicformation.com
Author: Co-Déclic Conseil & Formation
Author URI: https://co-declicformation.com
Description: Thème sur-mesure pour Co-Déclic Conseil & Formation — Santé, sécurité & dialogue social.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codeclic
Tags: formation, cse, rps, qvct
*/

/* =====================================================
   VARIABLES & RESET
   ===================================================== */
:root {
  --navy:       #0a2f42;
  --red:        #c33c38;
  --white:      #ffffff;
  --navy-light: #163d55;
  --cream:      #f8f5f0;
  --shadow-sm:  0 2px 16px rgba(10,47,66,0.06);
  --shadow-md:  0 8px 40px rgba(10,47,66,0.12);
  --shadow-lg:  0 16px 48px rgba(10,47,66,0.14);
  --radius:     4px;
  --transition: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }
ul { list-style: none; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
p { color: var(--navy-light); font-weight: 300; line-height: 1.78; }

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
}
.section-wrap { padding: 6rem 0; }
.section-tag {
  display: block;
  font-size: 0.71rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  color: var(--navy);
  line-height: 1.25;
  max-width: 560px;
  margin-bottom: 1.2rem;
}
.section-sub {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--navy-light);
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(195,60,56,0.22);
}
.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
  display: inline-block;
  padding: 0.85rem 2rem;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition);
  border-radius: var(--radius);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  transform: translateY(-2px);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,47,66,0.08);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(10,47,66,0.12); }
.nav-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 1.1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 70px; width: auto; }
.nav-logo a { display: block; }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius) !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--navy) !important; }
.nav-cta::after { display: none !important; }

/* Niveau 1 — item avec enfants */
.nav-links .menu-item-has-children { position: relative; }

/* Niveau 2 — sous-menu */
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(10,47,66,0.1);
  border-radius: var(--radius);
  min-width: 240px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 100;
}
.nav-links .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  pointer-events: all;
}
.nav-links .sub-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy-light);
  font-weight: 400;
}
.nav-links .sub-menu a:hover { color: var(--red); background: var(--cream); }
.nav-links .sub-menu a::after { display: none !important; }

/* Niveau 3 — sous-sous-menu */
.nav-links .sub-menu .menu-item-has-children { position: relative; }
.nav-links .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  transform: none;
  opacity: 0;
  pointer-events: none;
}
.nav-links .sub-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  pointer-events: all;
}

/* Dropdown */
.nav-item-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100%);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(10,47,66,0.1);
  border-radius: var(--radius);
  min-width: 240px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform-origin: top center;
  padding: 0.5rem 0;
  list-style: none;
}
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy-light);
  font-weight: 400;
}
.nav-dropdown li a:hover { color: var(--red); background: var(--cream); }
.nav-dropdown li a::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid rgba(10,47,66,0.08);
  padding: 1.5rem 3rem;
  gap: 0.8rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(10,47,66,0.06);
}
.nav-mobile .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius) !important;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  right: -8%; top: -10%;
  width: 55vw; height: 120vh;
  background: var(--navy);
  clip-path: ellipse(52% 75% at 72% 50%);
  opacity: 0.055;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 10%; left: 4%;
  width: 160px; height: 160px;
  border: 2px solid var(--red);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

.hero-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 4rem 3rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.hero-content { animation: fadeUp 0.9s ease both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(32px)} to{opacity:1;transform:translateY(0)} }

.hero-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.9s 0.1s ease both;
  border-radius: 2px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1.6rem;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero-devise {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--navy-light);
  font-weight: 300;
  border-left: 3px solid var(--red);
  padding-left: 1.2rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.9s 0.35s ease both;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.5s ease both;
}

/* Hero card stack */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-card-stack {
  position: relative;
  width: 380px;
  height: 480px;
}

/* BASE CARD */
.hero-card {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: box-shadow 0.3s ease, filter 0.3s ease;
  z-index: 1;
  padding : 80px 40px;
}

/* HOVER : carte au-dessus */
.hero-card:hover {
  z-index: 50;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}

/* CARD 1 */
.hero-card:nth-child(1) {
  top: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  animation: cardFloat1 5s ease-in-out infinite;
  transform: rotate(-3deg);
}

/* CARD 2 */
.hero-card:nth-child(2) {
  top: 110px;
  left: 10px;
  right: -10px;
  background: var(--white);
  animation: cardFloat2 5.5s ease-in-out infinite;
  transform: rotate(1.5deg);
}

/* CARD 3 */
.hero-card:nth-child(3) {
  top: 225px;
  left: -10px;
  right: 0px;
  background: var(--red);
  color: var(--white);
  animation: cardFloat3 6s ease-in-out infinite;
  transform: rotate(-1deg);
}

/* FLOAT ANIMATIONS (inchangées pour éviter conflits avec hover) */
@keyframes cardFloat1 {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-8px); }
}

@keyframes cardFloat2 {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-6px); }
}

@keyframes cardFloat3 {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-10px); }
}

/* TYPO */
.hero-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.hero-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: inherit;
}

.hero-card:nth-child(2) h3 {
  color: var(--navy);
}

.hero-card p {
  font-size: 0.79rem;
  opacity: 0.85;
  line-height: 1.5;
  color: inherit;
}

.hero-card:nth-child(2) p {
  color: var(--navy-light);
}

/* =====================================================
   BADGES BAR
   ===================================================== */
.badges-bar { background: var(--navy); }
.badges-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.79rem;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.badge-sep { color: rgba(255,255,255,0.18); }

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar { background: var(--cream); border-bottom: 1px solid rgba(10,47,66,0.08); }
.stats-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 3rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -3rem; top: 10%; height: 80%;
  width: 1px; background: rgba(10,47,66,0.12);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-light);
  opacity: 0.65;
}

/* =====================================================
   FORMATIONS SECTION (homepage grid)
   ===================================================== */
   
.formations-bg { background: var(--white); }
.formations-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

/* Formation/Atelier Cards */
.card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-top { height: 5px; background: var(--red); }
.card--navy .card-top { background: var(--navy); }
.card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.card-ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(195,60,56,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.card--navy .card-ico { background: rgba(10,47,66,0.08); }
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.card p {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--navy-light);
  font-weight: 300;
  margin-bottom: 1.2rem;
  flex: 1;
}
.card-badge {
  display: inline-block;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10,47,66,0.08);
  color: var(--navy);
  padding: 0.22rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.card-badge--red { background: rgba(195,60,56,0.1); color: var(--red); }
.card-link {
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
  margin-top: auto;
}
.card-link:hover { gap: 0.9rem; color: var(--navy); }
.card-link::after { content: '→'; }

/* =====================================================
   DEVISE BAND
   ===================================================== */
.devise-band {
  background: var(--red);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.devise-band::before {
  content: '"';
  position: absolute;
  top: -2rem; left: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 18rem;
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  color: var(--white);
}
.devise-band-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.devise-band p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.55;
  font-style: italic;
  max-width: 820px;
  margin: 0 auto;
  color: var(--white);
}
.devise-band-author {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.65;
  margin-top: 1.6rem;
  color: var(--white);
}

/* =====================================================
   POURQUOI CO-DÉCLIC
   ===================================================== */
.why-bg { background: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-words { display: flex; flex-direction: column; gap: 2rem; }
.why-word {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.8rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}
.why-word:hover { transform: translateX(6px); }
.why-word-label {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  min-width: 80px;
  line-height: 1;
  padding-top: 0.2rem;
}
.why-word--navy .why-word-label { color: var(--navy); }
.why-word-desc h4 { font-weight: 500; font-size: 1rem; margin-bottom: 0.4rem; color: var(--navy); font-family: 'DM Sans', sans-serif; }
.why-word-desc p { font-size: 0.85rem; line-height: 1.65; color: var(--navy-light); font-weight: 300; }

/* =====================================================
   APPROCHE (dark section)
   ===================================================== */
.approche-bg { background: var(--navy); }
.approche-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.approche-inner .section-title { color: var(--white); max-width: 100%; }
.approche-inner .section-sub { color: rgba(255,255,255,0.58); max-width: 100%; }
.approche-inner .section-tag { color: rgba(255,255,255,0.42); }
.steps { display: flex; flex-direction: column; gap: 1.8rem; }
.step {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s, transform 0.5s;
}
.step.visible { opacity: 1; transform: translateX(0); }
.step:nth-child(2) { transition-delay: 0.15s; }
.step:nth-child(3) { transition-delay: 0.3s; }
.step:nth-child(4) { transition-delay: 0.45s; }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
  min-width: 2.5rem;
}
.step-text h4 { font-weight: 500; margin-bottom: 0.3rem; font-size: 0.95rem; color: var(--white); font-family: 'DM Sans', sans-serif; }
.step-text p { font-size: 0.82rem; line-height: 1.6; opacity: 0.52; font-weight: 300; color: var(--white); }

/* =====================================================
   TÉMOIGNAGES
   ===================================================== */
.temos-bg { background: var(--white); }
.temos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.temo {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.3s;
}
.temo:hover { transform: translateY(-4px); }
.temo::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--red);
  opacity: 0.14;
  position: absolute;
  top: 0.5rem; left: 1.2rem;
  line-height: 1;
}
.temo-text {
  font-size: 0.87rem;
  line-height: 1.72;
  color: var(--navy-light);
  font-weight: 300;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}
.temo-author { display: flex; align-items: center; gap: 0.9rem; }
.temo-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 500;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.temo-name { font-weight: 500; font-size: 0.83rem; color: var(--navy); }
.temo-role { font-size: 0.73rem; color: var(--navy-light); opacity: 0.6; }

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-bg { background: var(--cream); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--navy);
  line-height: 1.3;
}
.contact-info-block > p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--navy-light);
  font-weight: 300;
  margin-bottom: 2rem;
}
.contact-items { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.8rem; }
.contact-item { display: flex; gap: 0.9rem; align-items: center; font-size: 0.85rem; color: var(--navy-light); }
.contact-item-icon {
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.qualiopi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10,47,66,0.06);
  border: 1px solid rgba(10,47,66,0.14);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 1.5rem;
}
.qualiopi-badge:hover { background: rgba(10,47,66,0.1); color: var(--navy); }
.qualiopi-badge span { color: var(--red); }
.contact-certifs { border-top: 1px solid rgba(10,47,66,0.1); padding-top: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.certif-item { font-size: 0.73rem; color: var(--navy-light); opacity: 0.58; line-height: 1.5; }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 32px rgba(10,47,66,0.07);
}
.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(10,47,66,0.15);
  background: var(--cream);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); background: var(--white); }
textarea { resize: vertical; min-height: 110px; }
.form-submit { width: fit-content; }

/* =====================================================
   INNER PAGE HERO (formations, ateliers)
   ===================================================== */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -5%; top: -20%;
  width: 40vw; height: 140%;
  background: rgba(195,60,56,0.06);
  clip-path: ellipse(60% 80% at 65% 50%);
}
.page-hero-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 1;
}
.page-hero .section-tag { color: rgba(255,255,255,0.5); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 3rem);
  max-width: 700px;
  margin-bottom: 1.2rem;
}
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.78;
  font-weight: 300;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { opacity: 0.4; }


@media (min-width: 768px) {
  .bloc-ateliers {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* =====================================================
   FORMATION SINGLE PAGE
   ===================================================== */
.formation-single-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}
.formation-content { background: var(--white); border-radius: var(--radius); padding: 3rem; box-shadow: var(--shadow-sm); }
.formation-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--navy); }
.formation-content h2:first-child { margin-top: 0; }
.formation-content p { font-size: 0.9rem; line-height: 1.78; color: var(--navy-light); margin-bottom: 1rem; }
.formation-content ul { margin: 0 0 1.5rem 1.5rem; }
.formation-content ul li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--navy-light);
  font-weight: 300;
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
}
.formation-content ul li::before { content: '→'; position: absolute; left: -0.5rem; color: var(--red); font-size: 0.75rem; top: 0.15em; }

.formation-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--navy);
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--red);
}
.sidebar-meta { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.sidebar-meta-item { display: flex; gap: 0.7rem; align-items: flex-start; }
.sidebar-meta-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.sidebar-meta-text { font-size: 0.83rem; color: var(--navy-light); line-height: 1.4; }
.sidebar-meta-text strong { display: block; color: var(--navy); font-weight: 500; font-size: 0.8rem; }

/* Formation blocs archive */
.bloc-section { margin-bottom: 4rem; }
.bloc-header {
  border-left: 4px solid var(--red);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}
.bloc-header h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 0.5rem; }
.bloc-header p { font-size: 0.9rem; color: var(--navy-light); max-width: 600px; }

/* =====================================================
   ATELIER SINGLE
   ===================================================== */
.atelier-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(195,60,56,0.12);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.atelier-formats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.format-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  border: 1px solid rgba(10,47,66,0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--navy-light);
}
.format-pill .pill-icon { font-size: 1rem; }

/* =====================================================
   FOOTER
   ===================================================== */
footer { background: var(--navy); }
.footer-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 4rem 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
}
footer h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 500;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
footer ul a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 0.81rem;
  transition: color 0.2s;
}
footer ul a:hover { color: var(--red); }
.footer-logo img { height: 42px; filter: brightness(0) invert(1); opacity: 0.8; margin-bottom: 1rem; display: block; }
.footer-logo-desc { font-size: 0.81rem; color: rgba(255,255,255,0.80); line-height: 1.68; max-width: 260px; margin-bottom: 1.2rem; }
.footer-legal-nums { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-legal-nums span { font-size: 0.69rem; color: rgba(255,255,255,0.80); }
.footer-bottom {
  max-width: 1420px;
  margin: 0 auto;
  padding: 1.2rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom > span { font-size: 0.72rem; color: rgba(255,255,255,0.80); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.80); font-size: 0.72rem; text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--red); }

/* =====================================================
   SUB FOOTER
   ===================================================== */
.sub-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    font-size: .85rem;
    line-height: 1.7;
    
}

.sub-footer p {
    margin: .4rem 0;
    color: rgba(255,255,255,0.80);
}

.sub-footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sub-footer a:hover {
    opacity: 1;
}

/* =====================================================
   COLLAB BAND
   ===================================================== */
.collab-band { background: var(--white); border-top: 1px solid rgba(10,47,66,0.07); border-bottom: 1px solid rgba(10,47,66,0.07); }
.collab-inner { max-width: 1420px; margin: 0 auto; padding: 2.5rem 3rem; text-align: center; }
.collab-inner p { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(10,47,66,0.35); margin-bottom: 1.5rem; }
.collab-logos { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; }
.collab-logos a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(10,47,66,0.45);
  text-decoration: none;
  transition: color 0.2s;
  border: 1px solid rgba(10,47,66,0.15);
  padding: 0.4rem 1rem;
  border-radius: 2px;
}
.collab-logos a:hover { color: var(--red); border-color: var(--red); }

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band { background: var(--red); padding: 4rem 0; }
.cta-band-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h3 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.6rem; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 0.4rem; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container, .nav-inner, .badges-inner, .stats-inner,
  .devise-band-inner, .footer-inner, .footer-bottom,
  .page-hero-inner, .cta-band-inner, .collab-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .hero-visual { display: none; }
  .why-grid, .approche-inner, .contact-inner, .formation-single-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .temos-grid, .cards-grid { grid-template-columns: 1fr; }
  .section-wrap { padding: 4rem 0; }
  .stat:not(:last-child)::after { display: none; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .formation-sidebar { position: static; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
}
