/* ============================================================
   Alalwan Almobhera — styles.css
   ============================================================ */

:root {
  --magenta:  #E43060;  /* couleur principale, CTA */
  --orchidee: #A83084;  /* secondaire */
  --violet:   #54246C;  /* sections sombres, titres sur clair */
  --violet-nuit: #1C0F26; /* fond très sombre du héros derrière l'image */
  --ambre:    #F0B430;  /* accents chauds */
  --encre:    #2B2233;  /* texte courant */
  --fond:     #FBF6F8;  /* fond de page des sections claires */
  --blanc:    #FFFFFF;
  --whatsapp: #25D366;  /* uniquement pour les boutons WhatsApp */

  --gradient-signature: linear-gradient(135deg, #F0B430 0%, #E43060 45%, #A83084 72%, #54246C 100%);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--magenta); }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  border: none;
  border-radius: 999px;
  padding: 0.8em 1.6em;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blanc);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.btn--primary {
  background: var(--gradient-signature);
  box-shadow: 0 6px 18px rgba(228, 48, 96, 0.3);
}

.btn--whatsapp {
  background: var(--whatsapp);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.btn:hover { transform: translateY(-3px); }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(228, 48, 96, 0.4); }
.btn--whatsapp:hover { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.38); }

.btn--lg { padding: 1em 2.1em; font-size: 1.05rem; }

.icon-wa { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.nav.is-scrolled {
  background: rgba(28, 15, 38, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(28, 15, 38, 0.35);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav__logo { width: 26px; height: 26px; object-fit: contain; }

.nav__wordmark {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--blanc);
}

.nav__pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.3rem;
}

.nav__link {
  display: inline-block;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blanc);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav__link:hover { background: rgba(255, 255, 255, 0.15); }

.nav__link.is-active {
  background: var(--blanc);
  color: var(--violet-nuit);
}

.nav__right { display: flex; align-items: center; gap: 0.8rem; }

.nav__cta { font-size: 0.88rem; padding: 0.65em 1.3em; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blanc);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet-nuit);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.mobile-menu__link {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--blanc);
  text-decoration: none;
}

.mobile-menu__link:hover { color: var(--ambre); }

.mobile-menu__cta { margin-top: 1rem; }

@media (max-width: 768px) {
  .nav__pill { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   HERO CINÉMATIQUE
   ============================================================ */
.hero {
  position: relative;
  height: 100dvh;
  background: var(--violet-nuit);
  overflow: hidden;
}

.hero__base,
.hero__reveal {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__base {
  z-index: 1;
  background-image: url("../assets/hero-base.jpg");
  animation: kenburns 1.8s var(--ease-out-expo) forwards;
}

.hero__reveal {
  z-index: 3;
  background-image: url("../assets/hero-reveal.jpg");
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: kenburns 1.8s var(--ease-out-expo) forwards;
}

@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero__canvas { display: none; }

/* Texts */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  top: clamp(4.6rem, 10vh, 6.5rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.55em 1.4em;
  background: rgba(28, 15, 38, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 0.15s forwards;
}

.hero__title {
  display: flex;
  flex-direction: column;
  color: var(--blanc);
  line-height: 0.95;
  font-size: clamp(48px, 8.5vw, 96px);
}

.hero__title-line1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.05em;
  opacity: 0;
  animation: blurRise 1.1s var(--ease-out-expo) 0.25s forwards;
}

.hero__title-line2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  opacity: 0;
  animation: blurRise 1.1s var(--ease-out-expo) 0.42s forwards;
}

.hero__left {
  position: absolute;
  z-index: 5;
  left: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(4.5rem, 9vh, 6rem);
  max-width: 280px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.7s forwards;
}

.hero__right {
  position: absolute;
  z-index: 5;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(4.5rem, 9vh, 6rem);
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.85s forwards;
}

.hero__chevron {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  animation: bounceSoft 2.2s ease-in-out infinite;
}

.hero__chevron svg { width: 26px; height: 26px; }

@keyframes blurRise {
  from { opacity: 0; transform: translateY(28px); filter: blur(12px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounceSoft {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 480px) {
  .hero__badge {
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: calc(100vw - 2.5rem);
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .hero__left { display: none; }

  .hero__right {
    left: 1rem;
    right: 1rem;
    bottom: 4rem;
    max-width: none;
    align-items: stretch;
    text-align: center;
  }

  .hero__right .btn { justify-content: center; }
}

/* ============================================================
   SECTIONS CLAIRES — base
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }

.section--white { background: var(--blanc); }

.section--violet {
  background: var(--violet);
  color: var(--blanc);
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.9rem;
}

.section__eyebrow--amber { color: var(--ambre); }

/* Losange décoratif (motif signature) */
.diamond {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gradient-signature);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section__title {
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--violet);
  margin-bottom: 1.4rem;
}

.section--violet .section__title { color: var(--blanc); }

.section__intro {
  max-width: 62ch;
  margin-bottom: 2.8rem;
}

/* ============================================================
   KEY FIGURES
   ============================================================ */
.figures {
  background: var(--fond);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.figures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.figure { display: flex; flex-direction: column; gap: 0.4rem; }

.figure__number {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.figure__label {
  font-size: 0.88rem;
  color: var(--encre);
  max-width: 24ch;
  margin-inline: auto;
}

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

@media (max-width: 480px) {
  .figures__grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ============================================================
   OUR BRANDS
   ============================================================ */
.brands__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}

.card {
  position: relative;
  background: var(--blanc);
  border-radius: 16px;
  padding: 2rem 1.7rem 1.7rem;
  box-shadow: 0 8px 30px rgba(84, 36, 108, 0.09);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-signature);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 42px rgba(84, 36, 108, 0.16);
}

.card__logo {
  height: 40px;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
}

.card__logo img {
  max-height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.card__name {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  color: var(--violet);
}

.card__subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orchidee);
}

.card__text { font-size: 0.93rem; flex-grow: 1; }

.card__link {
  align-self: flex-start;
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--magenta);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-image: var(--gradient-signature) 1;
  transition: border-bottom-color 0.25s ease;
}

.card__link:hover { border-bottom: 2px solid; }

.card__badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-nuit);
  background: var(--ambre);
  border-radius: 999px;
  padding: 0.35em 0.95em;
}

/* ============================================================
   WHY US
   ============================================================ */
.why__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.8rem;
  margin-top: 2.4rem;
}

.why__item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ease-out-expo), background 0.3s ease;
}

