/* ============================================================
   Akapulco — site vitrine. DA « plage paradisiaque » reprise de
   l'icône : ciel crème→corail, soleil doré, lagon turquoise, sable.
   Mobile-first ; les media queries élargissent au-delà de 720px.
   ============================================================ */

:root {
  /* Palette (icône Akapulco) */
  --creme: #FFEFD0;
  --peche: #FFC9A0;
  --corail-clair: #FF9E80;
  --corail: #E8613C;
  --corail-fonce: #C2451F;
  --soleil: #FFC94F;
  --soleil-clair: #FFE1A0;
  --lagon: #3ECFBF;
  --lagon-fonce: #0E897A;
  --sable: #FCEBC4;
  --sable-ombre: #E7C99B;
  --encre: #33291F;
  --encre-douce: #7A6A5B;
  --blanc: #FFFDF8;
  --vert: #2E7D32;

  --rayon: 22px;
  --rayon-s: 14px;
  --ombre: 0 12px 34px rgba(51, 41, 31, 0.14);
  --ombre-douce: 0 6px 18px rgba(51, 41, 31, 0.10);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre);
  background: var(--blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

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

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.bouton:active { transform: translateY(1px) scale(0.99); }

.bouton--grand { font-size: 1.15rem; padding: 1.05rem 2rem; }

/* CTA principal : corail plein, sur fond clair */
.bouton--plein,
.bouton--grand:not(.bouton--clair) {
  background: linear-gradient(180deg, var(--corail-clair), var(--corail));
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 97, 60, 0.38);
}
.bouton--plein:hover,
.bouton--grand:not(.bouton--clair):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 97, 60, 0.46);
}

/* CTA sur fond corail (section finale) : clair */
.bouton--clair {
  background: var(--blanc);
  color: var(--corail-fonce);
  box-shadow: var(--ombre-douce);
}
.bouton--clair:hover { transform: translateY(-2px); box-shadow: var(--ombre); }

/* Bouton secondaire : contour corail */
.bouton--ligne {
  background: transparent;
  color: var(--corail-fonce);
  border-color: var(--corail);
}
.bouton--ligne:hover { background: rgba(232, 97, 60, 0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 3.2rem 1.3rem 5.5rem;
  background: linear-gradient(180deg, var(--creme) 0%, var(--peche) 52%, var(--corail-clair) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero__soleil {
  position: absolute;
  top: -70px; right: -40px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--soleil-clair) 0%, var(--soleil) 42%, rgba(255, 201, 79, 0) 72%);
  z-index: -1;
  filter: blur(1px);
}
.hero__contenu { max-width: 680px; margin: 0 auto; }
.hero__logo {
  width: 112px; height: 112px;
  margin: 0 auto 1.4rem;
  border-radius: 28px;
  box-shadow: var(--ombre);
}
.hero__titre {
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  font-weight: 800;
  color: var(--encre);
}
.hero__titre em {
  font-style: normal;
  color: var(--corail-fonce);
  position: relative;
}
.hero__accroche {
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  color: #5c4a3a;
  max-width: 32ch;
  margin: 1.1rem auto 1.9rem;
}
.hero__note { margin-top: 0.9rem; font-size: 0.92rem; color: #6d5947; }

.hero__vagues {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: 90px;
  fill: var(--blanc);
}

/* ---------- Bandeau langues ---------- */
.langues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  padding: 1.6rem 1.3rem 0.4rem;
  max-width: var(--max);
  margin: 0 auto;
}
.langues__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--encre-douce);
  font-size: 0.98rem;
}
.langues__drapeau { font-size: 1.3rem; }

/* ---------- Sections ---------- */
.section__titre {
  text-align: center;
  font-size: clamp(1.6rem, 5.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.atouts { padding: 2.8rem 1.3rem; max-width: var(--max); margin: 0 auto; }
.atouts__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}
.atout {
  background: var(--blanc);
  border: 1px solid #f0e4d0;
  border-radius: var(--rayon);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--ombre-douce);
}
.atout__emoji {
  font-size: 2rem;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--sable), #fff);
  border-radius: 16px;
  margin-bottom: 0.9rem;
}
.atout h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.atout p { margin: 0; color: var(--encre-douce); }

/* ---------- Offres ---------- */
.offres {
  padding: 2.8rem 1.3rem 3.4rem;
  background: linear-gradient(180deg, #fff 0%, var(--sable) 100%);
}
.offres__soustitre {
  text-align: center;
  color: var(--encre-douce);
  max-width: 44ch;
  margin: 0.2rem auto 2rem;
}
.offres__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: var(--max);
  margin: 0 auto;
  align-items: stretch;
}
.carte {
  position: relative;
  background: var(--blanc);
  border: 1px solid #f0e4d0;
  border-radius: var(--rayon);
  padding: 2rem 1.6rem 1.6rem;
  box-shadow: var(--ombre-douce);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.carte--avant {
  border: 2px solid var(--corail);
  box-shadow: var(--ombre);
  background: linear-gradient(180deg, #fff 0%, #fff7ee 100%);
}
.carte__badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--soleil), var(--corail));
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(232, 97, 60, 0.35);
}
.carte__nom { font-size: 1.4rem; margin-bottom: 0.6rem; }
.carte__prix {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--corail-fonce);
  margin: 0.2rem 0 0;
}
.carte__cadence { font-size: 1rem; font-weight: 600; color: var(--encre-douce); margin-left: 0.2rem; }
.carte__detail { color: var(--encre-douce); font-size: 0.95rem; margin: 0.3rem 0 1rem; }
.carte__argument { font-style: italic; color: var(--encre); margin: 0 0 1.4rem; }
.carte .bouton { margin-top: auto; }
.carte__paiement { font-size: 0.82rem; color: var(--encre-douce); margin: 0.9rem 0 0; }
.offres__pied { text-align: center; color: var(--encre-douce); font-size: 0.9rem; margin-top: 2rem; }

