/* =========================================================
   Deck Bar - Design global
   Thème enfant Astra
   ========================================================= */

/* ------------------------------
   1. Variables globales
------------------------------ */

:root {
  /* Palette finale Deck Bar */
  --deck-bg-light: #F7FFFD;
  --deck-mint: #C7FFF5;
  --deck-accent: #51F7E2;
  --deck-accent-hover: #00A79D;
  --deck-green: #0A6562;
  --deck-deep: #003333;
  --deck-dark: #003333;
  --deck-dark-2: #02201D;
  --deck-white: #FFFFFF;

  /* Gris */
  --deck-grey-light: #D5D5D5;
  --deck-grey: #989797;
  --deck-grey-mid: #5E5E5E;
  --deck-grey-dark: #565656;
  --deck-grey-deep: #444444;

  /* Alias fonctionnels */
  --deck-text: var(--deck-deep);
  --deck-muted: var(--deck-grey-dark);
  --deck-border: rgba(0, 51, 51, 0.18);

  --deck-radius-sm: 8px;
  --deck-radius-md: 16px;
  --deck-radius-lg: 24px;
  --deck-radius-pill: 999px;

  --deck-shadow-soft: 0 14px 35px rgba(0, 0, 0, 0.12);

  --deck-container: 1180px;
}

/* ------------------------------
   2. Base générale
------------------------------ */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--deck-bg-light);
  color: var(--deck-text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

a:hover {
  color: var(--deck-accent-hover);
}

/* Supprime les marges parasites d'Astra sur certaines pages */
.ast-container,
.site-content .ast-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ------------------------------
   3. Conteneurs
------------------------------ */

.deck-container {
  width: min(var(--deck-container), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.deck-section {
  padding: 90px 0;
}

.deck-section-light {
  background: var(--deck-bg-light);
  color: var(--deck-text);
}

.deck-section-dark {
  background: var(--deck-dark);
  color: var(--deck-white);
}

/* ------------------------------
   4. Titres et textes
------------------------------ */

.deck-title-xl {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.deck-title-lg {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.deck-title-md {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 900;
}

.deck-text {
  font-size: 18px;
  line-height: 1.55;
}

.deck-text-small {
  font-size: 15px;
  line-height: 1.5;
}

.deck-muted {
  color: var(--deck-muted);
}

/* ------------------------------
   5. Boutons
------------------------------ */

.deck-btn,
.elementor-button.deck-btn,
a.deck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--deck-accent);
  color: var(--deck-dark) !important;
  border-radius: var(--deck-radius-pill);
  padding: 12px 24px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none !important;
  border: none;
  transition: all 0.2s ease;
}

.deck-btn:hover,
.elementor-button.deck-btn:hover,
a.deck-btn:hover {
  background: var(--deck-accent-hover);
  color: var(--deck-dark) !important;
  transform: translateY(-2px);
}

.deck-btn-dark,
.elementor-button.deck-btn-dark,
a.deck-btn-dark {
  background: var(--deck-dark);
  color: var(--deck-white) !important;
}

.deck-btn-dark:hover,
.elementor-button.deck-btn-dark:hover,
a.deck-btn-dark:hover {
  background: var(--deck-dark-2);
  color: var(--deck-white) !important;
}

/* ------------------------------
   6. Images
------------------------------ */

.deck-img-rounded img,
img.deck-img-rounded {
  border-radius: var(--deck-radius-md);
  box-shadow: var(--deck-shadow-soft);
}

.deck-img-tilt-left {
  transform: rotate(-4deg);
}

.deck-img-tilt-right {
  transform: rotate(4deg);
}

/* ------------------------------
   7. Cartes / blocs
------------------------------ */

.deck-card {
  background: var(--deck-white);
  border-radius: var(--deck-radius-md);
  padding: 28px;
  box-shadow: var(--deck-shadow-soft);
  color: var(--deck-text);
}

.deck-card-dark {
  background: var(--deck-dark-2);
  color: var(--deck-white);
  border-radius: var(--deck-radius-md);
  padding: 28px;
}

/* ------------------------------
   8. Formulaires
------------------------------ */

.deck-form input,
.deck-form textarea,
.deck-form select,
input,
textarea,
select {
  border-radius: var(--deck-radius-sm);
  border: 1px solid rgba(0, 51, 47, 0.2);
  padding: 12px 14px;
  font-size: 16px;
}

.deck-form input:focus,
.deck-form textarea:focus,
.deck-form select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--deck-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 255, 233, 0.35);
}

/* ------------------------------
   9. Responsive
------------------------------ */

@media (max-width: 767px) {
  .deck-section {
    padding: 60px 0;
  }

  .deck-container {
    width: min(100% - 28px, var(--deck-container));
  }

  .deck-title-xl {
    font-size: 46px;
  }

  .deck-title-lg {
    font-size: 34px;
  }

  .deck-text {
    font-size: 16px;
  }
}

/* =========================================================
   Header Deck Bar - corrections Astra
   ========================================================= */
   /* Fond principal du header */
.site-header,
.ast-primary-header-bar {
  background: var(--deck-dark) !important;
  border-bottom: none !important;
}

/* Ligne principale du header */
.ast-primary-header-bar .ast-builder-grid-row {
  min-height: 80px;
  align-items: center;
}

/* Logo */
.site-header .custom-logo-link img,
.site-header .site-logo-img img,
.site-header .custom-logo {
  max-height: 72px;
  width: auto;
}

/* Menu principal */
.ast-builder-menu-1 .menu-item > .menu-link {
  color: var(--deck-white) !important;
  font-size: 15px;
  font-weight: 600;
  padding-left: 16px;
  padding-right: 16px;
}

.ast-builder-menu-1 .menu-item:hover > .menu-link,
.ast-builder-menu-1 .current-menu-item > .menu-link {
  color: var(--deck-accent) !important;
}

/* =========================================================
   Menu principal en capsule - Deck Bar
   ========================================================= */

/* Capsule autour du menu */
.ast-builder-menu-1 .main-header-menu {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 6px;
  background: transparent;
}

/* Liens du menu */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  min-height: auto !important;
  height: auto !important;
  line-height: 1.2 !important;
  padding: 11px 18px !important;
  border-radius: 999px;
  color: var(--deck-white) !important;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* Survol des liens */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--deck-dark) !important;
}

