/* ==========================================================================
   Académie Ciel & Terre — Design System
   Sky (ciel) meets earth (terre): a literal horizon runs through the page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Work+Sans:wght@300;400;500;600&family=Space+Grotesk:wght@400;500&display=swap');

:root {
  /* Color tokens */
  --sky-mist: #DCE6E0;
  --sky-pale: #EFF2ED;
  --sky-deep: #6E8894;
  --earth-clay: #B5654A;
  --earth-clay-dark: #96513B;
  --earth-soil: #3E332B;
  --paper: #F6F1E7;
  --paper-warm: #F1EADA;
  --gold: #B8922E;
  --line: rgba(62, 51, 43, 0.14);

  /* Type */
  --display: 'Fraunces', serif;
  --body: 'Work Sans', sans-serif;
  --label: 'Space Grotesk', sans-serif;

  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--earth-soil);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-weight: 400; }

p { margin: 0; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--label);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--earth-clay-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--earth-clay);
}

/* ---------- Horizon signature element ---------- */
.horizon {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--sky-deep) 0%, var(--sky-mist) 35%, var(--earth-clay) 65%, var(--earth-clay-dark) 100%);
}
.horizon-thin {
  height: 1px;
  background: linear-gradient(90deg, var(--sky-deep), var(--earth-clay));
  opacity: 0.5;
  border: none;
  margin: 0;
}

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.01em;
}
.brand strong { color: var(--earth-clay); font-weight: 500; }
nav.links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: 0.03em;
}
nav.links a {
  opacity: 0.75;
  transition: opacity 0.2s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
nav.links a:hover, nav.links a.active { opacity: 1; border-color: var(--earth-clay); }
.nav-cta {
  font-family: var(--label);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  background: var(--earth-soil);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 2px;
  opacity: 1 !important;
  border: none !important;
}
.nav-cta:hover { background: var(--earth-clay-dark); }

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border-radius: 2px;
  border: 1px solid var(--earth-soil);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary { background: var(--earth-soil); color: var(--paper); }
.btn-primary:hover { background: var(--earth-clay-dark); border-color: var(--earth-clay-dark); }
.btn-ghost { background: transparent; color: var(--earth-soil); }
.btn-ghost:hover { background: var(--earth-soil); color: var(--paper); }
.btn svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 90px;
  background:
    radial-gradient(ellipse 900px 500px at 80% -10%, var(--sky-mist), transparent),
    linear-gradient(180deg, var(--sky-pale) 0%, var(--paper) 78%);
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  margin: 22px 0 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--earth-clay);
}
.hero p.lead {
  font-size: 17.5px;
  max-width: 46ch;
  color: rgba(62,51,43,0.82);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero horizon graphic: literal sky-to-earth disc */
.horizon-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #C9D7CE 0%, var(--sky-mist) 42%, var(--earth-clay) 43%, var(--earth-clay-dark) 100%);
  box-shadow: 0 30px 60px -20px rgba(62,51,43,0.35);
}
.horizon-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 30%, rgba(255,255,255,0.55), transparent 40%);
}
.horizon-art .sun {
  position: absolute;
  width: 15%;
  height: 15%;
  border-radius: 50%;
  background: var(--gold);
  top: 26%;
  left: 62%;
  box-shadow: 0 0 40px 6px rgba(184,146,46,0.45);
}

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-top: 14px;
}
.section-alt { background: var(--sky-pale); }
.section-dark {
  background: var(--earth-soil);
  color: var(--paper);
}
.section-dark .eyebrow { color: var(--sky-mist); }
.section-dark .eyebrow::before { background: var(--sky-mist); }

