@font-face {
  font-family: "Sansplomb";
  src: url("/static/fonts/SansPlomb_TRIAL-98.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Myriad";
  src: url("/static/fonts/MyriadPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MyriadLight";
  src: url("/static/fonts/MyriadPro-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir: #111111;
  --blanc: #ffffff;
  --gris: #f4f4f4;
  --font-main: Gabriola, "Segoe Script", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--font-main);
}


.hero {
  min-height: 100vh;
  padding: 170px 22px 80px;
  background: var(--blanc);
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-texte {
  width: min(1280px, 100%);
  display: grid;
  justify-items: center;
}

.titre-lignes {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
  gap: clamp(18px, 5vw, 82px);
  align-items: center;
}

.titre-lignes span {
  width: 4px;
  height: clamp(300px, 50vw, 500px);
  background: var(--noir);
  justify-self: center;
  transform: scaleY(0);
  animation: ligneTitre 1s cubic-bezier(.16, 1, .3, 1) 0.45s both;
}

h1 {
  max-width: min-content;
  font-family: var(--font-main);
  font-size: clamp(62px, 10vw, 158px);
  line-height: 0.78;
  color: var(--noir);
  font-weight: 400;
  letter-spacing: 0;
  animation: titreMarque 1.45s cubic-bezier(.16, 1, .3, 1) both;
}

.hero p {
  max-width: 760px;
  margin-top: 32px;
  font-family: var(--font-main);
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.05;
  color: var(--noir);
  animation: texteBienvenue 1.1s cubic-bezier(.16, 1, .3, 1) 0.55s both;
}

.carte {
  position: relative;
  min-height: 100vh;
  padding: 130px 22px 100px;
  background: var(--blanc);
  display: grid;
  grid-template-columns: minmax(260px, 660px) minmax(250px, 360px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* VARIANTE INVERSEE */
.carte-white {
  background: var(--noir);
}

/* OVERLAY ANIME */
.carte::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--noir);
  transform: translateY(-100%);
  transition: transform 0.95s cubic-bezier(.16, 1, .3, 1);
}

.carte-white::before {
  background: var(--blanc);
}

.carte.is-visible::before,
.carte-white.is-visible::before {
  transform: translateY(0);
}

/* IMAGE + CONTENU ANIMATION */
.carte img,
.carte-contenu {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(70px) scale(0.96);
  transition: opacity 0.85s ease 0.25s,
              transform 0.85s cubic-bezier(.16, 1, .3, 1) 0.25s;
}

.carte.is-visible img,
.carte.is-visible .carte-contenu,
.carte-white.is-visible img,
.carte-white.is-visible .carte-contenu {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* IMAGE */
.carte img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--blanc);
  object-fit: cover;
  object-position: center;
  display: block;
}

.carte-white img {
  border: 3px solid var(--noir);
}

/* CONTENU */
.carte-contenu {
  color: var(--blanc);
  display: grid;
  gap: 20px;
}

.carte-white .carte-contenu {
  color: var(--noir);
}

/* TEXTE */
.carte-contenu h2 {
  font-family: var(--font-main);
  font-size: clamp(54px, 6vw, 88px);
  line-height: 0.8;
  font-weight: 400;
}

.carte-contenu p {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}




button {
  width: max-content;
  min-width: 230px;
  min-height: 68px;
  padding: 8px 32px 12px;
  border: 3px solid var(--blanc);
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--font-main);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 9px 9px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

button:hover {
  background: var(--noir);
  color: var(--blanc);
  box-shadow: 12px 12px 0 var(--blanc);
  transform: translate(-3px, -3px);
}

footer {
  padding: 28px 18px;
  background: var(--noir);
  color: var(--blanc);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

footer p {
  font-size: 28px;
  line-height: 1;
}

@keyframes titreMarque {
  0% {
    opacity: 0;
    transform: translateY(70px) scale(0.94);
    filter: blur(14px);
  }

  58% {
    opacity: 1;
    transform: translateY(-8px) scale(1.01);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes ligneTitre {
  to {
    transform: scaleY(1);
  }
}

@keyframes texteBienvenue {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  header,
  header.is-scrolled {
    position: absolute;
    justify-content: center;
    min-height: 0;
  }

  .logo,
  header.is-scrolled .logo {
    transform: none;
  }

  nav,
  header.is-scrolled nav {
    top: 126px;
    width: calc(100% - 44px);
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transform: translateX(-50%);
  }

  nav a {
    width: min(100%, 330px);
    text-align: center;
  }

  .hero {
    padding-top: 330px;
  }

  .titre-lignes {
    grid-template-columns: 26px auto 26px;
    gap: 14px;
  }

  .titre-lignes span {
    height: 180px;
  }

  h1 {
    max-width: min-content;
    font-size: clamp(52px, 18vw, 92px);
  }

  .carte {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .carte-contenu {
    text-align: center;
    justify-items: center;
  }

  button {
    width: min(100%, 320px);
  }
  
}


/* Carte du restaurant : texte, image puis bouton, sans recadrage. */
.carte.carte-accueil {
  grid-template-columns: minmax(0, 800px);
  gap: 36px;
}
.carte-accueil img {
  width: min(100%, 660px);
  justify-self: center;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.carte-accueil .carte-contenu {
  text-align: center;
  justify-items: center;
}
.presentation-sans-image {
  grid-template-columns: minmax(0, 900px);
}
.presentation-description {
  display: grid;
  gap: 20px;
}


/* Réseaux sociaux : logos blancs centrés sous la présentation. */
#reseaux .carte-contenu {
  text-align: center;
  justify-items: center;
  width: 100%;
}
#reseaux .reseaux-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 72px);
  margin-top: 24px;
}
#reseaux .reseaux-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s ease;
}
#reseaux .reseaux-logos svg {
  display: block;
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  fill: currentColor;
}
#reseaux .reseaux-logos a:hover {
  transform: translateY(-4px);
}
#reseaux .reseaux-logos a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}
