/* ==========================================================================
   TABLE DES MATIÈRES
   ==========================================================================
   1.  VARIABLES (Couleurs, Ombres, Radius)
   2.  BASE & RESET (Body, Liens, Images)
   3.  UTILITAIRES & PRELOADER (Skip intro, Video loader)
   4.  HEADER & NAVIGATION (Sticky header, Logo)
   5.  MENU FULLSCREEN (Burger, Cartes Promo, Liens)
   6.  COMPOSANTS GLOBAUX (Boutons, Titres, Cartes, Badges)
   7.  FOOTER (Style Dark / Luneos)
   
   --- PAGES SPÉCIFIQUES ---
   8.  PAGE : ACCUEIL (Hero 3D, Marquee Index, Témoignages)
   9.  PAGE : EXPERTISES (Grille Services, Badges)
   10. PAGE : PORTFOLIO (Carousel double sens, Hero spécifique)
   11. PAGE : CONTACT (Formulaire, FAQ, Infos)
   ========================================================================== */

/* =========================================================
   1. VARIABLES (Design Tokens)
   ========================================================= */
:root {
  /* Palette Novaline */
  --bg: #F4EEE6;
  --bg-soft: #F8F4EF;
  --card: #ffffffcc;
  --text: #2B2140;
  --muted: #6F5B92;
  --brand-1: #7D52F5;
  --brand-2: #B493FF;
  --accent: #9E7CFF;

  /* Rayons / ombres */
  --radius: 22px;
  --shadow: 0 10px 35px rgba(38,24,64,.12);
}

/* =========================================================
   2. BASE & RESET
   ========================================================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(125,82,245,.14), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(180,147,255,.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Inter, Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Pousse le footer en bas de page */
main { flex: 1; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; display: block; }
.container { width: min(1100px, 92vw); margin-inline: auto; }

/* =========================================================
   3. UTILITAIRES & PRELOADER
   ========================================================= */
#video-preloader {
  position: fixed; inset: 0; background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.5s ease;
}
#video-preloader.hidden { opacity: 0; pointer-events: none; }
#logo-video { max-width: 80vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; }

.skip-intro {
  position: fixed; bottom: 24px; right: 24px; z-index: 10000;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(0,0,0,0.05); color: #2B2140; font-size: 14px; font-weight: 500;
  border: 1px solid rgba(0,0,0,0.1); cursor: pointer; backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}
.skip-intro:hover { background: rgba(0,0,0,0.08); transform: translateY(-1px); }

@media (max-width: 768px) { #logo-video { max-width: 90vw; max-height: 70vh; } }

/* =========================================================
   4. HEADER & NAVIGATION
   ========================================================= */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43,33,64,.10);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

/* Marque */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 12px;
  background: conic-gradient(from 210deg, var(--brand-1), var(--brand-2));
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.brand-logo img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.brand-name { font-weight: 700; letter-spacing: .3px; }


/* =========================================================
   5. MENU FULLSCREEN (Nettoyé & Corrigé)
   ========================================================= */

/* Bouton Burger */
.nav-toggle {
  display: flex !important; flex-direction: column; justify-content: center; align-items: center;
  z-index: 10020; background: transparent; border: none; width: 48px; height: 48px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block; width: 24px; height: 2px; background-color: var(--text);
  margin: 3px auto; border-radius: 2px; transition: all 0.3s ease;
}

/* État ouvert du burger (croix) */
body.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Conteneur Principal du Menu */
#fullscreen-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh; /* Repli pour navigateurs anciens */
  height: 100dvh; /* Hauteur dynamique (gère les barres de navigation mobile) */
  background: linear-gradient(180deg, #f2ecf4 0%, #e7dee9 100%);
  z-index: 10010;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

/* Activation du menu */
body.nav-open #fullscreen-menu {
  opacity: 1;
  visibility: visible;
}

body.nav-open { overflow: hidden; }

/* Grille interne */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 40px;
  gap: 60px;
}

/* Navigation Droite */
.menu-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-link {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--text);
  transition: all 0.3s ease;
  width: fit-content;
}

