/* MB Confort Énergie — système visuel dérivé du logo (marine / cyan / flamme).
   Voir DESIGN.md à la racine du projet pour la charte complète (rôles de couleur,
   règles nommées, spécification des composants). */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-500.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700.woff2") format("woff2");
}

:root {
  /* Marine */
  --marine-profond: #172b45;
  --marine-nuit: #0f1e32;

  /* Cyan */
  --cyan-signal: #1c8fd1;
  --cyan-clair: #5ac8f2;
  --cyan-texte: #0e6ea8; /* cyan lisible (AA) sur fonds clairs : liens, badge */

  /* Flamme */
  --flamme: #d92f26;
  --flamme-sombre: #a9231c;
  --flamme-vive: #f2661f;

  /* Neutres teintés vers le marine, jamais de noir/blanc pur */
  --encre: #16202c;
  --anthracite: #4e5a68;
  --papier: #fafbfc;
  --surface-douce: #f1f4f8;
  --ligne: #dce3ea;

  --couleur-whatsapp: #187a42;
  --couleur-whatsapp-sombre: #125c32;

  --rayon-sm: 8px;
  --rayon-md: 14px;
  --rayon-lg: 24px;
  --rayon-pill: 999px;

  --espace-xs: 8px;
  --espace-sm: 16px;
  --espace-md: 24px;
  --espace-lg: 40px;
  --espace-xl: 72px;

  --ombre-flottant: 0 1px 2px rgba(15, 30, 50, 0.06), 0 14px 32px -12px rgba(15, 30, 50, 0.22);
  --ombre-repere: 0 1px 2px rgba(15, 30, 50, 0.08);

  --ease-out-expo: cubic-bezier(0.32, 0.72, 0, 1); /* courbe d'un ressort amorti, sans rebond */

  --marge-page: 16px;
  --largeur-contenu: 960px;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  padding-bottom: 76px; /* place pour la barre mobile fixe */
}

@media (min-width: 700px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--cyan-texte);
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--encre);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin: 0.4em 0 0.6em;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  margin: 1.7em 0 0.6em;
}

h3 {
  font-size: 1.15rem;
  margin: 1.3em 0 0.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p, li {
  max-width: 68ch;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.6em 0.7em;
  border-bottom: 1px solid var(--ligne);
}

th {
  background: var(--surface-douce);
}

mark.todo {
  background: #ffe58a;
  color: #6b4b00;
  padding: 0 0.3em;
  border-radius: 4px;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--cyan-clair);
  outline-offset: 2px;
}

/* ============ En-tête ============ */

.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--papier) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 30;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--papier);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px var(--marge-page);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-md);
}

