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

/* VARIABLES */
:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e5e7eb;
  --radius: 12px;
  --max-width: 1100px;
  --shadow-soft: 0 12px 35px rgba(0,0,0,0.06);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* BASE */
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

body > header,
body > section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 25px 20px;
}

/* HERO */
header {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

header h1 {
  font-size: 2.9rem;
  font-weight: 700;
  color: #111827;
}

header p {
  max-width: 650px;
  color: var(--muted);
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.hero-list li::before {
  content: "• ";
  color: var(--primary);
  font-weight: bold;
}

.subtext {
  font-size: 0.9rem;
  color: var(--muted);
}






/* BOUTON */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* SERVICES */
#services {
  background: var(--bg-alt);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#services article {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.price {
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary);
}

/* POURQUOI MOI */
#why { margin-top: 40px; }

.why-grid {
  margin-top: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.why-grid > div {
  background: var(--bg-alt);
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* PROJETS */
#projects ul { margin-top: 10px; }
#projects li {
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

/* ABOUT */
#about {
  margin-top: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border);
}

/* CONTACT */
#contact {
  margin-top: 60px;
  text-align: center;
}

#contact a {
  color: var(--primary);
  font-weight: 500;
}

#contact a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 650px) {
  header h1 {
    font-size: 2.2rem;
  }
}





/* Section Projets / Réalisations */
#projects {
  margin-top: 60px;
  padding-bottom: 60px;
}

#projects .section-subtext {
  color: var(--muted);
  margin-top: 8px;
  font-size: 1rem;
}

.projects-grid {
  margin-top: 30px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-content h3 {
  font-size: 1.2rem;
  color: #111827;
}

.project-content p {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-content ul {
  padding-left: 18px;
  list-style: disc;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.4;
}

.btn-secondary {
  margin-top: auto; /* pousse le bouton en bas du card */
  display: inline-block;
  padding: 10px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  transition: 0.25s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .project-card img {
    height: 150px;
  }
}

/* ==========
   PROJECTS MODERN
   ========== */

.projects {
  margin-top: 70px;
}

.projects-grid {
  margin-top: 22px;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Carte projet */
.project-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* MOCKUP CSS */
.project-mockup {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

/* Faux écran */
.mockup-screen {
  width: 85%;
  height: 70%;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.06);
}

/* Liste de points */
.project-points {
  margin-left: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-points li {
  list-style: disc;
}

/* Bouton secondaire */
.btn-secondary {
  margin-top: 6px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: 0.2s;
  width: fit-content;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}



/* ===== DEVIS PAGE ===== */

#devis {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px 30px;
  box-shadow: var(--shadow-soft);
  margin-top: 60px;
}

section#devis {
    margin-top: 20px !important;
}

/* Titre */
#devis h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111827;
}

/* Texte d’intro */
#devis p {
  color: var(--muted);
  margin-bottom: 25px;
}

/* Formulaire */
#devis .form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Labels */
#devis label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: -8px;
  color: #374151;
}

/* Champs */
#devis input,
#devis textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border 0.2s, box-shadow 0.2s;
}

/* Focus champs */
#devis input:focus,
#devis textarea:focus {
  outline: none;
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* Bouton */
#devis button.btn-primary {
  margin-top: 10px;
  width: fit-content;
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 600px) {
  #devis {
    padding: 32px 18px;
  }

  #devis h1 {
    font-size: 1.8rem;
  }
}


/* NAVBAR */
.navbar {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: #111827;
}

.nav-cta {
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.25s;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

/* COMMENT ÇA MARCHE */
#steps {
  margin-top: 40px;
}

.steps-grid {
  margin-top: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#steps h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* TÉMOIGNAGES */
#testimonials {
  margin-top: 40px;
}

.testimonials-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 20px;
}

#testimonials div {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

#testimonials span {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary);
}

/* BOUTON WHATSAPP */
.btn-whatsapp {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 22px;
  background: #25D366;
  color: white;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn-whatsapp:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


footer{
    padding: 50px;
    background: linear-gradient(180deg, #F3F3F3 0%, #E8E7E7 179.93%);
    margin-top: 30px;
}



/* ==========
   TARIFS
   ========== */

.pricing-section {
  padding: 80px 0;
  text-align: center;
}

.pricing-section .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-section .section-subtitle {
  color: var(--text-light);
  margin-bottom: 40px;
}

.pricing-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.pricing-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 16px;
  text-align: left;
  transition: 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.pricing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.pricing-card ul li {
  margin-bottom: 10px;
  color: var(--text);
  display: flex;
  align-items: center;
}

.pricing-card ul li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  margin-right: 8px;
}

.pricing-btn {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 12px 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s;
}

.pricing-btn:hover {
  background: var(--primary-dark);
}

/* Offre mise en avant */
.highlight {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}




/* ===== FOOTER ===== */

#footer {
  background: #111827;
  color: #e5e7eb;
  margin-top: 80px;
  padding: 50px 20px 30px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f3f4f6;
}

.footer-section p {
  line-height: 1.6;
  color: #9ca3af;
  max-width: 280px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 6px;
  color: #9ca3af;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: 0.2s;
}

.footer-section a:hover {
  color: var(--primary);
}

/* Bas du footer */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #374151;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 600px) {
  #footer {
    text-align: center;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
