/* ========== Variables et base ========== */
:root {
  --blue-dark: #0b1020;
  --blue-alt: #0b2545;
  --red: #eb3349;
  --red-soft: #eb5769;
  --off-white: #f5f2ea;
  --paper: #d8d2c4;
  --black: #111111;
  --radius: 16px;
  --shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  background-image: radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.section-title {
  margin: 0 0 1rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.1;
}

.section-lead {
  max-width: 72ch;
  margin-bottom: 2rem;
}

/* ========== Boutons ========== */
.btn {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.78rem 1.3rem;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:focus-visible,
.faq-question:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red-soft);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(235, 51, 73, 0.3);
}

.btn-primary:hover {
  background: var(--red-soft);
}

.btn-ghost {
  border: 1px solid rgba(11, 16, 32, 0.25);
  background: transparent;
}

.btn-nav {
  margin-left: 0.6rem;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  backdrop-filter: blur(8px);
  background: rgba(245, 242, 234, 0.9);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-image-slot {
  width: 62px;
  height: 36px;
  border: 1px dashed rgba(17, 17, 17, 0.45);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111;
}

.logo-image-slot img {
  width: auto;
  height: 82%;
  max-width: 92%;
  object-fit: contain;
}

.logo-text {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 0.2rem 0;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ========== Hero ========== */
.hero {
  padding-top: calc(var(--header-h) + 2.3rem);
  background: linear-gradient(130deg, rgba(11, 37, 69, 0.09), rgba(216, 210, 196, 0.16));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(17, 17, 17, 0.24);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.1rem, 7vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 60ch;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-file {
  position: relative;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-file::before {
  content: "CLASSIFIE";
  position: absolute;
  top: -11px;
  right: 14px;
  background: var(--blue-dark);
  color: var(--off-white);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
}

.file-line {
  margin: 0.45rem 0;
  border-bottom: 1px dashed rgba(17, 17, 17, 0.2);
  padding-bottom: 0.42rem;
}

.stamp {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 0.25rem 0.7rem;
  transform: rotate(-10deg);
  margin-bottom: 0.9rem;
  letter-spacing: 0.08em;
  animation: stampIn 1s ease both;
}

/* ========== Grilles cartes ========== */
.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.benefit-card,
.voyage-card,
.faq-item,
.contact-form {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.info-card,
.benefit-card {
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover,
.benefit-card:hover,
.voyage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon {
  font-size: 1.5rem;
}

/* ========== Fonctionnement timeline ========== */
.section-dark {
  background: var(--blue-dark);
  color: var(--off-white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--paper), rgba(235, 87, 105, 0.72));
}

.timeline-step {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 242, 234, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 1.3rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.7rem;
}

/* ========== Voyages ========== */
.voyage-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.voyage-card {
  padding: 1.4rem;
}

.voyage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.badge {
  background: var(--blue-dark);
  color: var(--off-white);
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 0.25rem 0.58rem;
  letter-spacing: 0.04em;
}

.destination {
  font-weight: 800;
  margin: 0.8rem 0 0.4rem;
}

.voyage-style {
  margin: 0 0 0.8rem;
  color: #3b3b3b;
}

.voyage-card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.price {
  margin: 0.4rem 0 0;
  font-weight: 800;
  font-size: 1.1rem;
}

.price-sub {
  margin: 0;
  font-size: 0.86rem;
  color: #565656;
}

/* ========== Pourquoi ========== */
.section-paper {
  background: linear-gradient(180deg, rgba(216, 210, 196, 0.2), rgba(245, 242, 234, 0.7));
}

.benefit-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

/* ========== FAQ ========== */
.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  color: var(--black);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.1rem 1rem;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 160px;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-copy a {
  color: var(--off-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  padding: 1rem;
}

.contact-form label {
  font-weight: 600;
  display: block;
  margin-top: 0.55rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
}

.form-feedback {
  min-height: 1.5rem;
  margin: 0.6rem 0 0;
  font-weight: 600;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--black);
  color: var(--off-white);
  padding: 2rem 0;
}

.footer-inner {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ========== Modale ========== */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 60;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: min(92vw, 460px);
  background: var(--off-white);
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: var(--radius);
  padding: 1.3rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  background: #fff;
}

/* ========== Apparition au scroll ========== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Glitch leger ========== */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.glitch::before {
  color: rgba(235, 51, 73, 0.8);
  transform: translate(2px, -1px);
  animation: glitchPulse 4s infinite;
}

.glitch::after {
  color: rgba(11, 37, 69, 0.75);
  transform: translate(-2px, 1px);
  animation: glitchPulse 4s 0.15s infinite;
}

/* ========== Animations ========== */
@keyframes glitchPulse {
  0%,
  85%,
  100% {
    opacity: 0;
  }
  88%,
  92% {
    opacity: 0.34;
  }
}

@keyframes stampIn {
  0% {
    opacity: 0;
    transform: scale(1.25) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-10deg);
  }
}

/* ========== Responsive ========== */
@media (max-width: 1050px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(330px, 100%);
    height: calc(100vh - var(--header-h));
    background: var(--off-white);
    border-left: 1px solid rgba(17, 17, 17, 0.15);
    box-shadow: -20px 0 30px rgba(0, 0, 0, 0.08);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    transform: translateX(110%);
    transition: transform 0.28s ease;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .btn-nav {
    margin: 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-grid,
  .voyage-grid,
  .card-grid-3,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .timeline::before {
    top: 0;
    left: 17px;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .timeline-step {
    margin-top: 0;
    margin-left: 1.2rem;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 4.4rem 0;
  }

  .container {
    width: min(1120px, calc(100% - 1.3rem));
  }

  .hero-actions .btn {
    width: 100%;
  }
}
