/* ===== Appy Parc — style.css ===== */

:root {
  --blue: #0EA0E0;
  --blue-dark: #0B7CAE;
  --green: #1F9D55;
  --green-dark: #157A41;
  --ink: #142420;
  --ink-soft: #3C4B47;
  --cream: #FBF8F1;
  --cream-dark: #F1ECDF;
  --white: #FFFFFF;
  --orange: #F2994A;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 36, 32, 0.10);
  --shadow-sm: 0 4px 14px rgba(20, 36, 32, 0.08);
  --header-h: 84px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 153, 74, 0.4);
}
.btn-primary:hover { background: #e8853a; }

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green-dark);
}
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-outline-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: #fff; color: var(--ink); }

.btn-ghost {
  background: var(--cream-dark);
  color: var(--ink);
  padding: 10px 18px;
  font-size: 0.92rem;
}
.btn-ghost:hover { background: var(--blue); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 248, 241, 0.7);
  backdrop-filter: blur(10px);
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled {
  background: rgba(251, 248, 241, 0.96);
  box-shadow: var(--shadow-sm);
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand img {
  height: 64px;
  width: auto;
  transition: height .25s ease;
}
.site-header.scrolled .brand img { height: 50px; }

.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

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

.header-phone svg { color: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,30,25,.55) 0%, rgba(10,30,25,.35) 45%, rgba(10,30,25,.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  max-width: 760px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.85rem;
  color: #BEE9FF;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero-lead {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 34px;
  color: #F2FBFF;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Info strip ===== */
.info-strip {
  background: var(--green-dark);
  color: #fff;
  padding: 26px 0;
}
.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-item svg { flex-shrink: 0; margin-top: 2px; color: #BEEBCF; }
.info-item div { display: flex; flex-direction: column; gap: 2px; }
.info-item strong { font-size: 0.98rem; }
.info-item span { font-size: 0.86rem; color: #D6F0DE; }

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

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.section-eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 18px;
  max-width: 700px;
}
.section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ===== Parcours grid ===== */
.parcours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}
.parcours-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--blue);
  transition: transform .2s ease, box-shadow .2s ease;
}
.parcours-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.parcours-card h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.parcours-card p { font-size: 0.92rem; color: var(--ink-soft); }
.parcours-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream-dark);
  color: var(--ink-soft);
}

.level-petitou { border-top-color: #F2C94C; }
.level-junior   { border-top-color: #F2994A; }
.level-vert     { border-top-color: #27AE60; }
.level-bleu     { border-top-color: #2D9CDB; }
.level-rouge    { border-top-color: #EB5757; }
.level-noir     { border-top-color: #2A2A2A; }
.level-tyrolienne { border-top-color: var(--blue); }

/* ===== Split info ===== */
.split-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.split-info-col {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.split-info-col h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 18px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.15;
}
.check-list li::after {
  content: '✓';
  position: absolute;
  left: 2.5px;
  top: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 18px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item-tall { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ===== Tarifs ===== */
.tarifs-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.tarifs-table-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.tarifs-table th, .tarifs-table td {
  text-align: left;
  padding: 14px 8px;
  border-bottom: 1px solid var(--cream-dark);
}
.tarifs-table th {
  font-family: 'Baloo 2', sans-serif;
  color: var(--green-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tarifs-table td:last-child { font-weight: 700; text-align: right; color: var(--blue-dark); }
.tarifs-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.infos-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.info-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1.02rem; color: var(--green-dark); margin-bottom: 8px; }
.info-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ===== Contact ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-list { margin: 28px 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.98rem; }
.contact-list svg { color: var(--blue-dark); flex-shrink: 0; margin-top: 2px; }
.contact-list a:hover { color: var(--blue-dark); }

.social-links { display: flex; gap: 12px; margin-bottom: 32px; }
.social-links a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-links a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 22px; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
  transition: border-color .2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-hint { font-size: 0.8rem; color: var(--ink-soft); opacity: 0.75; margin-top: 14px; }

/* ===== Partners ===== */
.partners-section { padding: 72px 0; }
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 42px;
}
.partners-grid img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.85;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.partners-grid a:hover img,
.partners-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #D9E5E1;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.footer-logo { height: 46px; width: auto; opacity: 0.9; }
.footer-inner p { font-size: 0.85rem; color: #9FB3AC; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 400;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }

  .main-nav.open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: var(--shadow);
    padding: 24px;
  }
  .main-nav.open ul { flex-direction: column; gap: 20px; }

  .info-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .split-info { grid-template-columns: 1fr; }
  .tarifs-layout { grid-template-columns: 1fr; }
  .infos-cards { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; }
  .gallery-item-tall { grid-row: 1 / 3; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .info-strip-grid { grid-template-columns: 1fr; }
  .infos-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 200px 160px 160px; }
  .gallery-item-tall { grid-row: auto; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
  .partners-grid img { height: 46px; }
  .contact-form { padding: 24px; }
}
