/* ============================================================
   Detail It — style.css
   ============================================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #0d1b2e;
  --navy-mid:    #152338;
  --navy-light:  #1e3352;
  --blue:        #3a8fd4;
  --blue-bright: #5aabf0;
  --blue-pale:   #a8d4f5;
  --white:       #f5f7fa;
  --muted:       #7a93b0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
@keyframes lineDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s, transform .7s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: .85rem 2.2rem;
  border-radius: 3rem;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(58, 143, 212, .35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: .85rem 2.2rem;
  border-radius: 3rem;
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-2px);
}

/* Modifiers */
.btn-block {
  display: block;
  text-align: center;
}
.btn-lg {
  font-size: .95rem;
  padding: 1rem 3rem;
}

/* ── SECTIONS COMMONS ── */
section { padding: 7rem 3rem; }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.section-sub {
  font-size: .95rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(13, 27, 46, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58, 143, 212, .15);
  transition: padding .3s;
}
nav.scrolled { padding: .8rem 3rem; }

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: .08em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: .5rem 1.4rem;
  border-radius: 2rem;
  letter-spacing: .08em;
  transition: background .2s, transform .15s;
}
.nav-cta:hover {
  background: var(--blue-bright);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(58, 143, 212, .18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(58, 143, 212, .08) 0%, transparent 60%),
    var(--navy);
}

/* Canvas waves — drawn & animated via main.js */
#waveCanvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  z-index: 0;
  pointer-events: none;
}

.hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(58, 143, 212, .15);
  border: 1px solid rgba(58, 143, 212, .35);
  border-radius: 2rem;
  padding: .35rem 1rem;
  font-size: .75rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: .1em;
  color: var(--blue-pale);
  margin-bottom: 2rem;
  animation: fadeUp .8s .1s both;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: .92;
  letter-spacing: .03em;
  color: var(--white);
  animation: fadeUp .8s .25s both;
}
.hero-title em {
  font-style: normal;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
  color: transparent;
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 1.8rem auto 2.8rem;
  line-height: 1.7;
  animation: fadeUp .8s .4s both;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .8s .55s both;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .8s .7s both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--blue-bright);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .25rem;
}

.scroll-hint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3rem;
  animation: fadeUp .8s .9s both;
}
.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: lineDown 1.6s ease-in-out infinite;
}

/* ============================================================
   OFFRES (services + tarifs fusionnés)
   ============================================================ */
#offres { background: var(--navy-mid); }

.offres-header {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.offres-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Carte */
.offre-card {
  background: var(--navy);
  border: 1px solid rgba(58, 143, 212, .12);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .3s, transform .3s;
}
.offre-card:hover {
  border-color: rgba(58, 143, 212, .3);
  transform: translateY(-4px);
}

/* Carte Premium */
.offre-card--featured {
  background: var(--navy-light);
  border-color: var(--blue);
}
.offre-card--featured::before {
  content: 'Recommandé';
  position: absolute;
  top: 0; right: 0;
  background: var(--blue);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  padding: .3rem 1rem;
  border-bottom-left-radius: 10px;
}

.offre-top { margin-bottom: 2rem; }

/* Tag badge */
.offre-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--blue-pale);
  background: rgba(58, 143, 212, .12);
  border: 1px solid rgba(58, 143, 212, .2);
  padding: .25rem .7rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

/* Icône */
.offre-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(58, 143, 212, .15);
  border: 1px solid rgba(58, 143, 212, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.offre-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: .04em;
  margin-bottom: .7rem;
}
.offre-desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.offre-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.offre-features li {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.offre-features li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 500;
  flex-shrink: 0;
}

/* Prix */
.offre-bottom { margin-top: 2rem; }
.offre-price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-bottom: 1.5rem;
}
.offre-price .amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.4rem;
  color: var(--blue-bright);
  line-height: 1;
}
.offre-price .cur  { font-size: .85rem; color: var(--muted); }
.offre-price .from { font-size: .75rem; color: var(--muted); align-self: flex-end; margin-bottom: .35rem; }

/* Numéro décoratif */
.offre-num {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  color: rgba(58, 143, 212, .05);
  line-height: 1;
  user-select: none;
}

.offres-note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.8rem;
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}



/* ============================================================
   AVANT / APRÈS
   ============================================================ */
#avantapres { background: var(--navy); }

.aa-inner { max-width: 1200px; margin: 0 auto; }
.aa-header { margin-bottom: 3.5rem; }

.aa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.aa-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(58, 143, 212, .15);
  background: var(--navy-mid);
}

/* Slider container */
.aa-slider {
  position: relative;
  overflow: hidden;
  height: 320px;
  cursor: col-resize;
  user-select: none;
}

/* Les deux layers sont identiques : absolues, pleine taille, ne bougent jamais */
.aa-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Image — couvre tout le layer, ne bouge pas */
.aa-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  display: block;
}

