  :root {
    --brown: #8f6e5d;
    --blue: #73dbdf;
    --dark: #513a31;
    --light: #f5f2ef;
    
    /* Font families */
    --font-title: 'Sorts Mill Goudy', serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-logo: 'Montserrat', sans-serif;
  }

  /* Global styles */
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: var(--font-body);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  main {
    flex: 1;
  }
  
  h1, h2, h3:not(.galerie-carousel > h3) {
    font-family: var(--font-title);
    /* color: var(--brown); */
  }

  h2 {
    font-size: 1.8rem;
  }

  h3:not(.galerie-carousel > h3) {
    font-size: 1.3rem;
  }

  .galerie-carousel > h3 {
    font-size: 1rem;
  }

  a {
    text-decoration: none;
  }

  img.zoomable-image {
    height: auto;
    max-width: 100%
  }



  .btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    margin-right: 15px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .btn-primary {
    background: var(--brown);
    color: white;
  }

  .btn-primary:hover {
    background: #a67f6c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 110, 93, 0.4);
  }
  
  .btn-secondary {
    background: var(--blue);
    color: #003333;
  }

  .btn-secondary:hover {
    background: #5cdfe3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(115, 219, 223, 0.4);
  }
  
  .container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
  }

  @media screen and (max-width: 1024px) {
    .container {
      width: 90%;
      max-width: 1200px;
      margin: auto;
    }
  }

  p {
    font-size: 1.10rem;
  }

  .section {
    padding: 70px 0;
    scroll-margin-top: calc(var(--header-h, 110px) + 50px);
  }

  .section.light {
    background: var(--light);
  }

  .center-text {
    text-align: center;
  }

  .hide {
    display: none !important;
  }

  /* Breadcrumb */
  .breadcrumb {
    background: var(--dark);
    padding: 12px 0;
    position: sticky;
    top: var(--header-h, 110px);
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
  }

  .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
  }

  .breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .breadcrumb-list li:not(:last-child)::after {
    content: '|';
    color: rgba(255, 255, 255, 0.4);
  }

  .breadcrumb-list a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
  }

  .breadcrumb-list a:hover {
    color: var(--blue);
  }

  .breadcrumb-list .active {
    color: var(--blue);
    font-weight: 600;
  }

  /* Media section styles */

  /* h2 placé juste avant une media-section (hors .media-content) */
  h2 + .media-section {
    margin-top: 0;
  }

  h2:has(+ .media-section) {
    margin-top: 0;
    margin-bottom: 0.75rem;
  }

  .media-section {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 0;
  }

  .media-section .media-content {
    flex: 1;
  }

  .media-image-landscape {
    flex: 0 0 var(--img-basis, 340px);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .media-section--img-left-narrow .media-image-landscape {
    flex: 0 0 var(--img-basis, 200px);
  }

  .media-image-portrait {
    height: var(--img-height, 400px);
    display: flex;
    justify-content: center;
  }

  .media-image-landscape img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .media-image-portrait img {
    width: auto;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .media-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .media-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
  }

  .media-content ul {
    margin-top: 1rem;
    padding-left: 20px;
  }

  .media-content ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
  }

  b.reference {
    text-decoration: underline;
  }
  
  b.reference:hover {
    cursor: help;
  }

  .tippy-box {
    background-color: var(--light);
    border-radius: 1em;
    color: #333;
    box-shadow: 0px 0px 8px rgba(0,0,0,.2);
  }

  .tippy-arrow {
    color: var(--light);
  }
  /* End Media section styles */

  /* Images sous texte (conservative / esthétique) */
  .prestations-imgs {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .prestations-imgs figure {
    flex: 0 0 var(--img-basis, 340px);
    max-width: 400px;
    margin: 0;
  }

  .prestations-imgs img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* Blockquote */
  .blockquote-wrapper {
    text-align: center;
    margin: 30px 0;
    font-size: 1.1rem;
  }

  .blockquote-wrapper .quote {
    font-size: inherit;
    padding: 0;
  }

  /* Responsive shared components */
  @media screen and (max-width: 1024px) {
    .media-section--img-left,
    .media-section--img-right,
    .media-section--img-left-narrow {
      flex-direction: column !important;
      align-items: center;
      gap: 20px;
    }

    .media-image-landscape {
      flex-basis: auto; /* reset du px pour le mode column */
      width: var(--img-basis-sm, 340px);
      height: auto;
    }

    .media-image-portrait {
      width: var(--img-basis-sm, 250px);
      height: var(--img-height-sm, 300px);
    }

    .media-image-landscape,
    .media-image-portrait {
      margin: 0 auto;
    }

    .prestations-imgs figure {
      flex: 0 0 var(--img-basis-sm, 280px);
    }

    /* En mobile, image paysage en premier */
    .media-section--img-right .media-image-landscape {
      order: -1;
    }

    /* Portrait explicitement après le contenu (order: 0 par défaut) */
    .media-section--img-right .media-image-portrait {
      order: 2;
    }

    /* Portrait avant le contenu uniquement pour prestations */
    .media-section--portrait-first .media-image-portrait {
      order: -1;
    }

    .media-content h2,
    .media-content h3 {
      text-align: center;
    }
  }

  /* End Global styles */

  /* Header styles */
  
  .header {
    background: var(--dark);
    color: white;
    height: 110px;
    box-shadow: 0px 0px 8px rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
  }

  /* Bouton hamburger (masqué par défaut) */
  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }

  .mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
  }
  
  .site-title {
    /* font-family: 'Playfair Display', serif; */
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
  }

  .site-title a img {
    height: 80px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    display: block;
  }




  .header-content .main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }

  .header-content .site-title a, .header-content .main-nav a {
    color: #F6F6F6;
    font-size: 1.2rem;
    transition: all 0.3s ease;
  }

  .header-content .main-nav a:hover,
  .header-content .main-nav a.active {
    color: var(--blue);
    transform: translateY(-2px);
  }

  .header-content .main-nav a.active {
    border-bottom: 2px solid var(--blue);
    padding-bottom: 2px;
  }

  /* Dropdown menu */
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .nav-chevron {
    font-size: 0.7rem !important;
    padding: 0 !important;
    transition: transform 0.3s ease;
  }

  .nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 4px 4px;
    z-index: 100;
    padding: 8px 0;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    font-size: 1rem !important;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Social links in header */
  .social-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: 2rem;
  }

  .social-links a {
    color: #F6F6F6;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
  }

  .social-links a:hover {
    color: var(--blue);
    transform: scale3d(1.08, 1.08, 1) translateZ(0);
  }

  .social-links i {
    font-size: 1.8rem;
    padding: 0;
  }

  /* Masquer les liens sociaux mobiles en desktop */
  .mobile-social-links {
    display: none;
  }

  i {
    font-size: 1.8em;
    padding: 0 0 0 5px;
  }

  /* Responsive menu mobile */
  @media screen and (max-width: 1024px) {
    .header {
      height: auto;
      min-height: 80px;
    }


    .header-content {
      flex-wrap: wrap;
      padding: 10px 0;
    }

    .site-title {
      flex: 1;
    }

    .site-title a img {
      height: 75px;
      margin: 5px 0;
    }

    /* Afficher le bouton hamburger */
    .mobile-menu-toggle {
      display: flex;
      order: 2;
      margin-right: 10px;
    }

    /* Masquer les liens sociaux desktop en mobile */
    .social-links {
      display: none;
    }

    /* Liens sociaux dans le menu mobile - masqués par défaut */
    .mobile-social-links {
      display: none;
    }

    /* Menu navigation en mobile - MASQUÉ PAR DÉFAUT */
    .main-nav {
      display: none !important;
      flex-direction: column;
      width: 100%;
      order: 3;
      gap: 0;
      background: var(--dark);
      padding: 20px 0;
      margin-top: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Afficher le menu quand la classe active est ajoutée */
    .main-nav.active {
      display: flex !important;
    }

    .main-nav a,
    .header-content .main-nav a {
      display: block;
      width: 100%;
      padding: 15px 20px;
      font-size: 1.1rem;
      text-align: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      box-sizing: border-box;
    }

    /* Dropdown en mobile : affiché inline */
    .nav-dropdown {
      width: 100%;
    }

    .nav-dropdown-toggle {
      display: block;
      padding: 15px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      text-align: center;
    }

    .nav-dropdown-menu {
      position: static;
      box-shadow: none;
      background: rgba(255, 255, 255, 0.05);
      padding: 0;
      display: none;
      width: 100%;
      min-width: 0;
    }

    .nav-dropdown-menu.active {
      display: block;
    }

    .nav-dropdown-menu a {
      padding: 12px 20px;
      font-size: 1rem !important;
      text-align: center;
      white-space: normal;
    }

    /* Afficher les liens sociaux dans le menu mobile */
    .main-nav.active .mobile-social-links {
      display: flex;
      justify-content: center;
      gap: 2rem;
      padding: 20px;
      margin-top: 10px;
    }

    .mobile-social-links a {
      color: #F6F6F6;
      font-size: 1.8rem;
      padding: 0;
      border: none !important;
      transition: color 0.2s ease, transform 0.2s ease;
      will-change: transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-font-smoothing: antialiased;
    }

    .mobile-social-links a:hover {
      color: var(--blue);
      transform: scale3d(1.08, 1.08, 1) translateZ(0);
    }

    .mobile-social-links i {
      font-size: 1.8rem;
    }
  }
  
  /* Landing page styles */
  .hero {
    height: 80vh;
    position: relative;
    /* overflow:hidden + filter:blur sur enfant = zoom iOS → remplacé par clip-path */
    clip-path: inset(0);
    display: flex;
    flex-direction: column;
    /* Layer GPU unique pour tout le hero : évite le zoom au scroll sur iOS/WebKit */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Add a pseudo-element for the background image,
  needed to blur only the image, not the div contents */
  .hero::before {
    content: "";
    position: absolute;
    inset: -10px;   /* déborde de 10px pour masquer l'auréole du blur sur les bords */
    background: url("../images/hero.jpg") center/cover no-repeat;
    filter: blur(4px);
    z-index: 0;
  }
  
  .hero-overlay {
    background: rgba(0,0,0,0.4);
    flex: 1;            /* remplit toute la hauteur du hero (flex parent) */
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  
  .hero-content {
    color: white;
  }
  
  .hero-content h1 {
    color: white;
    font-size: 2.8rem;
  }

  .hero-content p {
    font-family: var(--font-title);
    font-size: 1.3rem;
  }
  
  .hero-buttons {
    margin-top: 25px;
  }
  
  .map-wrapper iframe {
    width: 100%;
    height: 600px;
    border: 0;
    border-radius: 6px;
  }
  
  .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
    justify-content: center;
  }
  
  .card {
    background: white;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    will-change: transform;
    flex: 1 1 220px;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  

  .card-img {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    margin: 0 auto 15px;
  }

  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
  }

  .footer-info {
    line-height: 1.6;
  }

  .footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }

  .footer-social a {
    color: white;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-social a:hover {
    color: var(--blue);
    transform: scale(1.1);
  }

  .footer-social i {
    font-size: 1.5rem;
    padding: 0;
  }

  @media screen and (max-width: 1024px) {
    .footer-content {
      flex-direction: column;
      text-align: center;
      gap: 20px;
    }
  }
  /* End Landing page styles */

  /* Carousel styles */
  .slider {
    position: relative;
    margin: auto;
    min-width: 250px;
    max-width: 1100px;
  }

  .slider_slides-cont {
    position: relative;
    overflow: hidden;
  }

  /* Bandeau interne créé par JS — même principe que galerie-carousel */
  .slider_track {
    display: flex;
    transition: transform 0.38s ease;
    will-change: transform;
  }

  .slider_slide {
    flex: 0 0 100%;
    min-width: 0;
  }

  .slider_slide img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    width: auto;
  }

  /* Legacy — plus utilisées pour l'animation (remplacées par le track),
     conservées en fallback no-JS */
  .displayed_slide { opacity: 1; }
  .hidden_slide { display: none; }

  .slider_footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding: 0 10px;
  }

  .slider_caption {
    flex: 1;
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    min-height: 1.4em;
    line-height: 1.4;
    margin: 0;
  }

  .slider_counter {
    font-size: 1.1rem;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
  }

  /* Boutons de navigation (prev/next) en overlay sur l'image */
  .slider_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .slider_nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }

  .slider_nav_prev {
    left: 20px;
  }

  .slider_nav_next {
    right: 20px;
  }

  @media screen and (max-width: 1024px) {
    .slider_slide img {
      width: 100%;
    }

    /* Sortir le slider du container pour occuper toute la largeur */
    .slider {
      width: 100vw;
      position: relative;
      left: 50%;
      transform: translateX(-50%);
    }

    /* Boutons de navigation plus petits en mobile */
    .slider_nav {
      width: 40px;
      height: 40px;
      font-size: 2rem;
    }

    .slider_nav_prev {
      left: 10px;
    }

    .slider_nav_next {
      right: 10px;
    }
  }
  /* End Carousel styles */

