/* =========================================================
   Bricoling — feuille de style commune (version modernisée)
   Identité conservée : fond lavande #ccccff, panneaux gris
   foncé, titres roses #F781BE, liens bleu #114477 / survol
   orange #ff6633, photos « polaroïd », blocs de menu gris.
   ========================================================= */

:root {
  --fond: #ccccff;
  --fond-clair: #e2e2ff;
  --fond-fonce: #b3b3f0;
  --panneau: #4f4f57;
  --panneau-fonce: #3d3d44;
  --rose: #F781BE;
  --lien: #114477;
  --survol: #ff6633;
  --polaroid: #f4f4f4;
  --carte: rgba(255, 255, 255, .55);
  --gris-haut: #b0b0b8;
  --gris-bas: #85858e;
  --bord-gris: #6d6d6d;
  --texte: #1d1d2b;
  --texte-doux: #4a4a5e;
  --ombre-1: 0 1px 2px rgba(30, 30, 70, .12), 0 2px 6px rgba(30, 30, 70, .10);
  --ombre-2: 0 6px 16px rgba(30, 30, 70, .16), 0 2px 4px rgba(30, 30, 70, .10);
  --ombre-3: 0 14px 34px rgba(30, 30, 70, .25), 0 4px 10px rgba(30, 30, 70, .12);
  --ombre: var(--ombre-2);
  --rayon: 16px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--texte);
  font: 16px/1.55 Ubuntu, Verdana, sans-serif;
  text-align: center;
  overflow-x: clip;
  min-height: 100vh;
  display: flex; flex-direction: column;
  /* lavande d'origine + discret motif de tenons de brique */
  background:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,.28) 3.5px, transparent 4.5px) 0 0 / 24px 24px,
    radial-gradient(1200px 600px at 50% -200px, var(--fond-clair), transparent 70%),
    var(--fond);
}
main { flex: 1 0 auto; }

a, a:visited { color: var(--lien); font-weight: bold; text-decoration: none; }
a:hover { color: var(--survol); }
:focus-visible { outline: 3px solid var(--survol); outline-offset: 3px; border-radius: 6px; }

.contenu { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px); }

