/* =========================
   Variables & Reset de base
========================= */
:root {
  --blue-900: #0f4ea6;
  --blue-700: #2787F5;
  /* couleur clé de ta maquette */
  --blue-600: #4aa0ff;
  --blue-100: #e8f2ff;
  --text-900: #0b1a2b;
  --text-700: #24364a;
  --text-100: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --hero-pos: right 8% center;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text-900);
  line-height: 1.5;
  background: #f7fbff;
}

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

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

html {
  scroll-behavior: smooth;
}

/* =========================
   Layout utilitaires
========================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  background: #ffffff1a;
  color: var(--text-100);
  backdrop-filter: blur(4px);
}

.btn.primary {
  background: #ffffff;
  color: var(--blue-900);
}

.btn:focus {
  outline: 2px solid #fff8
}

/* =========================
   SECTION 1 : Hero + Navbar
========================= */
#hero {
  color: var(--text-100);
  /* background:
    radial-gradient(1200px 600px at 90% 10%, rgba(255,255,255,.08) 0 40%, transparent 60%),
    linear-gradient(90deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%); */

  background-image: url('../img/background_image.png') !important;
  background-size: cover;
  background-position: var(--hero-pos);
  background-repeat: no-repeat;
  height: 100vh;
}

/* ==========================
   Responsivité background image
============================ */
@media (max-width: 550px) {
  :root {
    --hero-pos: right 15% center !important;
  }
}


.navbar {
  position: sticky;
  top: 0;
  background: transparent;
}

.navbar .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}


.logo {
  font-weight: 800;
  font-size: 40px;
  letter-spacing: .2px;
}

.navbar nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0
}

.navbar a {
  opacity: .95;
  font-size: x-large;
}

.navbar a:hover {
  opacity: 1;
  text-decoration: underline
}



/* Hero content */
.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 28px;
  padding: 32px 0 60px;
}

.hero-text h1 {
  font-size: clamp(32px, 4.2vw, 56px);
  margin: 8px 0 8px;
}

.hero-text .subtitle {
  font-size: clamp(18px, 2.2vw, 28px);
  margin: 0 0 22px;
  font-weight: 700;
}

.hero-text .cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap
}

.hero-text .tagline {
  margin-top: 14px;
  opacity: .95
}

/* =========================
  Responsivité du navbar
========================= */
@media (min-width: 700px) {
  .navbar nav {
    position: absolute;
    right: 0;
  }
}

@media (max-width:700px) {
  .logo {
    font-size: 28px;
    /* logo plus compact */
  }

  .navbar .bar {
    flex-direction: column;
    /* logo en haut, nav en bas */
    align-items: flex-start;
    gap: 10px;
  }

  .navbar .bar>nav {
    margin-left: 0;
    width: 100%;
    margin-top: 10px;
    /* espace entre logo et boutons */
  }

  .navbar nav ul {
    justify-content: center;
    /* boutons centrés en bas */
    flex-wrap: wrap;
    gap: 16px;
  }

  .navbar a {
    font-size: 16px;
    /* liens plus petits */
  }
}



/* =========================
   SECTION 2 : Nos Services 2ème approche
========================= */
#services {
  background: var(--blue-100);
  padding: 56px 0;
}

#services .container {
  max-width: var(--maxw)
}

#services h2 {
  margin: 0 0 22px;
  font-size: clamp(22px, 3vw, 30px);
}

/* Option A — Mobile-first : cartes min 220px qui s'auto-placent */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 120px;
  font-weight: 700;
  color: var(--text-700);
}

.service-card small {
  display: block;
  font-weight: 600;
  opacity: .8
}

#services-sur-mesure {
  /* style visuel spécifique si tu veux, pas de largeur forcée */
  background: #fff0e6 !important;
  color: #d35400;
}

/* .service-card img {
  width: 84px;
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
  color: var(--blue-700);
} */

/* Base des icônes */
.service-icon {
  display: inline-block;
  width: 84px;
  height: 84px;
  background-color: var(--blue-700);
  /* couleur de l’icône */
  -webkit-mask: center/contain no-repeat;
  mask: center/contain no-repeat;
  margin-bottom: 10px;
}

/* Icônes individuelles */
.icon-vie {
  -webkit-mask-image: url('../img/panier_de_courses.svg');
  mask-image: url('../img/panier_de_courses.svg');
}

.icon-maison {
  -webkit-mask-image: url('../img/maison_et_entretien.svg');
  mask-image: url('../img/maison_et_entretien.svg');
}

.icon-deplacements {
  -webkit-mask-image: url('../img/deplacements_et_mobilite.svg');
  mask-image: url('../img/deplacements_et_mobilite.svg');
}