/* ---------- Pillars / features ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--paper);
  padding: 34px 28px;
}
.pillar .num {
  font-family: var(--label);
  font-size: 12px;
  color: var(--earth-clay);
  letter-spacing: 0.06em;
}
.pillar h3 {
  font-size: 19px;
  margin: 16px 0 10px;
  font-weight: 500;
}
.pillar p { font-size: 14.5px; color: rgba(62,51,43,0.75); }

/* ---------- Formation cards ---------- */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.f-card {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.f-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(62,51,43,0.35); }
.f-thumb {
  height: 6px;
  background: linear-gradient(90deg, var(--sky-deep), var(--earth-clay));
}
.f-body { padding: 28px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.f-tag {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--earth-clay-dark);
  margin-bottom: 12px;
}
.f-card h3 { font-size: 21px; margin-bottom: 10px; }
.f-card p.desc { font-size: 14.5px; color: rgba(62,51,43,0.75); margin-bottom: 20px; flex: 1; }
.f-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--label);
  font-size: 12.5px;
}
.f-meta .price { color: var(--earth-clay-dark); font-weight: 500; }

/* ---------- Bio / about split ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.bio-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(165deg, var(--sky-mist), var(--paper-warm) 60%, var(--earth-clay) 130%);
  border: 1px solid var(--line);
  position: relative;
}
.bio-portrait::after {
  content: '“Ciel & Terre”';
  position: absolute;
  bottom: 22px;
  left: 22px;
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--earth-soil);
}
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-portrait.has-photo::after { color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.bio-copy p { margin-bottom: 18px; font-size: 16px; color: rgba(62,51,43,0.85); }
.bio-copy p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 52px;
  float: left;
  line-height: 0.8;
  padding: 6px 8px 0 0;
  color: var(--earth-clay);
}
.quote-line {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--earth-clay);
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
}

/* ---------- Timeline (process, real sequence) ---------- */
.timeline { position: relative; padding-left: 4px; }
.t-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 26px;
  padding-bottom: 44px;
  position: relative;
}
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 34px;
  bottom: -10px;
  width: 1px;
  background: var(--line);
}
.t-item:last-child::before { display: none; }
.t-dot {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--earth-clay);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--label);
  font-size: 13px;
  color: var(--earth-clay-dark);
  background: var(--paper);
  z-index: 1;
}
.t-item h4 { font-size: 19px; margin-bottom: 8px; font-weight: 500; }
.t-item p { font-size: 14.5px; color: rgba(62,51,43,0.75); max-width: 60ch; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: var(--earth-soil);
  color: var(--paper);
  padding: 78px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); font-size: clamp(26px,3.4vw,40px); max-width: 20ch; margin: 0 auto 16px; }
.cta-band p { color: var(--sky-mist); max-width: 50ch; margin: 0 auto 34px; font-size: 16px; }
.cta-band .btn-primary { background: var(--earth-clay); border-color: var(--earth-clay); }
.cta-band .btn-primary:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--sky-pale);
  padding: 56px 0 30px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { font-family: var(--display); font-size: 20px; margin-bottom: 10px; }
.footer-col h5 {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--earth-clay-dark);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p { display: block; margin-bottom: 9px; opacity: 0.85; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  opacity: 0.65;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(62,51,43,0.7);
}
.field input, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 13px 14px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--earth-soil);
  border-radius: 2px;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--earth-clay);
  outline-offset: 1px;
}
.info-card {
  border: 1px solid var(--line);
  padding: 30px;
  background: var(--sky-pale);
}
.info-card h4 { font-size: 15px; margin-bottom: 6px; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.05em; color: var(--earth-clay-dark); }
.info-card p { margin-bottom: 20px; font-size: 14.5px; }
.info-card p:last-child { margin-bottom: 0; }

/* ---------- Utility ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  nav.links { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .horizon-art { max-width: 320px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .formations-grid { grid-template-columns: 1fr 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .formations-grid { grid-template-columns: 1fr; }
  .nav-row { padding: 14px 20px; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

:focus-visible {
  outline: 2px solid var(--earth-clay);
  outline-offset: 2px;
}

/* ==========================================================================
   Additions — pages formations, FAQ, popup, calendrier
   ========================================================================== */

/* Header logo icon */
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }

/* Hero with real image instead of the horizon-art disc */
.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(62,51,43,0.35);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Formation detail hero (image + intro block) */
.fh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fh-img { border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.fh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fh-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--label); font-size: 13px; color: var(--earth-clay-dark); margin: 14px 0 18px; }
.fh-price { font-family: var(--display); font-size: 28px; color: var(--earth-soil); margin-bottom: 4px; }
.fh-dates { font-size: 14px; opacity: 0.75; margin-bottom: 20px; }

