/* ==========================================================================
   Horizon.co — feuille de style
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:ital,wght@0,400;0,600;1,400&family=Raleway:wght@500;600&display=swap');

:root {
  --teal: #0a6777;
  --teal-dark: #084e5a;
  --teal-darker: #063a44;
  --blue: #0f4c81;
  --blue-light: #5fa3b2;
  --sage: #8daa91;
  --sand: #e6dccf;
  --cream: #f5f5f5;
  --ink: #2c2f31;
  --ink-soft: #5b6265;
  --white: #ffffff;

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --content: 780px;
  --wide: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(8, 78, 90, 0.07);
  --shadow: 0 18px 40px -18px rgba(8, 78, 90, 0.3);
  --shadow-lg: 0 40px 80px -28px rgba(8, 78, 90, 0.36);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--teal-darker);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.container { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: var(--section-y) 0; }

.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.overline::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--sage), var(--teal));
  display: inline-block;
}
.overline--light { color: var(--sand); }
.overline--light::before { background: linear-gradient(90deg, var(--sand), var(--white)); }

.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(10, 103, 119, 0.55);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: var(--white); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---- En-tête / navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(8,78,90,0.08);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 36px; width: auto; display: block; }
.site-logo--footer img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2.1rem; }
.site-nav__links { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.site-nav__links a {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 0.3em 0;
}
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--teal);
  transition: right 0.3s var(--ease);
}
.site-nav__links a:hover::after,
.site-nav__links a.is-active::after { right: 0; }
.site-nav__links a.is-active { color: var(--teal); }
.site-nav__links a.btn {
  color: var(--white);
}
.site-nav__links a.btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-darker);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

@media (max-width: 880px) {
  .site-nav__links {
    position: fixed;
    inset: 68px 0 0 0;
    flex-direction: column;
    background: var(--white);
    padding: 2rem var(--gutter);
    gap: 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .site-nav__links.is-open {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .site-nav .btn { display: none; }
  .site-nav__links .btn { display: inline-flex; margin-top: 0.5rem; }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(5rem, 11vw, 9rem);
  background: #04141c;
  color: var(--white);
}
.hero__inner { position: relative; z-index: 3; max-width: 760px; }

/* ---- Scène ciel animée (soleil + étoiles) ---- */
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.sky-base,
.sky-day,
.sky-glow {
  position: absolute;
  inset: 0;
}
.sky-base {
  background: linear-gradient(180deg, #04141c 0%, #063a44 55%, #0a6777 100%);
}
.sky-day {
  background: linear-gradient(180deg, #0f4c81 0%, #0a6777 45%, #5fa3b2 100%);
  opacity: 0;
}
.sky-glow {
  background: radial-gradient(ellipse 60% 45% at 50% 100%, rgba(255, 176, 110, 0.7), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0;
}
.stars {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: none;
}
.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.75);
  animation-name: twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.sun {
  position: absolute;
  width: clamp(34px, 5vw, 58px);
  height: clamp(34px, 5vw, 58px);
  margin: calc(clamp(34px, 5vw, 58px) / -2) 0 0 calc(clamp(34px, 5vw, 58px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6dd, #ffd479 45%, #ff9d4d 100%);
  box-shadow: 0 0 40px 14px rgba(255, 180, 90, 0.55);
  opacity: 0;
  left: 0;
  top: 0;
  will-change: left, top, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .sun { box-shadow: 0 0 24px 8px rgba(255, 180, 90, 0.4); }
}
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(245,245,245,0.88); font-size: 1.2rem; max-width: 620px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* horizon line signature */
.horizon-line {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage), var(--teal), var(--sage), transparent);
  margin: 0 auto;
  max-width: 220px;
}

/* ---- Intro ---- */
.intro { text-align: center; }
.intro h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.intro p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---- Cartes génériques ---- */
.grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.75rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid rgba(8,78,90,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--teal-darker); }
.card p:last-child { margin-bottom: 0; }

.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--teal {
  background: linear-gradient(150deg, var(--teal-darker), var(--teal));
  color: var(--cream);
}
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal p { color: rgba(245,245,245,0.85); }

/* ---- Étapes (démarche) ---- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .step__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--sand);
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 { color: var(--white); }

.devise-line {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: 0.02em;
  margin: 0;
  color: rgba(245,245,245,0.92);
}
.devise-line span { color: var(--sand); }

/* ---- Fondatrice ---- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } }
.founder__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  outline: 1px solid rgba(8,78,90,0.1);
}
.founder__body .lead { font-family: var(--font-accent); font-size: 1.2rem; color: var(--teal-darker); font-weight: 600; }

/* ---- Teaser fondatrice compact (page d'accueil) ---- */
.founder-teaser {
  max-width: 640px;
  text-align: center;
}
.founder-teaser h2 { margin-bottom: 0.9rem; }
.founder-teaser .lead { font-size: 1.08rem; margin-bottom: 1.6rem; }

/* ---- Valeurs statistiques (crédibilité, données réelles) ---- */
.stat { text-align: center; }
.stat__num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--teal); display: block; }
.stat__label { font-family: var(--font-accent); font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.02em; }