/* Page active */
.ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .current_page_item > .menu-link {
  background: var(--deck-white) !important;
  color: var(--deck-dark) !important;
}

/* Survol de la page active */
.ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link:hover,
.ast-builder-menu-1 .main-header-menu > .current_page_item > .menu-link:hover {
  background: var(--deck-grey-light) !important;
  color: var(--deck-dark) !important;
}

/* =========================================================
   Header - ligne haute contact / réseaux
   ========================================================= */

.ast-above-header-bar {
  background: var(--deck-dark) !important;
  border-bottom: none !important;
  min-height: 28px;
}

.ast-above-header-bar .ast-builder-grid-row {
  min-height: 28px;
  align-items: center;
}



.deck-topbar-left span {
  color: var(--deck-white);
  white-space: nowrap;
}

.deck-topbar-right {
  justify-content: flex-end;
}

.deck-topbar-right a {
  color: var(--deck-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.deck-topbar-right a:hover {
  color: var(--deck-accent);
}
/* =========================================================
   Topbar Deck Bar - téléphone / email actifs avec icônes CSS
   ========================================================= */

/* Alignement propre des liens topbar */
.deck-topbar-left {
  display: flex;
  align-items: center;
  gap: 34px;
}

.deck-topbar-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  color: var(--deck-white) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1 !important;
}

/* Icônes téléphone / email */
.deck-topbar-link::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  flex: 0 0 14px;
  position: relative;
  top: 3px;
}

/* Icône téléphone */
.deck-phone-link::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  top: 3px;
}

/* Icône email */
.deck-mail-link::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") center / contain no-repeat;
  top: 3px;
}

.deck-topbar-link:hover {
  color: var(--deck-accent) !important;
}

/* Correction finale alignement icônes topbar */
.ast-above-header-bar .deck-topbar-link {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.ast-above-header-bar .deck-topbar-link::before {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  display: inline-block !important;
  position: relative !important;
  top: auto !important;
  transform: translateY(7px) !important;
}
/* =========================================================
   Header principal - toujours visible sans grand blanc
   ========================================================= */

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100000 !important;
  background: var(--deck-dark) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

/* Compensation desktop : hauteur réelle du header */
.site-content {
  padding-top: 126px !important;
}

/* Si connecté à WordPress avec la barre admin */
body.admin-bar .site-header {
  top: 32px !important;
}

body.admin-bar .site-content {
  padding-top: 158px !important;
}

/* Tablette / mobile admin */
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }

  body.admin-bar .site-content {
    padding-top: 132px !important;
  }
}

/* Mobile : header beaucoup moins haut */
@media (max-width: 767px) {
  .site-content {
    padding-top: 86px !important;
  }

  body.admin-bar .site-content {
    padding-top: 132px !important;
  }
}