/* ============================================================
   Styles partagés — éléments communs aux deux carousels
   ============================================================ */

/* Boutons navigation prev/next */
.slider_nav,
.galerie-carousel__btn {
  background: rgb(230, 233, 236);
  border: none;
  width: 48px;
  height: 48px;
  font-size: 2.4rem;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  border-radius: 50%;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #333;
  transition: opacity 0.2s ease, transform 0.2s ;
}

/* ============================================================
   Fin Styles partagés
   ============================================================ */

  /* Contact styles */
  .alert {
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    border-radius: 4px;
    box-shadow: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.43;
    letter-spacing: 0.01071em;
    background-color: transparent;
    color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    padding: 6px 16px;
    margin-bottom: 25px;
    padding: 16px;
}

.error_alert {
    border: 1px solid rgb(229, 115, 115);   
    background-color: rgb(229, 115, 115);
}

.success_alert {
    border: 1px solid rgb(129, 199, 132);
    background-color: rgb(129, 199, 132);
}

.form-group-inline {
  display: flex;
}

.col-md-6 {
  flex: 0 0 auto;
  width: 50%;
}

.mb-10 {
  margin-bottom: 10px !important;
}

textarea {
  flex: 0 0 auto;
}

input:not([type="submit"], [type="radio"], [type="file"]), textarea {
  width: 75%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #333;
  transition: border-color 0.2s ease;
}

