*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #0e6c9f;
  --teal-dark: #08487a;
  --teal-light: #1a8fc9;
  --magenta: #e20053;
  --dark: #111820;
  --dark2: #1a2535;
  --light: #f8f9fb;
  --text: #2c3e50;
  --text-light: #6b7a8d;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  transition: background .2s, transform .15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn-tarif {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  padding: .7rem 1.5rem;
  border: 2px solid var(--teal);
  color: var(--teal);
  border-radius: 50px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.btn-tarif:hover, .tarif-card.featured .btn-tarif {
  background: var(--teal);
  color: #fff;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17,24,32,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-main {
  max-width: 1100px; margin: 0 auto; padding: .9rem 2rem;
  display: flex; align-items: center; gap: 2rem;
}

.logo {
  font-size: 1.5rem; font-weight: 900; min-height: 50px;
  color: #fff; letter-spacing: -.02em; white-space: nowrap;
  display: flex; align-items: center;
}
.logo span { color: var(--teal-light); }

.nav-links {
  display: flex; align-items: center; gap: 2rem; margin-left: auto;
}
.nav-links a { color: rgba(255,255,255,.75); font-weight: 600; font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta {
  background: var(--teal); color: #fff; padding: .45rem 1.2rem;
  border-radius: 50px; font-weight: 700; white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-dark) !important; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #0a2a40 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 2rem 4rem;
}

.hero-inner {
  display: flex; align-items: center;
  gap: 4rem;
  max-width: 1100px; width: 100%;
}

.hero-content { flex: 1; }

.hero-tag {
  color: var(--teal-light); font-size: .85rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--teal-light); }

.hero-sub {
  color: rgba(255,255,255,.7); font-size: 1.1rem; line-height: 1.7;
  max-width: 480px; margin-bottom: 2.5rem;
}

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BROWSER MOCK ── */
.hero-visual { flex: 1; display: flex; justify-content: center; }

.browser-mock {
  width: 100%; max-width: 420px;
  background: #1e2a38; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  overflow: hidden;
}

.browser-bar {
  background: #0d1520; padding: .7rem 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.browser-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a4a5a;
}
.browser-url {
  flex: 1; background: #1a2535; border-radius: 4px;
  padding: .25rem .7rem; color: rgba(255,255,255,.4);
  font-size: .75rem; margin-left: .5rem;
}

.browser-body { padding: .8rem; }