/* =========================================================
   Footer Deck Bar - lisibilité sur fond sombre
   À placer en toute fin de deckbar-design.css
   ========================================================= */

.site-footer,
.site-primary-footer-wrap,
.ast-footer-copyright,
.ast-builder-footer-grid-columns {
  background: var(--deck-dark-2) !important;
  color: rgba(247, 255, 253, 0.88) !important;
}

.site-footer a,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer .widget-title,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: rgba(247, 255, 253, 0.88) !important;
}

.site-footer a:hover {
  color: var(--deck-accent) !important;
}

.site-footer .widget-title,
.site-footer h2,
.site-footer h3 {
  color: var(--deck-mint) !important;
  font-weight: 800 !important;
}

.site-footer .custom-logo,
.site-footer .custom-logo-link img,
.site-footer .site-logo-img img {
  opacity: 1 !important;
  max-height: 86px !important;
}

.ast-footer-copyright {
  background: #F3F1FF !important;
  color: var(--deck-grey-mid) !important;
  font-size: 0.85rem !important;
}

.ast-footer-copyright p,
.ast-footer-copyright span,
.ast-footer-copyright a {
  color: var(--deck-grey-mid) !important;
}
/* =========================================================
   Footer Deck Bar - version compacte
   À placer tout en bas de deckbar-design.css
   ========================================================= */

/* Bloc principal du footer */
.site-primary-footer-wrap,
.site-primary-footer-wrap[data-section],
#colophon .site-primary-footer-wrap {
  padding-top: 28px !important;
  padding-bottom: 24px !important;
  min-height: 0 !important;
}

