
:root {
  --green: #1c422d;
  --green-light: #315b3d;
  --sage: #e9efe4;
  --gold: #e7c45b;
  --text: #26352b;
  --muted: #68756b;
  --white: #ffffff;
  --border: #e0e6dc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.topbar {
  padding: 8px 5%;
  background: #112b1d;
  color: white;
  font-size: 12px;
}

header {
  min-height: 94px;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.identity img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.identity h2 {
  color: var(--green);
  font-size: 19px;
  line-height: 1.05;
  margin: 0;
}

.identity span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  font-size: 12px;
  font-weight: bold;
  padding: 10px 0;
}

nav a:hover {
  color: var(--green-light);
}

nav .contact-link {
  background: var(--green);
  color: white;
  padding: 11px 16px;
  border-radius: 3px;
}

.menu-button {
  display: none;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 22px;
  color: var(--green);
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(circle at 85% 25%, #52784f, transparent 30%),
    linear-gradient(110deg, #173b29, #315b3d);
  color: white;
  min-height: 410px;
  padding: 65px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  overflow: hidden;
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  display: block;
  color: #b6cba8;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  color: #e0e9df;
  max-width: 580px;
  font-size: 15px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  transition: 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--gold);
  color: #1c3021;
}

.secondary {
  border: 1px solid #ffffff80;
  color: white;
}

.hero-logo {
  flex-shrink: 0;
  width: 235px;
  height: 235px;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 18px #ffffff0a;
}

.hero-logo img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border: 6px solid white;
  border-radius: 50%;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f4f6f1;
  padding: 0 5%;
  border-bottom: 1px solid var(--border);
}

.quick-links > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 23px 15px;
  border-right: 1px solid var(--border);
}

.quick-links > a:first-child {
  border-left: 1px solid var(--border);
}

.quick-links > a:hover {
  background: #e7eee1;
}

.quick-icon {
  font-size: 23px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e0e9d9;
  display: grid;
  place-items: center;
}

.quick-links strong,
.quick-links small {
  display: block;
}

.quick-links strong {
  color: var(--green);
  font-size: 13px;
}

.quick-links small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.section {
  padding: 70px 7%;
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 35px;
}

.section-heading .eyebrow,
.section-title .eyebrow {
  color: var(--green-light);
}

.section-heading h2,
.section-title h2 {
  color: var(--green);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  padding: 26px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 5px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: var(--sage);
  font-size: 24px;
}

.about-card h3 {
  color: var(--green);
  font-size: 18px;
}

.about-card p {
  font-size: 13px;
  color: var(--muted);
}

.news-section {
  background: #f5f7f3;
}

.section-title {
  margin-bottom: 28px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: white;
  border: 1px solid var(--border);
  transition: 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #172d1d12;
}

.news-image {
  height: 165px;
  display: grid;
  place-items: center;
  font-size: 48px;
}

.image-one {
  background: linear-gradient(135deg, #dce8d4, #a7c29b);
}

.image-two {
  background: linear-gradient(135deg, #e8eddf, #c4d4b7);
}

.image-three {
  background: linear-gradient(135deg, #d8e4d0, #afc8a6);
}

.news-content {
  padding: 22px;
}

.category {
  color: var(--green-light);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.news-content h3 {
  color: var(--green);
  font-size: 18px;
  line-height: 1.3;
}

.news-content p {
  color: var(--muted);
  font-size: 13px;
}

.news-content a {
  color: var(--green);
  font-weight: bold;
  font-size: 12px;
}

.programs {
  background: white;
}

.program-list {
  max-width: 800px;
  margin: auto;
  border-top: 1px solid var(--border);
}

.program-list div {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 17px 10px;
  border-bottom: 1px solid var(--border);
}

.program-list span {
  color: #8aa17b;
  font-weight: bold;
}

.program-list strong {
  color: var(--green);
}

.note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}

.life {
  background:
    linear-gradient(90deg, #173b2bfa, #173b2bd9),
    linear-gradient(135deg, #66845b, #24482f);
  color: white;
  padding-top: 75px;
  padding-bottom: 75px;
}

.life-content {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.life h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 10px 0 18px;
}

.life p {
  color: #dce6d9;
  margin-bottom: 28px;
}

.contact-box {
  max-width: 850px;
  margin: auto;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--border);
  background: #f7f8f5;
}

.contact-box h3 {
  color: var(--green);
}

.contact-box p {
  font-size: 13px;
  color: var(--muted);
}

.contact-box .primary {
  background: var(--green);
  color: white;
  white-space: nowrap;
}

footer {
  background: #112b1d;
  color: white;
  padding: 40px 7% 18px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong {
  font-size: 13px;
}

.footer-brand p {
  font-size: 11px;
  color: #bdcbbd;
}

footer h4 {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-main > div > a {
  display: block;
  margin: 9px 0;
  color: #d3ded1;
  font-size: 12px;
}

.copyright {
  padding-top: 17px;
  border-top: 1px solid #ffffff25;
  text-align: center;
  font-size: 11px;
  color: #bdcbbd;
}

@media (max-width: 1000px) {
  header {
    padding-left: 4%;
    padding-right: 4%;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 11px;
  }

  .hero-logo {
    width: 190px;
    height: 190px;
  }

  .hero-logo img {
    width: 140px;
    height: 140px;
  }

  .quick-links {
    padding: 0 2%;
  }
}

@media (max-width: 760px) {
  header {
    position: relative;
    flex-wrap: wrap;
  }

  .identity img {
    width: 52px;
    height: 52px;
  }

  .identity h2 {
    font-size: 16px;
  }

  .menu-button {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  nav .contact-link {
    padding: 12px;
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 7%;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-logo {
    align-self: center;
    width: 150px;
    height: 150px;
  }

  .hero-logo img {
    width: 110px;
    height: 110px;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-links > a {
    border-bottom: 1px solid var(--border);
    padding: 15px 8px;
  }

  .quick-links > a:nth-child(odd) {
    border-left: 1px solid var(--border);
  }

  .quick-links small {
    font-size: 9px;
  }

  .section {
    padding: 48px 6%;
  }

  .about-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }
}


/* ===== ANIMATIONS WESTFIELD ===== */

/* Apparition douce au chargement */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeIn 0.9s ease-out both;
}

.hero-logo {
  animation: fadeIn 1.1s ease-out both,
             floatLogo 4s ease-in-out 1.1s infinite;
}

/* Logo qui flotte légèrement */
@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* Petit mouvement au survol des cartes */
.about-card,
.news-card {
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.about-card:hover,
.news-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(28, 66, 45, 0.13);
  border-color: #b9cbb0;
}

/* Les boutons réagissent au passage de la souris */
.button {
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              background-color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
}

.button:active {
  transform: scale(0.97);
}

/* Les raccourcis bougent légèrement */
.quick-links > a {
  transition: background-color 0.25s ease,
              transform 0.25s ease;
}

.quick-links > a:hover {
  transform: translateY(-3px);
}

/* Apparition des sections lors du défilement */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease,
              transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation du menu */
nav a {
  transition: color 0.25s ease,
              background-color 0.25s ease;
}

/* Accessibilité : respecter les préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


.hero-logo {
  position: relative;
  isolation: isolate;
}

.hero-logo img {
  transition: transform 0.4s ease,
              box-shadow 0.4s ease;
}

.hero-logo:hover img {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 25px rgba(231, 196, 91, 0.4);
}

.hero-logo:hover {
  border-color: #e7c45b;
}
