/* ═══════════════════════════════════════════════════════
   agence-web-index.css - Styles exclusifs à index.php
   Extrait des inline styles le 2026-03-26
   ═══════════════════════════════════════════════════════ */

/* ── Nav clearance (index only - fixed nav ~5rem) ── */
@media (min-width: 1024px) {
  body.has-loader
    section:not(#hero-section):not(#contact):not(#portfolio):not(#about):not(
      #testimonials
    ):not(#services):not(#processus) {
    padding-top: clamp(8rem, 12vw, 10rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
  }
}

/* ── Icon sizing (réutilisable) ── */
.icon-xs {
  width: 12px;
  height: 12px;
  margin-left: 4px;
}
.icon-sm {
  width: 1rem;
  height: 1rem;
}
.icon-md {
  width: 1.25rem;
  height: 1.25rem;
}
.icon-nav {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-lg {
  width: 2rem;
  height: 2rem;
}
.icon-xl {
  width: 3rem;
  height: 3rem;
}
.icon-quote {
  width: clamp(4rem, 8vw, 8rem);
  height: clamp(4rem, 8vw, 8rem);
  color: rgba(255, 255, 255, 0.05);
  z-index: 0;
  transform: rotate(180deg);
  top: -1.5rem;
  left: -1rem;
}

/* ── Btn ghost compact (service cards) ── */
.btn-ghost-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
}
.btn-arrow-sm {
  margin-left: 0.5rem;
}

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
/* Hero : hauteur de contenu (100vh retiré à la demande) */
#hero-section {
  min-height: 0;
}

/* Boutons hero alignés à gauche (override du justify-content:center
   de .hero-ctas). Scope .has-loader = index uniquement (les pages
   service n'ont pas de loader → non affectées). */
.has-loader .hero-ctas {
  justify-content: flex-start;
}

/* Hero index : plein écran (chevron scroll réellement en bas).
   Scope .has-loader = index only. Override de .min-h-screen{min-height:0}. */
.has-loader #smooth-content > section:first-of-type {
  /* Cascade fallback : navigateurs sans dvh => 100vh, avec dvh => 100dvh.
     CRITIQUE : min-height ET height doivent matcher sinon min-height>height
     force la section plus haute que l'écran visible (iOS URL bar). */
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  align-items: center; /* centrage vertical mobile-first du contenu */
}
/* Mobile-first : ajustements hero sur petits écrans */
@media (max-width: 639px) {
  /* Section : padding-bottom agrandi pour que le contenu centré
     ne descende pas dans la zone du H2 absolut en bas */
  .has-loader #smooth-content > section:first-of-type {
    padding-bottom: 5.5rem;
  }
  /* H1 hero plus grand */
  .has-loader .hero-title {
    font-size: 3.25rem;
    line-height: 0.95;
  }
  /* H2 reste en bas-droite (bottom-4 = 1rem natif via Tailwind) */
  .has-loader #smooth-content > section:first-of-type > h2 {
    bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.25;
    max-width: 14ch;
  }
}
/* Compresse le rythme vertical du hero (space-y-8 = 2rem → 1.1rem)
   et l'écart de grille, sans toucher aux autres sections. */
.has-loader #smooth-content > section:first-of-type .space-y-8 > * + * {
  margin-top: 1.1rem;
}
.has-loader #smooth-content > section:first-of-type .gap-8 {
  gap: 1rem;
}
/* Masque reveal du H1 : .overflow-hidden coupe les jambages
   (g/p). Technique de masque standard, HAUTEUR INCHANGÉE :
   on agrandit la boîte du masque vers le bas (padding-bottom) et
   on compense par une marge négative égale → net zéro sur la mise
   en page. overflow:hidden conservé → l'état pré-reveal
   (inner translateY(+100%)) reste masqué, GSAP intact, pas de flash. */
.has-loader .hero-title > span {
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;
}
/* Anti-flash : le filet force-reveal de critical.css peut rendre
   #smooth-content visible (à 1s) AVANT que GSAP initialise le H1 →
   on voyait un instant les lignes en état pré-reveal (clippé). On
   garde les lignes invisibles ; initAnimations() (index.php ~2782)
   les repasse en visible pile quand GSAP prend le contrôle. */
.has-loader .hero-title span span {
  visibility: hidden;
}

/* Boutons hero index : utilisent .btn-primary/.btn-ghost dans .hero-ctas
   (mêmes classes/CSS/JS que le hero des pages service - voir
   agence-web-shared.css). Aucun style spécifique ici. */