.menu-link:hover {
  color: var(--brand-1);
  transform: translateX(10px);
}

/* STYLE SPÉCIAL : Le bouton "Maquette Gratuite" */
.menu-link-special {
  margin-top: 30px;
  font-size: 18px !important; /* Taille bouton */
  background: var(--brand-1);
  color: white !important;
  padding: 18px 32px;
  border-radius: 100px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(125, 82, 245, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.menu-link-special:hover {
  background: var(--text);
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Masquage de la croix par défaut (on utilise le burger) */
.close-menu { display: none; }

/* Mobile & Tablettes */
@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: 1fr;
    padding: 80px 30px 40px;
    text-align: center;
  }
  
  .menu-left-stack { display: none; } /* Cache les cartes sur mobile pour le focus links */
  
  .menu-link { margin: 0 auto; }
  
  .menu-link-special {
    width: 100%;
    margin-top: 40px;
  }
}


/* =========================================================
   6. COMPOSANTS GLOBAUX
   ========================================================= */
/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 999px; cursor: pointer; border: 1px solid rgba(43,33,64,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.6));
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(43,33,64,.25); }
.btn.primary {
  border: none; background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff; font-weight: 700;
}
.btn.ghost { background: #fff; border: 1px solid rgba(43,33,64,.16); }

/* Sections & Titres */
section { padding: 56px 0; }
.section-title { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 26px; }
.pill-badge {
  display: inline-flex; padding: 6px 14px; border-radius: 999px;
  background: rgba(125,82,245,.12); border: 1px solid rgba(125,82,245,.35);
  color: #472c92; font-weight: 700; font-size: 0.9rem; margin-bottom: 14px;
}

/* Grilles & Cartes */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
  border: 1px solid rgba(43,33,64,.10); box-shadow: var(--shadow);
}