.mock-nav {
  height: 28px; background: var(--teal); border-radius: 4px; margin-bottom: .6rem;
}
.mock-hero {
  height: 100px;
  background: linear-gradient(90deg, #0a2a40, #0e6c9f);
  border-radius: 4px; margin-bottom: .6rem;
}
.mock-cards { display: flex; gap: .5rem; }
.mock-card {
  flex: 1; height: 70px; border-radius: 4px;
}
.mock-card.c1 { background: linear-gradient(135deg, #8B3A6B, #D45F9A); }
.mock-card.c2 { background: linear-gradient(135deg, #1a5276, #2980b9); }
.mock-card.c3 { background: linear-gradient(135deg, #6B4A0A, #D4A017); }

/* ── SECTIONS COMMUNES ── */
.section-services, .section-demo, .section-contact {
  padding: 6rem 0; background: var(--white);
}
.section-tarifs { padding: 6rem 0; background: var(--light); }

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900; color: var(--dark);
  text-align: center; margin-bottom: .75rem;
}
.section-sub {
  text-align: center; color: var(--text-light);
  font-size: 1.05rem; margin-bottom: 3.5rem;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--light); border-radius: var(--radius);
  padding: 2rem; transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(0,0,0,.06);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--dark); }
.service-card p { color: var(--text-light); line-height: 1.6; font-size: .95rem; }

/* ── TARIFS ── */
.tarifs-creation, .tarifs-abo { margin-bottom: 4rem; }
.tarifs-creation h3, .tarifs-abo h3 {
  text-align: center; font-size: 1.2rem; font-weight: 700;
  color: var(--text-light); letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 2rem;
}

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; align-items: start;
}

.tarifs-grid--2col {
  grid-template-columns: 1fr 1fr;
  max-width: 700px;
  margin: 0 auto;
}

.tarif-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; border: 2px solid #e8ecf0;
  position: relative; transition: transform .2s, box-shadow .2s;
}
.tarif-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tarif-card.featured {
  border-color: var(--teal); transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tarif-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff;
  font-size: .75rem; font-weight: 700; padding: .25rem .9rem;
  border-radius: 50px; white-space: nowrap;
}

.tarif-name { font-weight: 700; color: var(--text-light); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.tarif-price { font-size: 2.5rem; font-weight: 900; color: var(--dark); margin-bottom: 1.5rem; }
.tarif-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }

.tarif-card ul li {
  padding: .4rem 0; border-bottom: 1px solid #f0f3f6;
  font-size: .9rem; color: var(--text);
}
.tarif-card ul li::before { content: "✓  "; color: var(--teal); font-weight: 700; }

/* ── DEMO ── */
.section-demo { background: var(--dark); }
.section-demo h2 { color: #fff; }
.section-demo .section-sub { color: rgba(255,255,255,.6); }

.demo-content { display: flex; gap: 5rem; align-items: center; }
.demo-text { flex: 1; }

.demo-tag {
  color: var(--teal-light); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem;
}
.demo-text h2 { text-align: left; color: #fff; margin-bottom: 1rem; }
.demo-text p { color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 1.5rem; }

.demo-features { margin-bottom: 2rem; }
.demo-features li {
  color: rgba(255,255,255,.8); padding: .3rem 0;
  font-size: .95rem;
}

.demo-screens { flex: 1; }

.screen-main {
  background: #1a2535; border-radius: 10px;
  overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.screen-header {
  background: #0d1520; padding: .6rem 1rem;
  display: flex; gap: .4rem; align-items: center;
}
.screen-dot { width: 9px; height: 9px; border-radius: 50%; background: #3a4a5a; }
.screen-body { padding: .8rem; }
.screen-nav-bar { height: 30px; background: var(--teal); border-radius: 4px; margin-bottom: .6rem; }
.screen-poster-grid { display: flex; gap: .5rem; }

.screen-poster {
  flex: 1; height: 120px; border-radius: 6px;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: .5rem .6rem;
  position: relative; overflow: hidden;
}
.screen-poster.p1 { background: linear-gradient(160deg, #5a1a4a, #c0397d); }
.screen-poster.p2 { background: linear-gradient(160deg, #0e3b6e, #1a7fc4); }
.screen-poster.p3 { background: linear-gradient(160deg, #4a2800, #c47a00); }

.sp-title { font-size: .65rem; font-weight: 700; color: #fff; line-height: 1.2; }
.sp-date { font-size: .6rem; color: rgba(255,255,255,.7); margin-top: .1rem; }

/* ── CONTACT ── */
.section-contact { background: var(--light); }

.contact-form { max-width: 620px; margin: 0 auto; }
.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.form-row input { flex: 1; }

.contact-form input,
.contact-form textarea {
  display: block; width: 100%;
  padding: .85rem 1.1rem; margin-bottom: 1rem;
  border: 2px solid #dde3ec; border-radius: var(--radius);
  font-family: 'Lato', sans-serif; font-size: .95rem;
  color: var(--text); background: var(--white);
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--teal);
}
.contact-form button { width: 100%; font-size: 1rem; padding: 1rem; }

.form-success {
  text-align: center; padding: 1rem; margin-top: 1rem;
  background: #e6f7f0; color: #1a7a50;
  border-radius: var(--radius); font-weight: 700;
}
.hidden { display: none; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.5);
  padding: 3rem 2rem; text-align: center;
}
.footer-logo {
  font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: .5rem;
}
.footer-logo span { color: var(--teal-light); }
.site-footer p { font-size: .85rem; margin-bottom: .3rem; }
.footer-link { color: var(--teal-light); }
.footer-small { margin-top: .5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 6rem; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-group { justify-content: center; }
  .hero-visual { width: 100%; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); padding: 1rem 2rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }
  .demo-content { flex-direction: column; gap: 2rem; }
  .demo-text h2 { text-align: center; }
  .tarif-card.featured { transform: none; }
  .tarifs-grid--2col { grid-template-columns: 1fr; max-width: 100%; }
  .tarif-card { padding: 1.5rem; }
  .form-row { flex-direction: column; gap: 0; }
}

/* Lien retour Euclide Productions */
.back-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}
.back-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}
