﻿/* Affichage mobile : logo proche du bord droit, juste avant l'unique hamburger. */
@media (max-width: 1100px) {
  body > header.lcc-final-header .lcc-final-bar {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,max-content) 48px !important;
    column-gap: 4px !important;
    justify-items: stretch !important;
    align-items: center !important;
    padding-inline: clamp(7px,2vw,14px) !important;
    min-height: 82px !important;
    height: 82px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body > header.lcc-final-header .lcc-final-brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    width: min(72vw, 315px) !important;
    max-width: calc(100vw - 78px) !important;
    min-width: 0 !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
  }
  body > header.lcc-final-header .lcc-final-brand > img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 88px !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center right !important;
    margin: 0 !important;
    transform: translateY(-4px) !important;
  }
  body > header.lcc-final-header .lcc-final-name,
  body > header.lcc-final-header .lcc-final-menu,
  body > header.lcc-final-header .site-menu-button,
  body > header.lcc-final-header #site-menu-button,
  body > header.lcc-final-header .site-mobile-nav { display:none !important; }
  body > header.lcc-final-header .lcc-final-bar > .lcc-r-menu-button {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 30001 !important;
    min-width: 48px !important;
    max-width: 48px !important;
    width: 48px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 8px !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0 !important;
  }
  body > header.lcc-final-header .lcc-r-menu-button > span { display:none !important; }
  body > header.lcc-final-header .lcc-r-menu-button svg { display:block !important; width:25px !important; height:25px !important; pointer-events:none !important; }
  body > .lcc-r-nav.open { display:flex !important; visibility:visible !important; }
  body > .lcc-r-scrim.open { display:block !important; }
}
@media (max-width: 360px) {
  body > header.lcc-final-header .lcc-final-bar {
    grid-template-columns: minmax(0,1fr) minmax(0,max-content) 43px !important;
    height: 74px !important; min-height: 74px !important;
    column-gap: 3px !important;
  }
  body > header.lcc-final-header .lcc-final-brand {
    width: min(72vw, 250px) !important;
    max-width: calc(100vw - 64px) !important;
    height: 62px !important;
  }
  body > header.lcc-final-header .lcc-final-brand > img { height: 80px !important; }
  body > header.lcc-final-header .lcc-final-bar > .lcc-r-menu-button {
    width:43px !important; max-width:43px !important; min-width:43px !important;
    height:43px !important; min-height:43px !important;
  }
}

/* Accueil mobile : separer physiquement le texte et la premiere photo.
   La photo est affichee en entier, et sa legende ne la masque plus. */
@media (max-width: 767px) {
  body[data-lcc-page="accueil"] .lcc-final-intro {
    position:relative !important;
    height:auto !important;
    min-height:0 !important;
    overflow:visible !important;
    margin-bottom:0 !important;
  }
  body[data-lcc-page="accueil"] .lcc-accueil-contenu {
    position:relative !important;
    height:auto !important;
    min-height:0 !important;
    overflow:visible !important;
  }
  body[data-lcc-page="accueil"] .lcc-accueil-presentation {
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    height:auto !important;
    margin-bottom:24px !important;
    padding-bottom:0 !important;
    transform:none !important;
  }
  body[data-lcc-page="accueil"] .lcc-accueil-photo {
    display:block !important;
    position:relative !important;
    z-index:1 !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:auto !important;
    margin:24px 0 0 !important;
    transform:none !important;
    clear:both !important;
    overflow:hidden !important;
    border-radius:12px !important;
  }
  body[data-lcc-page="accueil"] .lcc-accueil-photo > img {
    display:block !important;
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    object-fit:contain !important;
    transform:none !important;
  }
  body[data-lcc-page="accueil"] .lcc-accueil-photo > figcaption {
    position:static !important;
    display:flex !important;
    width:100% !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:12px 14px !important;
    border-radius:0 0 12px 12px !important;
    background:#fff !important;
  }
}