:root {
  --orange: #f0703d;
  --lime: #e1f121;
  --teal-dark: #376865;
  --mauve: #96646b;
  --green-deep: #35675d;
  --olive: #cdcc0d;
  --cream: #f9f5ea;
  --white: #ffffff;
  --black: #1a1a1a;

  --font-body: 'DM Sans', sans-serif;
  --font-logo: 'Walter Turncoat', cursive;

  --nav-height: 64px;
  --marquee-height: 40px;
  --top-bar-height: calc(var(--nav-height) + var(--marquee-height));
  --max-width: 1280px;
  --border: 2px solid var(--black);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER / NAV ========== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--cream);
  z-index: 1000;
  border-bottom: var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-left: var(--border);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:last-child {
  border-right: var(--border);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--black);
  color: var(--cream);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--black);
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== MOBILE NAV ========== */

.mobile-nav {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--top-bar-height));
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 24px 24px;
  border-bottom: var(--border);
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--black);
  color: var(--cream);
}

/* ========== HERO (full width image + overlay) ========== */

.hero-full {
  margin-top: var(--top-bar-height);
  width: 100vw;
  max-width: 100%;
  height: calc(100vh - var(--top-bar-height));
  position: relative;
  overflow: hidden;
  border-bottom: var(--border);
}

.hero-image-full {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image-full img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 48px;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.5) 0%, rgba(26, 26, 26, 0.2) 80%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.hero-overlay h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--cream);
  max-width: 650px;
  margin-bottom: 12px;
}

.hero-overlay .hero-sub {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(249, 245, 234, 0.85);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-bar {
  border-bottom: var(--border);
  background: var(--cream);
}

.hero-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero-bar p {
  font-size: 1rem;
  color: var(--mauve);
  max-width: 400px;
  line-height: 1.6;
}

.hero-bar .hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: var(--border);
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: var(--black);
  color: var(--cream);
}

.btn-secondary {
  background: var(--teal-dark);
  color: var(--cream);
  border-color: var(--black);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--cream);
}

.btn-outline {
  border: var(--border);
  color: var(--black);
  background: transparent;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--cream);
}

/* ========== SECTIONS ========== */

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--mauve);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ========== CARDS ========== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card {
  background: var(--white);
  padding: 32px 28px;
  border: var(--border);
  margin-right: -2px;
  margin-bottom: -2px;
  transition: background 0.15s ease;
}

.card:hover {
  background: var(--lime);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: var(--border);
  background: var(--cream);
  color: var(--black);
}

.card-icon.icon-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.card-icon.icon-teal { background: var(--teal-dark); color: var(--cream); border-color: var(--teal-dark); }
.card-icon.icon-mauve { background: var(--mauve); color: var(--white); border-color: var(--mauve); }
.card-icon.icon-olive { background: var(--olive); color: var(--black); border-color: var(--olive); }

.card-icon.icon-crop {
  background-image: url(../assets/images/hero.png);
  background-size: 450%;
  color: var(--white);
  border-color: var(--black);
  position: relative;
}


.icon-crop-1 { background-position: 30% 25%; }
.icon-crop-2 { background-position: 95% 40%; }
.icon-crop-3 { background-position: 65% 90%; }
.icon-crop-4 { background-position: 50% 55%; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9rem;
  color: var(--mauve);
  line-height: 1.6;
}

/* ========== CTA BAND ========== */

.cta-band {
  background: var(--teal-dark);
  border: var(--border);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cream);
  text-transform: uppercase;
}

.cta-band p {
  color: rgba(249, 245, 234, 0.6);
  margin-top: 8px;
  font-size: 0.95rem;
}

.cta-band .btn-primary {
  border-color: var(--cream);
}

.cta-band .btn-primary:hover {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
}

/* ========== ABOUT PAGE ========== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--border);
  margin-top: -2px;
}

.about-image {
  overflow: hidden;
  background: var(--teal-dark);
  aspect-ratio: 4/5;
  border-right: var(--border);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  padding: 48px 40px;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--mauve);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-text p strong {
  color: var(--black);
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.values-list span {
  background: var(--cream);
  color: var(--black);
  padding: 8px 18px;
  border: var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========== COURS PAGE ========== */

.cours-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: -2px;
}

.cours-card {
  background: var(--white);
  padding: 32px 28px;
  border: var(--border);
  margin-right: -2px;
  margin-bottom: -2px;
  transition: background 0.15s ease;
}

.cours-card:hover {
  background: var(--cream);
}

.cours-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cours-card .tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  border: 2px solid var(--black);
}

