/* ------------------- */
/* Import & Variables  */
/* ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --primary-color: #004080;   /* Bleu foncé du logo */
  --secondary-color: #ffcc00; /* Jaune du logo */
  --text-color: #333;
  --background-color: #f9f9f9;
  --card-bg: #fff;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* ------------------- */
/* Header & Navigation */
/* ------------------- */
header {
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  height: 80px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover { color: var(--secondary-color); }

nav a.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  color: white;
  cursor: pointer;
}

/* ------------------- */
/* Hero section        */
/* ------------------- */
.hero {
  position: relative;
  background: url("assets/hero-bg.jpg") center/cover no-repeat;
  padding: 100px 20px;
  color: white;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
}

.hero h1, .hero p, .hero .btn {
  position: relative;
  z-index: 1;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

.hero .btn {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}
.hero .btn:hover { background: #ffd633; }

/* ------------------- */
/* Sections & Layout   */
/* ------------------- */
main { padding: 40px 20px; max-width: 1100px; margin: auto; }
h2 { color: var(--primary-color); margin-top: 30px; }

/* Widgets colorés */
.stats-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}
.widget {
  padding: 20px;
  border-radius: 10px;
  color: white;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.widget h3 { margin-bottom: 10px; font-size: 1rem; }
.stat-number { font-size: 2rem; margin: 0; }
.widget-blue { background: #0073e6; }
.widget-green { background: #00b894; }
.widget-orange { background: #ff9800; }
.widget-red { background: #e53935; }

/* Services grid adaptative */
.services-overview .grid-list,
.service-grid,
.blog-list,
.benefits .grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px;
  max-width: 1100px;
  margin: auto;
}

.service-block,
.service-card,
.blog-card,
.benefits .grid-list li {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Boutons */
.devis-btn,
.btn-whatsapp,
.btn-tarifs {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  margin: 5px;
  text-align: center;
}
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-tarifs { background: var(--primary-color); color: #fff; }
.btn-tarifs:hover { background: var(--secondary-color); color: #000; }

/* ------------------- */
/* Footer              */
/* ------------------- */
footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}
.footer-social a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.5em;
  transition: color 0.3s ease;
}
.footer-social a:hover { color: var(--secondary-color); }

/* ------------------- */
/* Responsive Queries  */
/* ------------------- */
@media (max-width: 992px) {
  .hero h1 { font-size: 2rem; }
  nav a { font-size: 0.95em; padding: 10px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    background: var(--primary-color);
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    z-index: 1001;
  }
  nav ul li a { padding: 10px 0; display: block; }
  nav ul.show { display: flex; }

  .hero { padding: 60px 15px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

  .devis-btn,
  .btn-whatsapp,
  .btn-tarifs {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  section { margin: 20px auto; padding: 15px; }
}
/* Devis button        */
/* ------------------- */
.devis-btn-container {
  max-width: 1100px;
  margin: 10px auto 30px;
  padding: 0 20px;
  text-align: center;
}

.devis-btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.devis-btn:hover { background: var(--secondary-color); color: #000; transform: translateY(-2px); }

/* ------------------- */
/* Blog Layout & Cards */
/* ------------------- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 180px;          /* hauteur fixe pour uniformiser */
  object-fit: cover;      /* recadre proprement sans déformation */
}

.blog-card.featured {
  border: 2px solid var(--secondary-color);
  background: #fffbea;
  position: relative;
  padding-top: 40px;
}

.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--secondary-color);
  color: #000;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.blog-content {
  padding: 20px;
}

.blog-content h2 a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.blog-content h2 a:hover {
  color: var(--secondary-color);
}

.blog-content p {
  color: #333;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  color: var(--secondary-color);
}

/* Responsive blog images */
@media (max-width: 768px) {
  .blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-card img {
    height: auto;         /* images reprennent leur hauteur naturelle sur mobile */
  }
}

@media (max-width: 600px) {
  .blog-content h2 { font-size: 1.2em; }
  .read-more { font-size: 0.95em; }
}
header .logo {
  height: 60px;   /* réduit sur desktop */
  width: auto;
}

@media (max-width: 768px) {
  header .logo {
    height: 45px; /* plus petit sur mobile */
  }
}
.tools-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

.tools-overview h2 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.tools-overview ul {
  list-style: none;
  padding: 0;
}

.tools-overview li {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 10px;
  line-height: 1.6;
}
/* Masquer le bloc "Processus de réalisation" sur mobile */
@media (max-width: 768px) {
  .service-block {
    display: none;
  }
}
/* Boutons génériques */
.btn {
  display: inline-block;
  padding: 10px 18px;          /* réduit légèrement la largeur */
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  font-size: 0.95em;           /* taille de texte adaptée */
  transition: background 0.3s ease, transform 0.2s ease;
  margin: 6px;
}

/* Bouton principal (WhatsApp) */
.btn.primary {
  background: #25D366;         /* vert WhatsApp */
  color: #fff;
}
.btn.primary:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* Bouton secondaire (Tarifs) */
.btn {
  background: var(--primary-color);
  color: #fff;
}
.btn:hover {
  background: var(--secondary-color);
  color: #000;
  transform: translateY(-2px);
}

/* ✅ Responsive : pleine largeur sur mobile */
@media (max-width: 768px) {
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;                 /* espace entre les boutons */
  }
  .btn {
    width: 100%;               /* chaque bouton prend toute la largeur */
    margin: 0;
    padding: 12px 20px;        /* un peu plus de confort tactile */
    font-size: 1em;
  }
}
/* === Styles Blog === */

/* Conteneur principal */
.article-page {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* Images responsives */
.article-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 20px 0;
}

/* Navigation */
.article-navigation {
  margin: 20px 0;
}
.article-navigation .back-btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.article-navigation .back-btn:hover {
  background: var(--secondary-color);
  color: #000;
}

/* Articles similaires */
.related-articles ul {
  list-style: none;
  padding: 0;
}
.related-articles li {
  margin: 8px 0;
}
.related-articles a {
  color: var(--primary-color);
  text-decoration: none;
}
.related-articles a:hover {
  text-decoration: underline;
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .article-page {
    padding: 10px;
  }
  header h1 {
    font-size: 1.4em;
    text-align: center;
  }
  .article-page h2 {
    font-size: 1.2em;
  }
  .article-page p,
  .article-page li {
    font-size: 0.95em;
  }
}
/* Paragraphes et listes dans les articles */
.article-page p {
  margin-bottom: 18px;   /* espace entre les paragraphes */
}

.article-page ul,
.article-page ol {
  margin: 15px 0 20px 25px; /* espace avant/après et indentation */
  padding-left: 20px;
}

.article-page li {
  margin-bottom: 10px;   /* espace entre les éléments de liste */
}

/* Titres */
.article-page h2,
.article-page h3 {
  margin-top: 25px;
  margin-bottom: 15px;
}

/* Images */
.article-image {
  margin: 25px 0;        /* espace avant/après les images */
}
/* === Hero Blog === */
.hero-blog {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              url("https://images.pexels.com/photos/3184292/pexels-photo-3184292.jpeg?auto=compress&cs=tinysrgb&w=1600") center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}
.hero-blog .hero-content {
  max-width: 800px;
  margin: auto;
}
.hero-blog h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4em;
  margin-bottom: 15px;
}
.hero-blog p {
  font-family: 'Lora', serif;
  font-size: 1.2em;
  opacity: 0.9;
}

/* === Article Page === */
.article-page {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: 'Lora', serif;
  line-height: 1.7;
}

.article-page h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}
.article-page h3 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.article-page p {
  margin-bottom: 18px;
  font-size: 1.05em;
}
.article-page ul,
.article-page ol {
  margin: 15px 0 20px 25px;
  padding-left: 20px;
}
.article-page li {
  margin-bottom: 10px;
}

/* Images */
.article-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 25px 0;
  display: block;
}

/* Navigation */
.article-navigation {
  margin: 20px 0;
}
.article-navigation .back-btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.article-navigation .back-btn:hover {
  background: var(--secondary-color);
  color: #000;
}

/* Articles similaires */
.related-articles ul {
  list-style: none;
  padding: 0;
}
.related-articles li {
  margin: 8px 0;
}
.related-articles a {
  color: var(--primary-color);
  text-decoration: none;
}
.related-articles a:hover {
  text-decoration: underline;
}

/* Sources */
.sources ul {
  list-style: disc;
  padding-left: 20px;
}
.sources a {
  color: var(--primary-color);
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .hero-blog {
    padding: 50px 15px;
  }
  .hero-blog h1 {
    font-size: 1.6em;
  }
  .hero-blog p {
    font-size: 1em;
  }
  .article-page {
    padding: 12px;
  }
  .article-page h2 {
    font-size: 1.4em;
  }
  .article-page h3 {
    font-size: 1.2em;
  }
  .article-page p,
  .article-page li {
    font-size: 0.95em;
  }
}
