/* ==========================================================
   NOS ENGAGEMENTS — V2.1
   Adaptation à la charte graphique du site
   ========================================================== */

.engagements-page {
  --eng-dark: #0f2f33;
  --eng-dark-2: #143d42;
  --eng-text: #041f2d;
  --eng-green: #159a83;
  --eng-green-2: #20b191;
  --eng-mint: #62beaf;
  --eng-light: #f4f9f8;
  --eng-white: #ffffff;
  --eng-muted: #60757b;
  --eng-border: rgba(15,47,51,.11);
  --eng-border-dark: rgba(98,190,175,.22);
  --eng-radius: 22px;

  width: 100%;
  overflow: hidden;
  background: var(--eng-light);
  color: var(--eng-text);
  text-align: left;
  font-family: "Roboto", Arial, sans-serif;
}

.engagements-page *,
.engagements-page *::before,
.engagements-page *::after {
  box-sizing: border-box;
}

.engagements-shell {
  width: min(1120px, 90%);
  margin-inline: auto;
}

/* ---------- HERO ---------- */

.engagements-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 62px 0 58px;
  background:
    radial-gradient(circle at 82% 12%, rgba(98,190,175,.09), transparent 31%),
    var(--eng-dark);
  color: #fff;
}

.engagements-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.60);
}

.engagements-breadcrumb a {
  color: var(--eng-mint);
  text-decoration: none;
}

.engagements-hero-copy {
  max-width: 900px;
}

.engagements-kicker {
  display: block;
  color: var(--eng-mint);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.engagements-hero h1 {
  margin: 12px 0 13px;
  color: #fff;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(3rem, 5.2vw, 5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.engagements-title-line {
  display: block;
  width: 46px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--eng-green), var(--eng-mint));
}

.engagements-hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: #bed0cd;
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- SECTIONS ---------- */

.engagement-section {
  padding: clamp(68px, 5.5vw, 92px) 0;
}

.engagement-section--light {
  background: #f8fbfa;
}

.engagement-section--dark {
  background: var(--eng-dark);
  color: #fff;
}

.engagement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 5.5vw, 105px);
  align-items: center;
}

.engagement-layout--reverse .engagement-content {
  order: 2;
}

.engagement-layout--reverse .engagement-visual {
  order: 1;
}

.engagement-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.engagement-label span {
  color: var(--eng-green-2);
  font-size: .78rem;
  font-weight: 800;
}

.engagement-label strong {
  color: var(--eng-green-2);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .10em;
}

.engagement-content h2,
.giphar-heading h2,
.engagements-end h2 {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(2.15rem, 3.4vw, 3.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.engagement-content h2 {
  max-width: 650px;
}

.engagement-intro {
  max-width: 610px;
  margin: 17px 0 0;
  color: var(--eng-muted);
  font-size: .98rem;
  line-height: 1.65;
}

.engagement-section--dark .engagement-intro {
  color: #b7cbc8;
}

.engagement-points {
  max-width: 650px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--eng-border);
}

.engagement-section--dark .engagement-points {
  border-color: var(--eng-border-dark);
}

.engagement-points li {
  position: relative;
  padding: 14px 0 14px 27px;
  border-bottom: 1px solid var(--eng-border);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
}

.engagement-section--dark .engagement-points li {
  border-color: var(--eng-border-dark);
}

.engagement-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--eng-green-2);
  font-weight: 800;
}

/* ---------- VISUELS ---------- */

.engagement-visual {
  min-height: clamp(300px, 24vw, 375px);
  overflow: hidden;
  border: 1px solid rgba(32,177,145,.14);
  border-radius: var(--eng-radius);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 30px rgba(4,31,45,.06);
}

.engagement-visual--quality {
  background-image: url("../img/engagement-qualite.png");
  background-position: center 44%;
}

.engagement-visual--health {
  background-image: url("../img/engagement-prevention.png");
  background-position: center;
}

.engagement-visual--environment {
  background-image: url("../img/engagement-environnement.png");
  background-position: center;
}

/* ---------- GIPHAR ---------- */

.giphar-section {
  padding: clamp(72px, 5.8vw, 96px) 0;
  background: #fff;
}

.giphar-heading {
  max-width: 1040px;
  margin-bottom: 36px;
}

.giphar-heading h2 {
  max-width: 900px;
}

.giphar-heading > p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--eng-muted);
  font-size: .95rem;
  line-height: 1.65;
}