.cours-card p {
  color: var(--mauve);
  line-height: 1.6;
  font-size: 0.9rem;
}

.planning-section {
  margin-top: 60px;
}

.planning-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: var(--border);
}

.planning-table th {
  background: var(--black);
  color: var(--cream);
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.planning-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  font-size: 0.9rem;
  color: var(--black);
  text-align: center;
}

.planning-table tr:last-child td {
  border-bottom: none;
}

.planning-table tbody tr:hover {
  background: var(--cream);
}

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
}

.tarif-card {
  background: var(--white);
  border: var(--border);
  margin-right: -2px;
  padding: 36px 28px;
  text-align: center;
  transition: background 0.15s ease;
}

.tarif-card:hover {
  background: var(--cream);
}

.tarif-card.featured {
  background: var(--orange);
  color: var(--white);
}

.tarif-card.featured:hover {
  background: #e0612e;
}

.tarif-card.featured h3 {
  color: rgba(255, 255, 255, 0.8);
}

.tarif-card.featured .price {
  color: var(--white);
}

.tarif-card.featured .price-sub {
  color: rgba(255, 255, 255, 0.7);
}

.tarif-card.featured ul li {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.tarif-card.featured ul li::before {
  color: var(--lime);
}

.tarif-card.featured .btn {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}

.tarif-card.featured .btn:hover {
  background: var(--cream);
  color: var(--black);
}

.tarif-card h3 {
  font-size: 0.85rem;
  color: var(--mauve);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.tarif-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
}

.tarif-card .price-sub {
  font-size: 0.8rem;
  color: var(--mauve);
  margin-bottom: 28px;
}

.tarif-card ul {
  text-align: left;
  margin-bottom: 28px;
}

.tarif-card ul li {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--black);
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  padding-left: 20px;
  position: relative;
}

.tarif-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

/* ========== CONTACT PAGE ========== */

.contact-simple {
  border: var(--border);
  width: 100%;
  margin-top: -2px;
}

.contact-simple .contact-info {
  padding: 48px 44px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: var(--border);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--cream);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-info {
  padding: 40px 36px;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border: var(--border);
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--black);
  flex-shrink: 0;
}

.contact-info-icon.icon-crop {
  background-image: url(../assets/images/hero.png);
  background-size: 450%;
  border-color: var(--black);
  position: relative;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--mauve);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 0;
  margin-top: 32px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: var(--border);
  margin-right: -2px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--black);
  transition: all 0.15s ease;
}

.social-link:hover {
  background: var(--black);
  color: var(--cream);
}

/* ========== FOOTER ========== */

.footer {
  background: var(--black);
  padding: 56px 0 24px;
  border-top: var(--border);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand .logo img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(249, 245, 234, 0.5);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: rgba(249, 245, 234, 0.5);
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer ul li a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(249, 245, 234, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: rgba(249, 245, 234, 0.3);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-bottom .social-links .social-link {
  background: transparent;
  border-color: rgba(249, 245, 234, 0.15);
  color: rgba(249, 245, 234, 0.5);
}

.footer-bottom .social-links .social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ========== PAGE HEADER (internal pages) ========== */

.page-header {
  padding-top: var(--top-bar-height);
  border-bottom: var(--border);
}

.page-header .container {
  padding-top: 60px;
  padding-bottom: 40px;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1rem;
  color: var(--mauve);
  max-width: 480px;
  line-height: 1.6;
}

/* ========== MARQUEE ========== */

.marquee {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  z-index: 999;
  border-bottom: var(--border);
  background: var(--lime);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  height: var(--marquee-height);
}

.marquee-inner {
  display: inline-flex;
  animation: marquee 20s linear infinite;
}

.marquee-inner span {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  padding: 0 40px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== ANIMATIONS ========== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 968px) {
  .hero-overlay {
    padding: 32px;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    aspect-ratio: 16/9;
    border-right: none;
    border-bottom: var(--border);
  }

  .cours-list {
    grid-template-columns: 1fr;
  }

  .tarifs-grid {
    grid-template-columns: 1fr;
  }

  .tarif-card {
    margin-right: 0;
    margin-bottom: -2px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    border-right: none;
    border-bottom: var(--border);
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .hero-overlay {
    padding: 24px;
  }

  .hero-overlay .hero-sub {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .planning-table {
    display: block;
    overflow-x: auto;
  }

  .cards-grid .card {
    margin-right: 0;
  }
}

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

  .section {
    padding: 48px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-overlay h1 {
    font-size: 1.3rem;
  }

  .hero-overlay {
    padding: 20px 16px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.8rem;
  }
}
