/* ==========================================================================
   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-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;
  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;
}

/* ---------- Real photo frame (no placeholder gradient/quote) ---------- */
.photo-frame {
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-frame-wide {
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.photo-frame-wide img { width: 100%; height: 100%; object-fit: cover; display: block; }