.giphar-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.giphar-grid article {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  border: 1px solid rgba(98,190,175,.15);
  border-radius: 20px;
  background: var(--eng-dark);
  color: #fff;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.giphar-grid article:hover {
  transform: translateY(-4px);
  background: var(--eng-dark-2);
  box-shadow: 0 15px 32px rgba(4,31,45,.12);
}

.giphar-grid article > strong {
  color: var(--eng-mint);
  font-size: clamp(2.1rem,3.2vw,3.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.giphar-grid article > div {
  margin-top: auto;
}

.giphar-grid h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
  font-weight: 700;
}

.giphar-grid p {
  margin: 0;
  color: #b9cfcc;
  font-size: .82rem;
  line-height: 1.55;
}

.giphar-note {
  margin: 14px 0 0;
  color: #778c89;
  font-size: .72rem;
  line-height: 1.5;
}

/* ---------- FIN DE PAGE ---------- */

.engagements-end {
  padding: 68px 0 72px;
  background:
    radial-gradient(circle at 50% 120%,rgba(98,190,175,.10),transparent 40%),
    var(--eng-dark);
  color: #fff;
  text-align: center;
}

.engagements-end-inner {
  max-width: 760px;
}

.engagements-end h2 {
  margin-top: 12px;
  color: #fff;
}

.engagements-end p {
  margin: 13px 0 0;
  color: #b9cfcc;
  font-size: .95rem;
}

/* ---------- RESPONSIVE ---------- */

@media screen and (max-width: 1050px) {

  .engagement-layout {
    grid-template-columns: 1fr;
  }

  .engagement-layout {
    gap: 34px;
  }

  .engagement-layout--reverse .engagement-content,
  .engagement-layout--reverse .engagement-visual {
    order: initial;
  }

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

  .giphar-grid article {
    min-height: 190px;
  }
}

@media screen and (max-width: 700px) {

  .engagements-hero {
    min-height: 330px;
    padding: 78px 0 48px;
  }

  .engagements-breadcrumb {
    margin-bottom: 25px;
  }

  .engagements-hero h1 {
    font-size: 3rem;
  }

  .engagement-section {
    padding: 58px 0;
  }

  .engagement-content h2,
  .giphar-heading h2,
  .engagements-end h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .engagement-visual {
    min-height: 265px;
    border-radius: 18px;
  }

  .giphar-grid article {
    min-height: 180px;
    border-radius: 18px;
  }

  .engagements-end {
    padding: 58px 0 62px;
  }
}


/* ---------- COMPTEURS GIPHAR ---------- */

.giphar-stat {
  font-variant-numeric: tabular-nums;
}

.giphar-counter {
  display: inline-block;
  min-width: 1ch;
}


/* ==========================================================
   HERO — MÊME STRUCTURE QUE HORAIRES / JOUR DE GARDE
   Le contenu du hero n'utilise pas le container 1120px.
   Il reprend la logique .privacy-hero .hero-content :
   contenu à gauche avec 80px de marge interne.
   ========================================================== */

.engagements-hero .engagements-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.engagements-hero-copy,
.engagements-hero .engagements-breadcrumb {
  margin-left: 80px;
  margin-right: 80px;
}

.engagements-hero-copy {
  max-width: 700px;
}

@media screen and (max-width: 700px) {
  .engagements-hero-copy,
  .engagements-hero .engagements-breadcrumb {
    margin-left: 24px;
    margin-right: 24px;
  }
}


/* ==========================================================
   V2.8 — HERO ALIGNÉ SUR LA PAGE SERVICES
   ========================================================== */

.engagements-hero {
  min-height: 300px;
  padding: 48px 0 46px;
}

/* Fil d'Ariane : même traitement que la page Services */
.engagements-breadcrumb {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  margin-bottom: 42px;
  padding: 10px 18px;

  background: rgba(255, 255, 255, .96);
  border-radius: 45px;
  box-shadow: 0 6px 20px rgba(4, 31, 45, .10);

  color: #159a83;
  font-size: .9rem;
  font-weight: 600;
}

.engagements-breadcrumb a,
.engagements-breadcrumb span {
  color: #159a83;
}

@media (max-width: 700px) {
  .engagements-hero {
    min-height: 280px;
    padding: 38px 0 36px;
  }

  .engagements-breadcrumb {
    margin-bottom: 32px;
    padding: 9px 16px;
    border-radius: 45px;
  }
}


/* ==========================================================
   V2.9 — HAUT DE PAGE IDENTIQUE À LA PAGE SERVICES
   Même largeur, mêmes espacements, même breadcrumb, même titre.
   ========================================================== */

.engagements-page-top {
  padding: 58px 0 52px;
  background: #fff;
}

.engagements-page-top-shell {
  width: min(1450px, 92%);
  margin: 0 auto;
}

.engagements-page-top-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  padding: 10px 18px;
  border-radius: 45px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(4, 31, 45, .08);
  font-family: "Roboto", sans-serif;
  font-size: .9rem;
  font-weight: 600;
}

