BASE / MOBILE  —  code original 100 % conservé
   ═══════════════════════════════════════════════════════════ */
/* body {
  margin: 0px !important;
  padding: -10px !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("../icons/123petrol-backgroud-image-mobile.webp") no-repeat center
      center fixed;
  background-size: cover;
} */
body {
  margin: 0 !important;
  padding: 0 !important; /* Corrigé : le padding négatif n'existe pas */
  position: relative;
  min-height: 100vh;
}

/* Base commune pour l'image d'arrière-plan en noir et blanc */
body::before {
  content: "";
  position: fixed;
  inset: 0; /* Remplace top/left/width/height de façon moderne */
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: grayscale(
    100%
  ); /* Applique le noir et blanc uniquement sur l'image */
}
.carb-home-shell {
  min-height: 100vh;
  width: 100%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #27372f;
}

.carb-home-card {
  width: 100%;
  max-width: 420px;
  background: transparent;
  border-radius: 34px;
  padding: 10px 16px 10px;
  box-sizing: border-box;
  position: relative;
}

.carb-home-header {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.carb-intro-savings {
  font-size: 15px;
  color: #374151;
  margin-top: 2px;
  margin-bottom: 4px;
  min-height: 20px;
}
.carb-menu-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #000000 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.carb-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(18, 93, 72, 0.12);
  position: relative;
}

.carb-logo-drop {
  width: 18px;
  height: 22px;
  background: linear-gradient(180deg, #1d8f67 0%, #01a384 100%);
  clip-path: path(
    "M9 0C6.13 0 4 2.56 4 6.14 4 10.28 9 16 9 16s5-5.72 5-9.86C14 2.56 11.87 0 9 0z"
  );
  position: absolute;
  bottom: 8px;
}

.carb-logo-text {
  font-weight: 700;
  font-size: 18px;
  color: #0f3b2a;
}

.carb-home-card h1 {
  font-size: 16px;
  line-height: 1.08;
  margin: 0 0 12px;
  color: #152f26;
}

.carb-home-lead {
  text-align: center;
  line-height: 1.65;
  color: #3f564a;
}

.carb-home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  background: #f4f7f2;
  border-radius: 99px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 10px;
  color: #5b7266;
}

.carb-home-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carb-home-meta-item svg {
  width: 16px;
  height: 16px;
  fill: #2c6b4d;
  flex-shrink: 0;
}

.carb-home-meta-separator {
  color: #9aa49a;
}

.carb-search-block {
  padding: 0px;
}

.carb-search-input {
  position: relative;
  display: flex;
  direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce8df;
  border-radius: 18px;
  padding: 16px;
  gap: 12px;
}

.carb-search-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #1d6c45;
}

.carb-search-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.carb-search-input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: #243a32;
  background: transparent;
}

.carb-search-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: #748277;
}

.carb-testimonial {
  text-align: center;
  padding: 20px 16px 0;
  color: #2b3f35;
  margin-top: 20px;
}

.carb-stars {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 14px;
}

.carb-stars svg {
  width: 18px;
  height: 18px;
  fill: #01a384;
}

.carb-testimonial-quote {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: #000;
}

.carb-testimonial-author {
  margin: 10px 0 0;
  font-size: 14px;
  color: #5d7467;
}

.carb-alert-link,
.carb-alert-link:link {
  display: flex;
  width: fit-content;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #01a384;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.carb-alert-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #155a41;
}

.carb-alert-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.carb-alert-arrow {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
}

/* .carb-partager-btn-leo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #000000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  cursor: pointer;
} */

.carb-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
  justify-content: space-between;
  align-items: center;
  padding: 0px 14px calc(env(safe-area-inset-bottom, 14px) + 0px);
  background: #01a384;
  border-radius: 18px 18px 0 0;
}

.carb-nav-item,
.carb-nav-item:link {
  flex: 1;
  margin-bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
  color: #bfd7c7;
  text-decoration: none;
  font-size: 15px;
}

.carb-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.carb-nav-active {
  color: #ffffff;
}

.carb-home-sms-icon {
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .carb-home-card {
    padding: 24px 18px 100px;
  }
  .carb-home-card h1 {
    font-size: 20px;
  }
  .carb-search-block {
    /* padding: 18px; */
    padding: 0px;
  }
}

@media (max-width: 430px) {
  .carb-home-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: #f4f7f2;
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 9px;
    color: #5b7266;
  }
}

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

@media (max-width: 380px) {
  svg[width="24"] {
    width: 20px !important;
    height: 20px !important;
  }
}
@media (max-width: 320px) {
  svg[width="24"] {
    width: 18px !important;
    height: 18px !important;
  }
}

