/* =========================================================
   Bouj Dous — Pointe-à-Pitre, ville à partager
   Palette A « Solèy kalm » : #0F4C5C / #F4A259 / #FDF6EC / #1D3033
   ========================================================= */

:root {
  --principal: #0F4C5C;
  --accent: #F4A259;
  --fond: #FDF6EC;
  --encre: #1D3033;
  --blanc: #FFFFFF;
  --creme-fonce: #F4E8D5;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(29, 48, 51, 0.10);
  --font-title: 'Montserrat', sans-serif;
  --font-hand: 'Montserrat', sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--fond);
  color: var(--encre);
  line-height: 1.6;
  padding: 24px clamp(16px, 4vw, 48px);
}

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn--primary {
  background: var(--encre);
  color: var(--blanc);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--principal);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--encre);
  color: var(--encre);
  padding: 10px 24px;
  background: transparent;
}

.btn--outline:hover {
  background: var(--encre);
  color: var(--blanc);
}

.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Panneaux arrondis ---------- */
.panel {
  background: var(--blanc);
  border: 1.5px solid rgba(29, 48, 51, 0.15);
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 44px);
  margin-bottom: 32px;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 2.5vw, 32px);
  margin: 0 0 clamp(20px, 3vw, 36px);
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  transition:
    margin .4s cubic-bezier(.4, 0, .2, 1),
    padding .4s cubic-bezier(.4, 0, .2, 1),
    background .4s ease,
    border-color .4s ease,
    box-shadow .4s ease;
}

/* Navbar réduite en pilule au défilement */
.header.is-scrolled {
  margin-inline: clamp(12px, 8vw, 160px);
  padding: 8px clamp(14px, 2vw, 26px);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: rgba(29, 48, 51, 0.12);
  box-shadow: 0 12px 32px rgba(29, 48, 51, 0.14);
}

.brand__logo,
.header__cta {
  transition: width .4s ease, height .4s ease, padding .4s ease, font-size .4s ease;
}

.header.is-scrolled .brand__logo {
  width: 54px;
  height: 40px;
}

.header.is-scrolled .header__cta {
  padding: 7px 18px;
  font-size: .9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--encre);
}

.brand__logo {
  width: 68px;
  height: 52px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand__name small {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  color: var(--principal);
}

.nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  margin-inline: auto;
}

.nav__link {
  text-decoration: none;
  color: var(--encre);
  font-weight: 600;
  font-size: .98rem;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--principal);
  border-color: var(--accent);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.burger span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--encre);
  transition: transform .25s ease, opacity .25s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
/* La section entière est couverte par l'image */
.panel--hero {
  position: relative;
  overflow: hidden;
}

/* Image en fond de toute la section (texte + bandeau valeurs) */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Voile dégradé pour la lisibilité du texte (::after : peint au-dessus de l'image) */
.panel--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    95deg,
    rgba(15, 76, 92, 0.88) 0%,
    rgba(15, 76, 92, 0.74) 28%,
    rgba(15, 76, 92, 0.42) 46%,
    rgba(15, 76, 92, 0.12) 60%,
    rgba(15, 76, 92, 0) 72%
  );
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(400px, 56vh, 600px);
}

.hero__text {
  position: relative;
  z-index: 1;
  padding: clamp(12px, 1.5vw, 20px) 0;
  max-width: 620px;
}

.hero__kicker {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fond);
  background: rgba(244, 162, 89, 0.28);
  border: 1.5px solid rgba(244, 162, 89, 0.65);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--blanc);
  text-shadow: 0 2px 12px rgba(29, 48, 51, 0.35);
  margin-bottom: 20px;
}

.hero__slogan {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  color: var(--fond);
  text-shadow: 0 2px 10px rgba(29, 48, 51, 0.35);
  margin-bottom: 20px;
  position: relative;
}

.hero__slogan-mark {
  color: var(--accent);
  font-size: 1.2em;
  margin-right: 6px;
}

.hero__slogan-mark--end { margin-right: 0; margin-left: 6px; }

.hero__desc {
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 28px;
  color: rgba(253, 246, 236, 0.94);
  text-shadow: 0 1px 8px rgba(29, 48, 51, 0.4);
}

/* Chips des usagers dans le héro */
.hero__users {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__users img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(253, 246, 236, 0.75);
  box-shadow: 0 4px 14px rgba(29, 48, 51, 0.3);
}

/* Bouton sur fond sombre du héro */
.btn--hero {
  background: var(--accent);
  color: var(--encre);
  box-shadow: 0 10px 30px rgba(29, 48, 51, 0.35);
}

.btn--hero:hover {
  background: var(--blanc);
  transform: translateY(-2px);
}

/* ---------- Bandeau valeurs ---------- */
.values {
  list-style: none;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(253, 246, 236, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  margin-top: clamp(24px, 3.5vw, 44px);
  padding: 20px 12px;
}

.values__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.3;
  padding: 6px 14px;
  border-left: 1.5px solid rgba(29, 48, 51, 0.2);
}

.values__item:first-child { border-left: none; }

.values__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--principal);
}

/* =========================================================
   ZONE EXPLICATIVE
   ========================================================= */
.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  text-align: center;
  color: var(--encre);
  margin-bottom: 8px;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}

.section-title--left {
  text-align: left;
}

.section-title--left::after {
  margin-inline: 0;
}

.why {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(24px, 3vw, 40px);
}

.why__family {
  position: relative;
}

.why__family img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  background: var(--creme-fonce);
}

.why__doodle {
  position: absolute;
  top: -14px;
  left: -8px;
  font-size: 1.6rem;
  color: var(--accent);
  transform: rotate(-20deg);
}