.engagements-page-top-breadcrumb,
.engagements-page-top-breadcrumb a,
.engagements-page-top-breadcrumb span {
  color: #159a83;
  text-decoration: none;
}

.engagements-page-top-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border: 0;
}

.engagements-page-top-heading-text > p {
  margin: 0 0 18px;
  font-family: "Roboto", sans-serif;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #159a83;
}

.engagements-page-top-heading-text h1 {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  color: #041f2d;
}

.engagements-page-top-description {
  max-width: 720px;
  margin-top: 18px;
  color: #60757b;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

/* Aucun ancien effet de hero ne doit intervenir dans ce nouveau haut de page */
.engagements-page-top-heading::before,
.engagements-page-top-heading::after {
  display: none;
  content: none;
}

@media (max-width: 700px) {
  .engagements-page-top {
    padding: 36px 0 42px;
  }

  .engagements-page-top-shell {
    width: calc(100% - 36px);
  }

  .engagements-page-top-breadcrumb {
    margin-bottom: 38px;
    padding: 9px 16px;
  }
}


/* ==========================================================
   V2.10 — FOND BLEUTÉ DU HAUT DE PAGE
   ========================================================== */
.engagements-page-top {
  background: #EEF5F6;
}

/* Le fil d'Ariane reste blanc pour conserver son relief */
.engagements-page-top-breadcrumb {
  background: #fff;
}


/* ==========================================================
   V2.11 — HAUT DE PAGE PLUS BLEUTÉ
   ========================================================== */
.engagements-page-top {
  background: #E7F1F5;
}


/* V2.12 — petit exposant pour "1er" */
.giphar-stat sup {
  font-size: .38em;
  line-height: 1;
  vertical-align: super;
  margin-left: 2px;
}


/* ==========================================================
   V2.14 — COHÉRENCE ACCUEIL / NOS ENGAGEMENTS
   ========================================================== */

/* Haut identique à la logique de la page Services */
.engagements-page-top,
.engagements-page-top-breadcrumb {
  background: #fff;
}

/* Bleu clair plus affirmé, inspiré de la teinte Décathlon */
.engagement-section--light {
  background: #E8F1F8;
}

/* Picto commun avec le langage graphique du bloc de réassurance accueil */
.engagement-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.engagement-label-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: rgba(21,154,131,.10);
  color: #159a83;
  font-size: 18px;
}

.engagement-section--dark .engagement-label-icon {
  background: rgba(98,190,175,.13);
  color: #62beaf;
}

.giphar-section .engagement-label-icon {
  background: rgba(21,154,131,.10);
  color: #159a83;
}

@media (max-width: 700px) {
  .engagement-label { gap: 8px; }
  .engagement-label-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    border-radius: 8px;
    font-size: 16px;
  }
}


/* ==========================================================
   V3 — 5 ENGAGEMENTS IDENTIQUES À L'ACCUEIL
   ========================================================== */
.engagements-page-top,
.engagements-page-top-breadcrumb { background:#fff; }

.engagement-section--blue { background:#E8F1F8; }

.environment-extra {
  padding:clamp(68px,5.5vw,92px) 0;
  background:#fff;
}

.engagement-visual--confidentiality {
  background-image:url("../img/engagement-confidentialite.png");
  background-position:center;
}
.engagement-visual--guard {
  background-image:url("../img/engagement-pharmacie-garde.png");
  background-position:center;
}
.engagement-visual--delivery {
  background-image:url("../img/engagement-livraison.png");
  background-position:center;
}

.engagement-section--blue .engagement-points,
.engagement-section--blue .engagement-points li { border-color:var(--eng-border); }

@media screen and (max-width:700px) {
  .environment-extra { padding:58px 0; }
}


/* ==========================================================
   V3.1 — 06 ENGAGEMENT ENVIRONNEMENTAL
   ========================================================== */
.environment-extra { display:none; }


/* ==========================================================
   V3.2 — INTRO ÉPURÉE + CENTRAGE DES PICTOS
   ========================================================== */

/* La description sous "Nos engagements" a été supprimée. */
.engagements-page-top-heading-text {
  padding-bottom: 0;
}

/* Centrage strict de tous les pictos dans leur badge. */
.engagement-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.engagement-label-icon::before {
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
  transform: translate(0, 0);
}


/* V3.3 — correction optique du cadenas 03 */
#confidentialite .engagement-label-icon::before {
  transform: translateY(2px);
}


/* V3.4 — centrage vertical optique uniforme des pictos 01 à 06 */
.engagement-label-icon::before,
#confidentialite .engagement-label-icon::before {
  transform: translateY(2px);
}