@media (max-width: 768px) {
  body {
    position: relative;
    background-image: none;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0px,
        rgba(255, 255, 255, 0.6) 250px,
        rgba(255, 255, 255, 0.52) 250px,
        rgba(255, 255, 255, 0.42) 250px,
        rgba(255, 255, 255, 0.35) 560px,
        rgba(255, 255, 255, 0.08) 720px,
        rgba(255, 255, 255, 0) 900px
      ),
      url("../icons/123petrol-backgroud-image-mobile.webp");
    background-size: cover;
    background-position: center;
  }
}

/* ── H1 ───────────────────────────────────────────────── */
.carb-hero-title-wrap {
  justify-content: center !important;
}
/* Les deux h1 s'affichent côte à côte sur une seule ligne */
.carb-hero-title-wrap > div {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 4px !important;
  margin: 0px 0 0px;
}

/* Logo navigation - centrage sur tous les appareils */
.carb-desktop-nav-logo {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}

.carb-desktop-nav-logo a {
  display: flex;
  justify-content: center;
}

.carb-desktop-nav-logo img {
  display: block !important;
  height: 50px !important;
  width: auto !important;
  margin-top: 50px;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* ═══════════════════════════════════════════════════════════
   ÉLÉMENTS DESKTOP — masqués par défaut (mobile first)
   ═══════════════════════════════════════════════════════════ */

/* Nav desktop */
.carb-desktop-nav {
  display: none;
}

/* Eyebrow "COMPAREZ. ÉCONOMISEZ. ROULEZ." */
.carb-desktop-eyebrow {
  display: none;
}

/* Lead text sous le H1 */
.carb-desktop-lead {
  display: none;
}

/* Carte alerte desktop */
.carb-alert-desktop {
  display: none;
}

/* Carte alerte mobile (visible par défaut) */
.carb-alert-mobile {
  display: grid;
}

.carb-container-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP  ≥ 769 px
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  /* ── Body ─────────────────────────────────────────────── */
  body {
    background:
      linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
      url("../icons/123petrol-backgroud-image-ordinateur.webp") no-repeat center
        center fixed;
    background-size: cover;
  }
  /* body::before {
    display: none;
  } */
  body::before {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
      url("../icons/123petrol-backgroud-image-ordinateur.webp");
    background-attachment: fixed; /* Recrée l'effet de fixité sur ordinateur */
  }

  /* ── Shell ────────────────────────────────────────────── */
  .carb-home-shell {
    flex-direction: column;
    align-items: center;
    padding-top: 72px; /* compense la nav fixe */
  }

  /* ── Carte principale ─────────────────────────────────── */
  .carb-home-card {
    max-width: 860px;
    padding: 0px 40px 20px;
    text-align: center;
  }

  /* ── Masquer l'en-tête mobile ─────────────────────────── */
  .carb-logo-left {
    display: none !important;
  }

  /* ── H1 ───────────────────────────────────────────────── */
  /* .carb-hero-title-wrap {
    justify-content: center !important;
  } */
  /* Les deux h1 s'affichent côte à côte sur une seule ligne */
  /* .carb-hero-title-wrap > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 18px !important;
    margin: 0px 0 40px;
  } */
  .carb-home-card h1 {
    font-size: 20px !important;
    text-align: center !important;
    margin: 0 0 20px !important;
    line-height: 1.05 !important;
  }

  /* ── Eyebrow ──────────────────────────────────────────── */
  .carb-desktop-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #01a384;
    text-transform: uppercase;
    margin: 0 0 20px;
  }

  /* ── Lead text ────────────────────────────────────────── */
  .carb-desktop-lead {
    display: block;
    font-size: 18px;
    color: #3f564a;
    line-height: 1.65;
    margin: 18px 0 36px;
    text-align: center;
  }

  /* ── Bloc recherche ───────────────────────────────────── */
  .carb-search-block {
    display: flex;
    justify-content: center;
    margin-top: 0 !important;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Neutralise les règles desktop sur le .carb-search-block
     INTERNE au shortcode (bouton Localiser) */
  .ville-wrapper .carb-search-block {
    display: block;
    max-width: none;
    margin: 0;
    justify-content: unset;
  }

  /* Le wrapper du shortcode prend toute la largeur */
  .carb-search-block .ville-wrapper {
    width: 100%;
  }

  /* Le form passe en flex row : champ à gauche, bouton à droite */
  .carb-search-block .ville-wrapper form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  /* Le conteneur input + icônes (div avec border) prend tout l'espace dispo */
  .carb-search-block .ville-wrapper form > div:first-of-type {
    flex: 1 1 0%;
    min-width: 0;
    margin-bottom: 0 !important;
    box-sizing: border-box;
  }

  /* Le bouton submit : largeur auto, ne prend plus 100% */
  .carb-search-block #carb-btn-rechercher {
    width: auto !important;
    flex: 0 0 auto;
    white-space: nowrap;
    margin-top: 0 !important;
  }

  /* Le <br> entre le champ et le bouton est masqué */
  .carb-search-block .ville-wrapper form br {
    display: none;
  }

  /* Les suggestions restent positionnées sous le champ */
  .carb-search-block #suggestions {
    top: 100%;
  }

  /* ── Testimonial ──────────────────────────────────────── */
  .carb-testimonial {
    padding-top: 28px;
    margin-top: 16px;
  }

  /* ── Container cartes alertes ─────────────────────────── */
  .carb-container-wrapper {
    margin-top: 32px;
    justify-content: center;
  }

  /* ── Masquer la carte alerte MOBILE ──────────────────── */
  /* .carb-alert-mobile {
    display: none !important;
  } */

  /* ── Afficher la carte alerte DESKTOP ────────────────── */
  /* .carb-alert-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #d1d0cf;
    border-radius: 20px;
    padding: 24px 32px;
    width: 550px;
    max-width: 860px;
    box-sizing: border-box;
  } */

  /* APRÈS */
  .carb-alert-mobile {
    display: grid !important;
    max-width: 680px !important; /* ← ajustez selon vos préférences */
    width: 100% !important;
  }
  .carb-alert-desktop {
    display: none !important;
  }

  /* Icône cloche (cercle vert) */
  .carb-alert-desktop-bell {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* background: #eef8f6; */
    display: flex;
    align-items: left;
    justify-content: left;
  }

  /* Bloc texte */
  .carb-alert-desktop-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }

  .carb-alert-desktop-title {
    font-weight: 800;
    font-size: 17px;
    color: #000;
    letter-spacing: 0.3px;
  }

  .carb-alert-desktop-desc {
    font-size: 13px;
    color: #000;
    line-height: 1.45;
  }

  .carb-alert-desktop-car-name {
    color: #01a384;
    font-weight: 800;
  }

  .carb-alert-desktop-change {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 12px;
    color: #01a384;
    margin-top: 4px;
  }
  .carb-alert-desktop-change:hover {
    color: #000;
  }

  /* Image voiture */
  .carb-alert-desktop-img {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .carb-alert-desktop-img img {
    width: 140px;
    height: auto;
    display: block;
  }

  /* Bouton Activer */
  .carb-alert-desktop-action {
    flex-shrink: 0;
  }

  .carb-alert-desktop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    color: #01a384;
    background: #eef8f6;
    border-radius: 14px;
    padding: 12px 22px;
    white-space: nowrap;
    transition:
      background 0.18s,
      border-color 0.18s;
  }
  .carb-alert-desktop-btn:hover {
    background: #d8f2ed;
    border-color: #01a384;
    color: #000;
  }

  .carb-alert-desktop-btn-arrow {
    font-size: 17px;
    margin-left: 2px;
  }

  /* ── NAV DESKTOP ──────────────────────────────────────── */
  .carb-desktop-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e8eeeb;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10000;
    box-sizing: border-box;
  }

  /* 1. Le conteneur Flexbox */
  .carb-desktop-nav-logo {
    display: flex !important;
    justify-content: center !important;
    width: 100%; /* Force le bloc à occuper toute la largeur */
  }

  /* 2. Le lien intermédiaire */
  .carb-desktop-nav-logo a {
    display: flex;
    justify-content: center;
  }

  /* 3. L'image */
  .carb-desktop-nav-logo img {
    display: block !important;
    height: 70px !important;
    width: auto !important;
    margin-top: 0px;
    margin-left: auto !important; /* Sécurité mobile */
    margin-right: auto !important; /* Sécurité mobile */
  }

  .carb-desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    margin-left: auto;
  }

  .carb-desktop-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e35;
    text-decoration: none !important;
    border-radius: 10px;
    transition:
      background 0.15s,
      color 0.15s;
    white-space: nowrap;
  }
  .carb-desktop-nav-link svg {
    flex-shrink: 0;
    display: inline-block;
  }
  .carb-desktop-nav-link:hover {
    background: #f0f9f6;
    color: #01a384;
  }

  .carb-desktop-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .carb-desktop-user-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #d0dbd6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2c3e35;
    transition:
      border-color 0.15s,
      background 0.15s;
    padding: 0;
  }
  .carb-desktop-user-btn svg {
    display: inline-block;
  }
  .carb-desktop-user-btn:hover {
    border-color: #01a384;
    background: #f0f9f6;
  }

  .carb-desktop-signup-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: #01a384;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
  }
  .carb-desktop-signup-btn:hover {
    background: #019070;
  }
} /* fin @media (min-width: 769px) */

.carb-partager-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #111111 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}

.carb-partager-btn svg {
  display: block;
}
