/* ========================================
   CAP APPRENDRE — Santé / Orthopédagogie
   Palette : bleu-vert sérénité + blanc + menthe + corail
   Typo : Nunito (titres) + DM Sans (corps)
   ======================================== */

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: all 0.2s; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Nunito', 'DM Sans', system-ui, sans-serif;
  color: #0f172a;
  line-height: 1.25;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img { height: 38px; width: auto; }

.header-logo span {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.2em;
  color: #0f172a;
}

.header-logo span em {
  font-style: normal;
  color: #0d9488;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92em;
  color: #475569;
}

.header-tel svg { width: 18px; height: 18px; color: #0d9488; }
.header-tel:hover { color: #0d9488; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.92em;
  border-radius: 12px;
  padding: 11px 24px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: #0d9488;
  color: #fff;
}

.btn-primary:hover {
  background: #0f766e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,148,136,0.25);
}

.btn-soft {
  background: #f0fdfa;
  color: #0f766e;
  border: 1.5px solid #99f6e4;
}

.btn-soft:hover {
  background: #ccfbf1;
  border-color: #5eead4;
}

.btn-white {
  background: #fff;
  color: #0d9488;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-white:hover {
  background: #f0fdfa;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1em;
  border-radius: 14px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(170deg, #f0fdfa 0%, #ecfeff 50%, #fff 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content { max-width: 530px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ccfbf1;
  color: #115e59;
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 0.82em;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-badge svg { width: 14px; height: 14px; }

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #0d9488;
}

.hero-sub {
  font-size: 1.1em;
  color: #475569;
  margin-bottom: 12px;
}

.hero-name {
  font-size: 0.95em;
  color: #64748b;
  margin-bottom: 32px;
}

.hero-name strong { color: #0f172a; }

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 80px 0; }

.section--soft { background: #f8fffe; }

.section-eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0d9488;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05em;
  color: #64748b;
  max-width: 580px;
  margin-bottom: 48px;
}

.section--center { text-align: center; }
.section--center .section-sub { margin-left: auto; margin-right: auto; }

/* ========================================
   PILLARS (3 cards)
   ======================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px 28px;
  transition: all 0.25s;
}

.pillar:hover {
  border-color: #99f6e4;
  box-shadow: 0 12px 32px rgba(13,148,136,0.08);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.pillar-icon svg { width: 26px; height: 26px; }

.pillar-icon--teal   { background: #ccfbf1; color: #0d9488; }
.pillar-icon--blue   { background: #dbeafe; color: #2563eb; }
.pillar-icon--coral  { background: #ffe4e6; color: #e11d48; }

.pillar h3 {
  font-size: 1.15em;
  font-weight: 800;
  margin-bottom: 8px;
}

.pillar p {
  font-size: 0.95em;
  color: #64748b;
  line-height: 1.65;
}

/* ========================================
   SPLIT (mission)
   ======================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.split-text p {
  color: #475569;
  margin-bottom: 14px;
}

.split-visual { display: flex; justify-content: center; }
.split-visual svg { width: 100%; max-width: 420px; height: auto; }

.check-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95em;
  color: #334155;
}

.check-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #14b8a6;
  margin-top: 3px;
}

/* ========================================
   SERVICES (grid)
   ======================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 6px 20px rgba(13,148,136,0.06);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f0fdfa;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card-icon svg { width: 22px; height: 22px; }

.service-card h4 {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.9em;
  color: #64748b;
  line-height: 1.6;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta {
  padding: 72px 0;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  text-align: center;
  color: #fff;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05em;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-tags {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.cta-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.88em;
  font-weight: 600;
}

.cta-tag svg { width: 18px; height: 18px; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand-block { max-width: 360px; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand img { height: 28px; width: auto; }

.footer-brand span {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: #e2e8f0;
}

.footer-desc { font-size: 0.88em; line-height: 1.6; color: #64748b; }

.footer-nav { display: flex; gap: 28px; }

.footer-nav a {
  font-size: 0.9em;
  color: #94a3b8;
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.82em;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.88em;
}

.footer-badge svg { width: 14px; height: 14px; }

/* ========================================
   MOBILE FLOATING CTA
   ======================================== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 200;
  background: #0d9488;
  color: #fff;
  padding: 14px 20px;
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1em;
  text-align: center;
  box-shadow: 0 8px 30px rgba(13,148,136,0.35);
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-cta svg { width: 20px; height: 20px; }
.mobile-cta:hover { background: #0f766e; color: #fff; }

/* ========================================
   INNER PAGES
   ======================================== */
.page-hero {
  padding: 56px 0;
  background: linear-gradient(170deg, #f0fdfa 0%, #ecfeff 50%, #fff 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p { color: #64748b; font-size: 1.05em; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

.contact-photo { text-align: center; padding-top: 16px; }

.contact-photo img {
  width: 260px;
  border-radius: 24px;
  margin: 0 auto 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.contact-photo h3 { font-size: 1.2em; font-weight: 800; }
.contact-photo p { color: #64748b; font-size: 0.92em; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.c-card {
  background: #f8fffe;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s;
}

.c-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 4px 12px rgba(13,148,136,0.06);
}

.c-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ccfbf1;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.c-card-icon svg { width: 20px; height: 20px; }

.c-card-label {
  font-size: 0.76em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.c-card-value { font-weight: 600; color: #0f172a; }
.c-card-value a { color: #0d9488; }
.c-card-value a:hover { color: #0f766e; }

/* LEGAL */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.legal-content h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-content p {
  color: #475569;
  font-size: 0.92em;
  line-height: 1.75;
  margin-bottom: 12px;
  text-align: justify;
}

.legal-content em { color: #64748b; }
.legal-content a { color: #0d9488; }
.legal-content a:hover { color: #0f766e; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.3rem; }
  .section-heading { font-size: 1.8rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .mobile-cta { display: flex; }

  .header .container { height: 60px; }
  .header-logo span { display: none; }
  .header-tel span { display: none; }

  .hero { padding: 48px 0 40px; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-img { max-width: 400px; border-radius: 18px; }

  .section { padding: 56px 0; }
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-visual svg { max-width: 280px; }
  .service-grid { grid-template-columns: 1fr; }

  .cta { padding: 56px 0 80px; /* space for mobile CTA */ }
  .cta h2 { font-size: 1.5rem; }
  .cta-tags { flex-direction: column; align-items: center; }

  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 1.8rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-photo { padding-bottom: 24px; }
  .contact-photo img { width: 200px; }
  .contact-cards { grid-template-columns: 1fr; padding-bottom: 24px; }

  .footer { padding: 32px 0 90px; /* space for mobile CTA */ }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }
  .section-heading { font-size: 1.45rem; }
  .footer-nav { flex-direction: column; gap: 10px; text-align: center; }
}

/* === ACCESSIBILITY: Focus visible === */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}
