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

:root {
  --red:     #C8102E;
  --red-dark:#9E0C22;
  --cream:   #FAF7F2;
  --warm:    #F2EDE4;
  --dark:    #1A1A1A;
  --mid:     #4A4A4A;
  --light:   #6A6A6A;
  --gold:    #C9922A;
  --white:   #FFFFFF;
  --radius:  12px;
  --shadow:  0 4px 32px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --cream:   #121212;
  --warm:    #1A1A1A;
  --dark:    #F0EDE8;
  --mid:     #B0ADA8;
  --light:   #8A8A8A;
  --white:   #1E1E1E;
  --shadow:  0 4px 32px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── DARK MODE OVERRIDES ── */
[data-theme="dark"] nav {
  background: rgba(18,18,18,0.92);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
[data-theme="dark"] .burger span { background: var(--dark); }
[data-theme="dark"] .hero-badge {
  background: var(--white); border-color: rgba(200,16,46,.25);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200,16,46,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(201,146,42,0.08) 0%, transparent 60%);
}
[data-theme="dark"] .service-card {
  background: #1E1E1E; border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .service-num { color: rgba(255,255,255,.08); }
[data-theme="dark"] .hosting-card { border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .hosting-card.featured {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(200,16,46,.06), rgba(200,16,46,.1));
}
[data-theme="dark"] .problem {
  background: #0E0E0E; color: #FFFFFF;
}
[data-theme="dark"] .problem .section-title { color: #FFFFFF; }
[data-theme="dark"] .problem .section-label { color: rgba(255,255,255,.65); }
[data-theme="dark"] .problem .section-sub { color: rgba(255,255,255,.65); }
[data-theme="dark"] .problem-card {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .problem-card:hover { background: rgba(255,255,255,.08); }
[data-theme="dark"] .problem-card h3 { color: #FFFFFF; }
[data-theme="dark"] .problem-card p { color: rgba(255,255,255,.65); }
[data-theme="dark"] .contact {
  background: #0E0E0E; color: #FFFFFF;
}
[data-theme="dark"] .contact .section-title { color: #FFFFFF; }
[data-theme="dark"] .contact .section-label { color: rgba(255,255,255,.65); }
[data-theme="dark"] .contact > p { color: rgba(255,255,255,.6); }
[data-theme="dark"] .contact-method {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #FFFFFF;
}
[data-theme="dark"] .contact-method:hover { background: rgba(255,255,255,.1); }
[data-theme="dark"] .contact-method .cm-label { color: rgba(255,255,255,.6); }
[data-theme="dark"] .process-steps::before { background: rgba(255,255,255,.1); }
[data-theme="dark"] .step-num { background: #1E1E1E; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .mockup-container { box-shadow: 0 20px 60px rgba(0,0,0,.5); }
[data-theme="dark"] .btn-primary, [data-theme="dark"] .nav-links .nav-cta,
[data-theme="dark"] .tab-btn.active, [data-theme="dark"] .hosting-badge { color: #FFFFFF; }
[data-theme="dark"] .btn-secondary { border-color: rgba(255,255,255,.2); color: #F0EDE8; }
[data-theme="dark"] footer { background: #0A0A0A; }
@media (max-width: 640px) {
  [data-theme="dark"] .nav-links { background: var(--cream); }
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--red); color: var(--white);
  padding: .6rem 1.2rem; border-radius: 0 0 8px 8px;
  font-weight: 600; font-size: .9rem; z-index: 200;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5vw;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-img-dark { display: none; }
[data-theme="dark"] .logo-img-light { display: none; }
[data-theme="dark"] .logo-img-dark { display: block; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--mid); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--red); }
.nav-links .nav-cta { background: var(--red); color: var(--white); padding: .55rem 1.3rem; border-radius: 50px; transition: background .2s, transform .2s; }
.nav-links .nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: grid; place-items: center;
  padding: 8rem 5vw 5rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200,16,46,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(201,146,42,0.06) 0%, transparent 60%);
}
.hero-cross {
  position: absolute; right: 8vw; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px; opacity: .04; z-index: 0;
}
.hero-cross::before, .hero-cross::after {
  content: ''; position: absolute; background: var(--red); border-radius: 8px;
}
.hero-cross::before { top: 30%; left: 0; right: 0; height: 40%; }
.hero-cross::after  { left: 30%; top: 0; bottom: 0; width: 40%; }

.hero-content { position: relative; z-index: 1; max-width: 760px; animation: fadeUp .8s ease both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1px solid rgba(200,16,46,.15);
  border-radius: 50px; padding: .4rem 1rem;
  font-size: .8rem; font-weight: 500; color: var(--red);
  margin-bottom: 2rem; box-shadow: 0 2px 12px rgba(200,16,46,.08);
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--mid); line-height: 1.7; max-width: 540px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--red); color: var(--white);
  padding: .9rem 2rem; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(200,16,46,.3);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200,16,46,.35); }
.btn-secondary {
  background: transparent; color: var(--dark);
  padding: .9rem 2rem; border-radius: 50px;
  text-decoration: none; font-weight: 500; font-size: .95rem;
  border: 1.5px solid rgba(0,0,0,.15); transition: border-color .2s, transform .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  padding-top: 2rem; border-top: 1px solid rgba(0,0,0,.08);
  animation: fadeUp .8s .2s ease both;
}
.stat-num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; }
.stat-num span { color: var(--red); }
.stat-label { font-size: .8rem; color: var(--mid); margin-top: .2rem; }

/* ── SECTIONS ── */
section { padding: 6rem 5vw; }
.section-label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.section-title { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-sub { color: var(--mid); font-size: 1.05rem; line-height: 1.7; max-width: 520px; }

/* ── PROBLÈME ── */
.problem { background: var(--dark); color: var(--white); }
.problem .section-title { color: var(--white); }
.problem .section-label { color: rgba(255,255,255,.5); }
.problem .section-sub { color: rgba(255,255,255,.65); }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.problem-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 2rem; transition: background .2s, transform .2s;
}
.problem-card:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.problem-icon { font-size: 2rem; margin-bottom: 1rem; }
.problem-card h3 { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; color: var(--white); }
.problem-card p { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.service-num { font-family: 'Fraunces', serif; font-size: 3rem; font-weight: 900; color: rgba(0,0,0,.06); line-height: 1; margin-bottom: .5rem; }
.service-card h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--mid); line-height: 1.6; }
.service-price { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,.06); font-size: .85rem; font-weight: 600; color: var(--red); }

