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

:root {
  --color-bg: #f8fafc;
  --color-bg-soft: #eef4ff;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-border: #dbe4f0;
  --color-white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(15,23,42,0.06);
  --shadow-medium: 0 20px 50px rgba(15,23,42,0.12);
  --radius: 22px;
  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.05), transparent 40%),
    radial-gradient(circle at bottom right, rgba(59,130,246,0.06), transparent 50%),
    #ffffff;
}

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

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(219,228,240,0.9);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.logo { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--color-text); }
.logo span { color: var(--color-primary); }
.main-nav .nav-list { display: flex; list-style: none; gap: 28px; }
.main-nav a { position: relative; font-weight: 500; color: var(--color-text); }
.main-nav a:hover { color: var(--color-primary); }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--color-primary); transition: width 0.2s ease; }
.main-nav a:hover::after { width: 100%; }

/* BURGER */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 10px; transition: background 0.2s; }
.burger:hover { background: var(--color-bg-soft); }
.burger span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; transform-origin: center; }
.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); }
#nav-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.4); z-index: 99; opacity: 0; transition: opacity 0.25s ease; }
#nav-overlay.overlay-visible { display: block; opacity: 1; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 24px; border-radius: 14px; font-weight: 700; transition: 0.25s ease; cursor: pointer; border: none; font-family: "Inter", sans-serif; }
.btn-primary { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); color: var(--color-white); box-shadow: 0 12px 28px rgba(37,99,235,0.22); }
.btn-primary:hover { transform: translateY(-2px); background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); }
.btn-secondary { border: 1px solid var(--color-border); background: rgba(255,255,255,0.9); color: var(--color-text); }
.btn-secondary:hover { border-color: #bfd2ff; color: var(--color-primary); background: #f8fbff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 160px 0 120px; background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #eef4ff 70%, #eef4ff 100%); }
.hero::before { content: ""; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; background: rgba(37,99,235,0.06); border-radius: 50%; filter: blur(10px); }
.hero::after { content: ""; position: absolute; right: 0; top: 0; width: 40%; height: 100%; background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--color-primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.82rem; }
.hero h1 { font-size: clamp(3.5rem, 6vw, 6rem); line-height: 1.02; letter-spacing: -0.05em; margin-bottom: 24px; max-width: 820px; }
.hero-text { max-width: 700px; font-size: 1.12rem; color: var(--color-text-light); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.highlight { color: var(--color-primary); position: relative; }
.highlight::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 8px; background: rgba(37,99,235,0.25); border-radius: 4px; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image img { width: 100%; max-width: 420px; height: auto; border-radius: 20px; box-shadow: 0 25px 60px rgba(0,0,0,0.18); border: 4px solid white; object-fit: contain; background: white; }
.hero-card { background: rgba(255,255,255,0.96); border: 1px solid rgba(219,228,240,0.95); border-radius: 24px; padding: 36px; box-shadow: 0 20px 45px rgba(15,23,42,0.10); }
.hero-card h2 { font-size: 1.8rem; line-height: 1.15; margin-bottom: 14px; }
.hero-card p { color: var(--color-text-light); line-height: 1.7; }

/* SECTIONS */
.services-preview, .about-preview, .cta-section { padding: 96px 0; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading h2, .about-preview h2, .cta-box h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 18px; }
.section-heading p, .about-preview p, .cta-box p, .card p { color: var(--color-text-light); }

/* SERVICES CARDS */
.services-preview { background: #f8fbff; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.card { background: white; border-radius: 24px; padding: 32px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s ease forwards; }
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 70px rgba(0,0,0,0.12); }
.card h3 { margin-bottom: 14px; font-size: 1.28rem; line-height: 1.2; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ABOUT */
.about-preview { background: #f8fbff; }
.about-preview-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
.check-list { list-style: none; background: var(--color-white); border: 1px solid rgba(219,228,240,0.95); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-soft); }
.check-list li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--color-border); font-weight: 600; }
.check-list li::before { content: "•"; position: absolute; left: 6px; top: 14px; color: var(--color-primary); font-size: 1.2rem; line-height: 1; }
.check-list li:last-child { border-bottom: 0; }

/* CTA */
.cta-box { text-align: center; background: radial-gradient(circle at top, rgba(59,130,246,0.16), transparent 35%), linear-gradient(135deg, #0f172a 0%, #111c34 100%); color: var(--color-white); border-radius: 32px; padding: 100px 40px; box-shadow: 0 24px 60px rgba(15,23,42,0.22); }
.cta-box p { color: rgba(255,255,255,0.82); }
.cta-box .eyebrow { color: #93c5fd; }
.cta-box h2 { font-size: 2.8rem; }
.cta-box .btn { margin-top: 18px; }

/* PAGE INTERNES */
.page-services .hero, .page-tarifs .hero, .page-realisations .hero, .page-contact .hero { padding: 130px 0 90px; }
.page-services .hero-inner, .page-tarifs .hero-inner, .page-realisations .hero-inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.page-services .hero h1, .page-tarifs .hero h1, .page-realisations .hero h1 { font-size: clamp(3rem, 5vw, 4.8rem); max-width: 760px; }

/* TARIFS */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 40px; align-items: stretch; }
.pricing-card { position: relative; background: #ffffff; border-radius: 24px; padding: 32px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(15,23,42,0.1); }
.pricing-card-featured { border: 2px solid rgba(37,99,235,0.18); box-shadow: 0 20px 50px rgba(37,99,235,0.12); }
.pricing-badge { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(37,99,235,0.1); color: var(--color-primary); font-size: 0.85rem; font-weight: 700; }
.pricing-label { color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 10px; }
.pricing-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.pricing-price { font-size: 2rem; font-weight: 800; color: var(--color-text); margin-bottom: 18px; }
.pricing-text { color: var(--color-text-light); margin-bottom: 20px; }
.pricing-list { margin-bottom: 24px; }
.pricing-list li { font-weight: 500; }
.pricing-card .btn { margin-top: auto; }

/* RÉALISATIONS */
.projects-grid { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.project-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: #ffffff; border-radius: 28px; padding: 28px; box-shadow: 0 18px 45px rgba(15,23,42,0.08); }
.project-showcase-reverse .project-showcase-media { order: 2; }
.project-showcase-reverse .project-showcase-content { order: 1; }
.project-showcase-media img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: 20px; border: 1px solid rgba(219,228,240,0.95); }
.project-showcase-content h3 { font-size: 2rem; margin-bottom: 12px; }
.project-tag { display: inline-block; margin-bottom: 12px; color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.project-description { color: var(--color-text-light); margin-bottom: 18px; }
.project-tech { font-weight: 600; margin-bottom: 22px; }
.project-links { display: flex; flex-wrap: wrap; gap: 14px; }

/* FORMULAIRES */
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 600; font-size: 0.95rem; color: var(--color-text); }
.form-group input, .form-group textarea, .form-group select { padding: 14px 18px; border: 1.5px solid var(--color-border); border-radius: 12px; font-family: "Inter", sans-serif; font-size: 1rem; color: var(--color-text); background: var(--color-surface); transition: border-color 0.2s ease, box-shadow 0.2s ease; outline: none; width: 100%; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-success { padding: 14px 18px; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; border-radius: 12px; font-weight: 500; }
.form-error { padding: 14px 18px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 12px; font-weight: 500; }

/* PAGE MERCI */
.merci-section { padding: 160px 0; text-align: center; }
.merci-section h1 { font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -0.04em; margin-bottom: 20px; }
.merci-section p { font-size: 1.15rem; color: var(--color-text-light); margin-bottom: 36px; }
.merci-icon { font-size: 4rem; margin-bottom: 28px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: #fff; border-radius: 18px; border: 1px solid var(--color-border); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 22px 28px; font-size: 1.05rem; font-weight: 600; cursor: pointer; background: none; border: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--color-text); font-family: "Inter", sans-serif; }
.faq-question:hover { color: var(--color-primary); }
.faq-icon { font-size: 1.4rem; font-weight: 300; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 28px 22px; color: var(--color-text-light); line-height: 1.75; }
.faq-item.open .faq-answer { max-height: 400px; }

/* LÉGALES */
.legal-content { display: flex; flex-direction: column; gap: 24px; }
.legal-block { background: #ffffff; border-radius: 24px; padding: 32px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.legal-block h2 { margin-bottom: 14px; font-size: 1.5rem; }
.legal-block p { color: var(--color-text-light); margin-bottom: 10px; }
.legal-block p:last-child { margin-bottom: 0; }

/* FOOTER */
.site-footer { padding: 34px 0; border-top: 1px solid var(--color-border); background: #ffffff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-brand { font-weight: 800; font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--color-text-light); }
.footer-links a:hover { color: var(--color-primary); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-inner, .page-services .hero-inner, .page-tarifs .hero-inner, .page-realisations .hero-inner, .pricing-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-image { justify-content: flex-start; }
  .hero-image img { max-width: 360px; }
}
@media (max-width: 980px) {
  .about-preview-inner, .cards-grid, .project-showcase, .project-showcase-reverse { grid-template-columns: 1fr; }
  .project-showcase-reverse .project-showcase-media, .project-showcase-reverse .project-showcase-content { order: initial; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .burger { display: flex; }
  .header-inner { flex-wrap: nowrap !important; justify-content: space-between !important; padding: 0 !important; }
  .main-nav .nav-list { display: flex; flex-direction: column; position: fixed; top: 0; right: -280px; width: 260px; height: 100vh; background: var(--color-surface); z-index: 100; padding: 88px 32px 32px; gap: 8px; box-shadow: -4px 0 30px rgba(15,23,42,0.1); transition: right 0.3s ease; flex-wrap: nowrap; justify-content: flex-start; }
  .main-nav .nav-list.nav-open { right: 0; }
  .main-nav a { font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
  .main-nav a::after { display: none; }
}
@media (max-width: 640px) {
  .hero, .page-services .hero, .page-tarifs .hero, .page-realisations .hero { padding: 100px 0 70px; }
  .btn { width: 100%; }
  .hero-actions, .project-links { flex-direction: column; }
  .logo { font-size: 1.4rem; }
  .card, .check-list, .cta-box, .hero-card, .pricing-card, .project-showcase, .legal-block { padding: 24px; }
  .hero-image img { max-width: 100%; border-radius: 22px; }
  .services-preview, .about-preview, .cta-section { padding: 72px 0; }
  .hero h1, .page-services .hero h1, .page-tarifs .hero h1, .page-realisations .hero h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .cta-box h2 { font-size: 2rem; }
  .pricing-price { font-size: 1.7rem; }
  .project-showcase-content h3 { font-size: 1.6rem; }
  .cards-grid { grid-template-columns: 1fr; }
}