@media (min-width: 980px) {
  .site-header__inner {
    min-height: 104px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

.site-header__brand {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.site-header__logo {
  height: 56px;
  width: auto;
  display: block;
  /* Logo détouré (WebP transparent) : se fond dans l'en-tête translucide. */
}

@media (min-width: 980px) {
  .site-header__logo {
    height: 76px;
  }
}

.site-header__nav {
  display: none;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.site-header__nav a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 6px clamp(14px, 1.9vw, 30px);
}

.site-header__nav a + a {
  border-left: 1px solid var(--ligne);
}

.site-header__nav a:hover {
  color: var(--cyan-texte);
}

@media (min-width: 980px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 700px) {
  .site-header__actions {
    display: flex;
  }
}

.badge-urgence {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--flamme);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  transition: background-color 160ms var(--ease-out-expo);
}

.badge-urgence:hover {
  background: var(--flamme-sombre);
}

.btn.btn--header {
  padding: 0 clamp(22px, 2.4vw, 42px);
  min-height: 56px;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ============ Boutons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--rayon-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 160ms var(--ease-out-expo), color 160ms var(--ease-out-expo), transform 160ms var(--ease-out-expo);
  line-height: 1;
}

.btn svg {
  flex-shrink: 0;
}

.btn--primary {
  background: var(--cyan-texte);
  color: #fff;
}

.btn--primary:hover {
  background: var(--marine-profond);
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn--phone {
  background: var(--marine-profond);
  color: #fff;
}

.btn--phone:hover {
  background: var(--marine-nuit);
}

.btn--whatsapp {
  background: var(--couleur-whatsapp);
  color: #fff;
}

.btn--whatsapp:hover {
  background: var(--couleur-whatsapp-sombre);
}

.btn--todo {
  background: #eee;
  color: #a05a00;
  border: 1px dashed #cc8b00;
}

/* ============ Barre mobile fixe ============ */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 10px var(--marge-page);
  background: var(--marine-profond);
  z-index: 40;
}

.mobile-bar .btn {
  flex: 1;
  justify-content: center;
}

.mobile-bar .btn--phone {
  background: #fff;
  color: var(--marine-profond);
}

@media (min-width: 700px) {
  .mobile-bar {
    display: none;
  }
}

/* ============ Hero (page d'accueil) ============ */

.hero {
  margin: 0 clamp(10px, 1.5vw, 26px);
  position: relative;
}

.hero__card {
  position: relative;
  background: var(--marine-profond);
  border-radius: 24px 24px clamp(90px, 18vw, 310px) 24px;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 1216px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--espace-lg);
}

.hero__content {
  min-width: 0;
}

.hero__brand {
  margin: 0 0 6px;
  color: var(--cyan-signal);
  font-weight: 500;
  font-size: clamp(1.9rem, 8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.55rem, 5.4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  word-spacing: 0.06em;
  margin: 0 0 var(--espace-md);
  max-width: 26ch;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 54ch;
  margin: 0 0 var(--espace-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

@media (min-width: 700px) {
  .hero__actions {
    justify-content: flex-start;
  }
}

.hero__actions .btn {
  min-height: 60px;
  padding: 0 clamp(26px, 3vw, 44px);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: var(--espace-lg);
  color: #fff;
  font-size: 0.9rem;
}

.hero__stars {
  color: #f6b93b;
  font-size: 1.5rem;
  letter-spacing: 2px;
  line-height: 1;
}

.hero__rating a {
  color: #fff;
  font-weight: 600;
}

.hero__media {
  min-width: 0;
}

.hero__video-wrap {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--ombre-flottant);
  aspect-ratio: 4 / 3;
  background: var(--marine-nuit);
}

.hero__video-wrap video,
.hero__video-wrap .hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 34vw, 476px);
    column-gap: 56px;
    padding: 100px 20px 0;
  }

  .hero__card {
    min-height: 712px;
  }

  .hero__media {
    margin-top: 85px;
    margin-bottom: -93px;
    align-self: start;
    position: relative;
    z-index: 2;
  }

  .hero__video-wrap {
    aspect-ratio: 3 / 3.9;
  }

  .hero__video-wrap video {
    object-position: 82% center;
  }
}

/* Onglets d'action rouges (fixés au bord droit sur grand écran) */

.hero__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--espace-md);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--cyan-texte);
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.92rem;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--rayon-sm);
  transition: background-color 160ms var(--ease-out-expo);
}

.tab:hover {
  background: var(--marine-profond);
}

.tab[href="/urgence-chauffage/"] {
  background: var(--flamme);
}

.tab[href="/urgence-chauffage/"]:hover {
  background: var(--flamme-sombre);
}

.tab strong {
  font-weight: 600;
}

.tab svg {
  flex-shrink: 0;
}

/* Mobile / tablette : grille de tuiles (icône au-dessus du libellé, centrés) */

@media (max-width: 1179px) {
  .hero__tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tab {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 14px 10px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    border-radius: var(--rayon-md, 14px);
    box-shadow: 0 6px 16px rgba(15, 30, 50, 0.22);
  }

  .tab svg {
    width: 26px;
    height: 26px;
  }

  .tab strong {
    display: block;
    letter-spacing: 0.04em;
  }
}

@media (min-width: 700px) and (max-width: 1179px) {
  .hero__tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1180px) {
  .hero__tabs {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 25;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    width: 272px;
  }

  .tab {
    border-radius: var(--rayon-sm) 0 0 var(--rayon-sm);
    box-shadow: -2px 4px 14px rgba(15, 30, 50, 0.28);
    padding-right: 12px;
  }
}

/* Le débordement de la vidéo sous la carte réserve la place avant la section suivante */

.hero + .services {
  padding-top: var(--espace-xl);
}

@media (min-width: 960px) {
  .hero + .services {
    padding-top: calc(var(--espace-xl) + 93px);
  }
}

/* ============ Services (accueil) ============ */

.services {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--espace-xl) var(--marge-page);
}

.services__header {
  max-width: 60ch;
  margin: 0 0 var(--espace-lg);
}

.services__header h2 {
  margin-top: 0;
}