/* ---------- Barre de navigation (toujours visible) ---------- */
.barre {
  position: sticky; top: 0; z-index: 50;
  background: rgba(214, 214, 255, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(60, 60, 120, .12);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
}
.barre .contenu {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
.barre .logo { flex: none; display: flex; align-items: center; }
.barre .logo img { height: 32px; width: auto; display: block; }
.barre .logo span { font: italic bold 26px Ubuntu, Verdana; color: #777; text-shadow: 2px 2px 2px #444; }
.fil {
  flex: 1 1 240px; text-align: left; font-size: 14.5px; color: var(--texte-doux);
  display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center;
}
.fil .sep { color: #8a8aa8; }
.fil .ici { color: var(--texte); font-weight: bold; }
.boutons { display: flex; gap: 8px; flex: none; margin-left: auto; }

/* Raccourcis vers les rubriques (accueil) */
.raccourcis { flex: 1 1 300px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.raccourcis a {
  font-size: 14px; padding: 7px 12px; border-radius: 999px; color: var(--texte-doux);
  transition: background .15s, color .15s;
}
.raccourcis a:hover { background: rgba(255,255,255,.6); color: var(--lien); }

/* Bouton façon « diapo » d'origine, modernisé */
.bouton, .bouton:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 15px;
  background: var(--polaroid); color: var(--lien);
  border-radius: 12px; border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--ombre-1); font: bold 14.5px Ubuntu, Verdana, sans-serif;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s, color .15s;
}
.bouton:hover { color: var(--survol); transform: translateY(-1px); box-shadow: var(--ombre-2); }
.bouton[disabled] { opacity: .45; cursor: default; transform: none; }
.bouton svg { width: 16px; height: 16px; flex: none; }

/* ---------- Panneau gris (blockquote d'origine) ---------- */
.panneau {
  position: relative;
  background: linear-gradient(160deg, var(--panneau), var(--panneau-fonce));
  color: #f2f2f7;
  border-radius: var(--rayon); box-shadow: var(--ombre-3);
  padding: clamp(18px, 3vw, 28px) clamp(18px, 4vw, 36px);
  margin: clamp(18px, 3vw, 30px) auto; max-width: 820px;
}
.panneau h1, .panneau h2 {
  color: var(--rose); margin: 0 0 8px;
  font-size: clamp(22px, 3.2vw, 30px); line-height: 1.15; text-wrap: balance;
}
.panneau p { margin: 8px 0; white-space: pre-line; }
.panneau .description { max-width: 64ch; margin-inline: auto; color: #e8e8f0; }
.panneau a, .panneau a:visited { color: #d4d4ff; }
.panneau a:hover { color: var(--survol); }
.panneau .accent { color: var(--rose); font-weight: bold; }
.puces { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.puce {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: #fff; padding: 4px 11px; border-radius: 999px;
}
.puce.auteur { background: rgba(247,129,190,.22); border-color: rgba(247,129,190,.45); }

/* ---------- Polaroïds ---------- */
.mur {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: clamp(18px, 3vw, 30px) clamp(14px, 2.4vw, 26px);
  padding: 12px 4px 34px; justify-items: center;
}
.mur:empty { display: none; }
.polaroid, .polaroid:visited {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  width: 100%; max-width: 230px; padding: 10px 10px 12px;
  background: var(--polaroid); border-radius: 12px;
  box-shadow: var(--ombre-2); color: var(--texte); font-weight: normal;
  transition: transform .25s cubic-bezier(.2,.8,.3,1.2), box-shadow .25s ease;
}
.polaroid:nth-child(4n+1) { transform: rotate(2.5deg); }
.polaroid:nth-child(4n+2) { transform: rotate(-2deg); }
.polaroid:nth-child(4n+3) { transform: rotate(1deg); }
.polaroid:nth-child(4n)   { transform: rotate(-1deg); }
.polaroid:hover, .polaroid:focus-visible {
  transform: rotate(0) translateY(-4px) scale(1.04); box-shadow: var(--ombre-3); z-index: 2; color: var(--lien);
}
.polaroid .cadre {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3;
  background: #d6d6de; overflow: hidden; border-radius: 4px;
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.polaroid:hover img { transform: scale(1.05); }
.polaroid .legende {
  margin-top: 9px; font-size: 14px; line-height: 1.3; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.polaroid .compte { font-size: 12px; color: #77778a; margin-top: 4px; text-align: center; }
.polaroid.album .cadre::after {
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 22px; height: 17px;
  border: 2px solid #fff; border-radius: 3px; box-shadow: -4px -4px 0 -1px rgba(255,255,255,.75), 0 1px 4px rgba(0,0,0,.4);
}
.vide { grid-column: 1 / -1; color: var(--texte-doux); padding: 30px; }

/* ---------- Accueil ---------- */
.heros { padding-top: clamp(22px, 5vw, 46px); }
.titre-site { margin: 0 auto 6px; }
.titre-site h1 { margin: 0; line-height: 0; }
.titre-site img { width: min(380px, 76vw); height: auto; filter: drop-shadow(0 6px 10px rgba(40,40,90,.18)); }

.slogan { margin: 0 auto; color: var(--texte-doux); font-size: 15px; }
.equipe {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(10px, 2.5vw, 22px); padding: 22px 0 6px;
}
.equipe .polaroid { width: clamp(70px, 20vw, 118px); padding: 6px 6px 8px; }
.equipe .polaroid .cadre { aspect-ratio: 1; }
.equipe .polaroid .legende { font-size: 13.5px; margin-top: 6px; }

.recherche { max-width: 520px; margin: 0 auto; position: relative; }
.recherche input {
  width: 100%; font: 16px Ubuntu, Verdana; padding: 13px 16px 13px 44px; min-height: 48px;
  border-radius: 999px; border: 1px solid rgba(60,60,120,.18); background: rgba(255,255,255,.92);
  box-shadow: var(--ombre-1); color: var(--texte);
}
.recherche input:focus { outline: none; border-color: var(--lien); box-shadow: 0 0 0 4px rgba(17,68,119,.15); }
.recherche svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; }
#resultats { padding-top: 22px; }
#resultats .info { grid-column: 1 / -1; color: var(--texte-doux); }

#menus-zone { padding-top: 34px; }

.menus {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px; margin: 0 auto 40px; align-items: start; text-align: left;
}
.menu {
  border-radius: var(--rayon); overflow: hidden;
  background: linear-gradient(to bottom, var(--gris-haut), var(--gris-bas));
  box-shadow: var(--ombre-2); border: 1px solid rgba(255,255,255,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.menu:hover { transform: translateY(-3px); box-shadow: var(--ombre-3); }
.menu h2 {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 13px 16px;
  font-size: 16px; color: #111;
  background: linear-gradient(to bottom, rgba(255,255,255,.45), rgba(255,255,255,.12));
  border-bottom: 1px solid rgba(0,0,0,.14);
}
.menu h2 .icone {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--panneau); color: var(--rose);
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.menu h2 .icone svg { width: 18px; height: 18px; }
.menu ul { list-style: none; margin: 0; padding: 10px 8px 14px; }
.menu li a, .menu li.bientot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: 9px; min-height: 38px;
}
.menu li a { color: #0e3a66; transition: background .15s, color .15s, padding .15s; }
.menu li a::after { content: "›"; opacity: .0; transition: opacity .15s; font-size: 18px; line-height: 1; }
.menu li a:hover { background: rgba(255,255,255,.55); color: var(--survol); padding-left: 14px; }
.menu li a:hover::after { opacity: .9; }
.menu li.sous-titre {
  font-size: 12px; font-weight: bold; color: #222; text-transform: none;
  padding: 12px 10px 3px; opacity: .85;
}
.menu li.sous-titre:first-child { padding-top: 2px; }
.menu li.bientot { color: #3c3c44; font-weight: normal; font-style: italic; }
.menu li.bientot::after { content: "bientôt"; font-size: 11px; font-style: normal; background: rgba(0,0,0,.12); padding: 1px 7px; border-radius: 999px; }
.menu li.espace { height: 6px; }

/* ---------- Pied de page ---------- */
footer { margin-top: auto; }
.pied {
  display: block; margin: 0; padding: 22px 16px 26px; font-size: 13.5px; color: #333;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), rgba(122,122,140,.35));
  border-top: 1px solid rgba(60,60,120,.15);
}
.pied a { margin-left: 4px; }
.pied .marque { color: #a00000; font-size: 12px; margin-top: 8px; }

/* ---------- Navigation entre albums ---------- */
.voisins { display: flex; justify-content: space-between; gap: 12px; margin: 0 auto 34px; max-width: 820px; }
.voisins .bouton { max-width: 48%; }
.voisins .bouton span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Visionneuse ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(22, 22, 40, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  flex-direction: column; align-items: center; justify-content: center;
  padding: 70px clamp(8px, 7vw, 90px) 18px;
}
.visionneuse.ouverte { display: flex; animation: apparition .2s ease; }
@keyframes apparition { from { opacity: 0; } to { opacity: 1; } }
.visionneuse .haut {
  position: absolute; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px; gap: 8px; color: #fff;
}
.visionneuse .compteur { color: #ddd; font-size: 14px; background: rgba(255,255,255,.1); padding: 4px 12px; border-radius: 999px; }
.visionneuse figure {
  margin: 0; max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.visionneuse img {
  max-width: 100%; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px);
  object-fit: contain; display: block; border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); background: #2a2a3a; min-width: 120px; min-height: 90px;
}
.visionneuse figcaption {
  width: 100%; max-width: 720px; margin-top: 14px; color: #f0f0f6;
  white-space: pre-line; text-align: center; font-size: 15.5px; line-height: 1.5;
}
.visionneuse figcaption b { color: var(--rose); display: block; font-size: 13px; margin-bottom: 3px; letter-spacing: .02em; }
.visionneuse .fleche {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%; padding: 0; font-size: 24px;
}
.visionneuse .fleche:hover { transform: translateY(-50%) scale(1.08); }
.visionneuse .prec { left: clamp(8px, 2vw, 24px); }
.visionneuse .suiv { right: clamp(8px, 2vw, 24px); }

/* ---------- Nouveautés (commun/news/news.html) ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 6px; }
.filtre {
  font: bold 14px Ubuntu, Verdana, sans-serif; color: var(--texte-doux); cursor: pointer;
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.5); border: 1px solid rgba(60,60,120,.15);
  transition: background .15s, color .15s;
}
.filtre:hover { background: rgba(255,255,255,.8); color: var(--lien); }
.filtre[aria-pressed="true"] { background: var(--panneau); color: #fff; border-color: var(--panneau); }
.fil-news { max-width: 820px; margin: 0 auto; text-align: left; }
.news-annee {
  display: flex; align-items: center; gap: 14px; margin: 30px 0 14px;
  font-size: 15px; color: var(--texte-doux);
}
.news-annee::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: rgba(60,60,120,.15); }
.news {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0;
  margin: 0 0 18px; border-radius: var(--rayon); overflow: hidden;
  background: linear-gradient(160deg, var(--panneau), var(--panneau-fonce)); color: #f0f0f6;
  box-shadow: var(--ombre-2); scroll-margin-top: 84px;
}
.news.cible { box-shadow: 0 0 0 3px var(--rose), var(--ombre-3); }
.news-date {
  display: flex; align-items: flex-start; justify-content: center; text-align: center;
  padding: 20px 10px; background: rgba(0,0,0,.18); color: var(--rose);
  font-weight: bold; font-size: 14px; line-height: 1.3;
}
.news-corps { padding: 18px 22px 18px; }
.news-corps::after { content: ""; display: block; clear: both; }
.news h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; color: var(--rose); text-wrap: balance; }
.news-texte { margin: 0 0 12px; white-space: pre-line; color: #e9e9f2; }
.news-texte a { color: #d4d4ff; }
.news-image { float: right; margin: 2px 0 10px 16px; width: min(220px, 40%); }
.news-image img { display: block; width: 100%; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.35); background: #2a2a3a; }
.news-liens { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.lien-news, .lien-news:visited { min-height: 40px; padding: 5px 12px 5px 6px; font-size: 14px; white-space: normal; text-align: left; }
.lien-news:not(:has(img)) { padding-left: 12px; }
.lien-news img { width: 38px; height: 30px; object-fit: cover; border-radius: 6px; flex: none; }
.news-auteur { margin: 6px 0 0; font-size: 13.5px; font-style: italic; color: #c8c8d6; }
.plus-news { margin: 10px 0 36px; }

/* ---------- Tablettes ---------- */
@media (max-width: 900px) {
  .raccourcis {
    order: 3; flex: 1 1 100%; justify-content: flex-start; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none; margin: 0 -6px; padding-bottom: 2px;
  }
  .raccourcis::-webkit-scrollbar { display: none; }
  .raccourcis a { flex: none; background: rgba(255,255,255,.45); padding: 6px 12px; }
}

/* ---------- Téléphones ---------- */
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .barre .contenu { min-height: 56px; gap: 6px 10px; }
  .barre .logo img { height: 27px; }
  .bouton .texte { display: none; }          /* boutons en icônes seules */
  .bouton { min-width: 44px; padding: 8px 12px; }
  .fil {
    order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap;
    font-size: 13.5px; padding-bottom: 2px; scrollbar-width: none;
  }
  .fil::-webkit-scrollbar { display: none; }
  .mur { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .polaroid { padding: 7px 7px 9px; }
  .polaroid .legende { font-size: 13px; }
  .polaroid:nth-child(n) { transform: rotate(0); }
  .polaroid:nth-child(odd) { transform: rotate(1.2deg); }
  .polaroid:nth-child(even) { transform: rotate(-1.2deg); }
  .menus { grid-template-columns: minmax(0, 1fr); }
  .news { grid-template-columns: minmax(0, 1fr); }
  .news-date { justify-content: flex-start; padding: 9px 16px; font-size: 13px; }
  .news-corps { padding: 14px 16px 16px; }
  .news-image { float: none; width: 100%; margin: 0 0 12px; }
  .voisins .bouton { max-width: 49%; font-size: 13.5px; }
  .visionneuse { padding: 64px 6px 84px; }
  .visionneuse .fleche { top: auto; bottom: 18px; transform: none; }
  .visionneuse .fleche:hover { transform: none; }
  .visionneuse .prec { left: calc(50% - 64px); }
  .visionneuse .suiv { right: calc(50% - 64px); }
  .visionneuse img { max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px); border-radius: 6px; }
}
@media (max-width: 600px) {
  .equipe { gap: 8px; flex-wrap: nowrap; }
  .equipe .polaroid .legende { font-size: 12px; }
}
@media (max-width: 360px) {
  .mur { gap: 14px 10px; }
  .polaroid .compte { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