.why__text p { margin-bottom: 14px; }

.why__lead {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--principal);
}

.why__strong {
  font-weight: 700;
  color: var(--encre);
}

.why__map svg { width: 100%; max-width: 220px; margin-inline: auto; }

.map-shape {
  fill: var(--creme-fonce);
  stroke: var(--principal);
  stroke-width: 3;
  stroke-linejoin: round;
}

.map-pin path { fill: var(--principal); }

.map-wave {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}

/* =========================================================
   PICTOGRAMMES (style aplats de la charte)
   ========================================================= */
.picto-main { fill: var(--principal); }
.picto-accent { fill: var(--accent); }
.picto-light { fill: var(--fond); }
.picto-shadow { fill: var(--creme-fonce); }

.picto-stroke {
  stroke: var(--principal);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.picto-stroke--accent { stroke: var(--accent); }
.picto-stroke--light { stroke: var(--fond); stroke-width: 6; }
.picto-stroke--thick { stroke: var(--principal); stroke-width: 7; }

.picto-dash {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
  fill: none;
}

.picto-spark {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
}

/* =========================================================
   BLOC 1 — POURQUOI CETTE CAMPAGNE
   ========================================================= */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(28px, 3.5vw, 48px);
  text-align: center;
}

.reason {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.reason__picto {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 28px;
}

.reason p {
  font-weight: 500;
  max-width: 34ch;
}

/* =========================================================
   BLOC 2 — CE QUE CHACUN PEUT FAIRE (cartes)
   ========================================================= */
.cards-section {
  padding: clamp(8px, 1.5vw, 16px) 0 0;
  margin-bottom: 32px;
}

.cards-section .section-title {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}

.card {
  background: var(--blanc);
  border: 1.5px solid rgba(29, 48, 51, 0.15);
  border-radius: 20px;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card__picto {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 26px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card__title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.card__figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.card__text {
  font-size: 1rem;
  font-weight: 500;
  flex-grow: 1;
  margin: 0;
  text-align: center;
}

/* =========================================================
   BLOC 3 — CE QUE ÇA CHANGE
   ========================================================= */
.impact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.impact__text p {
  margin-bottom: 14px;
  max-width: 58ch;
}

.impact__text .section-title--left {
  margin-bottom: 22px;
}

.impact__strong {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--principal);
}

.impact__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--encre);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}

.card__link:hover { color: var(--principal); }

.card__link span {
  text-decoration: none;
  transition: transform .2s ease;
}

.card__link:hover span { transform: translateX(4px); }

/* =========================================================
   APPEL À L'ACTION FINAL
   ========================================================= */
.panel--cta {
  background: var(--creme-fonce);
  border: none;
  display: grid;
  grid-template-columns: 0.7fr 1.6fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}

.cta__hands svg { width: 100%; max-width: 150px; margin-inline: auto; }

.cta-hand path {
  fill: var(--accent);
  stroke: var(--encre);
  stroke-width: 3;
  stroke-linejoin: round;
}

.cta-hand--right path { fill: #f7b87e; }

.cta-spark path {
  stroke: var(--principal);
  stroke-width: 3.5;
  fill: none;
}

.cta__center { text-align: center; }

.cta__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.cta__sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(29, 48, 51, 0.85);
  margin-bottom: 24px;
}

.cta__ville img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1.5px solid rgba(29, 48, 51, 0.2);
  padding-top: 28px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}

.footer__label {
  font-family: var(--font-title);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

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

.social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.8px solid var(--encre);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--encre);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.social svg { width: 20px; height: 20px; }

.social:hover {
  background: var(--principal);
  border-color: var(--principal);
  color: var(--blanc);
  transform: translateY(-2px);
}

.footer__divider {
  width: 1.5px;
  height: 34px;
  background: rgba(29, 48, 51, 0.25);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.footer__links a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

.footer__links a:hover { color: var(--principal); text-decoration: underline; }

.footer__brands {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.footer__brand strong { font-size: .88rem; }

.footer__brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer__brand-round {
  width: 58px !important;
  object-fit: contain !important;
}

/* =========================================================
   ANIMATIONS D'APPARITION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero { min-height: 480px; }

  .panel--hero::after {
    background: linear-gradient(
      180deg,
      rgba(15, 76, 92, 0.88) 0%,
      rgba(15, 76, 92, 0.7) 45%,
      rgba(15, 76, 92, 0.25) 70%,
      rgba(15, 76, 92, 0) 88%
    );
  }

  .values { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
  .values__item:nth-child(3) { border-left: none; }

  .why { grid-template-columns: 1fr; text-align: center; }
  .why__family { max-width: 280px; margin-inline: auto; }
  .why__text { max-width: 52ch; margin-inline: auto; }

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

  .impact { grid-template-columns: 1fr; }
  .impact__text .section-title--left { text-align: center; }
  .impact__text .section-title--left::after { margin-inline: auto; }
  .impact__text { text-align: center; }
  .impact__text p { margin-inline: auto; }
  .impact__figure { max-width: 420px; margin-inline: auto; }

  .panel--cta { grid-template-columns: 1fr; text-align: center; }
  .cta__hands { display: none; }
  .cta__ville { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 8px;
    right: 8px;
    background: var(--blanc);
    border: 1.5px solid rgba(29, 48, 51, 0.15);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    z-index: 50;
  }

  .nav.is-open { display: flex; }

  .header__cta { display: none; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  body { padding: 12px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .values__item { border-left: none; justify-content: flex-start; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer__divider { display: none; }
  .footer__brands { margin-left: 0; }
}
