/* ============================================================================
   css/style.css - NEW SUCCES SERVICE
   Charte officielle N2S : bleu nuit / bleu circuit / vert croissance / blanc.
   Deux univers : Technologie (clair corporate) et Immobilier (fond clair).
   ============================================================================ */

:root {
  /* Couleurs de marque extraites du logo N2S */
  --brand-navy: #16366b;
  --brand-blue: #1f6fb8;
  --brand-green: #7fc241;
  --brand-green-dark: #5fa32f;
  --brand-green-light: #9ed766;
  --brand-white: #ffffff;

  --tech-bg: #ffffff;
  --tech-surface: #ffffff;
  --tech-border: #e4eaf2;
  --tech-accent: #1f6fb8;
  --tech-accent-2: #5fa32f;
  --tech-text: #0f2447;
  --tech-muted: #5b6b84;

  --immo-bg: #0c1b33;
  --immo-surface: #f7f9fc;
  --immo-border: #dce5f0;
  --immo-accent: #16366b;
  --immo-accent-2: #5fa32f;
  --immo-text: #11203a;
  --immo-muted: #5a6b85;
}

body { font-family: 'Inter', sans-serif; }
.brand, h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* Pastille blanche pour poser les logos (fond clair) sur les fonds sombres */
.logo-badge {
  background: #ffffff;
  border-radius: 12px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55);
}

/* --- Theme Technologie : "Clarte Corporate" (blanc, bleu N2S, touches de vert) --- */
.theme-tech { background: var(--tech-bg); color: var(--tech-text); font-family: 'Plus Jakarta Sans', sans-serif; }
.theme-tech .brand, .theme-tech h1, .theme-tech h2, .theme-tech h3, .theme-tech h4 { font-family: 'Sora', sans-serif; letter-spacing: -0.01em; }
.theme-tech .surface { background: var(--tech-surface); border: 1px solid var(--tech-border); box-shadow: 0 10px 30px -18px rgba(22, 54, 107, .25); }
.theme-tech .accent-text { color: var(--tech-accent); }
.theme-tech .accent-bg { background: var(--tech-accent); color: #ffffff; }
.theme-tech .accent-bg:hover { background: #16366b; filter: none; }
.theme-tech .muted { color: var(--tech-muted); }
.theme-tech .tech-hero-bg { background: linear-gradient(180deg, #f3f7fc 0%, #ffffff 100%); }
.theme-tech .badge-soft { background: #eaf6dd; color: #3f7a17; }
.theme-tech .icon-soft { background: #eaf3fc; color: var(--tech-accent); }
.theme-tech .cta-band { background: #16366b; color: #ffffff; }
.theme-tech input:focus, .theme-tech textarea:focus, .theme-tech select:focus {
  outline: none; border-color: var(--tech-accent); box-shadow: 0 0 0 3px rgba(31, 111, 184, .15); background: #fff;
}
.theme-tech [data-checkbox-card]:has(input:checked) { border-color: var(--tech-accent); background: #eaf3fc; }
.theme-tech .star { color: #d6e0ec; }

/* --- Theme Immobilier (fond clair, accents bleu nuit / vert) --- */
.theme-immo { background: var(--immo-surface); color: var(--immo-text); }
.theme-immo .surface { background: #ffffff; border: 1px solid var(--immo-border); }
.theme-immo .accent-text { color: var(--immo-accent); }
.theme-immo .accent-bg { background: var(--immo-accent); color: #ffffff; }
.theme-immo .accent2-text { color: var(--immo-accent-2); }
.theme-immo .muted { color: var(--immo-muted); }
.theme-immo .dark-band { background: var(--immo-bg); color: #eaf1f9; }

/* Animations communes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fadeUp 0.6s ease-out both; }
.reveal-delay-1 { animation-delay: .08s; }
.reveal-delay-2 { animation-delay: .16s; }
.reveal-delay-3 { animation-delay: .24s; }

.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-hover:hover { transform: translateY(-4px); }

.theme-tech .card-hover:hover { border-color: var(--tech-accent); box-shadow: 0 18px 36px -18px rgba(31, 111, 184, 0.35); }
.theme-immo .card-hover:hover { border-color: var(--immo-accent); box-shadow: 0 12px 30px -10px rgba(22, 54, 107, 0.28); }

.star { color: #c6d2e3; }
.star.filled { color: #7fc241; }

::-webkit-scrollbar { width: 8px; height: 8px; }
.theme-tech ::-webkit-scrollbar-thumb { background: #c9d5e5; border-radius: 4px; }
.theme-immo ::-webkit-scrollbar-thumb { background: #c3d2e4; border-radius: 4px; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.5);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* Splash screen (index.php) */
.splash-half { position: relative; overflow: hidden; transition: flex-grow .4s ease; }
.splash-half:hover { flex-grow: 1.15; }
.splash-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 12, 26, 0.35), rgba(4, 12, 26, 0.82)); }

/* Ecran d'accueil anime (index.php) */
.intro { position: fixed; inset: 0; z-index: 100; background: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px;
  animation: introOut .7s cubic-bezier(.7,0,.3,1) 3.1s forwards; }
.intro-skip .intro, .intro.is-done { display: none; }
.intro-main { animation: introPop .8s cubic-bezier(.2,.9,.3,1.2) .1s both; }
.intro-poles { display: flex; gap: 18px; align-items: stretch; }
.intro-pole { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 22px; border: 1px solid #e4eaf2; border-radius: 18px; background: #fff;
  box-shadow: 0 14px 30px -20px rgba(22,54,107,.35); opacity: 0; }
.intro-pole.left { animation: introLeft .7s cubic-bezier(.2,.8,.2,1) .9s both; }
.intro-pole.right { animation: introRight .7s cubic-bezier(.2,.8,.2,1) 1.1s both; }
.intro-bar { width: min(260px, 70vw); height: 3px; border-radius: 3px; background: #e4eaf2; overflow: hidden; }
.intro-bar span { display: block; height: 100%; background: linear-gradient(90deg, #1f6fb8, #7fc241); transform-origin: left; animation: introBar 2.6s ease-in-out .3s both; }
.intro-tagline { animation: fadeUp .6s ease-out 1.5s both; }
@keyframes introPop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes introLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes introRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes introBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introOut { to { opacity: 0; transform: translateY(-3%); visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