/* ── EXEMPLES ── */
.examples { background: var(--warm); }
.examples-tabs { display: flex; gap: .5rem; margin: 2rem 0; flex-wrap: wrap; }
.tab-btn {
  padding: .5rem 1.2rem; border-radius: 50px; border: 1.5px solid rgba(0,0,0,.12);
  background: transparent; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: .85rem; font-weight: 500; color: var(--mid); transition: all .2s;
}
.tab-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.tab-btn:hover:not(.active) { border-color: var(--red); color: var(--red); }

.example-panel { display: none; }
.example-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .example-panel.active { grid-template-columns: 1fr; } }

.mockup-container {
  background: var(--dark); border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); aspect-ratio: 4/3; position: relative;
}
.mockup-bar {
  background: #2A2A2A; padding: .6rem 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FEBC2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-url { flex: 1; background: #3A3A3A; border-radius: 4px; padding: .25rem .75rem; font-size: .7rem; color: rgba(255,255,255,.4); font-family: monospace; }
.mockup-screen { width: 100%; height: calc(100% - 40px); position: relative; overflow: hidden; }

/* Mockup image */
.mockup-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.example-info { padding: 1rem 0; }
.example-tag { display: inline-block; background: rgba(200,16,46,.1); color: var(--red); padding: .3rem .8rem; border-radius: 50px; font-size: .75rem; font-weight: 600; margin-bottom: 1rem; }
.example-info h3 { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.example-info p { color: var(--mid); line-height: 1.7; font-size: .95rem; }
.example-features { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; }
.example-feature { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--mid); }
.example-feature::before {
  content: '✓'; width: 20px; height: 20px;
  background: rgba(200,16,46,.1); color: var(--red);
  border-radius: 50%; display: grid; place-items: center;
  font-size: .65rem; font-weight: 700; flex-shrink: 0;
}

/* ── HÉBERGEMENT ── */
.hosting { background: var(--white); }
.hosting-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.hosting-card { border: 2px solid rgba(0,0,0,.08); border-radius: var(--radius); padding: 2rem; transition: border-color .2s, transform .2s; }
.hosting-card.featured { border-color: var(--red); background: linear-gradient(135deg, rgba(200,16,46,.02), rgba(200,16,46,.04)); }
.hosting-card:hover { transform: translateY(-3px); }
.hosting-badge { display: inline-block; background: var(--red); color: white; font-size: .7rem; font-weight: 700; padding: .2rem .7rem; border-radius: 50px; margin-bottom: 1rem; letter-spacing: .05em; }
.hosting-card h3 { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.hosting-card p { font-size: .9rem; color: var(--mid); line-height: 1.6; }
.hosting-price { margin-top: 1.5rem; font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; }
.hosting-price span { font-size: 1rem; font-weight: 400; color: var(--light); }
.hosting-features { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.hosting-features li { list-style: none; font-size: .85rem; color: var(--mid); display: flex; gap: .5rem; }
.hosting-features li::before { content: '→'; color: var(--red); }

/* ── PROCESSUS ── */
.process { background: var(--cream); }
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 3rem; position: relative;
}
@media (max-width: 768px) { .process-steps { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.process-steps::before {
  content: ''; position: absolute; top: 19px; left: 10%; right: 10%;
  height: 1px; background: rgba(0,0,0,.08);
}
@media (max-width: 768px) { .process-steps::before { display: none; } }
.process-step { text-align: center; padding: 0 1rem; }
.step-num {
  width: 40px; height: 40px; background: var(--white);
  border: 2px solid rgba(0,0,0,.08); border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1rem;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: .9rem;
  color: var(--red); position: relative; z-index: 1;
}
.process-step h4 { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.process-step p { font-size: .8rem; color: var(--light); line-height: 1.5; }

/* ── CONTACT ── */
.contact { background: var(--dark); color: var(--white); text-align: center; }
.contact .section-title { color: var(--white); }
.contact > p { color: rgba(255,255,255,.6); margin-bottom: 2.5rem; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.contact-methods { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.contact-method {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  text-decoration: none; color: var(--white);
  transition: background .2s, transform .2s; min-width: 180px;
}
.contact-method:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.contact-method .cm-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.contact-method .cm-label { font-size: .75rem; color: rgba(255,255,255,.4); }
.contact-method .cm-value { font-weight: 600; font-size: .95rem; }

/* ── FOOTER ── */
footer {
  background: #111; color: rgba(255,255,255,.3);
  padding: 2.5rem 5vw 2rem; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  font-size: .8rem; gap: .6rem;
}
footer a { color: rgba(255,255,255,.3); text-decoration: none; }
footer a:hover { color: var(--red); }

/* ── FOCUS ── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-primary:focus-visible, .nav-cta:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 4px var(--red);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  background: var(--white); border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 50%; width: 44px; height: 44px; cursor: pointer;
  display: grid; place-items: center; color: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  transition: border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.08); }
[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,.12); box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ── BURGER ── */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 48px; height: 48px; position: relative; z-index: 101;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .burger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream); padding: 6rem 2rem 2rem;
    gap: 1.5rem; align-items: center; justify-content: center;
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hero-stats { gap: 1.5rem; }
}
