/* =========================================================
   Velario — Landing page
   Sommaire : 1. Police & variables  2. Base  3. Boutons
   4. Hero  5. Contact  6. Relation  7. Pied de page
   8. Animations  9. Responsive
   ========================================================= */

/* 1. Police & variables ---------------------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo: #323685;
  --ink: #141535;
  --mist: #eaeaf2;
  --sand: #f4f1ea;
  --green: #2a5a4a;
  --white: #ffffff;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1020px;
  --gutter: clamp(16px, 4vw, 30px);
  --radius-l: 30px;
  --radius-m: 23px;
  --radius-s: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--indigo);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #a8b9f4; outline-offset: 4px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* 3. Boutons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  transition: transform .25s var(--ease), background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--nav {
  min-height: 40px;
  padding: 8px 20px;
  border-radius: 9px;
  background: var(--white);
  color: var(--indigo);
  font-weight: 700;
  font-size: 1rem;
}
.btn--nav:hover { background: var(--sand); box-shadow: 0 10px 22px -12px rgba(20, 21, 53, .6); }

.btn--phone {
  background: var(--sand);
  color: var(--indigo);
  font-size: 1rem;
  padding-inline: 16px;
  letter-spacing: .08em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.btn--phone:hover { background: var(--white); }

.btn--light { background: var(--white); color: var(--indigo); }
.btn--light:hover { box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .55); }

.btn--arrow::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.btn--arrow:hover::after { transform: translateX(4px) rotate(45deg); }

.btn--outline {
  border: 1px solid var(--indigo);
  padding-inline: 34px;
  font-size: 1rem;
}
.btn--outline:hover { background: var(--indigo); color: var(--white); }
.btn__icon { flex: none; }

/* 4. Hero ------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: clamp(640px, 74vw, 954px);
  overflow: hidden;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  background: #ebe7de;
  color: var(--white);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
}
.hero::after { /* voile pour la lisibilité du texte */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 21, 53, .16) 0%, rgba(20, 21, 53, 0) 40%, rgba(20, 21, 53, .04) 62%, rgba(20, 21, 53, .6) 100%);
}

.hero__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 26px var(--gutter) 0;
}
.brand { display: flex; align-items: center; gap: 24px; }
.brand__mark { width: 72px; }
.brand__type { width: 206px; }
.btn--nav { margin-top: 33px; }

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(70px, 13vw, 170px) var(--gutter) 0;
}
.hero__title { line-height: 0; }
.hero__wordmark { width: min(530px, 80vw); }
.hero__tagline { width: min(290px, 50vw); margin-top: clamp(28px, 5vw, 52px); }
.hero__lede {
  margin-top: auto;
  padding-block: 60px 200px;
  max-width: 46em;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.01em;
}

/* 5. Contact ---------------------------------------------- */
.main {
  margin-top: -80px;
  padding-bottom: 110px;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  background: var(--mist);
}
.cta {
  position: relative;
  z-index: 2;
  top: -54px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 6vw, 68px);
  padding: 36px clamp(24px, 6vw, 64px);
  border-radius: var(--radius-m);
  background: var(--indigo);
  color: var(--white);
}
.cta__mark { width: 72px; flex: none; transition: transform .5s var(--ease); }
.cta:hover .cta__mark { transform: rotate(-6deg); }
.cta__text { flex: 1 1 300px; min-width: 0; }
.cta__title {
  max-width: 11em;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.01em;
}
.cta__text p { max-width: 22em; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; line-height: 1.2; }
.cta__actions { display: flex; flex-direction: column; gap: 14px; flex: 0 0 200px; }

/* 6. Relation --------------------------------------------- */
.relation {
  display: grid;
  grid-template-columns: minmax(0, 376px) minmax(0, 286px) minmax(0, 288px);
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding-top: 40px;
}
.relation__intro {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.0625rem;
  font-weight: 500;
}
.relation__title {
  font-size: clamp(2.25rem, 4.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.poster {
  position: relative;
  margin-top: 46px;
  aspect-ratio: 286 / 510;
  overflow: hidden;
  border-radius: 13px;
  transition: transform .5s var(--ease), box-shadow .5s ease;
}
.poster__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 21, 53, .47) 0%, rgba(20, 21, 53, .2) 45%, rgba(20, 21, 53, .03) 65%, rgba(20, 21, 53, .42) 100%);
}
.poster__lockup {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 40%;
  width: 72%;
  transform: translate(-50%, -50%);
}
.poster:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(20, 21, 53, .55); }
.poster:hover .poster__img { transform: scale(1.04); }

.cards { display: grid; gap: 23px; }
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 290px;
  padding: 22px 24px 24px;
  border-radius: var(--radius-s);
  color: var(--white);
  font-size: .875rem;
  line-height: 1.3;
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.card--indigo { background: var(--indigo); }
.card--green { background: var(--green); }
.card__label { font-size: .875rem; font-weight: 700; }
.card strong { display: block; font-weight: 600; }
.card__line {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 14px;
  background: currentColor;
  opacity: .5;
  transition: width .5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -26px rgba(20, 21, 53, .6); }
.card:hover .card__line { width: 100%; }

/* 7. Pied de page ----------------------------------------- */
.footer { padding-block: 90px 60px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 36px;
}
.footer__logo { width: 200px; }
.footer__text { font-size: .8125rem; line-height: 1.4; }
.footer__copy { margin-top: 36px; font-size: .9375rem; }

/* 8. Animations ------------------------------------------- */
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes reveal-x  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-up   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__bg       { animation: hero-zoom 2.4s var(--ease) both; }
.hero__wordmark { animation: reveal-x 1.2s cubic-bezier(.6, 0, .2, 1) .3s both; }
.hero__tagline  { animation: fade-up .9s var(--ease) 1s both; }
.hero__lede     { animation: fade-up .9s var(--ease) 1.25s both; }
.hero__bar      { animation: fade-up .7s var(--ease) .1s both; }

/* Apparition au défilement : la classe .is-hidden n'est posée que par le JS */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-hidden { opacity: 0; transform: translateY(20px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.is-hidden { opacity: 1; transform: none; }
}

/* 9. Responsive ------------------------------------------- */
@media (max-width: 980px) {
  .relation { grid-template-columns: 1fr 1fr; }
  .relation__intro { grid-column: 1 / -1; }
  .poster { margin-top: 0; }
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .brand { gap: 14px; }
  .brand__mark { width: 46px; }
  .brand__type { width: 140px; }
  .btn--nav { margin-top: 8px; min-height: 36px; padding: 6px 14px; font-size: .875rem; }
  .hero__bg { object-position: center 48%; }
  .hero__lede { padding-bottom: 170px; }
  .cta__actions { flex-basis: 100%; }
  .relation { grid-template-columns: 1fr; }
  .poster { aspect-ratio: 4 / 5; }
}
