/******************************/
/*********** Général***********/
/******************************/
html {
  --bg-color: var(--CONFIG-bg-color);
  --title-text-color: var(--CONFIG-title-text-color);
  --paragraphe-text-color: var(--CONFIG-hero-paragraphe-color);
  --description-text-color: var(--CONFIG-description-text-color);
  --footer-text-color: var(--CONFIG-footer-text-color);
  --bg-img-footer: var(--CONFIG-bg-img-footer);
  --green: var(--CONFIG-green);
  --gold: var(--CONFIG-gold);
  --ink: var(--CONFIG-ink);

  /***********************************************************************************************************/
  /* Ces variable sont déja prédéfinies (pas besoin de les décommenter), mais vous pouvez les customiser ici */
  /***********************************************************************************************************/
  /* Toutes les valeurs max correspondent au rendu Figma à 1920px de large. */

  --ff-global: 'Poppins', sans-serif;
  --ff-display: 'Merriweather Sans', 'Poppins', sans-serif;

  --max-width-body: 1920px;
  --max-width-heroText: 35.5625rem;                                             /* 569px  */
  --max-width-paragraphe: 32.6875rem;                                           /* 523px  */

  /* Gouttières                                                                    375px -> 1920px */
  --pad-hero-left: clamp(1.5rem, -0.5175rem + 8.6084vw, 9.8125rem);             /* 24px  -> 157px */
  --pad-hero-right: clamp(1.5rem, -1.64rem + 13.3981vw, 14.4375rem);            /* 24px  -> 231px */
  --pad-header-top: clamp(1.5rem, 1rem + 2.1359vw, 3.5625rem);                  /* 24px  -> 57px  */
  --pad-header-left: clamp(1.5rem, 0.9084rem + 2.5243vw, 3.9375rem);            /* 24px  -> 63px  */

  /* Rythme vertical du hero */
  --margin-b-badge: 0.75rem;                                                    /* 12px */
  --margin-b-title: 0.9375rem;                                                  /* 15px */
  --margin-b-paragraphe: 1.1875rem;                                             /* 19px */
  --margin-b-description: 1.9rem;                                               /* 30px */
  --margin-t-note: 1.75rem;                                                     /* 28px */

  /* Marque */
  --width-logo-mark: clamp(2.375rem, 2.1566rem + 0.932vw, 3.2748rem);           /* 38px  -> 52px  */
  --gap-brand: clamp(0.75rem, 0.5679rem + 0.7767vw, 1.5rem);                    /* 12px  -> 24px  */

  /* Visuel — le mockup est piloté par la HAUTEUR disponible, pas par la largeur,
     pour que la page tienne dans l'écran sans scroll. À 1150px de haut on
     retombe exactement sur la maquette : 128 + 864 + 88 + 70 = 1150. */
  --footer-h: 4.375rem;                                                         /* 70px */
  --phone-top: clamp(3.5rem, 11.13vh, 8rem);                                    /* 56px  -> 128px */
  --phone-bottom: clamp(2rem, 7.65vh, 5.5rem);                                  /* 32px  -> 88px  */
  --phone-ink-h: min(54rem, calc(100vh - var(--footer-h) - var(--phone-top) - var(--phone-bottom)));
  --width-phone-img: var(--CONFIG-width-phone-img,
                         min(calc(var(--phone-ink-h) * 467 / 1022), 24.6751rem, 34vw));
  --store-badge-h: clamp(2.5rem, 2.3256rem + 0.7443vw, 3.2188rem);              /* 40px  -> 51px  */
  --gap-store: clamp(1rem, 0.6511rem + 1.4887vw, 2.4375rem);                    /* 16px  -> 39px  */

  /* Typographie */
  --fs-brand: clamp(1.5rem, 1.3635rem + 0.5825vw, 2.0625rem);                   /* 24px  -> 33px  */
  --fs-badge: clamp(0.9375rem, 0.8768rem + 0.2589vw, 1.1875rem);                /* 15px  -> 19px  */
  --fs-title: clamp(2rem, 1.7269rem + 1.165vw, 3.125rem);                       /* 32px  -> 50px  */
  --fs-paragraphe: clamp(1rem, 0.9545rem + 0.1942vw, 1.1875rem);                /* 16px  -> 19px  */
  --fs-description: clamp(1.0625rem, 0.9866rem + 0.3236vw, 1.375rem);           /* 17px  -> 22px  */
  --fs-note: clamp(0.8125rem, 0.7973rem + 0.0647vw, 0.875rem);                  /* 13px  -> 14px  */
  --fs-card: clamp(0.9375rem, 0.46875rem + 0.625vw, 1.21875rem);                /* 15px  -> 19.5px */
  --fs-footer-text: clamp(0.8125rem, 0.767rem + 0.1942vw, 1rem);                /* 13px  -> 16px  */
}

