@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --bordeaux: #6b2c3e;
  --sarcelle: #2a8b8b;
  --sarcelle-clair: #4ba8a8;
  --vert: #8dbf3c;
  --jaune: #f4c430;
  --rose: #e94e8a;
  --rouge: #c8333d;
  --creme: #fdfbf7;
  --aubergine: #4a2c3a;
  --gris-clair: #f3eee8;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--aubergine);
  background: var(--creme);
  line-height: 1.6;
}

a { color: var(--sarcelle); text-decoration: none; }
a:hover { color: var(--rose); }

/* HEADER */
.site-header {
  background: #fff;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--gris-clair);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 70px; }
.brand .text { line-height: 1.2; }
.brand .school-name { font-weight: 700; color: var(--bordeaux); font-size: 1.3rem; }
.brand .tagline { font-family: 'Pacifico', cursive; color: var(--sarcelle); font-size: 1.1rem; }

.contact-quick { text-align: right; }
.contact-quick .quote { font-style: italic; color: var(--bordeaux); font-size: 1rem; }
.contact-quick .phone {
  font-family: 'Pacifico', cursive;
  color: var(--sarcelle);
  font-size: 1.6rem;
  margin-top: 4px;
}

/* NAVIGATION */
nav.main-nav { display: flex; background: var(--bordeaux); }
nav.main-nav a {
  flex: 1;
  padding: 18px 12px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .5px;
  transition: background .25s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background: var(--sarcelle);
  color: #fff;
}
nav.main-nav a.cta {
  background: var(--sarcelle);
}
nav.main-nav a.cta:hover { background: var(--rose); }

/* HERO */
.hero {
  position: relative;
  min-height: 480px;
  background: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=1600&q=80') center/cover;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.25));
}
.hero-card {
  position: absolute;
  bottom: 60px;
  left: 60px;
  background: var(--bordeaux);
  color: #fff;
  padding: 30px 40px;
  max-width: 460px;
  border-radius: 6px;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.hero-card h1 {
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.3;
}
.hero-card .sub { margin-top: 8px; font-style: italic; opacity: .9; }

/* SECTIONS */
section { padding: 60px 40px; max-width: 1300px; margin: 0 auto; }

.section-title {
  font-size: 2rem;
  color: var(--sarcelle);
  text-align: center;
  margin-bottom: 14px;
}
.section-subtitle {
  font-family: 'Pacifico', cursive;
  color: var(--jaune);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 40px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.grid .tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.grid .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid .tile.text {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px; color: #fff; text-align: center;
}
.grid .tile.text .label {
  font-family: 'Pacifico', cursive;
  font-size: 1.8rem;
  line-height: 1.2;
}
.grid .tile.text small { font-size: .9rem; margin-top: 8px; opacity: .9; }
.tile.bg-jaune { background: var(--jaune); color: var(--aubergine); }
.tile.bg-sarcelle { background: var(--sarcelle); }
.tile.bg-rose { background: var(--rose); }
.tile.bg-vert { background: var(--vert); color: var(--aubergine); }
.tile.bg-bordeaux { background: var(--bordeaux); }
.tile.bg-rouge { background: var(--rouge); }

/* IMPLANTATIONS */
.implantations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}
.implant-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 6px 24px rgba(107, 44, 62, .08);
  position: relative;
  overflow: hidden;
}
.implant-card h3 {
  color: var(--sarcelle);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.implant-card .sub-title {
  color: var(--vert);
  font-weight: 600;
  margin-bottom: 14px;
}
.implant-card .accroche {
  font-family: 'Pacifico', cursive;
  color: var(--jaune);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.implant-card .leaf-address {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50% 0 50% 0;
  transform: rotate(-8deg);
  margin-top: 16px;
  font-weight: 600;
  font-size: .95rem;
}
.implant-card.green .leaf-address { background: var(--vert); color: var(--aubergine); }
.implant-card .know-more {
  display: block;
  margin-top: 24px;
  text-align: right;
}
.implant-card .know-more .q { color: var(--rose); font-weight: 700; }
.implant-card .know-more a { color: var(--bordeaux); font-weight: 700; border-bottom: 2px solid var(--rose); }

/* ABOUT TEMPLATE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 30px;
  align-items: start;
}
.about-text p { margin-bottom: 16px; }
.about-text p:first-child { color: var(--rouge); }
.about-image img { width: 100%; border-radius: 8px; }

.press {
  background: var(--jaune);
  padding: 24px;
  border-radius: 12px;
  color: var(--aubergine);
}
.press h3 {
  font-family: 'Pacifico', cursive;
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.press-item {
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding: 14px 0;
}
.press-item .title { font-weight: 700; }
.press-item .date { font-style: italic; color: #fff; font-size: .85rem; margin-top: 6px; }

.appel-card {
  background: var(--sarcelle);
  color: #fff;
  padding: 36px 30px;
  text-align: center;
  border-radius: 12px;
  margin-top: 30px;
}
.appel-card .label { font-family: 'Pacifico', cursive; font-size: 1.6rem; }
.appel-card .num { font-family: 'Pacifico', cursive; font-size: 2.1rem; }

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}
.contact-info .info-line { margin-bottom: 8px; color: var(--bordeaux); }
.contact-info .info-line strong { color: var(--rose); margin-right: 6px; }
.contact-info .divider {
  border: none;
  border-top: 4px dotted var(--rose);
  margin: 20px 0;
}
.form-field {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 4px;
  background: var(--jaune);
  border: none;
  border-radius: 4px;
  font-family: 'Quicksand', sans-serif;
  color: var(--aubergine);
  font-size: 1rem;
  font-style: italic;
}
.form-field:focus { outline: 2px solid var(--rose); }
textarea.form-field { min-height: 140px; resize: vertical; }
.btn {
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background .25s;
  letter-spacing: 1px;
}
.btn:hover { background: var(--bordeaux); }
.map-placeholder {
  background: var(--gris-clair);
  border-radius: 8px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aubergine);
  font-style: italic;
}

/* PROGRAMME LIST */
.programmes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.prog-card {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  border-top: 6px solid var(--sarcelle);
  box-shadow: 0 4px 14px rgba(107, 44, 62, .07);
  transition: transform .25s;
}
.prog-card:hover { transform: translateY(-4px); }
.prog-card:nth-child(2) { border-top-color: var(--vert); }
.prog-card:nth-child(3) { border-top-color: var(--jaune); }
.prog-card:nth-child(4) { border-top-color: var(--rose); }
.prog-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.prog-card h3 { color: var(--bordeaux); margin-bottom: 10px; }

/* INSCRIPTION */
.inscription-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.step {
  background: #fff;
  padding: 28px 22px;
  border-radius: 14px;
  text-align: center;
  position: relative;
}
.step .num {
  background: var(--rose);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
  margin: 0 auto 14px;
}
.step:nth-child(2) .num { background: var(--sarcelle); }
.step:nth-child(3) .num { background: var(--vert); }
.step:nth-child(4) .num { background: var(--jaune); color: var(--aubergine); }
.step h4 { color: var(--bordeaux); margin-bottom: 8px; }

/* FOOTER */
.site-footer {
  background: var(--sarcelle);
  color: #fff;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}
.site-footer .info-row {
  margin-bottom: 18px;
  font-size: 1rem;
}
.site-footer .info-row span { margin: 0 14px; }
.site-footer hr { border: none; border-top: 1px solid rgba(255,255,255,.3); max-width: 700px; margin: 18px auto; }
.site-footer .footer-nav { margin-bottom: 18px; }
.site-footer .footer-nav a {
  color: #fff;
  margin: 0 14px;
  text-transform: uppercase;
  font-size: .9rem;
}
.site-footer .socials { margin-top: 14px; }
.site-footer .socials a {
  display: inline-block;
  width: 40px; height: 40px;
  background: var(--bordeaux);
  border-radius: 4px;
  margin: 0 4px;
  line-height: 40px;
  color: #fff;
  font-weight: 700;
}
.site-footer .legal {
  margin-top: 24px;
  font-size: .85rem;
  opacity: .85;
}
.site-footer .legal a { color: #fff; margin: 0 10px; }

/* GALERIE IMPLANTATIONS */
.gallery {
  max-width: 1100px;
  margin: 40px auto 0;
}
.gallery h3 {
  text-align: center;
  color: var(--bordeaux);
  margin-bottom: 20px;
}
.gallery-viewport {
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: gallery-scroll 40s linear infinite;
}
.gallery-viewport:hover .gallery-track { animation-play-state: paused; }
.gallery-track figure {
  margin: 0;
  flex: 0 0 auto;
  width: 360px;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ivoire, #f7f1e8);
}
.gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.gallery-track figure:hover img { transform: scale(1.05); }
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .gallery-track figure { width: 260px; height: 180px; }
  .gallery-track { animation-duration: 30s; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; }
  .gallery-viewport { overflow-x: auto; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .implantations, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .inscription-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-card { left: 20px; right: 20px; bottom: 20px; max-width: none; padding: 20px; }
  .hero-card h1 { font-size: 1.3rem; }
  nav.main-nav { flex-wrap: wrap; }
  nav.main-nav a { flex: 1 1 50%; padding: 14px 8px; font-size: .85rem; }
  .site-header { padding: 14px 20px; }
  .brand img { height: 56px; }
  .brand .school-name { font-size: 1.05rem; }
  .contact-quick { width: 100%; text-align: center; }
  section { padding: 40px 20px; }
  .section-title { font-size: 1.5rem; }
}