input:not([type="submit"], [type="radio"], [type="file"]):focus, textarea:focus {
  outline: none;
  border-color: var(--brown);
}

input[type="file"] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
}

input[type="file"]::file-selector-button {
  padding: 7px 14px;
  background: var(--light);
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #444;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(115, 219, 223, 0.18);
  border-color: var(--blue);
}


/* ============================================================
   Galerie — carousel multi-photos par groupe (sans autoplay)
   ============================================================ */

/* Liste de sections sans puces */
.galerie-section-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.galerie-section-list > li {
  margin-bottom: 40px;
}

/* Titres h3/h4 à l'intérieur d'un carousel */
.galerie-carousel h3,
.galerie-carousel h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Conteneur principal du carousel */
.galerie-carousel {
  padding: 14px;
  max-width: 100%;
  overflow: hidden;
}

/* Zone de défilement : clip horizontal */
.galerie-carousel__slides-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

/* Bandeau interne créé par JS : flex row non wrappant */
.galerie-carousel__track {
  display: flex;
  gap: 10px;
  transition: transform 0.38s ease;
  will-change: transform;
}

/* Chaque slide : largeur calculée par JS, hauteur fixe uniforme */
.galerie-carousel__slide {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  /* width injectée via JS */
}

/* Sélecteur renforcé (0,2,1) pour surpasser img.zoomable-image (0,1,1) */
.galerie-carousel .galerie-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Flèches : en overlay sur les côtés du bandeau */
.galerie-carousel__btn {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
}

