/* ==========================================================================
   SANEX — Landing page Jeu Concours Derma Thérapie
   Intégration : CCM Performance
   ========================================================================== */

/* Frutiger est une police commerciale (Linotype) : si vous disposez des
   webfonts licenciées, déposez-les dans fonts/ et décommentez ci-dessous.
   En attendant, "Hind" (Google Fonts, appelée dans index.html) sert de
   substitut le plus proche, puis Helvetica/Arial en secours système. */

/*
@font-face {
  font-family: "Frutiger";
  src: url("../fonts/Frutiger-Roman.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Frutiger";
  src: url("../fonts/Frutiger-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
*/

:root {
  --bleu: #003ba5;            /* Bleu Sanex (titres, boutons, textes) */
  --peche-clair: #fce9d8;     /* Bandeau header + section contenu */
  --peche: #f8dcc5;           /* Fond hero */
  --creme: #fdf1e5;           /* Carte formulaire */
  --blanc: #ffffff;
  --font: "Frutiger", "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-vspace: 24px;      /* marge verticale du header, identique sur tous les devices */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--bleu);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* L'enveloppe .sticky-scope (header + hero) borne le sticky du header :
   il reste collé en haut jusqu'à l'arrivée de la section formulaire. */
.sticky-scope { position: relative; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--peche-clair);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Marge homogène au-dessus / en dessous du logo et du CTA, tous devices */
  padding: var(--header-vspace) 24px;
}

.header__logo { width: 150px; }

.btn {
  display: inline-block;
  background: var(--bleu);
  color: var(--blanc);
  font-weight: bold;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 16px 56px;
  border-radius: 999px;
  transition: opacity .2s ease;
}

.btn:hover { opacity: .85; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--peche);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 700px;
}

.hero__femme {
  position: absolute;
  top: 0;
  left: 0;
  width: 822px;
  max-width: 54%;
}

.hero__accroche {
  position: absolute;
  z-index: 2;
  left: 14.5%;
  top: 290px;
  width: 490px;
  max-width: 36%;
}

.hero__produits {
  position: absolute;
  top: 45px;
  right: 4%;
  width: 630px;
  max-width: 42%;
}

.hero__titre-produits {
  width: 625px;
  max-width: 100%;
}

.hero__bouteille-bleue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 26%;
  width: 100%;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Section contenu : lots + formulaire
   -------------------------------------------------------------------------- */

.contenu {
  background: var(--peche-clair);
  padding: 70px 0 90px;
}

.contenu__grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 60px;
  align-items: start;
}

.lots { font-size: 16px; line-height: 1.5; }

.lots__intro {
  text-align: justify;
  margin-bottom: 36px;
}

.pill {
  display: inline-block;
  background: var(--bleu);
  color: var(--blanc);
  font-weight: bold;
  font-size: 17px;
  padding: 8px 26px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.pill em { font-weight: normal; }

.lots__titre {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 14px;
}

.lots__titre em {
  text-transform: none;
  font-size: 19px;
  font-weight: normal;
  font-style: italic;
}

.lots__soustitre {
  font-weight: bold;
  margin: 22px 0 10px;
}

.lots__liste,
.liste-puces { list-style: none; }

.lots__liste li,
.liste-puces li , .reglement .liste-puces li::before{
  position: relative;
  padding-left: 24px;
  margin-bottom: 7px;
}

.lots__liste li::before,
.liste-puces li::before, .reglement .liste-puces li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: url("../images/lp_puce.png")no-repeat center / contain;
}
.reglement .liste-puces li::before {
	left:-10px !important;
}
/* Carte lots secondaires */

.box-secondaire {
  background: var(--blanc);
  border-radius: 24px;
  padding: 30px 34px;
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
}

.box-secondaire .pill { grid-column: 1 / -1; justify-self: start; }

.box-secondaire__titre {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 10px;
}

.box-secondaire__img {
  width: 150px;
  align-self: center;
}

/* Carte formulaire */

.form-card {
  position: sticky;
  top: 30px; /* la carte formulaire reste visible au scroll */
  background: var(--creme);
  border-radius: 28px;
  padding: 48px 44px;
  text-align: center;
}

.form-card__titre {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 6px;
}

.form-card__soustitre {
  font-size: 17px;
  margin-bottom: 30px;
}

/* Zone volontairement vide : le formulaire sera intégré ici */
.form-card__zone {
  min-height: 420px;
  scroll-margin-top: 30px; /* confort d'ancrage depuis le CTA du header */
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--blanc);
  padding: 60px 0 40px;
  text-align: center;
}

.footer__logo {
  width: 230px;
  margin: 0 auto 50px;
}

.footer__reglement {
  display: inline-block;
  color: var(--bleu);
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 22px;
}

.footer__legal {
  font-size: 11px;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Page règlement (reglement.html) — template
   -------------------------------------------------------------------------- */

.reglement {
  background: var(--blanc);
  padding: 60px 0 80px;
}
.reglement p {
	font-size:16px !important;
	color:var(--bleu-) !important;
	line-height: 130% !important;
}

.reglement a {
	font-size:16px !important;
	color:#000000;
}
.reglement__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 15px;
  line-height: 1.65;
}

.reglement h1 {
  font-size: 30px;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.reglement__chapeau {
  text-align: center;
  font-style: italic;
  margin-bottom: 44px;
}

.reglement h2 {
  font-size: 20px;
  margin: 36px 0 12px;
}

.reglement h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}

.reglement p { margin-bottom: 13px; }

.reglement ul { margin-bottom: 13px; }

.reglement__retour {
  display: inline-block;
  color: var(--bleu);
  font-weight: bold;
  margin-top: 40px;
}
.logo_footer {
	display:block !important;
	width:150px !important;
	margin:0 auto !important;
}
/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .contenu__grid { grid-template-columns: 1fr 420px; gap: 40px; }
  .hero__accroche { top: 240px; }
}

@media (max-width: 1024px) {
  .hero__inner { min-height: 0; padding-bottom: 40px; }
  .hero__femme { position: relative; max-width: 70%; margin-left: -5%; }
  .hero__accroche {
    position: relative;
    inset: auto;
    max-width: 490px;
    width: 80%;
    margin: -120px auto 30px;
  }
  .hero__produits {
    position: relative;
    inset: auto;
    margin: 0 auto;
    max-width: 90%;
    padding-bottom: 28%; /* réserve la place du débord de la bouteille bleue */
  }
  .contenu__grid { grid-template-columns: 1fr; }
  .form-card {
    position: static; /* sticky désactivé quand la page passe en 1 colonne */
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header__logo { width: 110px; }
  .btn { font-size: 15px; padding: 12px 32px; }
  .lots__titre { font-size: 20px; }
  .box-secondaire { grid-template-columns: 1fr; padding: 24px; }
  .box-secondaire__img { justify-self: center; }
  .form-card { padding: 32px 22px; }
  .footer__legal { font-size: 10px; }
}
