/* =========
   VARIABLES
   ========= */
:root {
  /* Couleurs principales */
  --color-primary: #19b5ff;        /* bleu clair des boutons / liens / accents */
  --color-primary-light: #46c6ff;  /* hover plus clair */

  /* Fond & textes */
  --color-bg: #f7f8fb;             /* fond global très clair */
  --color-bg-alt: #ffffff;         /* cartes, sections blanches */
  --color-text: #111827;           /* texte principal (presque noir) */
  --color-muted: #6b7280;          /* texte secondaire */

  /* Encadrements */
  --color-border: #e5e7eb;

  /* Header / footer (si un jour tu les utilises en foncé) */
  --color-header-bg: #071427;
  --color-footer-bg: #050b18;

  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* =========
   RESET DE BASE
   ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
}

.section,
.section-alt {
  background-color: var(--color-bg);  /* même fond partout */
}

.card,
.hero-card,
.contact-form,
.video-card {
  background: var(--color-bg-alt);    /* blocs blancs */
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* =========
   LAYOUT
   ========= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========
   HEADER / NAV
   ========= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;   /* BLANC */
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-img {
  height: 125px;
  width: auto;
}

.logo-text {
  color: #111827;
}

/* NAV */
.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  color: #111827;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: #2563eb;
}

.nav-links a:hover::after {
  width: 100%;
}

/* =========
   HERO
   ========= */
.hero {
  padding: 4.5rem 0 3.5rem;
  background-color: var(--color-bg); /* même fond que partout ailleurs */
}


.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
}

.hero-text p {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Carte à droite */
.hero-card {
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.hero-card p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-muted);
}

.hero-card ul {
  padding-left: 1rem;
}

.hero-card li {
  position: relative;
  margin-bottom: 0.4rem;
}

.hero-card li::before {
  content: "•";
  position: absolute;
  left: -0.75rem;
  color: var(--color-primary);
}

/* =========
   BOUTONS
   ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease,
    color 0.12s ease;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff; /* texte blanc */
  border: none;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: #1d4ed8; /* bleu plus foncé */
  color: #ffffff;            /* TEXTE TOUJOURS BLANC */
  transform: translateY(-1px);
  box-shadow: 0 14px 25px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary-light);
}

.full-width {
  width: 100%;
}

/* =========
   SECTIONS
   ========= */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: #f5f7fb;
}

.section-title,
.hero-text h1 {
  color: #000000;
}

.section-subtitle {
  margin: 0 0 2rem;
  color: var(--color-muted);
  max-width: 32rem;
}

/* Centrer certains titres */
#services .section-title,
#services .section-subtitle,
#contact .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Liens */
a {
  color: var(--color-primary);
}
a:hover {
  color: var(--color-primary-light);
}

/* GRID GÉNÉRIQUE */
.grid {
  display: grid;
  gap: 1.5rem;
}

/* =========
   CARDS
   ========= */
.card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.card-list {
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.card-list li {
  position: relative;
  margin-bottom: 0.3rem;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: -0.75rem;
  color: var(--color-primary);
}

/* =========
   SERVICES GRID
   ========= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 colonnes côte à côte */
  gap: 1.5rem;
}

/* Cartes services avec image en fond douce */
.services-grid .card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9); /* léger fond blanc par dessus l'image */
}

/* Calque image de fond */
.services-grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;          /* intensité de l'image */
  filter: grayscale(0.4); /* désaturée pour le texte */
  z-index: 0;
}

/* Le contenu reste au-dessus */
.services-grid .card > * {
  position: relative;
  z-index: 1;
}

/* 1 image par carte (chemins à adapter à ton projet) */
.card-sinistres::before {
  background-image: url("service-sinistres.png");
}

.card-residences::before {
  background-image: url("service-residences.png");
}

.card-vitres::before {
  background-image: url("service-vitres.png");
}

.card-pv::before {
  background-image: url("service-pv.png");
}

.card-camions::before {
  background-image: url("service-camions.png");
}

/* =========
   A PROPOS
   ========= */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-list {
  margin-top: 1rem;
  padding-left: 1rem;
  color: var(--color-text);
}

.about-list li {
  position: relative;
  margin-bottom: 0.4rem;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: -0.75rem;
  color: var(--color-primary);
}

.about-highlight {
  background: linear-gradient(145deg, #f9fafb, #ffffff);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* =========
   CONTACT
   ========= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-infos {
  margin-top: 1rem;
  color: var(--color-muted);
}

.contact-infos li {
  margin-bottom: 0.4rem;
}

/* FORMULAIRE */
.contact-form {
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  background: #f9fafb;
  font-size: 0.9rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.15);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.form-success {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #15803d;
}

/* =========
   VIDEOS (APERÇUS)
   ========= */
/* =========
   VIDEOS (APERÇUS)
   ========= */
.section-title.center {
  text-align: center;
  margin-bottom: 2rem;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.video-card video {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
}

/* Bouton "Voir plus d’aperçus" */
.toggle-videos-btn {
  display: inline-flex;
  margin: 1.5rem auto 0;
  padding-inline: 1.8rem;
  font-weight: 500;
}

/* Bloc vidéos supplémentaires caché au départ */
.videos-extra {
  margin-top: 1.5rem;
  display: none;
}

/* Quand on l’active via JS */
.videos-extra.is-visible {
  display: grid; /* même layout que .videos-grid */
}

/* =========
   FOOTER
   ========= */
.main-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 1.3rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-link {
  font-weight: 500;
  color: var(--color-primary);
}

/* =========
   RESPONSIVE
   ========= */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .video-card video {
    height: auto;
  }
}

@media (max-width: 720px) {
  .header-content {
    height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 110%;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-soft);
    min-width: 180px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav-links.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-badges {
    gap: 0.35rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
.services-grid .card {
  background: rgba(255, 255, 255, 0.94);
}

.services-grid .card::before {
  opacity: 0.2;  /* encore plus léger */
}