/* dvh tient compte des barres d'UI mobiles. Repli en vh ci-dessus : une valeur
   invalide dans une variable CSS ferait retomber .heroPhone sur width:auto. */
@supports (height: 100dvh) {
  html {
    --phone-ink-h: min(54rem, calc(100dvh - var(--footer-h) - var(--phone-top) - var(--phone-bottom)));
  }
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-color, #fff);
  background-image: var(--bg-img-body);
  font-family: var(--ff-global, 'Poppins', sans-serif);
  overflow-x: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: 100%;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
select,
textarea {
  font-family: var(--ff-global, 'Poppins', sans-serif);
}

::-webkit-input-placeholder {
  font-family: var(--ff-global, 'Poppins', sans-serif);
}

:-moz-placeholder {
  font-family: var(--ff-global, 'Poppins', sans-serif);
}

::-moz-placeholder {
  font-family: var(--ff-global, 'Poppins', sans-serif);
}

:-ms-input-placeholder {
  font-family: var(--ff-global, 'Poppins', sans-serif);
}

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

ul {
  list-style: none;
}

/******************************/
/*********** Header ***********/
/******************************/
header {
  padding: var(--pad-header-top) var(--pad-header-left) 0;
  position: absolute;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--gap-brand);
  text-decoration: none;
}

/* La boîte fait 52.4 x 37.9 (Figma) ; le SVG déborde du contour car les
   tracés sont dessinés en stroke — d'où les 107.47% / 111.66% et le décalage. */
.brandMark {
  position: relative;
  flex: none;
  width: var(--width-logo-mark);
  aspect-ratio: 52.397 / 37.865;
}

.brandMark img {
  position: absolute;
  left: -3.26%;
  top: -5.83%;
  width: 107.47%;
  height: 111.66%;
}

.brandName {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-brand);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

/*******************************/
/*********** Content ***********/
/*******************************/
.bodyContent {
  height: 100%;
  max-width: var(--max-width-body, 1920px);
  margin: 0 auto;
  padding-left: var(--pad-hero-left);
  padding-right: var(--pad-hero-right);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.bodyContentLeftFrame {
  flex: 1 1 0;
  min-width: 0;
  max-width: var(--max-width-heroText);
  /* Ces paddings recalent le bloc de texte sur la maquette (pastille à y=339
     dans un hero de 1080) tout en se resserrant sur les écrans peu hauts. */
  padding-top: clamp(5rem, 11.13vh, 8rem);
  padding-bottom: clamp(3rem, 6.6vh, 4.75rem);
}

.bodyContentRightFrame {
  flex: none;
  align-self: flex-start;
  margin-top: var(--phone-top);
}

/* Pastille « Bientôt disponible – Paris » */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  background-color: rgba(71, 101, 37, 0.12);
  color: var(--green);
  font-size: var(--fs-badge);
  font-weight: 500;
  line-height: 1.42;
  margin-bottom: var(--margin-b-badge);
}

.badgeDot {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--green);
}

.title {
  font-family: var(--ff-display);
  color: var(--title-text-color, #02132B);
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.03em;
  margin-bottom: var(--margin-b-title);
}

.titleAccent {
  color: var(--green);
}

.paragraphe {
  color: var(--paragraphe-text-color, rgba(65, 78, 96, 0.59));
  font-size: var(--fs-paragraphe);
  font-weight: 500;
  line-height: 1.42;
  max-width: var(--max-width-paragraphe);
  margin-bottom: var(--margin-b-paragraphe);
}

.description {
  color: var(--description-text-color, #476525);
  font-size: var(--fs-description);
  font-weight: 600;
  line-height: 1.36;
  margin-bottom: var(--margin-b-description);
}

/* Badges stores : alignés sur la hauteur, comme dans la maquette */
.store {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-store);
}

.store .img_store {
  width: auto;
  height: var(--store-badge-h);
}

/* Note « Pensé avec des sommeliers… » */
.note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--margin-t-note);
  color: var(--gold);
  font-size: var(--fs-note);
  font-weight: 500;
  line-height: 1.5;
}