/* Bannière CTA (Bas de page) */
.cta-banner { margin-top: 40px; margin-bottom: 60px; }
.cta-box {
  background: #0b0b12; border-radius: 24px; padding: 50px; text-align: center; color: white;
  background-image: radial-gradient(circle at top right, #2d2d3a 0%, transparent 40%);
}
.cta-box h2 { font-size: 32px; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 30px; font-size: 18px; }
.btn-primary:hover { background: #603bb8; transform: translateY(-3px); }

/* =========================================================
   7. FOOTER (Style Dark / Luneos)
   ========================================================= */
footer {
  background-color: #0F0F16; color: #FFFFFF; padding: 80px 0 0;
  font-size: 15px; margin-top: auto;
}
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 60px; padding-bottom: 60px;
}
.footer-brand .logo-block { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 10px; }
.footer-brand span { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: #fff; }
.footer-brand p { color: #A0A0B0; line-height: 1.6; max-width: 300px; }

.footer-contact h4, .footer-links h4 { font-size: 18px; margin: 0 0 24px 0; font-weight: 600; color: #fff; }
.contact-item {
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px;
  color: #A0A0B0; text-decoration: none; transition: color 0.2s;
}
.contact-item:hover { color: #fff; }

.icon-box {
  width: 36px; height: 36px; background: rgba(255, 255, 255, 0.08);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--brand-2);
}
.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-btn {
  width: 42px; height: 42px; background: var(--brand-1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: white; transition: all 0.2s ease;
}
.social-btn:hover {
  transform: translateY(-3px); background: var(--brand-2); box-shadow: 0 10px 20px rgba(125, 82, 245, 0.3);
}
.social-btn svg { width: 20px; height: 20px; fill: currentColor; }

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #A0A0B0; transition: all 0.2s ease; position: relative; }
.footer-links a:hover { color: var(--brand-2); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 25px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 20px; color: #A0A0B0; font-size: 14px;
}
.legal-links { display: flex; gap: 24px; }
.legal-links a { color: #A0A0B0; }
.legal-links a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
}

/* =========================================================
   8. PAGE : ACCUEIL
   ========================================================= */
/* Hero Index */
.hero-index { padding: 120px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.hero-card {
  perspective: 1000px; display: flex; align-items: center; justify-content: center;
  background: transparent !important; border: none !important; box-shadow: none !important;
}
.hero-card img.hero-image {
  width: 100%; max-width: 480px; border-radius: 20px;
  transition: transform 0.1s ease-out, filter 0.15s ease-out;
  transform: rotateY(-15deg) rotateX(0deg);
  filter: drop-shadow(25px 0px 40px rgba(38,24,64, 0.35)) brightness(1.075);
}
.hero-card:hover img.hero-image {
  transform: rotateY(var(--rotateY, -15deg)) rotateX(var(--rotateX, 0deg)) scale(1.02);
  filter: drop-shadow(var(--shadowX, 25px) 0px 40px rgba(38,24,64, 0.35));
}

/* Marquee Index (Défilement infini simple) */
.portfolio-marquee {
  overflow: hidden; padding: 40px 0; background: var(--bg-soft);
  border-top: 1px solid rgba(43,33,64,0.05); border-bottom: 1px solid rgba(43,33,64,0.05);
}
.marquee-track {
  display: flex; gap: 30px; width: fit-content;
  animation: scrollMarquee 35s linear infinite; will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  position: relative; width: 380px; flex-shrink: 0; border-radius: 16px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.marquee-item:hover { transform: scale(1.02); }
.marquee-item img { width: 100%; height: auto; display: block; }

@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-380px * 7 - 210px)); } }

/* =========================================================
   NOUVEAU CARROUSEL AVIS (CORRIGÉ & NETTOYÉ)
   ========================================================= */
#avis { overflow-x: hidden; }

/* 1. Le conteneur parent : il verrouille la vue */
.testimonials-slider{
  overflow:hidden;
  max-width:100%;
  touch-action: pan-y;
}

/* 2. La bande qui défile */
.testimonials-wrapper {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-avis 40s linear infinite;
}

/* 3. La carte d'avis */
.testimonial-card {
    width: 350px; /* Largeur fixe pour le calcul de l'animation */
    background: var(--card);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(125, 82, 245, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex-shrink: 0; /* Empêche la carte de se déformer */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 4. FIX DES CERCLES OVALES (L'avatar) */
.author-avatar{
  width:55px; height:55px;
  flex:0 0 55px;
  aspect-ratio:1/1;
  border-radius:50%;
}

.author img {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0; /* FORCE LE CERCLE : empêche l'écrasement sur mobile */
    border: 2px solid var(--brand-2);
}

/* 5. L'animation */
@keyframes scroll-avis {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Optimisation Mobile */
/* AVATAR (initiales) : cercle garanti */
.author-avatar{
  width: 55px;
  height: 55px;
  min-width: 55px;
  min-height: 55px;

  flex: 0 0 55px;
  aspect-ratio: 1 / 1;

  display: grid;
  place-items: center;

  border-radius: 9999px;
  line-height: 1;
  box-sizing: border-box;
  align-self: center;
}

/* option : sur très petit écran, un poil plus petit */
@media (max-width: 480px){
  .author-avatar{
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex-basis: 48px;
  }
}

/* =========================================================
   9. PAGE : EXPERTISES
   ========================================================= */
.expertises-hero {
  padding: 110px 0 90px; text-align: center;
  background: radial-gradient(800px circle at center, rgba(125, 82, 245, 0.06) 0%, transparent 70%);
}
.expertises-hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.1; margin-bottom: 32px; }
.expertises-hero .lead-text { max-width: 640px; margin: 0 auto; font-size: 19px; color: #64748b; line-height: 1.8; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
  background: white; border-radius: 24px; padding: 32px;
  border: 1px solid rgba(43,33,64,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: all 0.3s ease; position: relative; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(125,82,245,0.3); }
.service-icon {
  width: 56px; height: 56px; background: #f4f0ff; color: var(--brand-1);
  border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px;
}
.service-card:hover .service-icon { background: var(--brand-1); color: white; }
.service-list { list-style: none; padding: 0; margin: 0 0 24px 0; }
.service-list li { position: relative; padding-left: 20px; font-size: 14px; margin-bottom: 8px; }
.service-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-1); font-weight: bold; }
.service-link { font-weight: 700; color: var(--brand-1); border-bottom: 2px solid transparent; align-self: flex-start; }
.service-link:hover { border-bottom-color: var(--brand-1); }

/* Badge Promo */
.service-card.featured { border: 2px solid var(--brand-1); background: linear-gradient(180deg, #fff 0%, #fbf9ff 100%); }
.promo-sticker {
  position: absolute; top: 20px; right: 20px; background: #ef4444; color: white;
  font-weight: 800; padding: 6px 12px; border-radius: 99px; font-size: 13px; transform: rotate(3deg);
}
/* Badge Construction */
.service-card.coming-soon { background: #f9f9fa; border-style: dashed; opacity: 0.8; }
.construction-badge {
  display: inline-block; background: #e2e8f0; color: #64748b; font-size: 11px;
  font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin-bottom: 16px;
}

/* =========================================================
   10. PAGE : PORTFOLIO
   ========================================================= */
.portfolio-hero { padding: 80px 0 60px; text-align: center; }
.portfolio-hero h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.1; margin: 0 0 20px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Carousel Double Sens (Portfolio) */
.carousel-section { padding: 60px 0; overflow: hidden; }
.carousel-section .section-title { text-align: center; margin-bottom: 8px; }
.carousel-section .section-sub { text-align: center; margin-bottom: 40px; }

.carousel-container { width: 100%; overflow: hidden; position: relative; padding: 20px 0; }
.carousel-container::before, .carousel-container::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; pointer-events: none;
}
.carousel-container::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.carousel-container::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.carousel-track { display: flex; gap: 24px; width: fit-content; }
.carousel-left .carousel-track { animation: scrollLeft 40s linear infinite; }
.carousel-right .carousel-track { animation: scrollRight 40s linear infinite; }
.carousel:hover .carousel-track { animation-play-state: paused; }

.carousel-item {
  flex-shrink: 0; width: 400px; height: 280px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(125,82,245,0.08), rgba(255,255,255,0.95));
  border: 1px solid rgba(43,33,64,0.12); box-shadow: 0 8px 24px rgba(38,24,64,0.08);
  transition: all 0.4s ease;
}
/* 1. Par défaut (Sites Web et Cartes) : On remplit tout le cadre (Zoomé) */
/* 1. COMPORTEMENT PAR DÉFAUT (Sites Web & Cartes de visite) */
/* On veut que ça remplisse tout le cadre (effet zoom) */
.carousel-item img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;  /* <--- Important : Remplissage (coupe les bords) */
  padding: 0;         /* Pas de marge */
  transition: transform 0.4s ease; 
}

/* 2. EXCEPTION UNIQUEMENT POUR LES LOGOS (Carrousel de droite) */
/* On veut voir le logo en entier (dézoomé) */
.carousel-right .carousel-item img {
  object-fit: contain !important; /* <--- Important : Affiche tout l'image */
  padding: 15px;                  /* Ajoute de l'air autour */
  background: transparent;        /* Assure qu'il n'y a pas de fond parasite */
}

.carousel-item:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 50px rgba(125,82,245,0.25); }
.carousel-item:hover img { transform: scale(1.05); }

@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

@media (max-width: 900px) {
  .carousel-item { width: 320px; height: 220px; }
  .carousel-container::before { width: 80px; }
}
@media (max-width: 600px) {
  .carousel-item { width: 280px; height: 200px; }
}

/* Cta Card Portfolio */
.cta-card {
  background: linear-gradient(135deg, rgba(125,82,245,0.08) 0%, rgba(180,147,255,0.12) 100%);
  border: 1px solid rgba(125,82,245,0.2); border-radius: var(--radius);
  padding: 60px 40px; text-align: center; box-shadow: 0 20px 60px rgba(125,82,245,0.15);
}
.cta-card h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 16px; }
.cta-card .cta-row { justify-content: center; }

/* =========================================================
   11. PAGE : CONTACT
   ========================================================= */
.page-contact .form-section-clean { padding: 96px 0; background: transparent; }
.page-contact .form-wrapper-clean { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.page-contact .promo-mini {
  margin-top: 18px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(125,82,245,.22);
}

.embedded-form-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
  padding: 40px; border-radius: 22px; box-shadow: 0 20px 50px rgba(38,24,64,.15);
  border: 1px solid rgba(43,33,64,.12); backdrop-filter: blur(10px);
}
.embedded-form-card .input, .embedded-form-card .select, .embedded-form-card .textarea {
  background: #fff; border: 1px solid rgba(43,33,64,.16); border-radius: 12px;
  padding: 12px 14px; width: 100%; transition: all 0.2s; font-size: 15px;
}
.embedded-form-card .input:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(125,82,245,0.1); outline: none; }

.submit-btn-clean {
  display: flex; justify-content: center; align-items: center; font-weight: 700; color: white;
  padding: 14px 24px; border-radius: 999px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  font-size: 16px; box-shadow: 0 4px 15px rgba(125, 82, 245, 0.25);
}
.submit-btn-clean:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(125, 82, 245, 0.35); }

/* Infos Contact & FAQ */
.infos-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-bottom: 44px; }
.info-card {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
  border-radius: 22px; padding: 28px; border: 1px solid rgba(43,33,64,.10); box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.info-card:hover { transform: translateY(-6px); border-color: rgba(125,82,245,.28); }
.icon-circle {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
}

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 0 auto; }
.faq-item { background: white; padding: 24px; border-radius: 16px; border: 1px solid rgba(43,33,64,0.08); }
.faq-item h4 { margin: 0 0 10px 0; color: var(--text); font-size: 18px; font-weight: 700; }