.why__item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.09);
}

.why__num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ambre);
  margin-bottom: 0.7rem;
}

.why__item h3 {
  font-weight: 800;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  color: var(--blanc);
}

.why__item p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  background: var(--fond);
  overflow: hidden;
}

/* Filigrane losange très pâle */
.about__watermark {
  position: absolute;
  top: 50%;
  left: -8%;
  width: min(560px, 70vw);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 12%;
  background: var(--gradient-signature);
  opacity: 0.045;
  pointer-events: none;
}

.about__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__text p + p { margin-top: 1.1rem; }

.about__side {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  align-items: center;
}

.about__logo { width: 110px; height: 110px; object-fit: contain; }

.about__box {
  background: var(--blanc);
  border-radius: 16px;
  border-top: 4px solid transparent;
  border-image: var(--gradient-signature) 1;
  box-shadow: 0 8px 30px rgba(84, 36, 108, 0.09);
  padding: 1.4rem 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta {
  background: var(--gradient-signature);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  color: var(--blanc);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.cta__title {
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.cta__subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 1.4rem;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact__list li { display: flex; flex-direction: column; }

.contact__label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orchidee);
}

.contact__list a {
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
}

.contact__list a:hover { color: var(--magenta); }

.contact__map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(84, 36, 108, 0.09);
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 1.1rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--encre);
  background: var(--fond);
  border: 1px solid rgba(84, 36, 108, 0.18);
  border-radius: 12px;
  padding: 0.75em 1em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(228, 48, 96, 0.15);
}

.field textarea { resize: vertical; }

.contact__form .btn { align-self: flex-start; }

.contact__fallback { font-size: 0.88rem; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--violet-nuit);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.2rem 0 2.2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer__logo { width: 44px; height: 44px; object-fit: contain; }

.footer__name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blanc);
}

.footer__contact { font-style: normal; }

.footer__contact a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer__contact a:hover { color: var(--ambre); }

.footer__copyright {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }

  .hero__base,
  .hero__reveal { animation: none; transform: none; }

  .hero__badge,
  .hero__title-line1,
  .hero__title-line2,
  .hero__left,
  .hero__right { animation: none; opacity: 1; transform: none; filter: none; }

  .hero__chevron { animation: none; }
}