/* Reveal mask - clip left only, preserve descenders (g, p, y) */
.hero-title .ix-block {
  clip-path: inset(-10% 0% -20% 0%);
}

.hero-gradient {
  background: linear-gradient(to bottom, transparent, transparent 50%, #0a0a0a);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-subtitle {
  bottom: clamp(1rem, 3vw, 3rem);
  right: clamp(1rem, 3vw, 3rem);
  font-size: clamp(1.25rem, 3vw, 3rem);
  line-height: 1.2;
}

.hero-scroll-indicator {
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero-scroll-icon {
  color: rgba(255, 255, 255, 0.4);
}

/* ══════════════════════════════════
   ABOUT (#about)
   ══════════════════════════════════ */
#about .ix-grid-12 {
  gap: clamp(2rem, 4vw, 4rem);
}

#about .ix-col-5 {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

#about .ix-h2 {
  line-height: 1.1;
}
#about .about-desc {
  font-size: 1.125rem;
}

.founder-card {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.founder-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.founder-name {
  font-size: 0.95rem;
  color: #fff;
}

.founder-role {
  display: block;
  margin-top: 0.15rem;
}

.founder-bio {
  margin-top: 0.4rem;
  line-height: 1.5;
}

#about .ix-col-7 {
  gap: clamp(1rem, 2vw, 1.5rem);
}
#about .glass-card {
  padding: 2rem;
}

/* ══════════════════════════════════
   SERVICES (#services)
   ══════════════════════════════════ */
#services .ix-grid-3 {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.services-title-block {
  justify-content: center;
  text-align: left;
  padding: 1rem clamp(0.5rem, 2vw, 1rem);
}

#services .glass-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-color: color-mix(in srgb, var(--section-color, #ff3e00) 22%, transparent);
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
#services .glass-card:hover {
  border-color: var(--section-color, #ff3e00);
  box-shadow: 0 0 28px -10px var(--section-color, #ff3e00);
}
/* Boutons service : comportement identique au bouton contact du hero
   (.magnetic-btn : remplissage qui balaie au survol), mais la couleur
   de remplissage = couleur du service de la carte (--section-color). */
#services .svc-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  align-self: flex-start;
}
#services .svc-btn::before {
  background: var(--section-color, #ff3e00);
}
#services .svc-btn:hover {
  border-color: var(--section-color, #ff3e00);
}

/* #tarifs : le badge "Populaire" doit dépasser le haut de la carte */
#tarifs .glass-card {
  overflow: visible;
}

/* Timeline #processus : cartes à la largeur de leur contenu (pas pleine colonne) */
#processus .glass-card {
  width: fit-content;
  max-width: 100%;
}
@media (min-width: 768px) {
  /* étape à droite de la timeline : carte alignée à droite */
  #processus [class*="text-right"] > .glass-card {
    margin-left: auto;
  }
}

#services .ix-flex.ix-justify-between {
  align-items: flex-start;
}

#services .ix-text-sm.ix-text-muted {
  flex: 1;
}

.service-tags {
  margin-top: auto;
}

.service-stack-col {
  gap: clamp(1rem, 2vw, 1.5rem);
}
.service-stack-card {
  flex: 1;
}

#services .ix-text-muted.service-intro {
  max-width: 24rem;
}

/* Marquee wrapper */
.services-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border-bottom: none;
}

/* ══════════════════════════════════
   PROCESSUS (#processus)
   ══════════════════════════════════ */
#processus {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.processus-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.processus-timeline {
  max-width: 56rem;
  padding: 0.5rem 0;
}

.ix-timeline-step {
  z-index: 10;
}

.ix-timeline-step-title {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-bottom: 0.25rem;
}

.ix-timeline-step-title-mobile {
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: 0.25rem;
}

.ix-timeline-dot-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--section-color, #ff3e00);
}

.ix-timeline-card-wrapper {
  width: 100%;
  padding-left: 2.5rem;
}

.ix-timeline-card {
  padding: clamp(1rem, 2vw, 1.25rem);
  background: rgba(10, 10, 10, 0.5);
}

.ix-timeline-card p.ix-md-hidden {
  margin-bottom: 0;
}

