/* Feuille de style unique de la page vitrine. Les quatre couleurs et la typographie
   viennent de la DA telle qu'elle a été livrée (identite-visuelle/08_TOKENS_DEV/) ;
   tout le reste — nuances de texte, fonds de panneau, ombres — s'en dérive.

   Le corail et le turquoise ne portent jamais de texte : sur fond crème, ni l'un ni
   l'autre n'atteint un contraste lisible. Ils dessinent, le bleu marine écrit. */

:root {
  --corail: #FF7A66;
  --turquoise: #63D2CF;
  --marine: #083B84;
  --creme: #F7EEE4;

  --fond: #F8F0E6;
  --panneau: #FFFDFA;
  --texte: var(--marine);
  --texte-doux: #40598C;
  --texte-faible: rgba(8, 59, 132, .60);

  --ombre-douce: 0 18px 40px rgba(8, 59, 132, .07);
  --ombre-forte: 0 28px 70px rgba(8, 59, 132, .13);

  --rayon: 32px;
  --marge-page: clamp(20px, 5vw, 48px);
  --largeur: 1160px;

  --police: "Nunito Sans", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2 {
  letter-spacing: -.02em;
  text-wrap: balance;
}

a {
  color: var(--marine);
  font-weight: 600;
  text-decoration-color: rgba(8, 59, 132, .3);
  text-underline-offset: .18em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--marine);
  outline-offset: 3px;
  border-radius: 6px;
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- décor de fond ---- */

.decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1;
}

.blob--creme {
  right: -14vw;
  top: -26vh;
  width: 40vw;
  min-width: 280px;
  background: #FBDDCD;
  opacity: .5;
}

.blob--corail {
  left: -20vw;
  top: 30vh;
  width: 28vw;
  min-width: 200px;
  background: var(--corail);
  opacity: .1;
}

.blob--turquoise {
  right: -16vw;
  bottom: -14vh;
  width: 26vw;
  min-width: 180px;
  background: var(--turquoise);
  opacity: .16;
}

/* ---- en-tête ---- */

.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) var(--marge-page);
}

.logo {
  width: clamp(148px, 16vw, 186px);
  height: auto;
}

.entete__contact {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(8, 59, 132, .06);
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s ease, transform .25s ease;
}

.entete__contact:hover {
  background: rgba(8, 59, 132, .11);
  transform: translateY(-1px);
}

/* ---- hero ---- */

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(8px, 2vw, 28px) var(--marge-page) clamp(40px, 6vw, 72px);
}

.oeil {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(14px, 2vw, 22px);
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  background: rgba(99, 210, 207, .22);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.oeil__point {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--corail);
}

h1 {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  font-size: clamp(3rem, 1.6rem + 6.4vw, 5.5rem);
  font-weight: 700;
  line-height: .98;
}

.point {
  display: inline-block;
  width: .18em;
  height: .18em;
  margin-left: .1em;
  border-radius: 50%;
  background: var(--corail);
}

.chapo {
  max-width: 46ch;
  margin: 0 0 clamp(20px, 3vw, 30px);
  color: var(--texte-doux);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.reperes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.reperes span {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--panneau);
  box-shadow: var(--ombre-douce);
  color: var(--texte-doux);
  font-size: .875rem;
  font-weight: 600;
}

.hero__illustration {
  filter: drop-shadow(0 30px 50px rgba(8, 59, 132, .12));
}

/* ---- les trois blocs, une illustration sur deux à gauche ---- */

.blocs {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vw, 128px);
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge-page);
}

.bloc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
}

.bloc--inverse .bloc__illustration {
  order: 2;
}

.bloc__illustration {
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
  transform: rotate(-1.4deg);
}

.bloc--inverse .bloc__illustration {
  transform: rotate(1.4deg);
}

.bloc__illustration--corail {
  background: rgba(255, 122, 102, .13);
}

.bloc__illustration--turquoise {
  background: rgba(99, 210, 207, .18);
}

/* Le troisième panneau reste dans le chaud : un crème plus soutenu. Un marine dilué
   vire au gris sur ce fond, et refroidit toute la fin de page. */
.bloc__illustration--sable {
  background: #F3E3D2;
}

.bloc__rang {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--texte-faible);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.bloc__rang::after {
  content: "";
  width: 44px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: .35;
}

.bloc h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.bloc p:not(.bloc__rang) {
  max-width: 46ch;
  margin: 0;
  color: var(--texte-doux);
  text-wrap: pretty;
}

/* ---- l'annonce de fin ---- */

.attente {
  max-width: calc(var(--largeur) - 80px);
  margin: clamp(72px, 10vw, 140px) auto clamp(40px, 6vw, 72px);
  padding: clamp(38px, 6vw, 68px) var(--marge-page);
  border-radius: var(--rayon);
  background: var(--panneau);
  box-shadow: var(--ombre-forte);
  text-align: center;
}

.attente h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.attente p {
  margin: 0 0 clamp(22px, 3vw, 30px);
  color: var(--texte-doux);
}

.bouton {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--marine);
  color: var(--creme);
  font-size: 1.0625rem;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(8, 59, 132, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}

.bouton:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(8, 59, 132, .32);
}

/* ---- pied ---- */

.pied {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge-page) clamp(36px, 5vw, 56px);
  color: var(--texte-faible);
  font-size: .875rem;
  text-align: center;
}

.pied p {
  margin: 0 0 4px;
}

/* ---- mouvement ---- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.js .reveal.vu {
  opacity: 1;
  transform: none;
  transition: opacity .75s ease-out, transform .75s cubic-bezier(.22, .7, .3, 1);
}

.scene__flottant,
.scene__pastille,
.scene__jour,
.scene__entree,
.scene__ecran,
.scene__mains {
  animation: flotte 7s ease-in-out infinite;
}

.scene__pastille {
  animation-duration: 5.5s;
  animation-delay: -1.8s;
}

.scene__jour,
.scene__ecran,
.scene__mains {
  animation-duration: 6s;
  animation-delay: -2.4s;
}

.scene__entree,
.scene__mains {
  animation-duration: 5s;
  animation-delay: -1.2s;
}

@keyframes flotte {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ---- adaptations ---- */

@media (max-width: 900px) {
  .hero,
  .bloc {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: clamp(48px, 9vw, 72px);
    text-align: left;
  }

  .hero__illustration {
    max-width: 380px;
    margin: 8px auto 0;
  }

  .bloc__illustration,
  .bloc--inverse .bloc__illustration {
    order: 0;
    max-width: 460px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .scene__flottant,
  .scene__pastille,
  .scene__jour,
  .scene__entree,
  .scene__ecran,
  .scene__mains,
  .bouton,
  .entete__contact {
    animation: none;
    transition: none;
  }
}