@media (max-width: 900px) {
  .page-contact .form-wrapper-clean { grid-template-columns: 1fr; }
  .infos-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  #contactForm.form-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* Conteneur pour gérer l'espacement sans <br> */
.contact-cta-wrapper {
  margin-top: 35px;
}

.contact-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: var(--brand-1); /* Violet Novaline */
  border: none;
  border-radius: 18px;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(125, 82, 245, 0.2);
}

.contact-cta-button:hover {
  background: var(--text); /* Devient noir au survol */
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-cta-button .arrow {
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.contact-cta-button:hover .arrow {
  transform: translateX(5px);
}

/* Ajustement spécifique pour mobile */
@media (max-width: 900px) {
  .contact-cta-wrapper {
    text-align: center; /* Centre le bouton sur mobile */
    margin-bottom: 20px;
  }
  .contact-cta-button {
    width: 100%; /* Bouton pleine largeur sur mobile pour faciliter le clic */
  }
}



/* =========================================================
   12. STYLES SPÉCIFIQUES SERVICES (Site Web & Google)
   ========================================================= */

/* --- Listes à puces "Glow" --- */
.glow-list { list-style: none; margin: 10px 0 0; padding: 0; }
.glow-list li { position: relative; padding-left: 26px; margin: 10px 0 0; }
.glow-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px;
  border-radius: 999px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 0 0 5px rgba(125,82,245,.12);
}

/* --- Cartes de Prix (Style "Site Web") --- */
@keyframes float { 0%, 100%{transform:translateY(0px)} 50%{transform:translateY(-8px)} }

.pricing-card {
  transition: all .3s ease; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(252,250,255,.92));
  border-radius: 24px; padding: 32px; border: 2px solid rgba(125,82,245,.15);
  box-shadow: 0 10px 40px rgba(125,82,245,.12); overflow: hidden; position: relative;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(125,82,245,.25); }