.ix-timeline-tags {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.ix-tag-sm {
  padding: 0.125rem 0.5rem;
}

/* ══════════════════════════════════
   PORTFOLIO (#portfolio) - info slides
   ══════════════════════════════════ */
.portfolio-slide-date {
  margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

.portfolio-slide-title {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 700;
}

.portfolio-slide-desc {
  margin-top: clamp(0.25rem, 1vw, 0.5rem);
  max-width: 28rem;
}

.portfolio-slide-tags {
  gap: clamp(0.375rem, 1vw, 0.5rem);
}

/* ══════════════════════════════════
   TESTIMONIALS (#testimonials)
   ══════════════════════════════════ */
#testimonials {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.testi-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 1024px) {
  .testi-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }
  .testi-header {
    position: sticky;
    top: 6rem;
  }
  .testi-nav-desktop {
    display: flex !important;
  }
}

.testi-bg {
  inset: 0;
  z-index: 0;
}

.testi-glow {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 40vw);
  height: min(80vw, 40vw);
  mix-blend-mode: screen;
  filter: blur(100px);
  opacity: 0.2;
  background: radial-gradient(
    circle,
    var(--section-color, #ff3e00) 0%,
    transparent 70%
  );
}

.testi-container {
  z-index: 10;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

.testi-header {
  margin-bottom: 0;
}
.testi-nav-desktop {
  margin-top: 1.5rem;
}

.testi-content {
  margin-top: 0;
}

#testi-wrapper {
  z-index: 10;
  display: grid;
}

.ix-testi-slide {
  padding: 1rem 0;
}

.testi-quote {
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 2rem;
  max-width: 56rem;
}

.testi-author-row {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.testi-author-name {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testi-nav-mobile {
  display: none;
  margin-top: 2rem;
  justify-content: flex-end;
}

/* ══════════════════════════════════
   FAQ (#faq)
   ══════════════════════════════════ */
#faq > .ix-container {
  z-index: 10;
}
#faq .ix-flex.ix-flex-col.ix-lg-flex-row {
  gap: clamp(3rem, 5vw, 6rem);
}
#faq .ix-h2 {
  line-height: 1.1;
}
#faq .ix-lg-w-2-3 {
  width: 100%;
}

.faq-contact-circle {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.faq-contact-label {
  margin-bottom: 0.25rem;
}

.faq-contact-link {
  font-size: 0.875rem;
  font-weight: 700;
  transition: color 0.3s;
}

/* FAQ details */
#faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s;
}

#faq summary {
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  outline: none;
  user-select: none;
}

#faq summary > .ix-flex {
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-right: 1rem;
}

.faq-num {
  font-size: 0.75rem;
  font-family: monospace;
  white-space: nowrap;
}

.faq-question {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 500;
  transition: color 0.3s;
}

.faq-plus-wrap {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.faq-plus-h {
  width: 100%;
  height: 1px;
  background: currentColor;
}

.faq-plus-v {
  width: 1px;
  height: 100%;
  background: currentColor;
  transition: transform 0.3s;
}

.faq-answer {
  background: #050505;
  padding: clamp(1.25rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-answer-text {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* FAQ animations (moved from inline <style>) */
#faq details > summary::-webkit-details-marker {
  display: none;
}
#faq details[open] summary ~ div {
  animation: faqFadeIn 0.4s ease-out forwards;
}

@keyframes faqFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#faq details[open] summary .faq-plus {
  transform: rotate(90deg);
}
#faq details:hover h3 {
  color: var(--section-color, #ff3e00);
  transition: color 0.3s;
}
#faq details:hover {
  border-color: var(--section-color, #ff3e00);
}

/* ══════════════════════════════════
   CONTACT (#contact)
   ══════════════════════════════════ */
#contact {
  padding-top: clamp(6rem, 10vw, 8rem);
  padding-bottom: clamp(8rem, 12vw, 12rem);
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
  z-index: 20;
  margin-bottom: -4rem;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.contact-header {
  text-align: center;
}

@media (min-width: 1024px) {
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }
  .contact-header {
    text-align: left;
    position: sticky;
    top: 6rem;
  }
}

.contact-glow {
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  background: radial-gradient(circle at 50% 120%, #8b5cf6 0%, transparent 60%);
}

.contact-inner {
  max-width: 80rem;
  width: 100%;
  z-index: 10;
}

.contact-eyebrow {
  color: rgba(255, 252, 252, 0.7);
  font-weight: 700;
}

.contact-title {
  font-size: clamp(2.25rem, 8vw, 7rem);
  line-height: 0.95;
}

.contact-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* ══════════════════════════════════
   BOUNCE ANIMATION (scroll indicator)
   ══════════════════════════════════ */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}