/* Grille Astra du footer */
.site-primary-footer-wrap .ast-builder-grid-row,
.site-primary-footer-wrap .ast-builder-footer-grid-columns {
  min-height: 0 !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Colonnes */
.site-footer-section,
.site-primary-footer-wrap .site-footer-section,
.site-primary-footer-wrap .ast-builder-layout-element,
.site-primary-footer-wrap .footer-widget-area {
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Réduction du logo */
.site-footer .custom-logo-link img,
.site-footer .site-logo-img img,
.site-footer img.custom-logo {
  max-height: 92px !important;
  width: auto !important;
}

/* Titres colonnes : Categories / Légal */
.site-footer .widget-title,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  margin: 0 0 12px !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
}

/* Textes et liens */
.site-footer p,
.site-footer li,
.site-footer a,
.site-footer span {
  font-size: 15px !important;
  line-height: 1.45 !important;
}

/* Listes */
.site-footer ul,
.site-footer ol,
.site-footer .menu {
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer li {
  margin: 0 0 3px !important;
  padding: 0 !important;
}

/* Colonne droite : éviter trop d'espace vertical */
.site-footer .ast-footer-html,
.site-footer .ast-builder-social-element,
.site-footer .ast-footer-social-wrap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Paragraphes dans le footer */
.site-footer p {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

/* Zone copyright */
.site-below-footer-wrap,
.site-below-footer-wrap[data-section],
.ast-footer-copyright {
  min-height: 0 !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

.site-below-footer-wrap .ast-builder-grid-row {
  min-height: 0 !important;
  padding: 0 !important;
}

.ast-footer-copyright,
.ast-footer-copyright p,
.ast-footer-copyright span,
.ast-footer-copyright a {
  font-size: 12px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Conteneur lisible pour pages texte */
.deck-container-readable {
  max-width: 680px;
}

/* Centrage texte */
.deck-text-center {
  text-align: center;
}

/* Rythme vertical pour les pages de contenu */
.deck-content-flow > * {
  margin-top: 0;
}

.deck-content-flow > p {
  margin-bottom: 0.45rem;
}

.deck-content-flow > h2,
.deck-content-flow > h3 {
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
}

.deck-content-flow > h2:first-child,
.deck-content-flow > h3:first-child {
  margin-top: 0;
}

/* =========================================================
   Sécurité globale - empêcher le scroll horizontal
   Sans casser les sticky
   ========================================================= */

html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  overscroll-behavior-x: none !important;
}

img,
iframe,
video,
canvas,
svg {
  max-width: 100%;
}

[class*="deck"],
[class*="deckbar"] {
  box-sizing: border-box;
}

/* =========================================================
   Header mobile Deck Bar - version propre
   Burger + réseaux + téléphone
   ========================================================= */

@media (max-width: 921px) {

  /* Header mobile */
  .site-header,
  .ast-mobile-header-wrap,
  .ast-primary-header-bar {
    background: var(--deck-dark) !important;
    overflow: visible !important;
  }

  .ast-primary-header-bar,
  .ast-primary-header-bar .ast-builder-grid-row {
    min-height: 92px !important;
  }

  .site-content {
    padding-top: 92px !important;
  }

  /* Logo */
  .site-header .custom-logo-link img,
  .site-header .site-logo-img img,
  .site-header img.custom-logo {
    max-height: 74px !important;
    max-width: 220px !important;
    width: auto !important;
  }

  /* Burger */
  .ast-button-wrap .menu-toggle,
  .main-header-menu-toggle,
  button.menu-toggle {
    position: absolute !important;
    top: 18px !important;
    right: 14px !important;

    width: 54px !important;
    height: 54px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    border: 2px solid rgba(255,255,255,0.95) !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--deck-white) !important;
    box-shadow: none !important;
    z-index: 100010 !important;
  }

  .ast-button-wrap .menu-toggle svg,
  .main-header-menu-toggle svg,
  button.menu-toggle svg,
  .ast-mobile-svg {
    width: 30px !important;
    height: 30px !important;
    fill: var(--deck-white) !important;
    color: var(--deck-white) !important;
    stroke: var(--deck-white) !important;
  }

  /* Réseaux sociaux dans le header, à gauche du burger */
  .site-header .ast-header-social-wrap {
    position: absolute !important;
    top: 15px !important;
    right: 82px !important;
    z-index: 100009 !important;

    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    height: 30px !important;

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

    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .header-social-inner-wrap,
  .site-header .element-social-inner-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;

    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .ast-builder-social-element,
  .site-header .ast-social-element {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .ast-builder-social-element svg,
  .site-header .ast-social-element svg,
  .site-header .ahfb-svg-iconset svg {
    width: 24px !important;
    height: 24px !important;
    fill: var(--deck-white) !important;
    color: var(--deck-white) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .ast-builder-social-element:hover svg,
  .site-header .ast-social-element:hover svg {
    fill: var(--deck-accent) !important;
    color: var(--deck-accent) !important;
  }

  .site-header .social-item-label {
    display: none !important;
  }

  /* Topbar intégrée dans le header mobile */
  .ast-above-header-bar {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    border: none !important;
    z-index: 100008 !important;
    pointer-events: none !important;
  }

  .ast-above-header-bar .ast-builder-grid-row {
    height: 0 !important;
    min-height: 0 !important;
  }

  /* Téléphone en bas à droite */
  .deck-topbar-left {
    position: fixed !important;
    top: 70px !important;
    right: 14px !important;
    z-index: 100011 !important;

    width: auto !important;
    min-width: 145px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important;

    pointer-events: auto !important;
  }

  .deck-mail-link {
    display: none !important;
  }

  .deck-phone-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    color: var(--deck-white) !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .deck-phone-link::before {
    display: none !important;
    content: none !important;
  }

  /* Menu burger ouvert */
  .ast-mobile-popup-drawer,
  .ast-mobile-popup-inner,
  .ast-mobile-popup-content {
    background: var(--deck-dark-2) !important;
    color: var(--deck-white) !important;
  }

  .ast-mobile-popup-header {
    background: var(--deck-dark-2) !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  }

  .ast-mobile-popup-drawer .main-header-menu,
  .ast-mobile-popup-drawer .ast-builder-menu-mobile .main-header-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.45rem !important;
    background: transparent !important;
    border: none !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .menu-item > .menu-link {
    width: min(280px, calc(100% - 48px)) !important;
    min-height: 48px !important;

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

    border-radius: 999px !important;
    color: var(--deck-white) !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .menu-item > .menu-link:hover,
  .ast-mobile-popup-drawer .main-header-menu .current-menu-item > .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .current_page_item > .menu-link {
    background: var(--deck-accent) !important;
    color: var(--deck-dark-2) !important;
  }
}
/* =========================================================
   Header mobile - ajustement final logo / réseaux / téléphone
   ========================================================= */

@media (max-width: 921px) {

  /* Hauteur du header mobile */
  .site-header,
  .ast-primary-header-bar {
    min-height: 104px !important;
  }

  .ast-primary-header-bar .ast-builder-grid-row {
    min-height: 104px !important;
  }

  /* Compensation de la hauteur du header fixe */
  .site-content {
    padding-top: 104px !important;
  }

  /* Logo un peu moins large pour laisser respirer la droite */
  .site-header .custom-logo-link img,
  .site-header .site-logo-img img,
  .site-header img.custom-logo {
    max-height: 72px !important;
    max-width: 205px !important;
    width: auto !important;
  }

  /* Burger au centre */
  .ast-button-wrap .menu-toggle,
  .main-header-menu-toggle,
  button.menu-toggle {
    position: absolute !important;
    top: 20px !important;
    right: 80px !important;

    width: 54px !important;
    height: 54px !important;
    z-index: 100020 !important;
  }

  /* Réseaux sociaux : à droite du burger */
  .site-header .ast-header-social-wrap {
    position: absolute !important;
    top: 40px !important;
    right: 10px !important;

    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;

    z-index: 100019 !important;
  }

  .site-header .header-social-inner-wrap,
  .site-header .element-social-inner-wrap {
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .site-header .ast-builder-social-element,
  .site-header .ast-social-element {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
  }

  .site-header .ast-builder-social-element svg,
  .site-header .ast-social-element svg,
  .site-header .ahfb-svg-iconset svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* Téléphone : sous les icônes, aligné à droite mais pas collé */
  .deck-topbar-left {
    position: fixed !important;
    top: 3px !important;
    right: 1px !important;

    width: auto !important;
    min-width: 145px !important;

    display: flex !important;
    justify-content: flex-end !important;

    z-index: 100021 !important;
  }

  .deck-phone-link {
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    color: var(--deck-white) !important;
    white-space: nowrap !important;
  }

  .deck-phone-link::before {
    display: none !important;
    content: none !important;
  }

  .deck-mail-link {
    display: none !important;
  }
}

/* =========================================================
   Header tablette - sans burger, menu desktop conservé
   768px à 1180px
   ========================================================= */

@media (min-width: 768px) and (max-width: 1180px) {

  /* Header un peu plus compact */
  .site-header,
  .ast-primary-header-bar {
    min-height: 92px !important;
  }

  .ast-primary-header-bar .ast-builder-grid-row {
    min-height: 92px !important;
    align-items: center !important;
  }

  /* Compensation header fixe */
  .site-content {
    padding-top: 92px !important;
  }

  /* Logo plus compact */
  .site-header .custom-logo-link img,
  .site-header .site-logo-img img,
  .site-header img.custom-logo {
    max-height: 68px !important;
    max-width: 185px !important;
    width: auto !important;
  }

  /* Topbar téléphone / mail plus compacte */
  .deck-topbar-left {
    gap: 18px !important;
  }

  .deck-topbar-link {
    font-size: 12px !important;
  }

  /* Menu principal plus compact */
  .ast-builder-menu-1 .main-header-menu {
    gap: 4px !important;
    padding: 5px !important;
  }

  .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    padding: 9px 13px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* On garde le menu desktop visible */
  .ast-builder-menu-1 {
    display: flex !important;
  }

  /* Pas de burger sur tablette */
  .ast-mobile-header-wrap,
  .ast-button-wrap .menu-toggle,
  .main-header-menu-toggle,
  button.menu-toggle {
    display: none !important;
  }

  .site-header .ast-custom-button {
  min-width: auto !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

.site-header a[href*="reservation"].ast-custom-button-link {
  white-space: nowrap !important;
}

  /* Réseaux sociaux en haut à droite */
  .deck-topbar-right a {
    font-size: 13px !important;
  }
}

/* =========================================================
   Accueil - Titres SEO H2 stylés Elementor
   Permet d'utiliser des balises H2 sans casser le design
   ========================================================= */

/* H2 standard Deck Bar */
.deck-home-h2 .elementor-heading-title,
.elementor-widget-heading.deck-home-h2 .elementor-heading-title {
  margin: 0 0 1rem !important;

  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(42px, 5vw, 76px) !important;
  font-weight: 400 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;

  color: var(--deck-deep) !important;
}

/* H2 sur fond sombre */
.deck-home-h2-light .elementor-heading-title,
.elementor-widget-heading.deck-home-h2-light .elementor-heading-title {
  color: var(--deck-white) !important;
}

/* H2 plus fort / plus massif */
.deck-home-h2-strong .elementor-heading-title,
.elementor-widget-heading.deck-home-h2-strong .elementor-heading-title {
  font-weight: 900 !important;
  letter-spacing: -0.055em !important;
}

/* Variante compacte */
.deck-home-h2-compact .elementor-heading-title,
.elementor-widget-heading.deck-home-h2-compact .elementor-heading-title {
  font-size: clamp(34px, 4vw, 58px) !important;
  line-height: 1 !important;
}

/* Mobile */
@media (max-width: 767px) {
  .deck-home-h2 .elementor-heading-title,
  .elementor-widget-heading.deck-home-h2 .elementor-heading-title {
    font-size: 34px !important;
    line-height: 0.98 !important;
  }
}