/* VARIABLES GLOBALES OPTIMISÉES UX/UI */
:root {
  --primary: #0f172a;      /* Bleu nuit profond B2B (Slate 900) */
  --secondary: #2563eb;    /* Bleu Action clair (Blue 600) */
  --accent: #10b981;       /* Vert Conversion vibrant (Emerald 500) */
  --accent-hover: #059669; /* Vert Hover (Emerald 600) */
  --dark: #0f172a;
  --light: #ffffff;
  --bg: #f8fafc;           /* Fond très doux au lieu d'un gris triste */
  --text-dark: #334155;    /* Texte plus lisible, moins noir absolu */
  --text-light: #64748b;
  --transition: all 0.3s ease;
}

/* RESET & BODY */
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* CONTENEURS & SECTIONS */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.bg-white { background-color: var(--light); }
.bg-light-slate { background-color: #f1f5f9; }

/* TITRES */
h1, h2, h3, h4 { margin-top: 0; font-weight: 800; color: var(--primary); }
h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
}
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 15px;
}
.header-divider {
  width: 60px; height: 4px;
  background: var(--accent);
  margin: 20px auto 0 auto;
  border-radius: 4px;
}

/* LIENS */
a.lien { color: var(--secondary); text-decoration: none; position: relative; font-weight: 600; }
a.lien::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0%; height: 2px; background: var(--secondary); transition: var(--transition);
}
a.lien:hover::after { width: 100%; }
.text-accent { color: var(--accent); font-weight: 600; text-decoration: none; }

/* BOUTONS (CTA) */
a.btn, form button, .lien-bouton {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 15px 32px;
  background: var(--accent);
  color: var(--light);
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
}
a.btn:hover, .lien-bouton:hover, form button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   NOUVEAU : GRILLE DES AVANTAGES (Features)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.feature-icon {
    flex-shrink: 0; width: 56px; height: 56px;
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5);
}
.icon-purple { background: linear-gradient(135deg, #fdf4ff, #fae8ff); color: #c026d3; }
.icon-green { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #16a34a; }
.icon-orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #ea580c; }
.icon-blue { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #4f46e5; }

.feature-text strong { display: block; font-size: 1.1rem; color: var(--primary); margin-bottom: 6px; }
.feature-text span { color: var(--text-light); font-size: 0.95rem; }
.feature-text b { color: var(--primary); }

/* ==========================================================================
   NOUVEAU : ZONE DE CONVERSION (Formulaire)
   ========================================================================== */
.conversion-zone {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
}
.conversion-header h2 { color: white; margin-bottom: 10px; }
.conversion-header p { color: #94a3b8; font-weight: 500; font-size: 1.1rem; margin-bottom: 40px; }
.form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 10px; /* Le formulaire inclus a déjà son padding */
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   NOUVEAU : ÉTAPES (Comment ça marche)
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    position: relative;
}
.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    z-index: 2;
}
.step-icon {
    width: 60px; height: 60px;
    background: #eff6ff; color: var(--secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px;
}
.step-number { font-size: 0.8rem; font-weight: 800; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.step-card p { margin: 0; font-size: 0.95rem; color: var(--text-dark); font-weight: 500; }

/* ==========================================================================
   FAQ OPTIMISÉE
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.faq__item { border-bottom: 1px solid #f1f5f9; }
.faq__item:last-child { border-bottom: none; }
.faq__question {
    width: 100%; background: none; border: none; text-align: left;
    padding: 20px 24px; font-size: 1.05rem; font-weight: 600; color: var(--primary);
    cursor: pointer; position: relative;
    display: flex; justify-content: space-between; align-items: center;
    font-family: inherit;
}
.faq__question::after {
    content: "+";
    color: var(--accent);
    font-weight: bold; font-size: 24px;
    transition: transform 0.3s;
}
.faq__item.active .faq__question::after {
    content: "−";
    transform: rotate(180deg);
}
.faq__answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #f8fafc;
}
.faq__item.active .faq__answer { max-height: 1000px; transition: max-height 0.4s ease-in-out; }
.faq__answer p { margin: 0; padding: 0 24px 20px 24px; font-size: 0.95rem; color: var(--text-light); }


/* ==========================================================================
   ANCIENS STYLES CONSERVÉS (Galeries, Notifs, Widget)
   ========================================================================== */
header { padding: 40px 10px; text-align: center; background: var(--light); }
header h1 { margin: 0; font-size: 2.5rem; }
header p { margin-top: 10px; font-size: 1.2rem; }

ul { list-style: none; padding-left: 0; }
ul li { position: relative; padding-left: 35px; margin: 12px 0; }
ul:not(.nav-menu, .dropdown-menu) li::before {
  position: absolute; left: 0; color: var(--accent); font-weight: bold;
  width: 24px; height: 24px; background: rgba(16, 185, 129, 0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.gallery-item { background: var(--light); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: var(--transition); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(0,0,0,0.15); }
.gallery-item:hover img { transform: scale(1.1); }

.float-3d { width: 160px; margin: auto; animation: float 4s ease-in-out infinite; transform-origin: center; }
@keyframes float {
  0% { transform: translateY(0px) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateY(5deg); }
  100% { transform: translateY(0px) rotateY(0deg); }
}


.notif-success {
  position: fixed; bottom: 20px; left: 20px; background: var(--accent); color: var(--light);
  padding: 14px 18px 14px 18px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-size: 0.95rem; z-index: 9999;
}
.notif-success.hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.notif-success .close-btn { position: absolute; top: 4px; right: 6px; font-weight: bold; cursor: pointer; }

/* Widget WhatsApp & Chat */
#wc-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999; font-family: 'Inter', sans-serif; }
#wc-bubble {
  position: fixed; bottom: 20px; right: 20px; background: #25D366; color: #fff;
  font-weight: 600; padding: 12px 18px; border-radius: 50px; display: flex; align-items: center; gap: 8px;
  font-size: 25px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 9999; white-space: nowrap;
  transition: transform 0.25s ease;
}
#wc-bubble:hover { transform: translateY(-2px); }
#wc-box { width: 320px; background: #fff; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.25); overflow: hidden; animation: fadeIn .3s ease; }
#wc-box.hidden { display: none; }
.wc-header { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #0077ff; color: white; padding: 14px; position: relative; }
.wc-header p { font-size: 0.8em; margin: 0; opacity: 0.9; }
.wc-logo { width: 60%; height: auto; margin: 0; }
#wc-close { position: absolute; top: 10px; right: 14px; cursor: pointer; font-size: 20px; opacity: .8; }
.wc-body { padding: 14px; }
.wc-msg { font-size: .9rem; color: #444; }
#wc-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; height: 80px; margin-top: 8px; font-family: inherit; }
#wc-send { width: 100%; margin-top: 10px; padding: 12px; background: #1ebe57; border: none; border-radius: 8px; color: white; font-weight: bold; cursor: pointer; }
.contact-info { background-color: #eef6ff; padding: 15px; border-radius: 5px; list-style: none; }

@media (min-width: 768px) {
  .hero-content h1 { font-size: 3rem; }
  .hero-logo { width: 180px; }
}

/* ==========================================================================
   FOOTER OPTIMISÉ
   ========================================================================== */
footer { 
    text-align: center; 
    padding: 50px 20px; 
    background: var(--dark); 
    color: #fff; 
}

footer p {
    margin-bottom: 10px;
}
footer a.lien { 
    color: var(--light);
    text-decoration: none; 
    transition: var(--transition); 
    font-weight: 500;
}
footer a.lien::after {
    background: var(--accent); 
}
footer a.lien:hover { 
    color: var(--accent); 
}