/* Benefit list with check marks */
.check-list { list-style: none; margin: 20px 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 15px; color: rgba(62,51,43,0.85); line-height: 1.55; }
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--earth-clay);
}
.check-list li::after {
  content: '';
  position: absolute; left: 5px; top: 9px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Formation sub-block (used to stack several trainings on one page) */
.sub-formation { padding: 56px 0; border-bottom: 1px solid var(--line); }
.sub-formation:last-of-type { border-bottom: none; }
.sub-formation .fh-grid { align-items: start; }

/* Trainer block */
.trainer-block {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: var(--sky-pale); border: 1px solid var(--line); padding: 30px; margin-top: 20px;
}
.trainer-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; }
.trainer-block h4 { font-size: 19px; margin-bottom: 6px; }
.trainer-block p { font-size: 14.5px; color: rgba(62,51,43,0.8); }

/* Trainers trio (supervision page) */
.trainers-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.trainer-card { text-align: center; }
.trainer-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; margin-bottom: 14px; }
.trainer-card h4 { font-size: 17px; margin-bottom: 6px; }
.trainer-card p { font-size: 13.5px; color: rgba(62,51,43,0.75); }

/* Schedule / calendar list */
.schedule-list { border: 1px solid var(--line); background: var(--paper); }
.schedule-item {
  display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(160px, 1fr) auto;
  align-items: center; gap: 10px 24px;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item .sched-name { font-family: var(--display); font-size: 18px; }
.schedule-item .sched-date { font-family: var(--label); font-size: 13px; color: var(--earth-clay-dark); letter-spacing: 0.03em; }
.schedule-item .sched-link { font-family: var(--label); font-size: 12.5px; letter-spacing: 0.03em; border-bottom: 1px solid var(--earth-clay); padding-bottom: 2px; justify-self: start; }

/* Avis / testimonials grid */
.avis-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.avis-card {
  display: block; border: 1px solid var(--line); overflow: hidden; background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.avis-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(62,51,43,0.12); }
.avis-card img { width: 100%; height: auto; display: block; }
.avis-cta { text-align: center; margin-top: 30px; }

/* Social links */
.social-links { display: flex; gap: 18px; margin-top: 22px; }
.social-links a {
  font-family: var(--label); font-size: 13px; letter-spacing: 0.03em;
  border-bottom: 1px solid var(--earth-clay); padding-bottom: 2px;
}

/* FAQ accordion */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--display); font-size: 17px; color: var(--earth-soil);
}
.faq-q .plus { font-family: var(--label); font-size: 22px; color: var(--earth-clay); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 0 24px; font-size: 14.5px; color: rgba(62,51,43,0.8); line-height: 1.65; white-space: pre-line; }

/* Newsletter popup */
.nl-overlay {
  position: fixed; inset: 0; background: rgba(62,51,43,0.55);
  display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px;
}
.nl-overlay.show { display: flex; }
.nl-modal {
  background: var(--paper); max-width: 420px; width: 100%; padding: 38px 34px; position: relative;
  border-top: 4px solid var(--earth-clay);
}
.nl-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--earth-soil); opacity: 0.6; line-height: 1;
}
.nl-close:hover { opacity: 1; }
.nl-modal h3 { font-size: 23px; margin-bottom: 10px; }
.nl-modal p { font-size: 14.5px; color: rgba(62,51,43,0.8); margin-bottom: 22px; }
.nl-modal .field { margin-bottom: 14px; }
.nl-modal input {
  width: 100%; background: #fff; border: 1px solid var(--line); padding: 12px 14px; font-family: var(--body); font-size: 14.5px;
}
.nl-modal .btn { width: 100%; justify-content: center; }
.nl-success { display: none; font-size: 14.5px; color: var(--earth-clay-dark); }

@media (max-width: 920px) {
  .fh-grid { grid-template-columns: 1fr; }
  .trainer-block { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .trainers-trio { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .schedule-item { grid-template-columns: 1fr; align-items: flex-start; }
}

@media (max-width: 700px) {
  .avis-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
}

@media (max-width: 460px) {
  .avis-grid { grid-template-columns: 1fr; max-width: 320px; }
}
