:root {
      --gres:        #c57d62;   /* Rose poudré doux (Capture 173319) */
      --gres-clair:  #d9b2a9;   /* Version plus lumineuse */
      --gres-sombre: #825750;   /* Version sombre pour le texte et le contraste */
      --creme:       #f6ead8;   /* Fond clair */
      --creme-ombre: #eedcc5;   /* Sections alternées */
      --encre:       #393737;   /* Textes sur fond clair */
      --encre-douce: #393737;
      --filet:       #ddc4ab;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }
    body {
      font-family: 'EB Garamond', Georgia, serif;
      font-size: 1.16rem;
      line-height: 1.66;
      background: var(--creme);
      color: var(--encre);
    }
    h1, h2, h3 { font-family: 'Marcellus', serif; font-weight: 400; line-height: 1.15; }
    a { color: var(--gres-sombre); }
    .wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
    .eyebrow {
      display: block; font-family: 'Public Sans', sans-serif;
      font-size: 0.76rem; font-weight: 600; letter-spacing: 0.28em;
      text-transform: uppercase; color: var(--gres-sombre); margin-bottom: 14px;
    }

    /* ---------- Navigation ---------- */
    header {
      position: sticky; top: 0; z-index: 50;
      background: var(--encre);
      border-bottom: 1px solid var(--gres-sombre);
    }
    .nav {
      display: flex; align-items: center; justify-content: space-between;
      max-width: 1100px; margin: 0 auto; padding: 15px 24px; gap: 28px;
    }
    .brand {
      display: flex; align-items: center; gap: 12px;
      font-family: 'Marcellus', serif; font-size: 1.15rem; letter-spacing: 0.05em;
      text-decoration: none; color: var(--creme);
    }
    .brand .brand-badge {
      display: flex; align-items: center; justify-content: center;
      flex: none; width: 40px; height: 40px; border-radius: 50%;
      background: none; box-shadow: none;
    }
    .brand .brand-badge img { width: 45px; height: 45px; object-fit: contain; display: block; filter: url(#tint-creme); }
    nav ul { display: flex; gap: 14px; list-style: none; }
    nav ul a {
      font-family: 'Public Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
      text-decoration: none; color: #f3dfc9;
      border-bottom: 2px solid transparent; padding-bottom: 3px;
      transition: color 0.2s, border-color 0.2s;
    }
    nav ul a:hover, nav ul a:focus-visible { color: #fff; border-bottom-color: var(--creme); }
    .burger {
      display: none; background: none; border: 1px solid rgba(246, 234, 216, 0.5);
      border-radius: 4px; padding: 8px 12px; font-size: 1.1rem;
      color: var(--creme); cursor: pointer;
    }

    /* ---------- Sélecteur de langue ---------- */
    .lang-switch {
      display: inline-flex; align-items: center; gap: 6px;
      margin-left: 2px; padding-left: 12px;
      border-left: 1px solid rgba(246, 234, 216, 0.25);
      font-family: 'Public Sans', sans-serif; font-size: 0.78rem; font-weight: 600;
      white-space: nowrap;
    }
    .lang-switch .lang-current { color: #fff; }
    .lang-switch a { color: #f3dfc9; text-decoration: none; border-bottom: none; padding-bottom: 0; display: inline-flex; align-items: center; }
    .lang-switch a:hover, .lang-switch a:focus-visible { color: #fff; text-decoration: underline; }
    .flag-icon {
      display: block; width: 22px; height: 15px; border-radius: 2px;
      box-shadow: 0 0 0 1px rgba(246, 234, 216, 0.35);
    }
    .lang-switch a:hover .flag-icon, .lang-switch a:focus-visible .flag-icon {
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
    }
    @media (max-width: 1000px) {
      .lang-switch {
        border-left: none; padding-left: 0; margin-left: 0;
        border-top: 1px solid rgba(246, 234, 216, 0.2);
        padding-top: 10px; margin-top: 4px;
      }
    }

    /* ---------- Hero : le mur de grès texturé ---------- */
    /* Utilise la capture 173413 en arrière-plan avec un overlay progressif pour lisibilité */
    .hero {
      position: relative;
      background: linear-gradient(165deg, rgba(138, 87, 77, 0.85) 0%, rgba(100, 55, 47, 0.9) 100%),
                  url('../images/texture-gres.jpg') center/cover no-repeat;
      color: var(--creme);
      text-align: center;
      padding: 94px 24px 102px;
    }
    /* Photo des ruines en fond du hero d'accueil, avec voile renforcé pour la lisibilité des titres */
    #accueil.hero {
      background: none;
      isolation: isolate;
      padding: 110px 24px 120px;
      box-shadow: inset 0 0 0 7px var(--gres);
    }
    #accueil.hero::before,
    #accueil.hero::after {
      content: "";
      position: absolute; inset: 0;
      z-index: -1;
    }
    #accueil.hero::before {
      background: url('../images/index/hero-ruines.jpg') center 55% / cover no-repeat;
      filter: saturate(1.15) contrast(1.05);
    }
    #accueil.hero::after {
      background: linear-gradient(180deg, rgba(20, 12, 10, 0.15) 0%, transparent 30%, transparent 70%, rgba(20, 12, 10, 0.25) 100%);
    }
    .hero-panel {
      display: block;
      width: fit-content;
      max-width: 100%;
      margin: 0 auto;
      background: rgba(24, 14, 12, 0.36);
      backdrop-filter: blur(0px);
      -webkit-backdrop-filter: blur(6px);
      padding: 40px 56px;
      border-radius: 2px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    }
    @media (max-width: 640px) {
      .hero-panel { padding: 28px 24px; }
    }
    .hero .eyebrow { color: #f0cfb8; }
    .eyebrow .ordinal { text-transform: lowercase; }
    .hero h1 {
      font-size: clamp(2.6rem, 7vw, 5rem);
      letter-spacing: 0.03em;
      color: #fdf4e7;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }
    .hero .tagline {
      font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.45rem);
      color: #f2dcc6; max-width: 560px; margin: 16px auto 0;
    }
    .hero .tagline + .tagline { margin-top: 2px; }
    /* Assises de pierre : trois filets clairs comme des joints de maçonnerie */
    .hero .assises { width: 120px; margin: 30px auto 0; }
    .hero .assises span {
      display: block; height: 1px; background: rgba(246, 234, 216, 0.55); margin-bottom: 7px;
    }
    .hero .assises span:nth-child(2) { width: 75%; margin-left: auto; margin-right: auto; }
    .hero .assises span:nth-child(3) { width: 45%; margin-left: auto; margin-right: auto; }
    
    .btn {
      display: inline-block; margin-top: 34px;
      font-family: 'Public Sans', sans-serif; font-size: 0.9rem; font-weight: 600;
      letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
      background: var(--creme); color: var(--gres-sombre);
      padding: 15px 36px; transition: background 0.2s, color 0.2s;
    }
    .btn:hover, .btn:focus-visible { background: #fff; }
    .btn.ghost {
      background: transparent; color: var(--gres-sombre);
      border: 1px solid var(--gres-sombre);
    }
    .btn.ghost:hover, .btn.ghost:focus-visible { background: var(--gres-sombre); color: var(--creme); }

    /* ---------- Bandeau horaires ---------- */
    .band {
      background: #5b7f3c; /* Couleur de fond du bandeau d'info sur la page d'accueil */
      color: #fff;
      text-align: center;
      padding: 18px 24px;
      font-size: 1.3rem;
      font-weight: 500;
      line-height: 1.5;
      box-shadow: 0 4px 12px rgba(0,0,0,.15);
      border-top: 1px solid #000000;
      border-bottom: 1px solid #000000;
    }
    /* Chaque ligne du bandeau s'affiche sur sa propre ligne, sur tous les écrans.
       (Pour revenir à l'ancien affichage en une seule ligne séparée par " · " sur
       grand écran, remettre : .band-line { display: inline; } .band-sep { display: inline; }
       hors media query, et cacher .band-sep sous 640px.) */
    .band-line { display: block; }
    .band-sep { display: none; }

    .band strong {
      color: #fff;
      font-weight: 550;
    }

    /* ---------- Sections ---------- */
    section { padding: 92px 0; }
    section.alt { background: var(--creme-ombre); }

    .two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
    .two-col h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: 18px; }
    .two-col p + p { margin-top: 16px; color: var(--encre-douce); }
    
    /* Bloc photo utilisant la texture de grès comme fond */
    .photo {
      aspect-ratio: 1400 / 1460;
      overflow: hidden;
      box-shadow: 0 5px 18px rgba(0,0,0,0.07);
    }
    .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .history-media { display: flex; flex-direction: column; gap: 20px; }
    .history-media .photo { aspect-ratio: 1400 / 1460; }
    .history-media .photo:not(.photo-small) { max-width: 86%; margin: 0 auto; }
    .history-media .photo-small { aspect-ratio: 3 / 2; }
    .lightbox-trigger { cursor: pointer; position: relative; }
    .lightbox-trigger::after {
      content: "\2921"; position: absolute; top: 12px; right: 12px;
      width: 34px; height: 34px; border-radius: 50%;
      background: rgba(20, 12, 10, 0.55); color: #fff;
      display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
      opacity: 0; transition: opacity 0.2s;
    }
    .lightbox-trigger:hover::after, .lightbox-trigger:focus-visible::after { opacity: 1; }
    .link-btn {
      background: none; border: none; padding: 0; margin: 0;
      font: inherit; color: var(--gres-sombre); text-decoration: underline;
      cursor: pointer;
    }
    .link-btn:hover, .link-btn:focus-visible { color: var(--encre); }
    @media (max-width: 900px) {
      .history-media { flex-direction: row; }
      .history-media .photo, .history-media .photo-small { flex: 1; }
    }
    @media (max-width: 640px) {
      .history-media { flex-direction: column; }
    }

    /* ---------- Rubriques ---------- */
    .section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
    .section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: 12px; }
    .section-head p { color: var(--encre-douce); }
    .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .card {
      background: var(--creme);
      border-top: 4px solid var(--gres);
      box-shadow: 0 2px 10px rgba(58, 44, 38, 0.08);
      text-decoration: none; color: var(--encre);
      padding: 28px 24px 24px;
      display: flex; flex-direction: column;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .card:hover, .card:focus-visible {
      transform: translateY(-5px);
      box-shadow: 0 12px 26px rgba(138, 87, 77, 0.2);
    }
    .card h3 { font-size: 1.4rem; margin-bottom: 8px; }
    .card p { font-size: 1rem; color: var(--encre-douce); }
    .card .more {
      margin-top: 18px;
      font-family: 'Public Sans', sans-serif; font-size: 0.8rem; font-weight: 600;
      letter-spacing: 0.14em; text-transform: uppercase; color: var(--gres-sombre);
    }

    /* ---------- Infos pratiques ---------- */
    .infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
    .infos h3 {
      font-size: 1.3rem; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
      border-bottom: 2px solid var(--gres); padding-bottom: 8px;
    }
    .infos p { color: var(--encre-douce); }

    /* Badge discret Monument historique, dans le coin du hero */
    .hero .mh-badge {
      position: absolute; top: 20px; right: 24px;
      display: inline-flex; opacity: 0.85; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.4));
      transition: opacity 0.2s, transform 0.2s;
    }
    .hero .mh-badge img { display: block; width: 46px; height: 46px; }
    .hero .mh-badge:hover, .hero .mh-badge:focus-visible { opacity: 1; transform: scale(1.06); }
    @media (max-width: 640px) {
      .hero .mh-badge { top: 14px; right: 14px; }
      .hero .mh-badge img { width: 36px; height: 36px; }
    }

    /* Aperçu carte */
    .map-embed {
      margin-top: 48px; border: 1px solid var(--filet);
      box-shadow: 0 5px 18px rgba(0,0,0,0.07);
      aspect-ratio: 16 / 6; overflow: hidden;
    }
    .map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }
    @media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 5; } }

    /* Calendrier des animations */
    .calendar-embed {
      margin-top: 24px; border: 1px solid var(--filet);
      box-shadow: 0 5px 18px rgba(0,0,0,0.07);
      aspect-ratio: 4 / 3; overflow: hidden; background: #fff;
    }
    .calendar-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
    .calendar-fallback { margin-top: 14px; font-size: 0.92rem; color: var(--encre-douce); }
    @media (max-width: 640px) { .calendar-embed { aspect-ratio: 3 / 4; } }

    /* Album photo des animations */
    .gallery-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
      margin-top: 24px;
    }
    .gallery-item { display: flex; flex-direction: column; }
    .gallery-item .ph {
      aspect-ratio: 4 / 3;
      background: linear-gradient(150deg, rgba(217, 178, 169, 0.75), rgba(138, 87, 77, 0.85));
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.9); font-family: 'Public Sans', sans-serif;
      font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
      text-align: center; padding: 12px;
    }
    .gallery-item figcaption {
      margin-top: 10px; font-size: 0.92rem; color: var(--encre-douce);
    }
    .gallery-item figcaption strong { display: block; color: var(--gres-sombre); font-weight: 600; }
    @media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }

    /* ---------- Pied de page ---------- */
    footer { background: var(--gres-sombre); color: #ecd2c2; padding: 60px 0 30px; font-size: 1rem; }
    footer .footer-logo {
      display: flex; justify-content: center;
    }
    footer .footer-logo img { height: 96px; width: auto; object-fit: contain; }
    footer .cols {
      display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
      gap: 32px; margin-bottom: 40px;
    }
    footer .cols > div:last-child { text-align: right; }
    footer h3 { font-size: 1.2rem; color: #fbf0e3; margin-bottom: 12px; }
    footer a { color: #f6c9a8; text-decoration: none; }
    footer a:hover { text-decoration: underline; }
    footer .legal {
      border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 24px; text-align: center;
      font-size: 0.92rem; color: #d3ab97;
    }

    /* ---------- Mobile / tablette ---------- */
    @media (max-width: 1000px) {
      .burger { display: block; }
      nav ul {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; background: var(--gres-sombre);
        border-bottom: 1px solid var(--gres-sombre); padding: 10px 24px 18px;
      }
      nav ul.open { display: flex; }
      nav ul li { padding: 10px 0; }
    }
    @media (max-width: 900px) {
      .cards { grid-template-columns: repeat(2, 1fr); }
      .two-col { grid-template-columns: 1fr; gap: 36px; }
      .infos { grid-template-columns: 1fr; gap: 28px; }
    }
    @media (max-width: 640px) {
      section { padding: 60px 0; }
      .cards { grid-template-columns: 1fr; }
      .hero { padding: 63px 18px 71px; }
      #accueil.hero { padding: 74px 18px 84px; }
      footer .cols { grid-template-columns: 1fr; text-align: center; gap: 28px; }
      footer .cols > div:last-child { text-align: center; }
      footer .footer-logo { order: -1; }
    }
      .hero h1 .lettre-init {
    color: var(--creme); /* Ou une couleur spécifique comme #8a574d ou #fff */
    }

    /* -------- Chronologie -------- */

    .timeline {
      position: relative;
      max-width: 850px;
      margin: 0 auto;
      padding-left: 40px;
    }
    
    .timeline::before {
      content: "";
      position: absolute;
      left: 12px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: var(--gres);
    }
    
    .event {
      position: relative;
      margin-bottom: 55px;
    }
    
    .event::before {
      content: "";
      position: absolute;
      left: -36px;
      top: 8px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--gres);
      border: 4px solid var(--creme);
      box-shadow: 0 0 0 1px var(--gres);
    }
    
    .event .date {
      font-family: 'Public Sans', sans-serif;
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: .85rem;
      color: var(--gres-sombre);
      margin-bottom: 10px;
      font-weight: 600;
    }
    
    .event .content {
      background: var(--creme);
      padding: 28px;
      border-top: 4px solid var(--gres);
      box-shadow: 0 5px 18px rgba(0,0,0,0.07);
    }
    
    .event h3 {
      margin-bottom: 10px;
      font-size: 1.5rem;
    }
    
    .event p {
      color: var(--encre-douce);
    }
    
    @media (max-width:640px){

      .timeline{
        padding-left:28px;
      }

      .event::before{
        left:-24px;
      }

    }

    /* -------- Formulaire de contact -------- */

    .contact-form { max-width: 560px; margin-top: 24px; }
    .form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
    .form-row label {
      font-family: 'Public Sans', sans-serif; font-size: 0.82rem; font-weight: 600;
      letter-spacing: 0.03em; color: var(--gres-sombre);
    }
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
      font-family: 'EB Garamond', Georgia, serif; font-size: 1.02rem;
      padding: 11px 14px; border: 1px solid var(--filet); background: #fff;
      color: var(--encre); border-radius: 2px; width: 100%;
    }
    .contact-form input:focus, .contact-form textarea:focus {
      outline: 2px solid var(--gres); outline-offset: 1px;
    }
    .contact-form textarea { resize: vertical; min-height: 130px; }
    .contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
    .contact-form .captcha-row label { font-weight: 400; color: var(--encre); }
    .contact-form .captcha-question { font-weight: 600; color: var(--gres-sombre); }
    .contact-form .captcha-input { max-width: 140px; }
    .contact-form button[type="submit"] { margin-top: 4px; }
    .form-status {
      margin-top: 14px; min-height: 1.4em;
      font-family: 'Public Sans', sans-serif; font-size: 0.9rem; color: var(--gres-sombre);
    }
    .form-status.error { color: #b03a2e; }

    /* -------- Tarifs & infos pratiques (page Visites) -------- */
    .pricing-list { list-style: none; margin: 24px 0 20px; border-top: 1px solid var(--filet); }
    .pricing-list li {
      display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
      padding: 14px 0; border-bottom: 1px solid var(--filet);
    }
    .price-label small { display: block; color: var(--encre-douce); font-size: 0.85rem; margin-top: 2px; }
    .price-value {
      font-family: 'Marcellus', serif; font-size: 1.2rem; color: var(--gres-sombre);
      white-space: nowrap;
    }
    .infos-list { margin-top: 24px; border-top: 1px solid var(--filet); }
    .infos-list > div {
      display: grid; grid-template-columns: 220px 1fr; gap: 20px;
      padding: 16px 0; border-bottom: 1px solid var(--filet);
    }
    .infos-list dt {
      font-family: 'Public Sans', sans-serif; font-size: 0.82rem; font-weight: 600;
      letter-spacing: 0.03em; color: var(--gres-sombre);
    }
    .infos-list dd { margin: 0; }
    @media (max-width: 640px) {
      .infos-list > div { grid-template-columns: 1fr; gap: 4px; }
    }

    .visit-types {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
      margin: 24px 0;
    }
    .visit-type {
      border: 1px solid var(--filet); border-radius: 2px; padding: 18px 20px;
      background: var(--creme);
    }
    .visit-type h3 {
      font-family: 'Marcellus', serif; font-size: 1.05rem; color: var(--gres-sombre);
      margin: 0 0 8px;
    }
    .visit-type p { color: var(--encre-douce); margin: 0; }
    @media (max-width: 640px) {
      .visit-types { grid-template-columns: 1fr; }
    }

    /* -------- Photo-scroller (défilement horizontal, 3 photos visibles) -------- */
    .photo-scroller-wrap { position: relative; margin: 40px 0 56px; }
    .photo-scroller {
      display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
      scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none;
    }
    .photo-scroller::-webkit-scrollbar { display: none; }
    .photo-scroller .scroller-item {
      flex: 0 0 calc((100% - 2 * 16px) / 3); scroll-snap-align: start;
      aspect-ratio: 1; display: block; overflow: hidden; border-radius: 2px;
      box-shadow: 0 6px 18px rgba(58, 44, 38, 0.15); position: relative;
    }
    .photo-scroller .scroller-item img {
      width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease;
    }
    .photo-scroller .scroller-item:hover img, .photo-scroller .scroller-item:focus-visible img { transform: scale(1.06); }
    .photo-scroller-wrap .carousel-nav { top: 50%; }
    .photo-scroller-wrap .carousel-nav.prev { left: -18px; }
    .photo-scroller-wrap .carousel-nav.next { right: -18px; }
    @media (max-width: 900px) {
      .photo-scroller .scroller-item { flex-basis: calc((100% - 16px) / 2); }
    }
    @media (max-width: 640px) {
      .photo-scroller .scroller-item { flex-basis: 82%; }
      .photo-scroller-wrap .carousel-nav { display: none; }
    }

    /* -------- Galerie -------- */
    #galerie { padding-top: 76px; }
    .filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 48px; }
    .filter-btn {
      font-family: 'Public Sans', sans-serif; font-size: 0.8rem; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      padding: 10px 20px; border: 1px solid var(--gres-sombre); border-radius: 999px;
      background: transparent; color: var(--gres-sombre); cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }
    .filter-btn:hover, .filter-btn.active { background: var(--gres-sombre); color: var(--creme); }

    .gallery-masonry { column-count: 1; column-gap: 20px; }
    @media (min-width: 640px) { .gallery-masonry { column-count: 2; } }
    @media (min-width: 1000px) { .gallery-masonry { column-count: 3; } }

    .gallery-item {
      display: block; break-inside: avoid; margin-bottom: 20px; position: relative;
      overflow: hidden; border-radius: 4px; cursor: pointer;
      box-shadow: 0 4px 14px rgba(58, 44, 38, 0.14);
    }
    .gallery-item img { width: 100%; display: block; transition: transform 0.45s ease; }
    .gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
    .gallery-item .cap {
      position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 14px;
      background: linear-gradient(180deg, transparent, rgba(20, 12, 10, 0.85));
      color: #fdf4e7; font-family: 'Public Sans', sans-serif; font-size: 0.88rem;
      opacity: 0; transform: translateY(8px);
      transition: opacity 0.25s, transform 0.25s;
    }
    .gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; transform: translateY(0); }
    .gallery-item.hidden { display: none; }

    /* Lightbox */
    .lightbox .modal-panel {
      background: transparent; box-shadow: none; padding: 0;
      max-width: min(92vw, 1150px); width: auto; height: auto; max-height: none; overflow: visible;
    }
    .lightbox .modal-close {
      position: absolute; top: 10px; right: 10px; background: rgba(20, 12, 10, 0.55);
      color: #fff; border-color: transparent; z-index: 3;
    }
    .lightbox .modal-close:hover { background: var(--gres); }
    .lightbox-figure { position: relative; margin: 0; }
    .lightbox-figure img {
      display: block; width: 100%; max-height: 78vh; object-fit: contain;
      background: #100b09; margin: 0 auto;
    }
    .lightbox-caption {
      text-align: center; color: var(--creme); font-family: 'Public Sans', sans-serif;
      font-size: 0.95rem; margin-top: 16px;
    }
    .lightbox-nav {
      position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
      background: rgba(20, 12, 10, 0.5); color: #fff; border: none;
      width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.2s;
    }
    .lightbox-nav:hover { background: var(--gres-sombre); }
    .lightbox-nav.prev { left: -8px; }
    .lightbox-nav.next { right: -8px; }
    @media (max-width: 900px) {
      .lightbox-nav.prev { left: 4px; }
      .lightbox-nav.next { right: 4px; }
    }

    /* -------- Page "L'histoire du château" -------- */

    .article { max-width: 760px; }
    .article-lede {
      font-style: italic;
      font-size: 1.3rem;
      line-height: 1.6;
      color: var(--gres-sombre);
      margin: 0 0 40px;
    }
    .lede-photo, .inline-photo { margin: 0 0 56px; }
    .lede-photo img, .inline-photo img {
      width: 100%; display: block; border-radius: 2px;
      box-shadow: 0 10px 30px rgba(58, 44, 38, 0.18);
    }
    .lede-photo figcaption, .inline-photo figcaption {
      margin-top: 10px; text-align: center; font-family: 'Public Sans', sans-serif;
      font-size: 0.82rem; color: var(--encre-douce);
    }
    .article-section { margin-bottom: 52px; }
    .article-section h2 {
      font-size: clamp(1.5rem, 3.2vw, 1.9rem);
      color: var(--gres-sombre);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--filet);
    }
    .article-section p { color: var(--encre-douce); }
    .article-section p + p { margin-top: 16px; }

    /* -------- Diaporama (carousel) -------- */
    .carousel {
      position: relative; max-width: 900px; margin: 0 auto;
      overflow: hidden; border-radius: 4px; box-shadow: 0 14px 36px rgba(58, 44, 38, 0.2);
    }
    .carousel-track { display: flex; transition: transform 0.6s ease; }
    .carousel-slide { flex: 0 0 100%; position: relative; margin: 0; }
    .carousel-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
    .carousel-slide.portrait img { object-fit: contain; background: #100b09; }
    .carousel-slide figcaption {
      position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 24px 16px;
      background: linear-gradient(180deg, transparent, rgba(20, 12, 10, 0.85));
      color: #fdf4e7; font-family: 'Public Sans', sans-serif; font-size: 0.92rem;
    }
    .carousel-nav {
      position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
      background: rgba(20, 12, 10, 0.5); color: #fff; border: none;
      width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.2s;
    }
    .carousel-nav:hover { background: var(--gres-sombre); }
    .carousel-nav.prev { left: 14px; }
    .carousel-nav.next { right: 14px; }
    .carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
    .carousel-dots button {
      width: 9px; height: 9px; border-radius: 50%; border: none;
      background: var(--filet); cursor: pointer; padding: 0;
    }
    .carousel-dots button.active { background: var(--gres-sombre); }
    @media (max-width: 640px) {
      .carousel-nav { width: 38px; height: 38px; font-size: 1.3rem; }
      .carousel-nav.prev { left: 6px; }
      .carousel-nav.next { right: 6px; }
    }

    /* -------- Pop-up "Dates importantes" -------- */

    .modal {
      position: fixed; inset: 0; z-index: 100;
      display: flex; align-items: center; justify-content: center;
      padding: 32px 16px;
      visibility: hidden; opacity: 0;
      transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    .modal.open {
      visibility: visible; opacity: 1;
      transition: opacity 0.25s ease;
    }
    .modal-overlay {
      position: absolute; inset: 0;
      background: rgba(30, 22, 19, 0.72);
    }
    .modal-panel {
      position: relative;
      background: var(--creme);
      max-width: 760px; width: 100%;
      max-height: 88vh; overflow-y: auto;
      padding: 48px 40px 56px;
      box-shadow: 0 24px 60px rgba(0,0,0,0.35);
      transform: translateY(14px);
      transition: transform 0.25s ease;
    }
    .modal.open .modal-panel { transform: translateY(0); }
    .modal-close {
      display: block;
      position: sticky; top: 0; z-index: 2;
      margin: -8px -8px 0 auto;
      width: 36px; height: 36px;
      background: transparent; border: 1px solid var(--filet); border-radius: 50%;
      color: var(--gres-sombre); font-size: 1.3rem; line-height: 1; cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }
    .modal-close:hover, .modal-close:focus-visible { background: var(--gres); color: var(--creme); }

    .modal-intro { margin-bottom: 40px; }
    .modal-intro h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 14px; }
    .modal-intro p { color: var(--encre-douce); }

    .modal-timeline {
      max-width: none; padding-left: 30px; margin: 0;
    }
    .modal-timeline::before { left: 8px; }
    .modal-timeline .event { margin-bottom: 30px; }
    .modal-timeline .event::before {
      left: -30px; top: 3px; width: 12px; height: 12px; border-width: 3px;
    }
    .modal-timeline .event .date { font-size: 0.88rem; margin-bottom: 6px; }
    .modal-timeline .event .content {
      background: transparent; padding: 0; border-top: none; box-shadow: none;
    }
    .modal-timeline .event .content p { font-size: 1.08rem; }

    @media (max-width: 640px) {
      .modal { padding: 0; }
      .modal-panel { max-height: 100vh; height: 100%; padding: 40px 22px 48px; }
      .modal-timeline { padding-left: 22px; }
      .modal-timeline .event::before { left: -22px; }
    }

    /* -------- Visite guidée (points QR code) -------- */
    .visite-points { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
    .visite-points button {
      width: 52px; height: 52px; border-radius: 50%;
      border: 1px solid var(--gres-sombre); background: transparent;
      color: var(--gres-sombre); font-family: 'Marcellus', serif; font-size: 1.05rem;
      cursor: pointer; transition: background 0.2s, color 0.2s;
    }
    .visite-points button:hover, .visite-points button:focus-visible {
      background: var(--gres-sombre); color: var(--creme);
    }
    .visite-points button.fin {
      width: auto; border-radius: 24px; padding: 0 22px;
      font-family: 'Public Sans', sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
    }
    .visite-nav {
      position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
      background: rgba(20, 12, 10, 0.5); color: #fff; border: none;
      width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.2s, opacity 0.2s;
    }
    .visite-nav:hover { background: var(--gres-sombre); }
    .visite-nav.prev { left: 16px; }
    .visite-nav.next { right: 16px; }
    .visite-nav:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
    .visite-modal .modal-panel { max-width: 620px; height: auto; max-height: 88vh; }
    .visite-modal .modal-intro { margin-bottom: 4px; }
    .visite-modal .eyebrow { color: var(--gres-sombre); margin-bottom: 0; }
    .visite-intro-row { display: flex; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
    .visite-audio {
      display: inline-flex; align-items: center; gap: 6px; flex: none;
      background: transparent; border: 1px solid var(--gres-sombre); color: var(--gres-sombre);
      font-family: 'Public Sans', sans-serif; font-size: 0.78rem; font-weight: 600;
      letter-spacing: 0.03em; padding: 6px 14px; border-radius: 20px;
      cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s;
    }
    .visite-audio:hover, .visite-audio:focus-visible, .visite-audio.speaking {
      background: var(--gres-sombre); color: var(--creme);
    }
    #visiteBody { margin-top: 24px; }
    #visiteBody p { margin-bottom: 20px; color: var(--encre-douce); }
    #visiteBody p:last-child { margin-bottom: 0; }
    #visiteBody p.visite-contact {
      margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--filet);
      line-height: 1.9;
    }
    @media (max-width: 640px) {
      .visite-nav { width: 38px; height: 38px; font-size: 1.3rem; }
      .visite-nav.prev { left: 4px; }
      .visite-nav.next { right: 4px; }
      .visite-modal .modal-panel { padding-left: 46px; padding-right: 46px; }
    }