/* ===========================================================
   Site du village de Tintange — feuille de style commune
   Modifier ici change TOUTES les pages (accueil + articles).
   =========================================================== */

/* ---------- Polices (fichiers locaux, fonctionne hors ligne) ---------- */
@font-face {
  font-family: 'Bitter'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("fonts/bitter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bitter'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("fonts/bitter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("fonts/opensans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("fonts/opensans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Palette ---------- */
:root {
  --vert-nuit:  #1f5128;
  --vert:       #2e7d3a;
  --vert-titre: #235c2c;
  --vert-sombre:#235c2c;
  --pied:       #1f3a23;
  --or:         #f3c84b;
  --creme:      #f5f1e6;
  --bord:       #e7e3d6;
  --bord-creme: #e7e1cf;
  --texte:      #3d3d3d;
  --gris:       #8a8470;
  --gris-clair: #9a9480;
  --alerte-fond:#fdf3d4;
  --alerte-bord:#e9d28f;
  --alerte-txt: #7a6312;
  --alerte-pic: #e0a912;
  --serif:  'Bitter', Georgia, serif;
  --sans:   'Open Sans', 'Segoe UI', Arial, sans-serif;
  --largeur: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #333; font-family: var(--sans); min-height: 100vh; }
img { max-width: 100%; }
.wrap { max-width: var(--largeur); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Bandeau commune ---------- */
.topbar { background: var(--vert-nuit); color: #cfe0c7; font-size: 12.5px; }
.topbar .wrap { padding-top: 7px; padding-bottom: 7px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar b { color: #fff; }
.topbar a { color: var(--or); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.entete { background: #fff; border-bottom: 1px solid var(--bord); }
.entete .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; gap: 15px; }
.entete a.marque { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.nom-village { font-family: var(--serif); font-size: 27px; font-weight: 700; color: var(--vert-titre); line-height: 1.1; }
.sous-titre { font-size: 13px; color: var(--gris); margin-top: 2px; }

/* blason (dessiné en CSS) */
.blason { flex: none; width: 50px; height: 60px; position: relative; }
.blason .fond   { position: absolute; inset: 0; background: var(--vert-nuit); clip-path: polygon(0 0,100% 0,100% 65%,50% 100%,0 65%); border-radius: 6px 6px 0 0; }
.blason .champ  { position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px; background: var(--vert); clip-path: polygon(0 0,100% 0,100% 64%,50% 100%,0 64%); border-radius: 5px 5px 0 0; }
.blason .chef   { position: absolute; top: 2px; left: 2px; right: 2px; height: 13px; background: #d8b24a; }
.blason .sapins { position: absolute; left: 0; right: 0; top: 22px; display: flex; flex-direction: column; align-items: center; }
.blason .s1 { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid #eef3ea; }
.blason .s2 { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 11px solid #eef3ea; margin-top: -3px; }
.blason .tronc { width: 4px; height: 5px; background: #7a5a2a; }

/* ---------- Navigation ---------- */
.nav { background: var(--vert); }
.nav .wrap { display: flex; flex-wrap: wrap; padding-left: 0; padding-right: 0; }
.nav a { color: #eaf3e6; font-size: 14px; font-weight: 600; padding: 13px 16px; text-decoration: none; }
.nav a:hover { background: #256b30; }
.nav a.actif { color: #fff; background: var(--vert-sombre); }
.nav a.demarches { margin-left: auto; color: var(--vert-titre); background: var(--or); font-weight: 700; padding: 13px 18px; display: flex; align-items: center; }
.nav a.demarches:hover { background: #ffd45e; }

/* ---------- Bandeau info ---------- */
.alerte { background: var(--alerte-fond); border-bottom: 1px solid var(--alerte-bord); }
.alerte .wrap { padding-top: 11px; padding-bottom: 11px; display: flex; gap: 12px; align-items: center; }
.alerte .pastille { flex: none; background: var(--alerte-pic); color: #5b4400; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.alerte .texte { font-size: 13.5px; color: var(--alerte-txt); line-height: 1.5; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 330px; overflow: hidden; background: #2c4a2e center 60%/cover; }
.hero .voile { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,40,22,.72), rgba(20,40,22,.05) 58%); }
.hero .contenu { position: absolute; left: 0; right: 0; bottom: 0; }
.hero .contenu .wrap { padding-bottom: 28px; }
.hero h1 { font-family: var(--serif); font-size: 38px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); line-height: 1.1; margin: 0; }
.hero p { font-size: 15px; color: #eef5ec; text-shadow: 0 1px 4px rgba(0,0,0,.45); margin: 8px 0 0; max-width: 560px; }

/* ---------- Titres de section ---------- */
h2.section { font-family: var(--serif); font-size: 22px; color: var(--vert-titre); margin: 0 0 16px; border-bottom: 2px solid var(--vert); padding-bottom: 8px; }
h2.simple  { font-family: var(--serif); font-size: 23px; color: var(--vert-titre); margin: 0 0 12px; }

/* ---------- Colonnes ---------- */
.colonnes { display: flex; gap: 34px; align-items: flex-start; flex-wrap: wrap; }
.colonne-principale { flex: 1; min-width: 320px; }
.colonne-laterale { width: 320px; flex: none; }

/* ---------- Présentation du village ---------- */
.intro { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.intro p { font-size: 14.5px; color: var(--texte); line-height: 1.75; margin: 0 0 12px; }
.intro p:last-child { margin-bottom: 0; }
.intro .photo { width: 300px; flex: none; height: 190px; border-radius: 8px; overflow: hidden; background: #2c4a2e center/cover; }

/* ---------- Encart commune ---------- */
.encart-commune { background: var(--vert); border-radius: 10px; padding: 22px 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.encart-commune .titre { font-family: var(--serif); font-size: 20px; color: #fff; font-weight: 700; }
.encart-commune p { margin: 6px 0 0; font-size: 13.5px; color: #d6ecd0; line-height: 1.55; }
.encart-commune .bouton { flex: none; background: var(--or); color: var(--vert-titre); font-size: 14px; font-weight: 700; padding: 13px 24px; border-radius: 6px; text-decoration: none; }
.encart-commune .bouton:hover { background: #ffd45e; }

/* ---------- Liste des actualités ---------- */
.actus { display: flex; flex-direction: column; gap: 14px; }
.actu { display: flex; gap: 15px; border: 1px solid var(--bord); border-radius: 8px; overflow: hidden; }
.actu:hover { box-shadow: 0 3px 10px rgba(0,0,0,.07); }
.actu .vignette { width: 120px; flex: none; background: #2c4a2e center/cover; }
.actu .corps { padding: 13px 14px 13px 0; }
.actu .date { font-size: 11px; color: var(--gris-clair); font-weight: 600; }
.actu .titre { font-family: var(--serif); font-size: 16px; font-weight: 600; margin: 3px 0 5px; }

/* date de l'ÉVÉNEMENT — l'information principale de chaque actualité */
.date-ev {
  display: inline-block; background: var(--vert); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  padding: 5px 11px; border-radius: 3px; margin-bottom: 8px;
}
/* article mis en avant : le prochain événement */
.actu.vedette { border: 2px solid var(--or); background: #fffdf6; }
.actu.vedette .vignette { width: 210px; }
.actu.vedette .corps { padding: 17px 20px 17px 0; }
.actu.vedette .titre { font-size: 20px; line-height: 1.25; margin: 4px 0 7px; }
.actu.vedette .date-ev { background: var(--vert-nuit); font-size: 13.5px; padding: 6px 13px; }
.actu.vedette p { font-size: 13.5px; }
.badge-prochain {
  display: inline-block; background: var(--or); color: var(--vert-titre);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px;
  padding: 4px 10px; border-radius: 3px; margin: 0 8px 8px 0;
}
.actu .titre a { color: var(--vert-titre); text-decoration: none; }
.actu .titre a:hover { text-decoration: underline; }
.actu p { margin: 0; font-size: 12.5px; color: #666; line-height: 1.55; }

/* ---------- Agenda ---------- */
.agenda { display: flex; flex-direction: column; gap: 11px; }
.evenement { display: flex; gap: 13px; align-items: center; background: var(--creme); border-radius: 8px; padding: 11px 13px; }
.evenement .jour { flex: none; text-align: center; width: 48px; }
.evenement .num { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--vert); line-height: 1; }
.evenement .num.plage { font-size: 15px; letter-spacing: -.5px; }
.evenement .mois { font-size: 10px; color: var(--gris); text-transform: uppercase; }
.evenement .detail { border-left: 2px solid #d8d2bf; padding-left: 13px; }
.evenement .quoi { font-size: 13.5px; font-weight: 600; color: #2b2b2b; }
.evenement .ou { font-size: 12px; color: #777; }

/* ---------- Infos pratiques ---------- */
.bloc-infos { background: var(--creme); margin-top: 24px; }
.bloc-infos .wrap { padding-top: 34px; padding-bottom: 34px; }
.grille-infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.carte { background: #fff; border: 1px solid var(--bord-creme); border-top: 3px solid var(--vert); border-radius: 8px; padding: 16px; text-decoration: none; display: block; }
a.carte:hover { box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.carte .titre { font-family: var(--serif); font-size: 15.5px; color: var(--vert-titre); font-weight: 600; }
.carte p { margin: 6px 0 0; font-size: 12.5px; color: #666; line-height: 1.6; }
.carte .lien { font-size: 12px; color: var(--vert); font-weight: 700; }

/* ---------- Fil d'Ariane ---------- */
.ariane { background: var(--creme); border-bottom: 1px solid var(--bord-creme); }
.ariane .wrap { padding-top: 14px; padding-bottom: 14px; font-size: 12.5px; color: var(--gris); }
.ariane a { color: var(--vert); text-decoration: none; }
.ariane a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
.page-article .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; gap: 38px; align-items: flex-start; flex-wrap: wrap; }
article { flex: 1; min-width: 330px; max-width: 700px; }
.meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.rubrique { font-size: 11px; font-weight: 700; color: #fff; background: var(--vert); text-transform: uppercase; letter-spacing: .7px; padding: 4px 10px; border-radius: 3px; }
.publie { font-size: 12.5px; color: var(--gris); }
.date-ev-grande {
  background: var(--creme); border-left: 5px solid var(--vert); border-radius: 0 6px 6px 0;
  padding: 13px 18px; margin: 0 0 22px;
  font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--vert-titre); line-height: 1.3;
}
.date-ev-grande .heure {
  display: block; margin-top: 4px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: #5d6b55; letter-spacing: .2px;
}
article h1 { font-family: var(--serif); font-size: 31px; line-height: 1.2; color: var(--pied); margin: 0 0 16px; }
article h2 { font-family: var(--serif); font-size: 20px; color: var(--vert-titre); margin: 26px 0 12px; }
.illustration { height: 300px; border-radius: 8px; margin-bottom: 8px; background: #2c4a2e center/cover; }
.legende { font-size: 11.5px; color: var(--gris-clair); margin-bottom: 24px; font-style: italic; }
.chapeau { font-size: 16px; color: #444; line-height: 1.6; font-weight: 600; margin: 0 0 20px; }
article p { font-size: 14.5px; color: var(--texte); line-height: 1.75; margin: 0 0 16px; }
article ul, article ol { font-size: 14.5px; color: var(--texte); line-height: 1.8; padding-left: 20px; margin: 0 0 18px; }
blockquote { margin: 0 0 20px; padding: 4px 0 4px 18px; border-left: 4px solid var(--vert); font-family: var(--serif); font-size: 16.5px; line-height: 1.6; color: #2f4a33; font-style: italic; }
blockquote .source { display: block; margin-top: 8px; font-family: var(--sans); font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--gris); }

/* encadré jaune */
.encadre { background: var(--alerte-fond); border-left: 4px solid var(--alerte-pic); border-radius: 0 6px 6px 0; padding: 16px 18px; margin: 0 0 24px; }
.encadre .titre { font-family: var(--serif); font-size: 16px; color: var(--alerte-txt); font-weight: 700; margin-bottom: 8px; }
.encadre ul, .encadre ol { margin: 0; padding-left: 18px; font-size: 13.5px; color: #6f5b16; line-height: 1.8; }
.encadre p { font-size: 13.5px; color: #6f5b16; line-height: 1.7; margin: 0 0 8px; }
.encadre p:last-child { margin-bottom: 0; }

/* encadré vert (programme, infos pratiques d'un article) */
.encadre-vert { background: #f1f7ef; border-left: 4px solid var(--vert); border-radius: 0 6px 6px 0; padding: 16px 18px; margin: 0 0 24px; }
.encadre-vert .titre { font-family: var(--serif); font-size: 16px; color: var(--vert-titre); font-weight: 700; margin-bottom: 10px; }
.encadre-vert dl { margin: 0; font-size: 13.5px; line-height: 1.7; color: #33502f; }
.encadre-vert dt { float: left; clear: left; width: 92px; font-weight: 700; }
.encadre-vert dd { margin: 0 0 6px 104px; }
.encadre-vert ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: #33502f; line-height: 1.8; }

/* pied d'article */
.pied-article { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--bord); padding-top: 18px; margin-top: 26px; }
.pied-article .retour { font-size: 13px; color: var(--vert); font-weight: 600; text-decoration: none; }
.pied-article .retour:hover { text-decoration: underline; }
.partage { display: flex; gap: 8px; align-items: center; }
.partage span { font-size: 12px; color: var(--gris); }
.partage a { width: 30px; height: 30px; border-radius: 50%; background: var(--vert); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------- Colonne latérale d'article ---------- */
.aside { width: 300px; flex: none; }
.module { border: 1px solid var(--bord-creme); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.module .entete-module { background: var(--creme); padding: 11px 14px; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--vert-titre); border-bottom: 1px solid var(--bord-creme); }
.module .liste { padding: 6px 0; }
.module .liste a { display: block; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid #f2efe6; }
.module .liste a:last-child { border-bottom: none; }
.module .liste a:hover { background: #f7f5ee; }
.module .liste .date { font-size: 11px; color: var(--gris-clair); }
.module .liste .titre { font-size: 13px; color: #2b2b2b; font-weight: 600; line-height: 1.35; }
.module-contact { background: var(--alerte-fond); padding: 14px; border-left: 4px solid var(--alerte-pic); }
.module-contact .titre { font-size: 13px; font-weight: 700; color: var(--alerte-txt); margin-bottom: 4px; }
.module-contact p { margin: 0 0 10px; font-size: 12.5px; color: var(--alerte-txt); line-height: 1.55; }
.module-contact .bouton { display: block; text-align: center; background: var(--vert); color: #fff; font-size: 12.5px; font-weight: 700; padding: 9px; border-radius: 6px; text-decoration: none; }
.module-contact .bouton:hover { background: #256b30; }

/* ---------- Pied de page ---------- */
.pied { background: var(--pied); color: #bcd0b5; }
.pied .haut { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; padding-top: 36px; padding-bottom: 22px; }
.pied .titre { font-family: var(--serif); font-size: 17px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.pied .coord { font-size: 13px; line-height: 1.7; }
.pied .coord b { color: #fff; }
.pied a { color: #9fd396; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .liens { font-size: 13px; line-height: 1.9; display: flex; flex-direction: column; }
.pied .liens a { color: #bcd0b5; }
.pied .bas { border-top: 1px solid #2f5235; }
.pied .bas .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #7fa886; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .grille-infos { grid-template-columns: 1fr; }
  .pied .haut { grid-template-columns: 1fr; }
  .colonne-laterale, .aside, .intro .photo { width: 100%; }
  .colonne-principale, article { min-width: 0; }
  .hero { height: 230px; }
  .hero h1 { font-size: 28px; }
  .illustration { height: 190px; }
  article h1 { font-size: 25px; }
  .actu .vignette { width: 92px; }
  .actu.vedette .vignette { width: 118px; }
  .actu.vedette .titre { font-size: 17px; }
  .date-ev-grande { font-size: 16.5px; }
  .nav a.demarches { margin-left: 0; }
  .encadre-vert dt { float: none; width: auto; }
  .encadre-vert dd { margin-left: 0; margin-bottom: 10px; }
}