/* ---- Offres ---- */
.offer {
  background: var(--white);
  border: 1px solid rgba(8,78,90,0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.offer--featured {
  background: linear-gradient(165deg, var(--teal-darker), var(--teal));
  color: var(--white);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.offer--featured h3, .offer--featured .offer__price { color: var(--white); }
.offer--featured .offer__desc { color: rgba(245,245,245,0.85); }
.offer--featured .offer__list li { color: rgba(245,245,245,0.92); }
.offer--featured .offer__list li::before { color: var(--sand); }
.offer__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--sand);
  color: var(--teal-darker);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.offer__price { font-family: var(--font-heading); font-weight: 800; font-size: 1.9rem; color: var(--teal-darker); margin-bottom: 0.4rem; }
.offer__price span { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--ink-soft); }
.offer--featured .offer__price span { color: rgba(245,245,245,0.75); }
.offer__desc { flex-grow: 0; }
.offer__list { list-style: none; margin: 0 0 1.75rem; padding: 0; flex-grow: 1; }
.offer__list li { position: relative; padding-left: 1.6em; margin-bottom: 0.6em; color: var(--ink-soft); }
.offer__list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.offers__note { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: 2.5rem; }

/* ---- CTA ---- */
.cta { text-align: center; }
.cta h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta p { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 0.85em; font-family: var(--font-accent); font-weight: 600; color: var(--ink); }
.contact-list .icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0;
}

form.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { font-family: var(--font-accent); font-weight: 600; font-size: 0.85rem; color: var(--teal-darker); margin-bottom: 0.4em; display: block; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.8em 1em;
  border: 1.5px solid rgba(8,78,90,0.18);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,103,119,0.15);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: -0.4rem; }

/* ---- Pages simples (légal / cgv) ---- */
.simple-page { padding-top: clamp(3rem, 6vw, 5rem); }
.simple-page h2 { margin-top: 2rem; }
.simple-page h2:first-child { margin-top: 0; }
.simple-page h3 { color: var(--teal); margin-top: 1.8rem; }

/* ---- Bandeau de valeurs page à propos etc ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.badge {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4em 1em;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--teal-darker);
  border: 1px solid rgba(8,78,90,0.1);
}

/* ---- Pied de page ---- */
.site-footer {
  background: var(--teal-darker);
  color: rgba(245,245,245,0.85);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid img { height: 34px; margin-bottom: 1rem; }
.footer-grid p { color: rgba(245,245,245,0.7); font-size: 0.92rem; }
.footer-contact { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-contact a { color: rgba(245,245,245,0.82); font-size: 0.9rem; transition: color 0.2s; }
.footer-contact a:hover { color: var(--white); }
.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { color: rgba(245,245,245,0.82); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(245,245,245,0.14);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(245,245,245,0.6);
}

/* ---- Fil d'ariane léger pour pages internes ---- */
.page-hero {
  background: linear-gradient(155deg, var(--teal-darker), var(--teal));
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.7rem; }
.page-hero p { color: rgba(245,245,245,0.85); max-width: 620px; margin: 0 auto; }

/* ---- Révélation au défilement ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.09s; }
.grid .reveal:nth-child(3) { transition-delay: 0.18s; }
.grid .reveal:nth-child(4) { transition-delay: 0.27s; }
.grid .reveal:nth-child(5) { transition-delay: 0.36s; }
.grid .reveal:nth-child(6) { transition-delay: 0.45s; }
.grid .reveal:nth-child(7) { transition-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- En-tête : ombre légère à l'usage ---- */
.site-header { transition: box-shadow 0.3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(8, 78, 90, 0.35); }

/* ---- Entrée du hero au chargement ---- */
.hero__inner > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.9s var(--ease-out, var(--ease)) forwards;
}
.hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.18s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.32s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.46s; }
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__inner > * { opacity: 1; transform: none; animation: none; }
}

/* ---- Micro-interactions boutons ---- */
.btn { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---- Ligne horizon animée ---- */
.horizon-line {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}
.horizon-line.is-visible { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .horizon-line { transform: scaleX(1); transition: none; }
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}