.galerie-carousel__btn:hover {
  opacity: 1;
  transform: scale(1.07);
}

.galerie-carousel__btn--prev { left: 6px; }
.galerie-carousel__btn--next { right: 6px; }

/* Caption + footer */
.galerie-carousel__info {
  margin-top: 10px;
}

.galerie-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.galerie-carousel__caption {
  display: none;
}

.galerie-carousel__slide-caption {
  margin: 6px 0 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.4;
  text-align: center;
}

.galerie-carousel__counter {
  font-size: 0.82rem;
  color: #555;
  white-space: nowrap;
  min-width: 3.5em;
  font-weight: 600;
}

/* Séparateur entre groupes */
.galerie-section-list hr.section_delim,
.section_delim {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* ── Responsive mobile ──
   Sur mobile : largeur min plus petite → 2 slides visibles généralement.
   Hauteur plus grande pour les photos en portrait. */
@media screen and (max-width: 768px) {
  .galerie-carousel .galerie-carousel__slide img {
    max-height: 78vw;  /* ratio portrait, adapté aux œuvres verticales */
  }

  .galerie-carousel__btn {
    width: 36px;
    height: 36px;
    font-size: 1.9rem;
  }
}
/* ============================================================
   Fin Galerie carousel
   ============================================================ */

/* ============================================================
   Responsive mobile (≤ 768px) — passe générale
   ============================================================ */

@media screen and (max-width: 768px) {

  /* ── Hero ── */
  .hero {
    height: 340px;       /* fallback navigateurs sans svh */
    height: 60svh;       /* stable : ne grossit pas quand la barre iOS disparaît */
    min-height: 340px;
  }

  /* Padding vertical pour que le contenu ne touche pas les bords du hero */
  .hero-overlay {
    padding: 30px 0;
    align-items: flex-start;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-top: 0;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-buttons .btn {
    margin-right: 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }

  /* ── Sections ── */
  .section {
    padding: 40px 0;
  }

  /* ── Media images ── */
  .media-image-landscape img {
    width: 100%;
    height: auto;
  }

  /* ── Contact form : une colonne ── */
  .form-group-inline {
    flex-direction: column;
  }

  .col-md-6 {
    width: 100%;
  }

  input:not([type="submit"], [type="radio"]),
  textarea {
    width: 100%;
    box-sizing: border-box;
  }

  textarea {
    flex: 1 1 auto;
  }


  /* ── Counter sous la légende (realisations / galerie) ── */
  .slider_footer,
  .galerie-carousel__footer {
    flex-direction: column;
    gap: 4px;
  }

  .slider_caption {
    flex: none;
    width: 100%;
  }

  .slider_counter,
  .galerie-carousel__counter {
    text-align: center;
  }

  /* ── Breadcrumb ── */
  .breadcrumb-list {
    font-size: 0.78rem;
    gap: 6px;
  }

  /* ── Footer ── */
  .footer-content {
    gap: 16px;
  }
}

/* ============================================================
   Overlay hover sur images zoomables
   ============================================================ */

:has(> img.zoomable-image) {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

:has(> img.zoomable-image)::after {
  content: 'Agrandir';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  color: white;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease;
  pointer-events: none;
}

:has(> img.zoomable-image):hover::after {
  opacity: 1;
  background: rgba(0, 0, 0, 0.38);
}

/* Masquer "Agrandir" quand l'utilisateur est en train de scroller (touch) */
body.touch-scrolling :has(> img.zoomable-image)::after {
  opacity: 0 !important;
}

/* ============================================================
   Modale plein écran
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
  transition: background 0.25s ease;
}

.modal-overlay--visible {
  background: rgba(0, 0, 0, 0.88);
}

.modal-overlay--closing {
  background: rgba(0, 0, 0, 0) !important;
}

.modal-container {
  position: relative;
  cursor: default;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img {
  display: block;
  max-width: 90vw;
  max-height: calc(90vh - 3rem);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.modal-caption {
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 10px 0 0;
  max-width: 90vw;
  line-height: 1.4;
}

.modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brown);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.modal-close:hover {
  background: var(--dark);
  transform: scale(1.12);
}

@media screen and (max-width: 768px) {
  .modal-close {
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

}

/* ── Custom file input (admin) ── */
.custom-file-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-file-input {
  position: absolute;
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
  overflow: hidden;
  z-index: -1;
}

.custom-file-btn {
  cursor: pointer;
  display: inline-block;
  padding: 5px 14px;
  background: #e9e9e9;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 0.88rem;
  white-space: nowrap;
  user-select: none;
}

.custom-file-btn:hover {
  background: #d5d5d5;
}

.custom-file-name {
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
}