.pricing-card-featured {
  background: linear-gradient(135deg, rgba(125,82,245,.08), rgba(180,147,255,.06));
  border: 3px solid var(--brand-1); transform: scale(1.05); animation: float 3s ease-in-out infinite;
}
.pricing-card-featured:hover {
  animation: none; transform: translateY(-12px) scale(1.05);
  box-shadow: 0 25px 70px rgba(125,82,245,.35);
}

/* --- Cartes de Prix (Style "Google Pro") --- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.plan {
  position: relative; padding: 22px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90));
  border: 1px solid rgba(43,33,64,.12);
  box-shadow: 0 18px 50px rgba(38,24,64,.12);
  display: flex; flex-direction: column; transition: .25s ease;
}
.plan:hover { transform: translateY(-2px); box-shadow: 0 22px 56px rgba(38,24,64,.14); }
.plan .tag { display: inline-block; padding: 6px 10px; border-radius: 999px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: 8px; align-self: flex-start; }
.plan .subtitle { min-height: 48px; line-height: 1.25; color: var(--muted); margin-bottom: 12px; }
.plan .price { font-weight: 900; font-size: 1.25rem; margin-top: 12px; min-height: 48px; display: flex; align-items: flex-end; }
.plan.best { outline: 2px solid rgba(125,82,245,.25); }
.plan.best::after {
  content: "Le plus choisi"; position: absolute; top: 10px; right: 14px;
  font-size: .78rem; padding: 6px 10px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(125,82,245,.35); color: #472c92; font-weight: 700;
}


/* =========================================================
   13. SPÉCIFIQUE : PAGE SITE WEB & SERVICES
   ========================================================= */