.services__grid {
  display: grid;
  gap: var(--espace-md);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card {
  background: var(--surface-douce);
  border-radius: var(--rayon-md);
  padding: var(--espace-md);
  text-decoration: none;
  color: var(--encre);
  box-shadow: var(--ombre-repere);
  transition: background-color 200ms var(--ease-out-expo), transform 120ms var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card:hover,
.service-card:focus-visible {
  background: color-mix(in oklab, var(--surface-douce) 82%, var(--ligne));
}

.service-card:active {
  transform: scale(0.98);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__icon--chaud {
  background: var(--flamme);
}

.service-card__icon--froid {
  background: var(--cyan-texte);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.service-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.service-card p {
  margin: 0;
  color: var(--anthracite);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 979px) {
  .service-card__icon {
    align-self: center;
  }

  .service-card h3 {
    text-align: center;
  }
}

.service-card__link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cyan-texte);
}

/* ============ Contenu de page ============ */

main.page {
  max-width: var(--largeur-contenu);
  margin: 0 auto;
  padding: 20px var(--marge-page) 40px;
}

main.page--home {
  padding-top: var(--espace-lg);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--anthracite);
  margin-bottom: 4px;
}

.breadcrumb a {
  color: var(--anthracite);
}

.page__body :is(h2, h3):first-child {
  margin-top: 0;
}

/* ============ FAQ ============ */

.faq {
  margin-top: 2.5em;
  border-top: 1px solid var(--ligne);
  padding-top: 1em;
}

.faq__item {
  border-bottom: 1px solid var(--ligne);
  padding: 12px 0;
}

.faq__question {
  cursor: pointer;
  font-weight: 700;
}

.faq__answer {
  margin-top: 8px;
  color: var(--anthracite);
}

/* ============ Formulaire de contact ============ */

.contact-form {
  margin-top: 1.5em;
}

.contact-form__warning {
  background: #fff4e5;
  border: 1px solid #e0a83a;
  border-radius: var(--rayon-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
}

.contact-form__form {
  display: grid;
  gap: 14px;
  margin-top: 1em;
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  padding: 11px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-sm);
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--cyan-signal);
  outline-offset: 1px;
}

.field-group {
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-md);
  padding: 12px;
  display: grid;
  gap: 12px;
}

.field-group legend {
  font-weight: 700;
  padding: 0 6px;
}

.contact-form__fallback {
  font-size: 0.9rem;
  color: var(--anthracite);
}

.contact-form__mention {
  font-size: 0.8rem;
  color: var(--anthracite);
}

.btn--submit {
  width: fit-content;
}

/* ============ Pied de page ============ */

.site-footer {
  background: var(--marine-nuit);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--espace-lg) var(--marge-page) var(--espace-md);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--espace-lg) var(--espace-md);
  padding-bottom: var(--espace-lg);
}

/* Ordinateur : le bloc se cale sur la largeur du texte légal (46ch),
   le logo est ainsi centré par rapport aux paragraphes et non à la colonne. */
@media (min-width: 980px) {
  .site-footer__about {
    width: fit-content;
    max-width: 100%;
  }

  .site-footer__brand {
    padding-right: 8rem;
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: var(--espace-sm, 16px);
}

.site-footer__logo {
  height: 110px;
  width: auto;
}

.site-footer__brand strong {
  color: #fff;
  font-size: 1.15rem;
}

.site-footer__title {
  margin: 0 0 14px;
  color: var(--cyan-clair);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.site-footer__col a {
  display: inline-block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 160ms var(--ease-out-expo);
}

.site-footer__col a:hover {
  color: var(--cyan-clair);
}

.site-footer__identity {
  margin: 0 0 var(--espace-sm, 16px);
}

.site-footer__company {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-footer__form {
  margin: 2px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-clair);
}

.site-footer__facts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__facts li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.site-footer__facts li span {
  margin-right: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal {
  max-width: 46ch;
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: var(--espace-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 979px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__about {
    grid-column: 1 / -1;
    text-align: center;
  }

  .site-footer__brand {
    justify-content: center;
  }

  .site-footer__logo {
    height: 130px;
  }

  .site-footer__brand strong {
    display: none;
  }

  .site-footer__legal {
    margin-inline: auto;
  }


  .site-footer__facts {
    justify-content: center;
  }

  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

}

.site-footer__credit {
  color: var(--cyan-clair);
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms var(--ease-out-expo);
}

.site-footer__credit:hover {
  color: #fff;
}

/* ============ Menu mobile (tiroir) ============ */

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan-texte);
}

.menu-mobile {
  border: 0;
  padding: 0;
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(88vw, 440px);
  background: var(--surface-douce);
  color: var(--encre);
  overflow-y: auto;
}

.menu-mobile[open] {
  animation: menu-entree 300ms var(--ease-out-expo);
}

.menu-mobile::backdrop {
  background: rgba(15, 30, 50, 0.6);
}

@keyframes menu-entree {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}

body:has(.menu-mobile[open]) {
  overflow: hidden;
}

@media (min-width: 980px) {
  .burger,
  .menu-mobile {
    display: none !important;
  }
}

.menu-mobile__panel {
  padding: 18px 24px 32px;
}

.menu-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-mobile__logo {
  display: block;
  line-height: 0;
}

.menu-mobile__logo img {
  height: 64px;
  width: auto;
}

.menu-mobile__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--cyan-texte);
  cursor: pointer;
}

