/* Source and licensing information for the line(s) below can be found at https://www.catlante-catamarans.com/themes/custom/catlante/dist/assets/stylesheets/mobile-ux.css. */
/* =====================================================================
   Refonte UX mobile — étape 1 (15/09/2026)

   - En-tête : logo à gauche, téléphone + burger à droite, toujours
     visible pendant la navigation (fond pétrole dès qu'on défile).
   - Barre du bas façon Dream Yacht : Devis · Offres · Destinations ·
     Flotte · Privatisation, affichée dès que le bouton de devis du
     premier écran n'est plus visible.
   - Accueil : premier écran « offre + devis + garanties », destinations
     avec pages hub, espaces resserrés, Inspirations masquées.

   Library catlante/mobile-ux (attachée par page.html.twig), hors purge.
   Seuil 1199.98px = passage à l'en-tête responsive du thème : le desktop
   n'est pas touché (sauf l'ajout des pages hub, visible partout).
   ===================================================================== */

/* ---------- Ajouts visibles sur toutes les tailles ---------- */

/* Pages hub + lien « toutes les destinations » sous le carrousel */
/* margin-top : la pagination du carrousel est posée 50px sous celui-ci (bottom:-50px) */
.home-dest-more { max-width: 960px; margin: 62px auto 0; padding: 0 16px; text-align: center; }
/* Les puces portent leur numéro en texte (16px) qui déborde sous le point : on ne garde que le point */
.path-frontpage .section-bloc-cruises .swiper-pagination-bullet { font-size: 0; line-height: 0; }
.home-dest-hubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.home-dest-hub { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; text-decoration: none; background: #003849; }
.home-dest-hub img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.home-dest-hub::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,40,52,0) 35%, rgba(0,40,52,.78) 100%); }
.home-dest-hub:hover img { transform: scale(1.04); }
@media (min-width: 768px) { .home-dest-hub { aspect-ratio: 5 / 2; } }
.home-dest-hub .home-dest-hub__label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; font: 700 17px/1.2 Montserrat, sans-serif; text-align: left; }
.home-dest-hub .home-dest-hub__label small { display: block; font-weight: 500; font-size: 12.5px; opacity: .9; }
.home-dest-all { display: inline-flex; align-items: center; gap: 8px; color: #003849; font: 700 15px/1.3 Montserrat, sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.home-dest-all:hover { color: #f16846; }
.home-fleet-compare { margin: 26px 0 0; padding: 0 16px; text-align: center; }
.home-dest-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Menu : rubrique à un seul choix rendue en lien direct (menu-levels.html.twig).
   Même typo que les rubriques dépliables voisines (span 18px) au lieu de celle des liens de niveau 2. */
.menu-item.menu-item--expanded .sub-menu .smenu > .item.item--direct > a { font-size: 18px; line-height: 1.3; letter-spacing: .6px; font-weight: 500; }
@media (min-width: 1200px) {
  .menu-item.menu-item--expanded .sub-menu .smenu > .item.item--direct > a { font-size: 22px; line-height: 25px; }
}

/* Pictos des 5 atouts, nouvelle version bicolore fournie par le client
   (23/09/2026). Les dessins d'origine viennent d'un sprite SVG (#icon-01…05)
   monochrome : on masque le tracé et on pose le PNG en fond, ce qui évite de
   toucher aux paragraphes Drupal qui les affichent. */
.voiyager-catalante__content .icon { background-repeat: no-repeat; background-position: center; background-size: contain; }
.voiyager-catalante__content .icon > * { display: none; }
.voiyager-catalante__content .icon-01 { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/leader.png"); }
.voiyager-catalante__content .icon-02 { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/cuisine-locale.png"); }
.voiyager-catalante__content .icon-03 { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/pavillon-francais.png"); }
.voiyager-catalante__content .icon-04 { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/eco-responsable.png"); }
.voiyager-catalante__content .icon-05 { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/tout-inclus.png"); }

/* Prix d'appel sur les cartes de la liste des croisières (20/09/2026). */
.filtre-result .item .item-prix,
.list-items .item .item-prix { margin: 4px 0 10px; color: #003849; font: 500 13.5px/1.35 Montserrat, sans-serif; }
.filtre-result .item .item-prix strong,
.list-items .item .item-prix strong { font-weight: 700; font-size: 15.5px; }

/* Tableau des tarifs : une case vide = pas de départ sur ce bateau à cette date.
   Sans repère, la ligne ressemblait à un bug (20/09/2026). */
.cdc-table-cell.empty-cell::after { content: "—"; color: #9fb0b5; font-weight: 600; }

/* Éléments du premier écran mobile : jamais sur ordinateur */
@media (min-width: 1200px) {
  .home-m-intro, .home-m-cta, .home-m-pictos, .mbar { display: none !important; }
}

/* ---------- Mobile / tablette ---------- */
@media (max-width: 1199.98px) {

  /* --- En-tête collant : logo à gauche, téléphone + burger à droite --- */
  .header { position: fixed !important; top: 0; left: 0; right: 0; z-index: 1000; height: auto !important; transition: background-color .25s ease, box-shadow .25s ease; }
  .header.fixed { background: rgba(0, 56, 73, .97); box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
  /* Bandeau supérieur vide sur mobile (20px) : ses liens Offres/Contact/langues
     viennent d'un autre bloc dans le menu burger. */
  .header .header-top { display: none; }
  .header .header-navbar > .container-fluid { padding-left: 0; padding-right: 0; }
  .header .hedear-responsive { display: flex !important; flex-wrap: wrap; align-items: center; margin: 0; padding: 12px 14px 8px; }
  .header .hedear-responsive > div { padding: 0; margin: 0; }
  .header .hedear-responsive > .logo-responsive { order: 1; flex: 1 1 auto; width: auto; max-width: none; display: flex; align-items: center; }
  /* display:flex + img en bloc : sinon l'espace de ligne sous l'image ajoute
     12px au lien et le logo se retrouve 6px plus haut que téléphone et burger. */
  .header .hedear-responsive > .logo-responsive a { display: flex; align-items: center; justify-content: flex-start; height: auto; }
  .header .hedear-responsive > .logo-responsive a img { display: block; width: auto !important; height: 38px; max-width: 170px; }
  .header .hedear-responsive > .contact-conseil-responsive { order: 2; flex: 0 0 auto; width: auto; max-width: none; margin-right: 12px; }
  .header .hedear-responsive > .btn-menu-responsive { order: 3; flex: 0 0 auto; width: auto; max-width: none; display: flex; align-items: center; justify-content: flex-end; }
  /* Le bouton du burger est en absolute top:11px dans son conteneur (ancien
     en-tête) : ses barres tombaient 11px plus bas que le téléphone et le logo. */
  .header .hedear-responsive > .btn-menu-responsive .btn-menu > button { top: 0 !important; }
  /* Ligne téléphone + horaires retirée de l'en-tête (demande du 17/09/2026) :
     le numéro reste accessible par le bouton rond (téléphone / WhatsApp / RDV). */
  .header .hedear-responsive > .tel-responsive { display: none !important; }

  /* Bandeau téléphone : numéro, horaires dessous */
  .hedear-responsive .tel-responsive.offset-2 a.tel-responsive__num { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: #fff; font: 700 15px/1.2 Montserrat, sans-serif; text-decoration: none; }
  .tel-responsive__num svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .hedear-responsive .tel-responsive .tel-responsive__hours { display: block; margin: 2px 0 0 22px; color: rgba(255, 255, 255, .85); font: 500 12.5px/1.3 Montserrat, sans-serif; }

  /* --- Barre du bas façon Dream Yacht --- */
  /* Barre du bas : fond pétrole de l'en-tête, rubriques à gauche, devis en
     pastille corail à droite (modèle validé le 17/09/2026). */
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; display: flex; align-items: center; gap: 2px; background: #003849; box-shadow: 0 -4px 18px rgba(0, 40, 52, .28); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); transform: translateY(115%); transition: transform .25s ease; }
  .mbar.is-visible { transform: none; }
  .open-menu .mbar { transform: translateY(115%); }
  .mbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 46px; padding: 4px 2px; border-radius: 10px; color: rgba(255, 255, 255, .9); font: 600 10.5px/1.15 Montserrat, sans-serif; text-align: center; text-decoration: none; }
  .mbar a span { color: inherit; }
  /* Icônes : police Phosphor du site (même famille que l'en-tête).
     map-pin et anchor ne sont déclarées que dans styles.min.css, pas dans le
     CSS commun à toutes les pages : on redonne ici leur glyphe (22/09/2026). */
  .mbar a .ph { font-family: Phosphor !important; font-style: normal; font-weight: 400; font-size: 22px; line-height: 1; color: inherit; }
  .mbar a .ph-map-pin::before { content: "\ebe0"; }
  .mbar a .ph-anchor::before { content: "\e917"; }
  .mbar a.is-active { color: #fff; background: rgba(255, 255, 255, .13); }
  .mbar a.mbar__devis { flex: 0 0 auto; min-height: 0; flex-direction: row; gap: 7px; padding: 11px 18px; border-radius: 40px; background: #f16846; color: #fff; font: 700 13.5px/1 Montserrat, sans-serif; }
  .mbar a.mbar__devis .ph { font-size: 17px; }
  .mbar a.mbar__devis.is-active { background: #d9542f; }
  .mbar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  /* Marge basse constante : la poser/retirer au défilement décalait la page et
     faisait clignoter la barre (22/09/2026). La classe est mise une fois au
     chargement, seul .is-visible bouge ensuite.
     Hauteur mesurée de la barre (62px) + encoche éventuelle du téléphone :
     une valeur fixe laissait 12px de vide ici et cachait le bas de page sur
     les iPhone à encoche. */
  body.has-mbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  @media (max-width: 379.98px) {
    .mbar { padding-left: 6px; padding-right: 6px; }
    .mbar a { font-size: 9.5px; }
    .mbar a .ph { font-size: 20px; }
    .mbar a.mbar__devis { padding: 10px 13px; font-size: 12.5px; }
  }
  /* Bouton cookies Axeptio (shadow DOM, bas gauche) : remonté au-dessus de la barre.
     Le transform fait du conteneur la référence de ses éléments position:fixed. */
  body.has-mbar #axeptio_overlay { position: fixed !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; height: 0 !important; transform: translateZ(0) !important; }

  /* --- Accueil : premier écran (seulement si le texte d'intro est saisi) --- */
  /* Bloc calé juste sous l'en-tête (retours client 16/09/2026) : collé en bas,
     il laissait 200 px de photo vide sous l'en-tête sur un grand écran. */
  /* Hauteur calée sur le contenu : plus de photo vide sous les pictos
     (retour du 17/09/2026). L'image est recadrée d'autant. */
  .slider.home-m { position: relative; min-height: 0 !important; height: auto !important; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
  .slider.home-m .slider__media { position: absolute !important; inset: 0; width: 100% !important; height: 100%; }
  /* L'ancien bouton « Décrire un projet » est forcé en display:block!important par un sélecteur #home-page du CSS critique */
  #home-page .slider.home-m .slider__media .topDemandeCroisiere,
  .slider.home-m .slider__media .topDemandeCroisiere { display: none !important; }
  /* Voile pétrole : le texte blanc passe devant l'eau turquoise, très claire.
     Le dégradé d'origine s'éclaircissait au milieu (texte alors calé en bas). */
  .slider.home-m::after { background: linear-gradient(180deg, rgba(0, 40, 52, .80) 0%, rgba(0, 40, 52, .66) 38%, rgba(0, 40, 52, .60) 64%, rgba(0, 40, 52, .82) 100%); }
  .slider.home-m .slider__media img { filter: saturate(.9) brightness(.9); }
  /* Le thème décale .slider__content de top:250px en mobile : on le cale en bas de l'écran */
  .slider.home-m .slider__content { position: relative !important; top: auto !important; bottom: auto !important; margin: 0 !important; z-index: 2; width: 100%; padding: 150px 18px 46px; text-align: left; overflow: visible; }
  /* 70px = hauteur de l'en-tête (sans la ligne téléphone), + 54px de respiration. */
  .slider.home-m .slider__content { padding-top: 124px; }
  .slider.home-m .slider__content__form { padding: 0 !important; }
  /* Le H1 reste dans la page (référencement) ; l'accroche du client le remplace à l'écran */
  .slider.home-m .slider__content__form > h1 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .slider.home-m #croisieres-destinations-filtre-form,
  .slider.home-m .slider__content__lien { display: none !important; }

  /* Bloc d'accroche centré, sur-titre en corail, plus aéré (22/09/2026). */
  .home-m-intro .home-hero__kicker { margin: 0 0 26px; color: #f16846; font: 700 12px/1.55 Montserrat, sans-serif; letter-spacing: .11em; text-transform: uppercase; text-align: center; }
  .home-m-intro .home-hero__title { margin: 0 0 22px; color: #fff; font-family: SangBleuSunrise-Medium, Georgia, serif; font-size: 29px; font-weight: 400; line-height: 1.12; text-align: center; }
  .home-m-intro .home-hero__text { margin: 0; color: #fff; font: 400 15px/1.55 Montserrat, sans-serif; text-align: center; }
  .home-m-intro strong { color: #fff; font-weight: 700; }

  /* Boutons centrés comme le texte d'accroche, plus aérés (22/09/2026). */
  .home-m-cta { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 42px 0 42px; }
  .home-m-cta a.home-m-cta__main { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 40px; background: #f16846; color: #fff; font: 700 16px/1 Montserrat, sans-serif; text-decoration: none; box-shadow: 0 6px 18px rgba(241, 104, 70, .35); }
  .home-m-cta a.home-m-cta__main:hover { background: #d9542f; }
  .home-m-cta a.home-m-cta__main span, .home-m-cta a.home-m-cta__second span { color: inherit; }
  .home-m-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .home-m-cta a.home-m-cta__second { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 600 15px/1.2 Montserrat, sans-serif; text-decoration: underline; text-underline-offset: 4px; }

  .home-m-pictos { list-style: none; margin: 0 -6px; padding: 30px 0 10px; border-top: 1px solid rgba(255, 255, 255, .28); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .home-m-pictos li { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 0; padding: 0; text-align: center; color: #fff; font: 600 10.5px/1.25 Montserrat, sans-serif; }
  .home-m-pictos li span { color: #fff; }
  /* Premier écran : fond pétrole, donc version blanche des mêmes pictos. */
  .home-m-pictos svg { width: 30px; height: 30px; --color1: #fff; --color2: #fff; background-repeat: no-repeat; background-position: center; background-size: contain; }
  .home-m-pictos svg > * { display: none; }
  .home-m-pictos li:nth-child(1) svg { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/blanc/leader.png"); }
  .home-m-pictos li:nth-child(2) svg { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/blanc/tout-inclus.png"); }
  .home-m-pictos li:nth-child(3) svg { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/blanc/cuisine-locale.png"); }
  .home-m-pictos li:nth-child(4) svg { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/blanc/pavillon-francais.png"); }
  .home-m-pictos li:nth-child(5) svg { background-image: url("/themes/custom/catlante/dist/assets/stylesheets/../images/pictos/blanc/eco-responsable.png"); }

  /* --- Liste des croisières : le bloc téléphone/e-mail passe après les
     croisières (il s'intercalait entre les filtres et les résultats, soit
     ~180px avant la première croisière). 20/09/2026. --- */
  .page-lisitng-croisiere .row > .sidebar { display: contents; }
  .page-lisitng-croisiere .row > .sidebar > * { flex: 0 0 100%; max-width: 100%; }
  .page-lisitng-croisiere .row > .sidebar > .filter { order: 1; }
  .page-lisitng-croisiere .row > .content { order: 2; }
  .page-lisitng-croisiere .row > .sidebar > .block { order: 3; margin-top: 24px; }

  /* --- Accueil : les 5 pictos « Bien plus qu'une location » sur deux colonnes
     (ils s'empilaient sur 650px de haut). Le dernier prend toute la largeur.
     20/09/2026. --- */
  .voiyager-catalante__content { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .voiyager-catalante__content > .voiyager-catalante__content-bloc { width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important; padding: 0 6px !important; }
  .voiyager-catalante__content > .voiyager-catalante__content-bloc:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .voiyager-catalante__content .icon { width: 42px; height: 42px; }
  .voiyager-catalante__content .paragraph p { font-size: 13.5px; line-height: 1.35; }

  /* --- Accueil : espaces resserrés, Inspirations masquées --- */
  .path-frontpage .section-color,
  .path-frontpage .ilsparlent,
  .path-frontpage #block-catlante-commentcamarche { padding-top: 34px !important; padding-bottom: 34px !important; }
  .path-frontpage .section-color .title.space-20,
  .path-frontpage .ilsparlent .title.space-20 { margin-bottom: 14px !important; }
  /* « Ils parlent de leur croisière CATLANTE Catamarans » tient sur deux lignes
     en mobile : l'interligne de 1.35 du thème les écartait trop (28/09/2026). */
  .path-frontpage .ilsparlent .title h2 { line-height: 1.15; }
  .path-frontpage .section-cruise-for-you { display: none !important; }

  /* Séparateurs manquants dans le menu déroulant (02/10/2026).
     core.css trace le trait avec « .menu-item:not(:last-child) ». Or
     menu-levels.html.twig choisit entre « menu-item » et « item » d'après
     « items|first.menu_level », c'est-à-dire le niveau du PREMIER élément de
     la liste et non de l'élément courant : deux rubriques repliées sortent
     avec « menu-item--collapsed » seul et perdaient donc leur trait (« La
     différence CATLANTE » et « Croisière privatisée »). On rétablit le trait
     sans toucher au gabarit, dont la logique sert aussi aux sous-menus. */
  .menu-item--collapsed:not(:last-child) { border-bottom: 1px solid #2b2c3e; }
}

/* Source and licensing information for the above line(s) can be found at https://www.catlante-catamarans.com/themes/custom/catlante/dist/assets/stylesheets/mobile-ux.css. */