/* Hero Service (Centré avec fond léger) */
.service-hero {
  padding: 120px 0 60px;
  text-align: center;
}
.service-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 16px 0 24px;
}
.service-hero .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 32px;
}

/* Grille Processus (4 étapes) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.process-step {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(43,33,64,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}
.process-step:hover { transform: translateY(-5px); border-color: var(--brand-1); }
.process-step h3 { color: var(--brand-1); font-size: 18px; margin: 0 0 10px 0; }
.process-step p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }

/* FAQ Styles */
details {
  background: #fff;
  border: 1px solid rgba(43,33,64,0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
details[open] { border-color: var(--brand-1); box-shadow: 0 4px 15px rgba(125,82,245,0.05); }
summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; color: var(--brand-1); font-weight: 700; }
details[open] summary::after { content: "-"; }
details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Prix & Offres Spéciales */
.price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg,var(--brand-1),var(--brand-2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.old-price { text-decoration: line-through; color: var(--muted); font-size: 1.1rem; margin-left: 8px; }

/* Modal de Choix (Devis / Contact) */
.popup-backdrop {
  display: none; position: fixed; inset: 0; 
  background: rgba(15, 15, 22, 0.6); backdrop-filter: blur(4px); z-index: 20000;
}
.popup {
  display: none; place-items: center; position: fixed; inset: 0; z-index: 20001;
}
.popup-card {
  background: #fff; padding: 32px; border-radius: 24px; width: min(550px, 90vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: popupIn 0.3s ease;
}
.popup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.popup-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.choice-grid { display: grid; gap: 16px; }
.choice {
  padding: 20px; border-radius: 16px; border: 1px solid rgba(43,33,64,0.1);
  cursor: pointer; transition: all 0.2s; background: var(--bg-soft); display: flex; align-items: center; justify-content: space-between;
}
.choice:hover { border-color: var(--brand-1); background: #fff; transform: scale(1.02); }
.choice div strong { display: block; font-size: 18px; margin-bottom: 4px; }
.choice div span { font-size: 13px; color: var(--muted); }

@keyframes popupIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Responsive */
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

/* =========================================================
   14. ANIMATIONS AU SCROLL (Reveal)
   ========================================================= */

/* État initial : invisible et décalé vers le bas */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

/* État actif : visible et à sa place */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Délais pour l'effet "cascade" (stagger) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }


/* =========================================================
   15. ÉLÉMENTS SPÉCIFIQUES SEO (Stats & Banner)
   ========================================================= */

/* Grille de Statistiques (Style Original "Premium") */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 60px 0 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.8); /* var(--card) avec transparence */
  backdrop-filter: blur(12px);
  border-radius: 22px; /* var(--radius) */
  padding: 28px 24px;
  border: 1px solid rgba(43, 33, 64, 0.08);
  box-shadow: 0 10px 35px rgba(38, 24, 64, 0.12); /* var(--shadow) */
  transition: 0.3s ease;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(38, 24, 64, 0.18);
}

.stat-number {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  display: block;
  line-height: 1.1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Bandeau Expertise */
.expertise-banner {
  background: linear-gradient(135deg, rgba(125,82,245,0.08), rgba(180,147,255,0.05));
  border: 1px solid rgba(125,82,245,0.15);
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}
.expertise-banner h3 {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 16px;
  color: var(--text);
}




/* =========================================================
   16. SPÉCIFIQUE : PAGE LOGO (Portfolio)
   ========================================================= */

/* Grille Logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.logo-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid rgba(43,33,64,0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.logo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(125,82,245,0.15);
  border-color: rgba(125,82,245,0.3);
}

.logo-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.logo-card:hover img {
  transform: scale(1.03);
}

.logo-card figcaption {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}

/* Badge "Populaire" sur les prix */
.badge-pop {
  background: linear-gradient(135deg, #FFD700, #FDB931);
  color: #fff;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(253, 185, 49, 0.4);
}



/* =========================================================
   17. SPÉCIFIQUE : CARTE DE VISITE
   ========================================================= */

/* Hero : Ajustement pour l'image de carte de visite */
.hero-card.business-card img {
  max-width: 550px;
  transform: rotateY(-20deg) rotateX(10deg);
  box-shadow: 20px 20px 60px rgba(0,0,0,0.15);
}

/* Portfolio : Bloc Recto/Verso */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-stack .logo-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.card-stack .logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-stack img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ajustement grille pour les packs */
.pricing-card.compact {
  padding: 24px;
}
.pricing-card.compact h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.pricing-card.compact .price-tag {
  font-size: 1.8rem; /* Un peu plus petit que les gros forfaits web */
}


/* =========================================
   CORRECTIF MOBILE (A ajouter à la fin)
   ========================================= */

@media (max-width: 900px) {
  
  /* 1. Force l'affichage en colonne unique (empilement vertical) */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 50px !important; /* Espace entre le texte et l'image */
    text-align: center;   /* Centre le texte pour faire plus propre sur mobile */
  }

  /* 2. Centre les éléments dans la grille */
  .hero-grid > div {
    margin: 0 auto;
    width: 100%;
    max-width: 500px; /* Évite que ça soit trop large */
  }

  /* 3. CORRECTION DU BUG "Plus qu'une agence" (Capture 2) */
  /* On annule le padding-left:20px qui décale le texte */
  .hero-grid > div[style*="padding-left"] {
    padding-left: 0 !important;
  }

  /* 4. Ajustements visuels pour mobile */
  .hero-card {
    margin-top: 20px;
    justify-content: center;
  }

  .pill-badge {
    margin-left: auto;
    margin-right: auto;
  }

  /* Centre la liste à puces mais garde le texte aligné à gauche */
  .hero-grid ul {
    display: inline-block;
    text-align: left;
    margin-top: 20px;
  }
  
  /* Réduit un peu la taille de l'image carte de visite sur mobile */
  .hero-card img.hero-image {
    max-width: 85%;
  }
  
  /* === FIX AVATAR ROND (anti-ovale iOS) === */
.author{
  display: flex;
  align-items: center;   /* empêche l'étirement vertical */
  gap: 14px;
  flex-wrap: nowrap;
}

.author-avatar{
  width: 55px;
  height: 55px;
  min-width: 55px;
  min-height: 55px;
  aspect-ratio: 1 / 1;

  flex: 0 0 55px;        /* empêche le shrink/stretch */
  align-self: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 50%;
}

/* option : très petit écran */
@media (max-width: 480px){
  .author-avatar{
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex-basis: 48px;
  }
}
}

@media (max-width: 900px) {
  .cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre les boutons horizontalement */
    gap: 15px;              /* Garde l'espace entre les boutons */
    width: 100%;
  }
  
  .cta-row .btn {
    width: 100%;           /* Optionnel : met les boutons en pleine largeur sur petit mobile */
    max-width: 300px;      /* Empêche qu'ils ne soient trop larges */
    justify-content: center;
  }
}