/* Polices auto-hébergées (conformité RGPD — pas d'appel aux serveurs Google) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-800.woff2') format('woff2');
}

:root {
  --red: #F32800;
  --red-dark: #C81F00;
  --orange: #FFA862;
  --orange-light: #FFD9B3;
  --ink: #241B16;
  --ink-soft: #5A4F48;
  --paper: #FFFFFF;
  --cream: #FFF6EF;
  --line: #F0E2D6;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(36, 27, 22, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo-link img { height: 48px; display: block; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  border-bottom-color: var(--orange);
}

.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--red-dark); }

.nav-toggle { display: none; }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--red) 0%, #FF5A24 45%, var(--orange) 100%);
  color: #fff;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: 780px;
  font-weight: 800;
}

.hero p.lead {
  font-size: 1.2rem;
  max-width: 620px;
  color: rgba(255,255,255,0.92);
}

.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #fff;
  color: var(--red) !important;
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { border-color: #fff; }

.btn-solid {
  background: var(--red);
  color: #fff !important;
}
.btn-solid:hover { background: var(--red-dark); }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--cream); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow-dark {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.8rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Grid cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
}

.card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
}

.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0; }

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-link::after { content: " →"; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.pillar .num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { width: 100%; border-radius: var(--radius); }

.stat-row { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; }
.stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 1.9rem; color: var(--red); }
.stat span { color: var(--ink-soft); font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin-left: auto; margin-right: auto; }

/* Services / Formations list pages */
.service-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
.service-block .icon-badge { width: 56px; height: 56px; }
.service-block h3 { margin-bottom: 6px; }
.service-block p { color: var(--ink-soft); margin-bottom: 0; }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  background: var(--orange-light);
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info .info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-info .icon-badge { flex-shrink: 0; }
.contact-info h4 { margin-bottom: 4px; font-size: 1.02rem; }
.contact-info p { color: var(--ink-soft); margin-bottom: 0; }

form.contact-form {
  background: var(--cream);
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  background: #fff;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* Service pricing */
.service-price {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.price-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 20px;
  min-width: 160px;
}
.price-item span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 4px;
}
.price-item strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: var(--red-dark);
}
.price-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 8px;
}
.price-from {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--red-dark);
}

.placeholder-flag {
  background: #FFF3CD;
  border: 1px solid #FFE08A;
  color: #7A5B00;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Legal page */
.legal-content h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content { max-width: 820px; margin: 0 auto; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid img { height: 40px; margin-bottom: 16px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  transition: background .15s ease, transform .15s ease;
}
.social-links a:hover {
  background: var(--red);
  transform: translateY(-2px);
}
.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Photo banners & inline images */
.img-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 8px 0 0;
}
.img-banner img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.img-banner.tall img { height: 460px; }

.service-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
  box-shadow: var(--shadow);
}
.service-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.hero-photo {
  position: relative;
  overflow: hidden;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(243,40,0,0.92) 0%, rgba(255,90,36,0.88) 45%, rgba(255,168,98,0.85) 100%);
  z-index: 1;
}
.hero-photo .container { position: relative; z-index: 2; }

/* Partners */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}
.partner-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.partner-logo:hover { transform: translateY(-3px); }
.partner-logo img {
  max-height: 56px;
  max-width: 170px;
  width: auto;
  height: auto;
  display: block;
}

/* Formation detail sheet */
.formation-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 32px;
}
.formation-card .formation-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.formation-card .formation-category {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
}
.formation-card .formation-head h3 { margin-bottom: 4px; font-size: 1.35rem; }
.formation-card .formation-public {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}
.formation-card .objectives {
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}
.formation-card .objectives li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.formation-card .objectives li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}
.formation-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--cream);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 16px;
}
.formation-meta .meta-item span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 4px;
}
.formation-meta .meta-item strong { font-size: 0.94rem; }
.formation-foot {
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}

/* Values grid (About page) */
.value-card { text-align: center; }
.value-card .icon-badge { margin: 0 auto 18px; }

/* Responsive */
@media (max-width: 860px) {
  .grid-3, .grid-2, .grid-4, .pillars, .split, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .main-nav { display: none; }
  .hero { padding: 64px 0 80px; }
  section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
  .formation-meta { grid-template-columns: repeat(2, 1fr); }
  .formation-card { padding: 26px; }
}