.menu-mobile__card {
  background: #fff;
  border-radius: var(--rayon-lg);
  padding: 8px 24px;
  margin-top: 18px;
}

.menu-link,
.menu-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  color: var(--marine-profond);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.menu-group summary::-webkit-details-marker {
  display: none;
}

.menu-group summary::after {
  content: "+";
  color: var(--cyan-texte);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.menu-group[open] summary::after {
  content: "\2212";
}

.menu-group ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 4px;
}

.menu-group li {
  max-width: none;
}

.menu-group li a {
  display: block;
  padding: 9px 0;
  color: var(--anthracite);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.menu-group li a:hover {
  color: var(--cyan-texte);
}

.menu-mobile__cta {
  width: 100%;
  margin-top: 22px;
  min-height: 54px;
  font-size: 1.1rem;
  font-weight: 500;
}

.menu-mobile__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  padding: 14px 10px;
  background: var(--cyan-texte);
  color: #fff;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: background-color 160ms var(--ease-out-expo);
}

.menu-tile:hover {
  background: var(--marine-profond);
}

.btn.btn--urgence {
  background: #c62828;
  color: #fff;
}

.btn.btn--urgence:hover {
  background: #a31f1f;
}

.menu-tile--urgence {
  background: #c62828;
}

.menu-tile--urgence:hover {
  background: #a31f1f;
}

.menu-mobile__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
}

.menu-mobile__contact .btn {
  width: 100%;
  min-height: 54px;
  font-size: 1rem;
}

.nowrap {
  white-space: nowrap;
}

/* Fenêtre « Mentions légales » (ouverte depuis le pied de page) */
.mentions-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--rayon-sm);
  background: var(--papier);
  color: var(--encre);
  box-shadow: 0 24px 60px rgba(15, 30, 50, 0.35);
  overflow: hidden;
}

.mentions-dialog[open] {
  display: flex;
  flex-direction: column;
}

.mentions-dialog::backdrop {
  background: rgba(15, 30, 50, 0.6);
}

.mentions-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ligne);
}

.mentions-dialog__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.mentions-dialog__close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-douce);
  color: var(--encre);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.mentions-dialog__close:hover {
  background: var(--ligne);
}

.mentions-dialog__body {
  padding: 8px 24px 24px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mentions-dialog__body h2 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

/* ============ Bandeau cookies (rendu seulement si un traceur est configuré) ============ */

.cookie-banner {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: end center; /* mobile : panneau collé en bas ; ordinateur : centré (voir @media) */
  padding: 0;
  /* Fond assombri et flouté : la page derrière n'est pas utilisable tant qu'un choix n'est pas fait. */
  background: rgba(15, 30, 50, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html.cookie-lock {
  overflow: hidden;
}

/* Mobile (< 640 px) : panneau pleine largeur collé en bas, coins arrondis en haut, texte à gauche. */
.cookie-banner__box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-height: 85dvh;
  padding: 24px 20px calc(1rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  text-align: left;
  background: var(--marine-nuit);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.7);
  font-size: 1rem;
  line-height: 1.55;
}

.cookie-banner__box:focus {
  outline: none;
}

.cookie-banner h2 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.2;
}

.cookie-banner__small {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75); /* contraste AA sur le fond marine */
}

/* Ordinateur (≥ 640 px) : carte centrée, texte centré, ombre portée. */
@media (min-width: 640px) {
  .cookie-banner {
    place-items: center;
    padding: 16px;
  }
  .cookie-banner__box {
    width: min(92vw, 30rem);
    padding: 32px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--rayon-lg);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  }
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0 0 10px;
}

.cookie-banner a {
  color: var(--cyan-clair);
  text-decoration: underline;
}

/* Refuser au-dessus, Accepter en bas : même taille, pleine largeur (CNIL : refuser aussi simple qu'accepter). */
.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.cookie-btn {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--rayon-pill);
  cursor: pointer;
}

.cookie-btn--refuse {
  background: transparent;
}

.cookie-btn--refuse:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-btn--accept {
  background: var(--cyan-texte);
  border-color: var(--cyan-texte);
}

.cookie-btn--accept:hover {
  background: var(--cyan-signal);
  border-color: var(--cyan-signal);
}

.cookie-btn:focus-visible {
  outline: 3px solid var(--cyan-clair);
  outline-offset: 2px;
}

