/* Family Elephant - version statique (HTML/CSS), octobre 2026 */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --texte: #666;
  --titre: #474747;
  --or: #e09900;
  --olive: #a39800;
  --olive-fonce: #8a8000;
  --vert: #4c9e19;
  --vert-fonce: #3f8514;
  --ombre: 0 12px 18px -6px rgba(0, 0, 0, .3);
  --largeur: min(80%, 1080px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--texte);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

strong { font-weight: 700; }

.conteneur { width: var(--largeur); margin: 0 auto; }

/* ---------- Bandeau vidéo ---------- */

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #6f8a5a url("../img/hero-poster.jpg") center / cover no-repeat;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .conteneur {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5.5%;
  padding-top: 100px;
}

.hero__logo { flex: 0 0 29.6%; }

.hero__texte { flex: 1; color: #fff; }

.hero h1 {
  margin: 0;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.2;
}

.hero p { margin: 0; font-size: 16px; }

/* ---------- Gammes (3 cartes) ---------- */

.gammes {
  position: relative;
  margin-top: -70px;
  padding-bottom: 54px;
}

.gammes .conteneur {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 5.5%;
}

.carte {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 5px;
  box-shadow: var(--ombre);
  padding: 10px;
  animation: apparition .8s ease-out both;
}

.carte:nth-of-type(2) { animation-delay: .15s; }
.carte:nth-of-type(3) { animation-delay: .3s; }

.carte img { width: 100%; border-radius: 2px; }

.carte h3 {
  margin: 20px 0 10px;
  color: var(--titre);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
}

.carte p { margin: 0 0 10px; text-align: justify; }

.bouton {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 5px;
  background: var(--olive);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 34px;
  text-decoration: none;
  box-shadow: var(--ombre);
  transition: background-color .3s, transform .3s;
}

.bouton:hover,
.bouton:focus-visible { background: var(--olive-fonce); transform: translateY(-2px); }

.bouton--vert { background: var(--vert); }

.bouton--vert:hover,
.bouton--vert:focus-visible { background: var(--vert-fonce); }

.carte__action {
  grid-row: 2;
  margin-top: 27px;
  text-align: center;
}

/* ---------- Découverte culinaire (fond parallaxe) ---------- */

.decouverte {
  position: relative;
  padding: 100px 0 54px;
  background: #fff url("../img/produits-ethniques.jpg") center top / cover no-repeat fixed;
}

.decouverte::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cg fill='%23fff'%3E%3Cpath d='M725.29 101.2C325.22 122.48 0 0 0 0v140h1280V0s-154.64 79.92-554.71 101.2z' fill-opacity='.3'/%3E%3Cpath d='M556.45 119.74C953.41 140 1280 14 1280 14v126H0V0s159.5 99.48 556.45 119.74z' fill-opacity='.5'/%3E%3Cpath d='M640 140c353.46 0 640-140 640-139v140H0V0s286.54 140 640 140z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100px no-repeat;
  transform: scaleY(-1);
}

.decouverte .conteneur {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5.5%;
  align-items: start;
}

.encart {
  padding: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .9);
  text-align: justify;
}

.encart h2 {
  margin: 0 0 10px;
  color: var(--or);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.encart p { margin: 0 0 1em; }
.encart p:last-child { margin-bottom: 0; }

.decouverte__action {
  grid-column: 1 / -1;
  margin-top: 54px;
  text-align: center;
}

/* ---------- Pied de page ---------- */

.pied {
  padding: 27px 0;
  color: #808080;
  font-size: 14px;
  text-align: right;
}

.pied .conteneur { width: 90%; max-width: 2560px; }

.pied a { color: inherit; text-decoration: none; }
.pied a:hover { text-decoration: underline; }

/* ---------- Mentions légales (fenêtre sans JavaScript, via :target) ---------- */

.modale {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.modale:target { opacity: 1; visibility: visible; }

.modale__fond { position: absolute; inset: 0; }

.modale__boite {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}

.modale__boite h2 {
  margin: 1.6em 0 .5em;
  color: var(--titre);
  font-size: 17px;
  font-weight: 600;
}

.modale__boite h2:first-of-type { margin-top: 0; }

.modale__boite p { margin: 0 0 1em; overflow-wrap: anywhere; }

.modale__fermer {
  position: sticky;
  top: 0;
  float: right;
  margin: -25px -25px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--titre);
  color: #fff;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  text-decoration: none;
}

.modale__fermer:hover { background: var(--or); }

/* ---------- Animations ---------- */

@keyframes apparition {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carte { animation: none; }
  .hero video { display: none; }
}

/* ---------- Tablette et mobile ---------- */

@media (max-width: 980px) {
  :root { --largeur: 80%; }

  .hero { height: auto; min-height: 500px; }

  .hero .conteneur {
    flex-direction: column;
    gap: 20px;
    padding: 60px 0 110px;
    text-align: center;
  }

  .hero__logo { flex: none; width: 240px; }

  .hero h1 { font-size: 40px; }

  .gammes .conteneur { grid-template-columns: 1fr; max-width: 480px; }

  .carte { grid-row: auto; margin-bottom: 20px; }

  .carte__action { grid-row: auto; margin: 0 0 40px; }

  .decouverte { background-attachment: scroll; }

  .decouverte .conteneur { grid-template-columns: 1fr; row-gap: 30px; }

  .decouverte__action { margin-top: 24px; }

  .pied { text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }

  .bouton { font-size: 17px; }

  .modale__boite { padding: 30px 20px; }

  .modale__fermer { margin: -15px -10px 0 0; }
}