.noteIcon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.noteIcon img {
  width: 1.1198rem;                                                             /* 17.9173px */
  height: 1.1203rem;                                                            /* 17.925px  */
}

/**********************************/
/*********** Visuel app ***********/
/**********************************/
/* La boîte correspond à l'encre du mockup : le PNG est recadré au ras du
   téléphone (467 x 1022), fond et ombre retirés — l'ombre est faite en CSS. */
.heroPhone {
  position: relative;
  z-index: 0;
  width: var(--width-phone-img);
  aspect-ratio: 467 / 1022;
}

/* Cercle vert derrière le téléphone (640px à 12% dans Figma) */
.heroPhone::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -36.27%;
  top: 14.7%;
  width: 162.11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: rgba(71, 101, 37, 0.12);
}

.heroPhoneImg {
  width: 100%;
  height: 100%;
  /* drop-shadow suit la silhouette détourée, contrairement à box-shadow qui
     dessinerait un rectangle autour de l'image. */
  filter: drop-shadow(0 18px 28px rgba(2, 19, 43, 0.13));
}

.heroCard {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.9231em;                                                                /* 18px */
  padding: 0.9231em;                                                            /* 18px */
  border-radius: 1.2308em;                                                      /* 24px */
  background-color: #fff;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
  font-size: var(--fs-card);
  white-space: nowrap;
}

.heroCard--badge {
  left: -48.68%;
  top: 18.52%;
}

.heroCard--place {
  left: 73.66%;
  top: 65.16%;
}

.heroCardIcon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.0769em;                                                              /* 36px + 2 x 12px de padding */
  height: 3.0769em;
  border-radius: 0.6154em;                                                      /* 12px */
}

.heroCard--badge .heroCardIcon {
  background-color: rgba(217, 164, 6, 0.08);
}

.heroCard--place .heroCardIcon {
  background-color: rgba(71, 101, 37, 0.12);
}

.heroCardIcon--medal img {
  width: 1.6572em;                                                              /* 32.3152px */
  height: 1.6422em;                                                             /* 32.0237px */
}

.heroCardIcon--glass img {
  width: 1.0711em;                                                              /* 20.8854px */
  height: 1.6546em;                                                             /* 32.265px  */
}

.heroCardBody {
  display: flex;
  flex-direction: column;
  gap: 0.1538em;                                                                /* 3px */
}

.heroCardTitle {
  font-size: 1em;                                                               /* 19.5px */
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.heroCardSub {
  font-size: 0.7692em;                                                          /* 15px */
  font-weight: 400;
  line-height: 1.6;
  color: #5A6575;
}

.heroCardStars {
  display: flex;
  align-items: center;
  gap: 0.3077em;                                                                /* 6px */
}

.heroCardStars img {
  flex: none;
  width: 0.6154em;                                                              /* 12px */
  height: 0.6154em;
}

/******************************/
/**********************************/
/*********** MediaQuery ***********/
/**********************************/
/* Les deux cartes flottantes débordent du téléphone : sous 1300px elles
   viendraient chevaucher la colonne de texte, on les masque. */
@media screen and (max-width: 1300px) {
  .heroCard {
    display: none;
  }
}

@media screen and (max-width: 900px) {
  .bodyContent {
    flex-direction: column;
    /* stretch (et non flex-start) : sinon la colonne se réduit à la largeur de
       son contenu le plus long et le texte déborde. */
    align-items: stretch;
    justify-content: center;
  }

  .bodyContentLeftFrame {
    flex: none;
    width: 100%;
    max-width: none;
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  /* Pas de mockup en mobile : le hero est en texte seul. */
  .bodyContentRightFrame {
    display: none;
  }
}

