/* =========================================================
   SNTS — homepage.css
   ========================================================= */

/* ===== HERO ===== */
.hero{
    position: relative;
    padding: clamp(52px, 8vw, 96px) 0;
  }
  
  .hero__inner{
    display:grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(18px, 4vw, 52px);
  }
  @media (max-width: 960px){
    .hero__inner{ grid-template-columns: 1fr; }
  }
  
  .hero__title{
    font-size: clamp(30px, 4.4vw, 54px);
    line-height: 0.98;
    margin: 0 0 14px;
    font-weight: 1000;
    letter-spacing: -0.04em;
    text-transform: uppercase;
  }
  
  .hero__title .wp-accent{
    background: linear-gradient(
      90deg,
      var(--accent),
      var(--accent-2),
      var(--accent-3)
    );
    background-size: 300% 100%;
    background-position: 0% 50%;
  
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  
    animation: gradient-move 12s ease-in-out infinite;
  }
  
  @keyframes gradient-move {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
  }
  
  /* respecter les utilisateurs sensibles aux animations */
  @media (prefers-reduced-motion: reduce) {
    .hero__title .wp-accent{
      animation: none;
      background-position: 50% 50%;
    }
  }

  .hero__subtitle{
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.7;
    margin: 0 0 22px;
    max-width: 62ch;
  }
  
  .hero__ctas{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  
  .hero__stack{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style:none;
    margin: 10px 0 0;
    padding:0;
  }
  .hero__stack li{
    display:inline-flex;
    align-items:center;
    padding: 8px 12px;
    border-radius: 999px;
    border: var(--bd);
    background: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    box-shadow: 4px 4px 0 rgba(11,11,15,.12);
  }
  
  /* “Fenêtre code” façon print */
  figure.codecard{
    margin:0;
    border: var(--bd);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-strong);
    overflow:hidden;
  }
  .codecard__top{
    height: 40px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding: 0 14px;
    border-bottom: var(--bd);
    background: var(--card-2);
  }
  .codecard__dots{
    display:flex;
    align-items:center;
    gap: 8px;
  }
  .codecard__dots .code-dot{
    width: 12px; height: 12px;
    border-radius: 999px;
    border: var(--bd);
    box-shadow: 3px 3px 0 rgba(11,11,15,.12);
  }
  .code-dot--red{ background: var(--accent-2); }
  .code-dot--blue{ background: var(--accent-3); }
  .code-dot--green{ background: var(--accent); }
  
  .codecard__pre{
    margin:0;
    padding: 18px 20px;
    position: relative;
    background: #fff;
  }
  .codecard__code{
    display:block;
    font-family: var(--font-code);
    font-size: clamp(12px, 1.2vw, 14px);
    line-height: 1.15;
    white-space: pre-wrap;
    color: #111;
  }
  .codecard__code--ghost{ visibility:hidden; pointer-events:none; }
  .codecard__code--live{
    position:absolute;
    inset: 18px 20px;
  }
  .codecard__code.typing::after{
    content:"▍";
    display:inline-block;
    transform: translateY(1px);
    animation: codecardCaret 1s steps(1) infinite;
    opacity:.9;
  }
  @keyframes codecardCaret{ 50%{ opacity:0; } }
  
  /* ===== SERVICES ===== */
  .services-section .services-grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  @media (max-width: 1200px){
    .services-section .services-grid{ grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 700px){
    .services-section .services-grid{ grid-template-columns: 1fr; }
  }
  
  .service-card{
    background: #fff;
    border: var(--bd);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform var(--speed), box-shadow var(--speed);
  }
  .service-card:hover{
    transform: translate(-2px,-2px);
    box-shadow: var(--shadow-strong);
  }
  .service-icon{
    font-size: 28px;
    color: var(--page-accent);
    margin-bottom: 10px;
  }
  .service-card h3{
    margin:0 0 8px;
    font-size: 20px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: -.02em;
  }
  .service-card p{
    margin:0;
    color: var(--muted);
    line-height: 1.6;
  }
  
  /* ===== PROJECTS ===== */
  .projects .project{
    min-height: 290px;
    display:flex;
    align-items:flex-end;
    border-radius: 22px;
    margin-bottom: 20px;
  }
  .project-info{
    padding: 18px;
    color: var(--text-light);
    width: 100%;
  }
  .project-info h3{
    margin:0 0 8px;
    font-size: 20px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: -.02em;
  }
  .project-info .desc{
    margin: 0 0 12px;
    color: rgba(255,255,255,.78);
    line-height: 1.55;
  }
  .project-extra{
    display:flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .tags{ display:flex; gap: 8px; flex-wrap: wrap; }
  .tags .chip{
    background: #fff;
    color: var(--text);
  }

  .project-actions {
    display: flex;
    justify-content: center;
  }
  
  .project-actions .btn.small {
    width: 100%;
    justify-content: center;
  }
  
  /* ===== PROCESS ===== */
  .steps{
    list-style:none;
    padding:0;
    margin: 24px 0 0;
    display:grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  @media (max-width: 960px){ .steps{ grid-template-columns: 1fr; } }
  
  .step{
    background: #fff;
    border: var(--bd);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 18px;
  }
  .step .num{
    display:inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    /* padding: 6px 10px; */
    border-radius: 999px;
    border: var(--bd);
    background: var(--page-accent);
    font-weight: 1000;
    letter-spacing: .08em;
    margin-bottom: 10px;
  }
  .step h3{
    margin:0 0 8px;
    font-size: 20px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: -.02em;
  }
  .step p{
    margin:0;
    color: var(--muted);
    line-height: 1.6;
  }
  
  /* ===== PRICING ===== */
  .pricing .price{
    display:flex;
    flex-direction: column;
    background: #fff;
  }
  .price-head{
    padding: 18px 18px 10px;
    border-bottom: var(--bd-soft);
  }
  .price-head .kicker{ 
    margin-bottom: 10px; 
  }
  .price-head h3{
    margin:0 0 8px;
    font-size: 20px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: -.02em;
  }
  .price-head .desc{ margin:0; color: var(--muted); line-height: 1.55; }
  
  .price-tag{
    display:flex;
    align-items: flex-end;
    gap: 8px;
    padding: 14px 18px 0;
    font-weight: 1000;
  }
  .price-tag .currency{ font-size: 18px; opacity: .9; }
  .price-tag .value{ font-size: 46px; line-height: .95; }
  .price-tag .cycle{ font-size: 14px; color: var(--muted); }
  
  .billing-note{
    margin: 4px 18px 12px;
    color: var(--muted);
    font-size: 13px;
  }

  .features{
    list-style:none;
    padding: 0 18px;
    margin: 0 0 14px;
    display:grid;
    gap: 10px;
  }
  .features li{
    display:flex;
    gap: 10px;
    align-items:flex-start;
    line-height: 1.55;
  }
  .features li i{ color: var(--page-accent); margin-top: 3px; }
  
  .price-foot{ padding: 0 18px 18px; }
  .price.featured{
    /* background: linear-gradient(0deg, rgba(255,212,0,.25), transparent 45%), #fff; */
    /* outline: 4px solid var(--text); */
    /* box-shadow: var(--shadow-strong); */
  }

/* transition douce */
.grid.pricing .price{
  transition:
    transform var(--speed),
    box-shadow var(--speed),
    opacity var(--speed),
    filter var(--speed);
}

/* quand on survole le bloc pricing */
.grid.pricing:hover .price{
  opacity: .5;
  filter: brightness(.9);
}

/* la carte survolée reprend son état normal */
.grid.pricing:hover .price:hover{
  opacity: 1;
  filter: brightness(1);
}


.section-note {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
  max-width: 100ch;
}

.section-note span{
  color: var(--page-accent);
  font-weight: 900;
}

  /* ===== ABOUT ===== */
  .about-grid{
    display:grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
  }
  @media (max-width: 1000px){ .about-grid{ grid-template-columns: 1fr; } }
  
  .about-highlights{
    list-style:none;
    padding:0;
    margin: 18px 0;
    display:grid;
    gap: 10px;
  }
  .about-highlights li{
    display:flex;
    align-items:center;
    gap: 10px;
    font-weight: 700;
  }
  .about-highlights i{ color: var(--page-accent); }
  
  .about-stats{
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin-top: 16px;
  }
  @media (max-width: 700px){ .about-stats{ grid-template-columns: 1fr; } }
  
  .stat{
    background:#fff;
    border: var(--bd);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align:center;
    padding: 16px;
  }
  .stat strong{ display:block; font-size: 30px; font-weight: 1000; }
  .stat span{ color: var(--muted); }
  
  .portrait img{
    width:100%;
    height:auto;
    border-radius: 22px;
    border: var(--bd);
    box-shadow: var(--shadow);
    display:block;
  }
  .about-note.card{
    margin-top: 12px;
    padding: 16px;
  }
  
  /* CONTACT section wrapper (mise en page seulement)
     Le style inputs/boutons CF7 est dans forms.css */
  #contact .wpcf7{ margin-top: 10px; }
  

  /* =========================================================
   HOME — TARIFS : accent par offre
   Chaque .price peut définir --offer-accent via style=""
   ========================================================= */

.grid.pricing{
  margin-bottom: 20px;
  }
.grid.pricing .price{
  --offer-accent: var(--page-accent); /* fallback si aucune couleur sur l’offre */
  transition: transform var(--speed), box-shadow var(--speed);
}

.grid.pricing .price:hover{
  transform: translate(-2px,-2px);
  box-shadow: var(--shadow-strong);
}

/* carré du kicker */
.grid.pricing .price .kicker::before{
  background: var(--offer-accent);
}

/* price-tag */
.grid.pricing .price .price-tag{
  color: var(--offer-accent);
}

/* bouton */
.grid.pricing .price .btn{
  background: var(--offer-accent);
  width: 100%;
  display: flex;
  justify-content: center;
}

/* checks */
.grid.pricing .price .features i{
  color: var(--offer-accent);
}

/* carte "featured" : petit boost visuel */
.grid.pricing .price.featured{
  border: 3px solid var(--offer-accent);
  /* outline-offset: 2px; */
}

.grid.pricing .price .kicker{
  color: var(--offer-accent);
}


/* Bouton "Téléphonez-moi" dans la section contact */
#contact .contact-cta-phone{
  margin: 14px 0 18px;
  display: flex;
  justify-content: flex-start; /* ou center si tu préfères */
}

#contact .bouton-contact-inline--phone{
  background: var(--page-accent);
  color: var(--text-light);
}

.section-subtitle span{
  color: var(--page-accent);
  font-weight: 900;
}

.marquee{
  position: relative;
  overflow: hidden;
  /* border-bottom: var(--bd); */
  background: color-mix(in srgb, var(--bg) 88%, #fff 12%);
  padding: 10px 0;
}

.marquee__inner{
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-x 18s linear infinite;
}

.marquee__group{
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  flex: 0 0 auto; /* important */
}

.marquee__group span{
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1;
  display: inline-block;

  color: transparent;
  -webkit-text-stroke: 2px var(--page-accent);
  text-stroke: 2px var(--page-accent);
  opacity: .95;
}

@keyframes marquee-x{
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); } /* <-- car contenu doublé */
}

@media (prefers-reduced-motion: reduce){
  .marquee__inner{ animation: none; }
}

.marquee{
  --marquee-gap: 34px;
}

.marquee__group{
  gap: var(--marquee-gap);
}

.marquee__group:first-child{
  margin-right: var(--marquee-gap);
}