.icon-loisirs {
  -webkit-mask-image: url('../img/loisirs_et_lifestyle.svg');
  mask-image: url('../img/loisirs_et_lifestyle.svg');
}

.icon-admin {
  -webkit-mask-image: url('../img/services_administratifs.svg');
  mask-image: url('../img/services_administratifs.svg');
}

.icon-surmesure {
  -webkit-mask-image: url('../img/services_sur_mesure.svg');
  mask-image: url('../img/services_sur_mesure.svg');
}

/* Effets */
.service-card:hover .service-icon {
  background-color: var(--blue-900);
  /* change de couleur au survol */
  transition: background-color 0.3s ease;
}



/* .service-card img {
  filter: grayscale(100%) sepia(100%) hue-rotate(200deg) saturate(600%) brightness(90%);
} */


/* Ne pas forcer de span en mobile */
.service-card:last-child {
  grid-column: auto;
}

/* A ajouter plus-tard */
/* .service-card {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  text-align:center;
  min-height:120px;
  font-weight:700;
  color:var(--text-700);
  background:var(--card-bg);
  border-radius:var(--radius-lg);
  box-shadow:var(--card-shadow);
  padding:22px;
  text-decoration:none; 
}

.service-card:hover {
  transform: translateY(-4px);
  transition: 0.2s ease;
} */

/* =========================
   Responsivité
========================= */
@media (max-width: 1000px) {

  .hero-wrap,
  .offer-grid {
    grid-template-columns: 1fr
  }

  .hero-image {
    order: 2
  }
}

/* Plus besoin des règles fixes 2/1 colonnes : la grille fluide s’en charge.
   Si tu veux, tu peux garder ces media queries pour d'autres éléments. */

/* Desktop : on revient à 4 colonnes et on met le dernier en pleine largeur */
@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .service-card img {
    width: 100px;
    margin-bottom: 12px;
  }

  .service-card:last-child {
    grid-column: span 3;
  }
}

/* QR panel déjà ok */
@media (max-width: 460px) {
  .qr-panel {
    grid-template-columns: 1fr;
    text-align: center
  }
}

/* =========================
   SECTION 3 : Offre
========================= */
#offers {
  background: #e9f3ff;
  padding: 56px 0 70px;
}

#offers h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  margin-top: 10px;
}

.offer-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 26px;
}

.offer-cta {
  margin-top: 16px
}

.qr-panel {
  background: var(--blue-700);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}

.qr {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  max-width: 140px;
}

.socials {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 700;
}

/* .socials a{
  background:#ffffff22; padding:10px 14px; border-radius:999px;
  display:inline-block;
} */

/* =========================
   Footer (optionnel)
========================= */
footer {
  padding: 28px 0;
  text-align: center;
  color: #4a5b70
}

/* =========================
   Responsivité
========================= */
@media (max-width: 1000px) {

  .hero-wrap,
  .offer-grid {
    grid-template-columns: 1fr
  }

  .hero-image {
    order: 2
  }
}

@media (max-width: 700px) {
  .navbar nav ul {
    gap: 16px
  }

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

@media (max-width: 460px) {
  .services-grid {
    grid-template-columns: 1fr
  }

  .qr-panel {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
}


.socials img {
  margin-right: 8px;
}

/* Smartphones (petits écrans) */
@media (max-width: 481px) {

  #whatsapp-icon,
  #instagram-icon {
    width: 60px;
    height: auto;
  }

  #tiktok-icon {
    width: 70px;
    height: auto;
  }

  #telephone-icon {
    width: 50px;
    height: auto;
  }
}

/* Diminuer la taille des icônes entre 461px et 487px */
@media (min-width: 461px) and (max-width: 488px) {

  #whatsapp-icon,
  #instagram-icon {
    width: 50px;
    height: auto;
  }

  #tiktok-icon {
    width: 60px;
    height: auto;
  }

  #telephone-icon {
    width: 37px;
    height: auto;
  }
}

/* Tablettes */
@media (min-width: 488px) and (max-width: 1024px) {

  #whatsapp-icon,
  #instagram-icon,
  #telephone-icon {
    width: 50px;
    height: auto;
  }

  #telephone-icon {
    width: 40px;
    height: auto;
  }

  #tiktok-icon {
    width: 60px;
    height: auto;
  }

  .socials {
    justify-content: center;
    /* Centre les icônes sur les tablettes */

  }

}

/* Ordinateurs */
@media (min-width: 1024px) {

  #whatsapp-icon,
  #instagram-icon {
    width: 50px;
    height: auto;
  }

  #telephone-icon {
    width: 43px;
    height: auto;
  }

  #tiktok-icon {
    width: 60px;
    height: auto;
  }


}

/* Custom tooltip */


.custom-tooltip {
  --bs-tooltip-bg: WHITE;
  --bs-tooltip-color: black;
  font-weight: bold;
}