/* Label Avant / Après */
.aa-label-tag {
  position: absolute;
  bottom: .6rem;
  font-family: 'DM Mono', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
  padding: .2rem .5rem;
  border-radius: 4px;
  background: rgba(13, 27, 46, .6);
  backdrop-filter: blur(4px);
  color: var(--white);
}
.aa-layer-after .aa-label-tag  { right: .8rem; color: var(--blue-pale); }
.aa-layer-before .aa-label-tag { left: .8rem;  color: rgba(255,255,255,.85); }

/* After layer — derrière, toujours pleine largeur */
.aa-layer-after {
  z-index: 0;
}

/* Before layer — devant, masquée à 50% par clip-path.
   L'image NE rétrécit PAS — seule la zone visible change. */
.aa-layer-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0); /* mis à jour par le JS */
}

/* Barre verticale — contenue dans overflow:hidden du slider */
.aa-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;               /* mis à jour par le JS */
  width: 2px;
  background: #fff;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Bouton sur la barre */
.aa-handle-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

/* Caption below slider */
.aa-label {
  padding: 1rem 1.2rem;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid rgba(58, 143, 212, .08);
}
.aa-label strong {
  color: var(--white);
  font-weight: 500;
  display: block;
  margin-bottom: .2rem;
  font-size: .88rem;
}

/* ============================================================
   PROCESS
   ============================================================ */
#process { background: var(--navy-mid); }

.process-inner { max-width: 900px; margin: 0 auto; }

.process-steps {
  display: flex;
  flex-direction: column;
  margin-top: 3.5rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 1.8rem;
  top: 2rem; bottom: 2rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue), rgba(58, 143, 212, 0));
}
.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.process-step:last-child { border-bottom: none; }

.step-num {
  width: 3.6rem;
  height: 3.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(58, 143, 212, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--blue);
  position: relative;
  z-index: 1;
}
.step-content { padding-top: .5rem; }
.step-title {
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.step-desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
#temoignages { background: var(--navy); }

.temo-inner { max-width: 1100px; margin: 0 auto; }
.temo-header { margin-bottom: 3.5rem; }

.temo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.temo-card {
  background: var(--navy-mid);
  border: 1px solid rgba(58, 143, 212, .1);
  border-radius: 14px;
  padding: 1.8rem;
  transition: border-color .3s, transform .3s;
}
.temo-card:hover {
  border-color: rgba(58, 143, 212, .3);
  transform: translateY(-3px);
}
.temo-stars {
  color: var(--blue);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: .05em;
}
.temo-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.4rem;
  font-style: italic;
}
.temo-author {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.temo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(58, 143, 212, .2);
  border: 1px solid rgba(58, 143, 212, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 500;
  color: var(--blue-pale);
  font-family: 'DM Mono', monospace;
}
.temo-name { font-size: .85rem; font-weight: 500; }
.temo-loc  { font-size: .75rem; color: var(--muted); }

/* ============================================================
   CONTACT — WhatsApp
   ============================================================ */
#contact { background: var(--navy); }

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-header { margin-bottom: 3rem; }
.contact-header .section-title { font-size: clamp(2.5rem, 6vw, 5rem); }
.contact-header .section-sub   { margin: 0 auto; }

/* Card principale */
.contact-wa { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }

.wa-card {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid rgba(37, 211, 102, .25);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

/* Icône WhatsApp */
.wa-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: rgba(37, 211, 102, .12);
  border: 1px solid rgba(37, 211, 102, .3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-icon svg {
  width: 30px;
  height: 30px;
  fill: #25d366;
}

.wa-text { text-align: left; }
.wa-title {
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: .3rem;
}
.wa-num {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  color: #25d366;
  margin-bottom: .4rem;
  letter-spacing: .04em;
}
.wa-hint {
  font-size: .8rem;
  color: var(--muted);
}

/* Bouton WhatsApp */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: #25d366;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-wa:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, .3);
}

.wa-note {
  font-size: .75rem;
  color: var(--muted);
}

/* Responsive card WhatsApp */
@media (max-width: 500px) {
  .wa-card { flex-direction: column; text-align: center; padding: 1.8rem 1.5rem; }
  .wa-text { text-align: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #08121f;
  border-top: 1px solid rgba(58, 143, 212, .1);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .08em;
}
.footer-logo span { color: var(--blue); }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: .75rem; color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  nav               { padding: 1rem 1.5rem; }
  nav .nav-links    { display: none; }
  section           { padding: 5rem 1.5rem; }
  .offres-grid      { grid-template-columns: 1fr; }
  .aa-grid          { grid-template-columns: 1fr; }
  .temo-grid        { grid-template-columns: 1fr; }
  .form-grid        { grid-template-columns: 1fr; }
  .hero-stats       { gap: 1.5rem; }
  footer            { flex-direction: column; text-align: center; }
}
