/* Acronis Informatique — reprise statique du thème Joomla « joomlage0100-one » (réglages Acronis) */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/polices/open-sans-latin.woff2) format("woff2");
}

:root {
  --nuit: #02000f;
  --panneau: rgba(249, 249, 249, .82);
  --texte: #000;
  --titre: #000117;
  --lien: #6b6b6b;
  --survol: #c76f04;
  --vert: #003300;
  --orange: #993300;
  --logo: #18171f;
  --sans: "Open Sans", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --largeur: 1500px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--texte);
  font: 16px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
  background: #8d929c;
}
/* fond « clavier » fixe (pseudo-élément : fonctionne aussi sur iPhone, contrairement à background-attachment: fixed) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: #8d929c url(/img/fond.webp) center / cover no-repeat;
}
img { max-width: 100%; height: auto; }
a { color: var(--lien); }
a:hover { color: #2e2b2b; }
[hidden] { display: none !important; }
.invisible {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------------ en-tête */
.entete { position: relative; z-index: 50; }
.logo { text-align: center; padding: 22px 16px 14px; min-height: 128px; }
.logo-texte {
  color: var(--logo); text-decoration: none;
  font: 400 50px/1.1 var(--serif); letter-spacing: .5px;
}
.logo-texte:hover { color: #000; }
.slogan {
  color: #fff; margin: 8px 0 0;
  font-size: 17px; letter-spacing: 2px; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.barre {
  position: relative; background: var(--nuit); min-height: 56px;
  display: flex; align-items: stretch; justify-content: center;
}
.entete.colle .barre { position: fixed; left: 0; right: 0; top: 0; box-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.entete.colle { padding-bottom: 56px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.menu > li { position: relative; }
.menu a, .menu button {
  display: block; padding: 17px 13px; background: none; border: 0; cursor: pointer;
  color: #fff; text-decoration: none; text-transform: uppercase;
  font: 14px/22px var(--serif); letter-spacing: .3px;
}
.menu a:hover, .menu a:focus-visible, .menu button:hover, .menu button:focus-visible,
.menu a[aria-current="page"], .menu .actif > button { color: var(--survol); }
.parent > button::after {
  content: ""; display: inline-block; margin-left: 6px; vertical-align: 3px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.sous-menu {
  list-style: none; margin: 0; padding: 6px 0; min-width: 230px;
  position: absolute; left: 0; top: 100%; background: var(--nuit);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.sous-menu a { padding: 10px 18px; }
.parent:hover .sous-menu, .parent:focus-within .sous-menu, .parent.ouvert .sous-menu {
  visibility: visible; opacity: 1; transform: none;
}
.reseaux { display: flex; align-items: center; margin-left: 18px; }
.reseaux a { display: grid; place-items: center; width: 38px; height: 38px; }
.reseaux svg { width: 20px; height: 20px; fill: #fff; transition: fill .2s; }
.reseaux a:hover svg { fill: var(--survol); }
.burger, .logo-mobile { display: none; }

/* ------------------------------------------------------------------ diaporama (accueil) */
.diaporama {
  position: relative; margin-top: 10px; aspect-ratio: 1280 / 500; max-height: 500px; width: 100%;
  overflow: hidden; background: #2b2d33;
}
.diaporama img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
.diaporama-calque { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.diaporama-calque > div { position: absolute; background-repeat: no-repeat; will-change: transform, opacity; }
/* barre de progression comme l'original (Camera : 7 px, fond #222 à 80 %, jauge #eee) */
.diaporama-barre {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 7px;
  background: rgba(34, 34, 34, .8);
}
.diaporama-barre span {
  position: absolute; left: 0; right: 0; top: 2px; bottom: 2px; background: #eee;
  transform: scaleX(0); transform-origin: left center;
}
.diaporama img.visible { opacity: 1; }

/* ------------------------------------------------------------------ contenu */
.contenu {
  max-width: min(var(--largeur), calc(100% - 40px)); margin: 10px auto;
  background: var(--panneau);
  padding: 40px 60px 50px;
}
.contenu::after { content: ""; display: block; clear: both; }
.contenu p { margin: 0 0 1.1em; }
.titre-page { color: var(--titre); font: 400 22px/1.3 var(--sans); margin: 0 0 10px; }
.accroche { text-align: center; font-weight: 600; font-size: 17px; color: var(--titre); }
.centre { text-align: center; }
.justifie { text-align: justify; }
.vert { color: var(--vert); }
.sous-titre { margin-bottom: .2em !important; }
.sans-marge { margin-bottom: .2em !important; }
.puces { padding-left: 1.4em; margin: 0 0 1.4em; font-weight: 600; }
.puces li { margin-bottom: .1em; }
.puces.cercles { list-style-type: circle; }
.puces.disques { font-weight: 400; }
.puces.retrait { padding-left: 3.4em; }
.puces .orange { color: var(--orange); }
.illustration { text-align: center; }
.illustration img { display: inline-block; }

.horaires { margin: 1.6em 0; }
.horaires p { margin: 0 0 .25em !important; font-size: 18px; }
.horaires .horaires-titre { font-size: 18px; }
.etat-ouverture { font-size: 15px !important; font-weight: 600; color: #2e7d32; margin-top: .5em !important; }
.etat-ouverture.ferme { color: #a32b00; }

.appelez { margin: 1.8em 0 1em !important; }
.telephones a, .telechargements a { display: inline-block; margin: 3px; }
.telephones img, .telechargements img, a img { transition: transform .2s, filter .2s; }
.telephones a:hover img, .telechargements a:hover img, .contenu a:hover > img { transform: translateY(-2px); filter: brightness(1.08); }
.telechargements a { display: block; margin: 0 0 6px; width: max-content; max-width: 100%; }

/* galerie de l'accueil */
.galerie { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 40px; margin: 22px 0 34px; }
.vignette { display: block; line-height: 0; border: 1px solid #eee; border-radius: 3px; overflow: hidden; }
.vignette img { display: block; width: 210px; height: 158px; object-fit: cover; transition: transform .3s; }
.vignette:hover img { transform: scale(1.05); }
.vignette:focus-visible { outline: 3px solid var(--survol); outline-offset: 2px; }

/* ------------------------------------------------------------------ contact */
.nom-contact { font: 400 40px/1.2 var(--serif); color: var(--titre); margin: 0 0 14px; }
.panneau {
  border: 1px solid #ddd; border-radius: 4px; background: rgba(255, 255, 255, .45);
  margin: 0 0 22px; padding: 0 16px 16px;
}
.panneau h3 {
  margin: 0 -16px 16px; padding: 10px 16px; border-bottom: 1px solid #ddd;
  font: 400 24px/1.3 var(--sans); color: #6b6b6b;
}
.fiche { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; }
.fiche address { font-style: normal; flex: 1 1 240px; }
.fiche .ligne { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px !important; line-height: 1.9; }
.fiche svg { flex: none; width: 20px; height: 20px; margin-top: 5px; fill: #2c5aa0; }
.fiche a { color: var(--texte); text-decoration: none; }
.fiche a:hover { color: var(--survol); }
.logo-contact { flex: 1 1 300px; text-align: center; border: 1px solid #e5e5e5; border-radius: 4px; padding: 10px; background: rgba(255, 255, 255, .5); }
.bouton {
  display: inline-block; padding: 10px 24px; border-radius: 4px;
  background: var(--nuit); color: #fff !important; text-decoration: none; font-size: 16px;
}
.bouton:hover { background: var(--survol); }
.carte { border: 1px solid #ccc; line-height: 0; margin: 0 0 14px; }
.carte iframe { width: 100%; height: 380px; border: 0; }

/* ------------------------------------------------------------------ pied */
.pied {
  background: var(--nuit); color: #fff; text-align: center;
  padding: 34px 16px 40px; text-transform: uppercase; font-size: 14px;
}
.pied p { margin: 0 0 18px; line-height: 1.75; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--survol); }
.menu-pied { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.menu-pied a { display: block; font-size: 11px; font-weight: 700; padding: 2px 10px; }
.menu-pied li + li { border-left: 1px dotted #888; }

.haut {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(2, 0, 15, .8); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.haut::before {
  content: ""; position: absolute; left: 15px; top: 18px; width: 12px; height: 12px;
  border: solid #fff; border-width: 2px 0 0 2px; transform: rotate(45deg);
}
.haut.visible { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ visionneuse */
.visionneuse {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .9);
  display: flex; align-items: center; justify-content: center;
}
.visionneuse img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; box-shadow: 0 0 30px #000; }
.visionneuse button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 42px/1 var(--serif); padding: 14px 18px; opacity: .8;
}
.visionneuse button:hover, .visionneuse button:focus-visible { opacity: 1; color: var(--survol); }
.visionneuse .fermer { top: 6px; right: 8px; }
.visionneuse .prec { left: 4px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 4px; top: 50%; transform: translateY(-50%); }
.visionneuse .compteur { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }

/* ------------------------------------------------------------------ largeur moyenne / mobile */
@media (max-width: 1100px) {
  .menu a, .menu button { padding: 17px 9px; font-size: 13px; }
  .reseaux { margin-left: 6px; }
}
@media (max-width: 1000px) {
  .contenu { margin: 0 auto; max-width: 100%; }
}
@media (max-width: 900px) {
  .logo { display: none; }
  .barre { justify-content: space-between; min-height: 56px; }
  .logo-mobile { display: flex; align-items: center; padding: 0 12px; order: 1; }
  .logo-mobile img { height: 40px; width: auto; }
  .reseaux { order: 2; margin: 0 0 0 auto; }
  .burger {
    display: block; order: 3; width: 56px; background: none; border: 0; cursor: pointer; position: relative;
  }
  .burger span, .burger span::before, .burger span::after {
    position: absolute; left: 16px; width: 24px; height: 2px; background: #fff; content: ""; transition: transform .2s, opacity .2s;
  }
  .burger span { top: 27px; }
  .burger span::before { left: 0; top: -7px; }
  .burger span::after { left: 0; top: 7px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--nuit); box-shadow: 0 8px 14px rgba(0, 0, 0, .4);
    max-height: calc(100vh - 56px); overflow-y: auto;
  }
  .menu.ouvert { display: flex; }
  .menu a, .menu button { width: 100%; text-align: left; padding: 13px 20px; border-top: 1px solid #1d1b2b; font-size: 14px; }
  .sous-menu {
    position: static; display: none; visibility: visible; opacity: 1; transform: none;
    box-shadow: none; padding: 0; background: #0d0b1e;
  }
  .parent:hover .sous-menu, .parent:focus-within .sous-menu { display: none; }
  .parent.ouvert .sous-menu { display: block; }
  .sous-menu a { padding-left: 38px; }
  .entete.colle { padding-bottom: 56px; }
  .diaporama { margin-top: 0; }
  .contenu { padding: 26px 16px 34px; }
  .galerie { gap: 12px; }
  .vignette img { width: calc((100vw - 56px) / 2); max-width: 200px; height: auto; aspect-ratio: 4 / 3; }
  .puces.retrait { padding-left: 1.4em; }
  .nom-contact { font-size: 28px; }
  .carte iframe { height: 320px; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .justifie { text-align: left; }
  .horaires p { font-size: 16.5px; }
  .appelez img { width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .diaporama img { transition: none !important; }
}