/* V3.5 — centrage optique final
   Tous les pictos : +2px
   Cadenas 03 : correction plus forte car son glyphe Boxicons est visuellement haut */
.engagement-label-icon::before {
  transform: translateY(2px);
}

#confidentialite .engagement-label-icon::before {
  transform: translateY(4px);
}


/* ==========================================================
   V3.6 — STRUCTURE PROPRE DES PICTOS
   Le badge et l'icône Boxicons sont séparés.
   Aucun translateY n'est utilisé.
   ========================================================== */

.engagement-label-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  border-radius: 9px;
  background: rgba(21,154,131,.10);
  color: #159a83;
  line-height: 1;
}

.engagement-label-icon > i {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  font-size: 18px;
  line-height: 1;
  transform: none;
}

.engagement-label-icon > i::before {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
  transform: none;
}

.engagement-section--dark .engagement-label-icon {
  background: rgba(98,190,175,.13);
  color: #62beaf;
}

/* Neutralise toutes les anciennes corrections spécifiques */
#confidentialite .engagement-label-icon::before,
#confidentialite .engagement-label-icon > i::before,
.engagement-label-icon::before {
  transform: none;
}

@media (max-width:700px) {
  .engagement-label-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    border-radius: 8px;
  }

  .engagement-label-icon > i {
    font-size: 16px;
  }
}


/* ==========================================================
   V3.7 — BLOC FINAL SUR FOND BLANC
   ========================================================== */
.engagements-end {
  background: #fff;
  color: var(--eng-text);
}

.engagements-end h2 {
  color: var(--eng-text);
}

.engagements-end p {
  color: var(--eng-muted);
}

.engagements-end .engagements-kicker {
  color: var(--eng-mint);
}


/* ==========================================================
   V3.8 — FONDS BLANCS + LISTES SANS SÉPARATEURS
   ========================================================== */

/* Tous les blocs d'engagement passent sur fond blanc. */
.engagements-page,
.engagement-section,
.engagement-section--blue,
.engagement-section--light,
.engagement-section--dark {
  background: #fff;
}

/* Les anciens blocs foncés reprennent les couleurs de texte standard. */
.engagement-section--dark {
  color: var(--eng-text);
}

.engagement-section--dark .engagement-intro {
  color: var(--eng-muted);
}

.engagement-section--dark .engagement-label span,
.engagement-section--dark .engagement-label strong {
  color: var(--eng-green-2);
}

.engagement-section--dark .engagement-label-icon {
  background: rgba(21,154,131,.10);
  color: #159a83;
}

/* Suppression des traits au-dessus et entre les points. */
.engagement-points,
.engagement-section--blue .engagement-points,
.engagement-section--dark .engagement-points {
  border-top: 0;
}

.engagement-points li,
.engagement-section--blue .engagement-points li,
.engagement-section--dark .engagement-points li {
  border-bottom: 0;
}


/* ==========================================================
   V3.9 — ALTERNANCE FINALE
   Bleu clair -> blanc
   Pétrole conservé
   Traits des listes supprimés
   ========================================================== */

.engagement-section--blue,
.engagement-section--light {
  background: #fff;
}

.engagement-section--dark {
  background: var(--eng-dark);
  color: #fff;
}

.engagement-section--dark .engagement-intro {
  color: #b7cbc8;
}

.engagement-section--dark .engagement-label span,
.engagement-section--dark .engagement-label strong {
  color: var(--eng-green-2);
}

.engagement-section--dark .engagement-label-icon {
  background: rgba(98,190,175,.13);
  color: #62beaf;
}

/* Aucun séparateur horizontal dans les listes */
.engagement-points,
.engagement-section--blue .engagement-points,
.engagement-section--light .engagement-points,
.engagement-section--dark .engagement-points {
  border-top: 0;
}

.engagement-points li,
.engagement-section--blue .engagement-points li,
.engagement-section--light .engagement-points li,
.engagement-section--dark .engagement-points li {
  border-bottom: 0;
}

/* ==========================================================
   MOBILE — RESPIRATION SOUS LE HEADER
   ========================================================== */
@media (max-width: 700px) {
  .engagements-page-top {
    padding-top: 70px;
  }
}