/* ---------- Section finale ---------- */
.final {
  text-align: center;
  padding: 3.4rem 1.3rem 4rem;
  background: linear-gradient(160deg, var(--lagon) 0%, var(--lagon-fonce) 100%);
  color: #fff;
}
.final__titre { font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 800; }
.final__texte { max-width: 40ch; margin: 0.8rem auto 1.8rem; opacity: 0.95; }

/* ---------- Auth (inscription / connexion / compte) ---------- */
.auth {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.3rem;
  background: linear-gradient(180deg, var(--creme), var(--peche));
}
.auth__retour {
  position: absolute; top: 1.2rem; left: 1.2rem;
  color: var(--corail-fonce); text-decoration: none; font-weight: 600;
}
.auth__carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 2.4rem 1.8rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.auth__logo { margin: 0 auto 1rem; border-radius: 18px; }
.auth__offre {
  display: inline-block;
  background: var(--sable);
  color: var(--corail-fonce);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.2rem;
}
.auth__titre { font-size: 1.6rem; margin-bottom: 0.7rem; }
.auth__texte { color: var(--encre-douce); margin: 0 0 1.5rem; }
.auth__form { display: flex; flex-direction: column; gap: 0.9rem; }
.auth__input {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.9rem 1rem;
  border: 2px solid #eaddc8;
  border-radius: var(--rayon-s);
  background: #fffdfa;
  color: var(--encre);
  text-align: center;
  transition: border-color 0.12s ease;
}
.auth__input:focus { outline: none; border-color: var(--corail); }
.auth__input--code { letter-spacing: 0.35em; font-weight: 700; font-size: 1.4rem; }
.auth__erreur {
  background: #fdecea;
  color: #b3261e;
  border-radius: var(--rayon-s);
  padding: 0.7rem 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.auth__redemander { margin-top: 1rem; }
.auth__lien {
  background: none; border: none; cursor: pointer;
  color: var(--corail-fonce); font-weight: 600; font-size: 0.95rem;
  text-decoration: underline; padding: 0;
}

/* Espace compte */
.compte__email { font-weight: 600; margin: 0 0 1rem; word-break: break-all; }
.compte__acces {
  border-radius: var(--rayon-s);
  padding: 0.8rem 1rem;
  font-weight: 700;
  margin: 0 0 1.2rem;
}
.compte__acces--actif { background: #e7f5e8; color: var(--vert); }
.compte__acces--inactif { background: var(--sable); color: var(--encre-douce); }
.compte__note { color: var(--encre-douce); font-size: 0.92rem; margin: 0 0 1.5rem; }
.compte__detail { color: var(--encre-douce); font-size: 0.95rem; margin: -0.6rem 0 1.2rem; }
.compte__mabonner { font-weight: 700; font-size: 1rem; margin: 0 0 0.6rem; }
.compte__offres { display: flex; flex-direction: column; gap: 0.6rem; margin: 0 0 1rem; }
.compte__offres .bouton { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2; }
.compte__offre-nom { font-size: 1.05rem; }
.compte__offre-detail { font-size: 0.82rem; font-weight: 500; opacity: 0.85; }
.compte__deco { margin-top: 1.4rem; }

/* Boutons de téléchargement (écran de bienvenue) */
.bienvenue__stores { display: flex; flex-direction: column; gap: 0.7rem; margin: 0.4rem 0 0.2rem; }
.store {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--encre); color: #fff;
  border-radius: var(--rayon-s); padding: 0.7rem 1.2rem;
  text-decoration: none;
}
.store__glyph { display: flex; }
.store__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; font-weight: 700; font-size: 1.05rem; }
.store__txt small { font-size: 0.72rem; font-weight: 500; opacity: 0.82; }
.store--bientot { opacity: 0.45; cursor: not-allowed; }
.bienvenue__compte { display: inline-block; margin-top: 1.3rem; }

/* ---------- Pied de page ---------- */
.pied {
  text-align: center;
  padding: 2.6rem 1.3rem;
  background: var(--encre);
  color: #e9ddcd;
}
.pied__logo { margin: 0 auto 0.6rem; border-radius: 14px; }
.pied__marque { font-weight: 800; font-size: 1.2rem; margin: 0 0 0.8rem; color: #fff; }
.pied__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-bottom: 0.9rem; }
.pied__liens a { color: var(--soleil-clair); text-decoration: none; font-weight: 600; }
.pied__liens a:hover { text-decoration: underline; }
.pied__legal { font-size: 0.85rem; opacity: 0.7; margin: 0; }

/* ============================================================
   Tablette / desktop
   ============================================================ */
@media (min-width: 720px) {
  .hero { padding: 4.5rem 2rem 7rem; }
  .hero__soleil { width: 360px; height: 360px; top: -90px; right: 4%; }
  .atouts__grille { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
  .offres__grille { grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: center; }
  .carte--avant { transform: scale(1.05); z-index: 1; }
}

@media (min-width: 1000px) {
  .atouts__grille { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
