:root{color-scheme:light;--ink:#14352f;--paper:#f5f1e7;--line:#cbc8b9;--accent:#f6cb83}
*{box-sizing:border-box}
html{scroll-padding-top:5rem}
body{margin:0;background:var(--paper);color:var(--ink);font:1.05rem/1.6 system-ui,sans-serif}
.wrap{width:min(100% - 2.5rem,67rem);margin:auto}
header,footer{background:var(--ink);color:var(--paper)}
header{padding:3rem 0 2.5rem;border-bottom:.45rem solid var(--accent)}
h1,h2,h3{font-family:Georgia,serif;line-height:1.13}
h1{font-size:clamp(2.6rem,8vw,6rem);margin:.45rem 0 1rem;letter-spacing:-.045em}
h1 span{color:var(--accent)}
.eyebrow{font-size:.83rem;letter-spacing:.15em;text-transform:uppercase}
.intro{max-width:37rem;font-size:1.2rem}
.actions{display:flex;gap:.65rem;flex-wrap:wrap}
.actions a{background:var(--accent);color:var(--ink);padding:.6rem .9rem;border-radius:.3rem;font-weight:700}
.edition{font-size:.88rem;color:#e3ddcd}
nav{background:#e8e4d8;border-bottom:1px solid var(--line)}
nav .wrap{display:flex;gap:.4rem 1.2rem;flex-wrap:wrap;padding:.7rem 0}
a{color:inherit;text-underline-offset:.19em}
a:hover{text-decoration-thickness:.15em}
a:focus-visible{outline:3px solid #ad5a00;outline-offset:4px}
section{padding:2rem 0;border-bottom:1px solid var(--line)}
h2{font-size:clamp(1.8rem,4vw,2.7rem);margin:.2rem 0 1rem}
h3{font-size:1.55rem}
p,li,dd{max-width:75ch}
li+li{margin-top:.6rem}
dt{font-weight:700}
dd{margin:0 0 .85rem}
.docs{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:.75rem}
.docs li{margin:0;background:#fffdf7;border:1px solid var(--line);padding:1rem}
.docs small{display:block}
footer{padding:1.25rem 0;margin-top:1rem}
footer a{margin-left:.8rem}

:root {
  --ink: #382720;
  --paper: #fbf4e8;
  --line: #ddcdbb;
  --pink: #a71d54;
}
header {
  background: #f1e3d0;
  color: var(--ink);
  padding: 1.25rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  font-weight: 750;
  text-decoration: none;
}
.logo {
  position: relative;
  display: inline-flex;
  gap: 3px;
  align-items: end;
  width: 32px;
  height: 25px;
  padding: 0 2px 3px;
  border-bottom: 2px solid currentColor;
}
.logo i { width: 6px; height: 11px; border: 1.5px solid currentColor; border-bottom: 0; }
.logo i:nth-child(2) { height: 20px; }
.logo i:nth-child(3) { height: 14px; }
.logo::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
}
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; margin-top: .8rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
h1 span { color: #714631; }
.edition { color: #604c42; }
.hero figure { margin: 0; }
.hero img { display: block; width: 100%; height: auto; border-radius: .75rem; aspect-ratio: 3/2; object-fit: cover; }
figcaption { font-size: .78rem; margin-top: .25rem; }
.actions a { background: transparent; color: var(--ink); }
.actions a:first-child { background: var(--pink); color: white; text-decoration: none; }
.actions a:first-child:hover { background: #821440; }
.coffee {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  margin: 1rem 0;
  border: 1px solid #e8c99a;
  border-radius: .75rem;
  background: #fff1d8;
}
.coffee img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: .65rem; }
.coffee h2 { font-size: clamp(1.3rem, 4vw, 1.8rem); margin: 0; }
.coffee p { margin: .1rem 0; }
.coffee-count { color: #7a2346; }
.coffee-status { margin-left: auto; font-size: .85rem; color: #624534; }
.site-nav { background: transparent; }
.site-nav .wrap { width: 100%; }
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; gap: .6rem; }
  .hero figure { display: none; }
  .coffee { flex-wrap: wrap; }
  .coffee-status { margin-left: 0; }
}
.page-views { width: min(100% - 2.5rem,67rem); margin: .5rem auto 0; font-size: .87rem; }
.coffee-action { margin-left: auto; }
.coffee-action small { display: block; }
.coffee-action button { background: #a71d54; color: #fff; border: 0; border-radius: .4rem; padding: .7rem .9rem; font: inherit; font-weight: 700; cursor: pointer; }
.coffee-action button:disabled { opacity: .7; cursor: default; }

#outils-recherche label {display:block;font-weight:700}
#requete {width:min(100%,35rem);font:inherit;padding:.65rem;border:1px solid var(--ink);border-radius:.3rem}
.fiche {padding:1.3rem 0;border-bottom:1px solid var(--line)}
.fiche h2 {font-size:clamp(1.35rem,3vw,2rem)}
.fiche-meta {margin:0;font-size:.9rem}

.search-heading {padding:2rem 0}

/* Refonte expérimentale : photographie et surfaces translucides */
:root{--ink:#382720;--paper:#f5eee3;--line:#d8c9b8;--pink:#a71d54;--accent:#a71d54}
body{background:linear-gradient(110deg,rgba(249,244,235,.90),rgba(245,235,221,.83)),url('consolat-fond-original-v13.png') center center/cover fixed; color:var(--ink)}
header{background:rgba(249,242,231,.78);backdrop-filter:blur(12px);color:var(--ink);border-bottom:1px solid #d8c9b8}h1,h2,h3{font-family:system-ui,sans-serif;letter-spacing:-.035em}h1 span{color:#714631}
.hero img{box-shadow:0 12px 35px #38272025}.site-nav{position:sticky;top:0;z-index:10;background:rgba(255,250,242,.91);backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:16px;padding:0 14px;box-shadow:0 6px 24px #38272012;margin:16px 0}.site-nav a{font-weight:650;text-decoration:none}.site-nav a:hover{color:var(--pink)}
main>section,.fiche,.docs li,.coffee,.panel,.rights{background:rgba(255,253,249,.83);border:1px solid #d8c9b8;border-radius:18px;box-shadow:0 8px 28px #3827200c;backdrop-filter:blur(9px)}main>section,.fiche{padding:clamp(16px,3vw,32px);margin:20px 0}.docs li{padding:18px}.coffee{background:rgba(255,241,216,.86)}.actions a,.coffee-action button{border-radius:12px}.actions a:first-child{background:var(--pink);color:white}footer{background:#382720;color:#fff8ed;padding:24px}.contact-footer{margin:12px auto;max-width:67rem;font-size:.9rem}.contact-footer a{color:inherit;margin:0}.contact-footer small{display:block;opacity:.9}.floating-contact{position:fixed;right:18px;bottom:18px;z-index:20;background:#a71d54;color:white;border-radius:999px;padding:10px 17px;box-shadow:0 5px 20px #38272040;text-decoration:none;font-weight:650}dialog{background:rgba(255,253,249,.95);backdrop-filter:blur(14px);border-radius:20px;box-shadow:0 15px 60px #38272040}dialog::backdrop{background:#38272066;backdrop-filter:blur(3px)}@media(max-width:700px){body{background-attachment:scroll}.site-nav{position:static}.floating-contact{bottom:10px;right:10px;font-size:.8rem}footer{padding-bottom:65px}}@media(prefers-reduced-motion:no-preference){a,button{transition:background-color .18s,color .18s,box-shadow .18s}}

/* Refonte 02 : fond plus présent et photographie d’accueil */
body{background-image:linear-gradient(110deg,rgba(249,244,235,.68),rgba(245,235,221,.62)),url('consolat-fond-original-v13.png')}
header{background:rgba(249,242,231,.53);backdrop-filter:blur(2px)}
main>section,.fiche,.docs li,.coffee,.panel,.rights{background:rgba(255,253,249,.78);backdrop-filter:blur(3px)}
.site-nav{background:rgba(255,250,242,.83);backdrop-filter:blur(5px)}
.hero{grid-template-columns:minmax(0, 0.65fr) minmax(0,1.35fr);gap:1.5rem;align-items:center}
.hero h1{font-size:clamp(1.65rem,3vw,2.65rem);line-height:1.12;margin:.4rem 0}
.hero img{aspect-ratio:16/9;object-fit:contain;background:#e8dfd2;height:auto;width:100%}
.hero figure{display:block;min-width:0}.hero figcaption{font-size:.78rem;color:#594739}
@media(max-width:700px){.hero{grid-template-columns:1fr}.hero figure{display:block}.hero h1{font-size:1.8rem}}

/* Refonte 06 */
body{background-image:linear-gradient(110deg,rgba(249,244,235,.52),rgba(245,235,221,.46)),url("consolat-fond-original-v13.png")}
header{background:transparent;backdrop-filter:none;border-bottom:0}
.page-views{text-align:center;max-width:none}
.coffee img{object-position:65% 30%}
.coffee .ai-credit{font-size:.75rem;color:#604c42}

/* Refonte 07 : photographie en haut a droite, sans changer le flux */
@media (min-width: 1200px){
  body:has(.hero img[src="consolat-accueil.webp"]) header .hero figure{
    align-self:start;
    transform:translateX(max(0px, calc((100vw - 67rem)/2 - 24px))) translateY(-2.5rem);
  }
}

/* Refonte 08 : café sous la photographie */
.hero-right{min-width:0;align-self:start}
.hero-right .coffee{margin: .75rem 0 0;gap:.75rem;flex-wrap:wrap}
.hero-right .coffee img{width:5.5rem;height:5.5rem;aspect-ratio:1;object-fit:cover;background:none;box-shadow:none}
.hero-right .coffee h2{font-size:clamp(1.2rem,2vw,1.55rem)}
.hero-right .coffee-action{margin-left:auto}
@media(min-width:1200px){
 body:has(.hero img[src="consolat-accueil.webp"]) header .hero figure{transform:none}
 .hero-right{transform:translateX(max(0px, calc((100vw - 67rem)/2 - 24px))) translateY(-2.5rem)}
}

/* Refonte 09 : identité à gauche, présentation centrée et lisible */
body:has(.hero-right) header .brand{color:#000;text-shadow:0 0 6px #fff,0 0 12px #fff}
body:has(.hero-right) .hero>div:first-child{color:#000;text-align:center;align-self:start}
body:has(.hero-right) .hero h1,body:has(.hero-right) .hero h1 span,body:has(.hero-right) .hero .edition{color:#000}
body:has(.hero-right) .hero>div:first-child p,body:has(.hero-right) .hero h1{text-shadow:0 0 5px #fff,0 0 12px #fff}
body:has(.hero-right) .hero .actions{justify-content:center;text-shadow:none!important}
body:has(.hero-right) .hero .actions a:not(:first-child){color:#000;background:rgba(255,255,255,.72)}
@media(min-width:1200px){
 body:has(.hero-right) header>.wrap{width:calc(100% - 48px);max-width:none}
 body:has(.hero-right) header .hero{grid-template-columns:minmax(0,1fr) minmax(0, min(38vw,44.2rem));gap:24px;align-items:start;margin-top:0}
 body:has(.hero-right) .hero>div:first-child{width:min(100%,32rem);justify-self:end;margin-right:clamp(0px,calc(12vw - 120px),100px);padding:0 12px}
 body:has(.hero-right) .hero-right{transform:none}
 body:has(.hero-right) .hero .eyebrow{margin-top:0}
}

/* Refonte 10 : image originale sans voile */
body{background-image:url("consolat-fond-original-v13.png");background-position:center center;background-size:cover;background-repeat:no-repeat}

/* V11: viewport-sized fixed background, independent of document height */
html{background:#087cce}
body{background:none;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:#087cce url("consolat-fond-original-v13.png") center center / contain no-repeat;}

/* V12: root viewport background, independent of body height */
html{background:#087cce url("consolat-fond-original-v13.png") center center / cover no-repeat fixed !important;}
body{background:transparent !important;}
body::before{content:none !important;}

/* V15: full panoramic portrait */
.hero-right .coffee img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;object-position:center;flex:0 0 100%;display:block}

/* V16 portail */
.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;z-index:100;background:white;padding:1rem}.v16nav{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1rem;padding:.65rem;background:#fffaf2;color:#382720;font-size:.9rem}.v16motto{font-weight:700}.v16grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.7rem}.v16grid a,.v16build a{display:block;padding:.85rem;background:#fffdf7;border:1px solid #bba994;border-radius:.5rem;color:#382720}.v16grid small{display:block}.v16build{display:flex;flex-wrap:wrap;gap:.5rem}.v16search{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 1rem}.v16search input{flex:1;min-width:12rem;padding:.65rem;font:inherit}.v16search button{padding:.65rem;font:inherit}.v16page{background:#fbf4e8!important;min-height:100vh}.v16page .v16head{background:#fbf4e8;color:#382720;padding:1rem}.v16page h1{font-size:clamp(1.8rem,5vw,3rem)}.v16page main section{background:#fffdf7}.v16page .wrap{max-width:67rem}.v16page footer{background:#382720;color:white}.v16page main section section{padding:0}.v16portal{padding:1.25rem!important}

.language-picker{position:relative;width:max-content;max-width:100%;margin:10px auto;z-index:20;color:#183b50;text-align:start}.language-picker summary{cursor:pointer;background:#fff;border:1px solid #aabac5;border-radius:8px;padding:9px 14px;font-weight:600;min-height:24px}.language-picker ul{position:absolute;inset-inline-end:0;top:100%;margin:4px 0 0;padding:5px;list-style:none;background:#fff;border:1px solid #aabac5;border-radius:8px;box-shadow:0 5px 18px #0003;min-width:170px;max-height:65vh;overflow:auto}.language-picker a{display:flex;gap:10px;align-items:center;padding:8px 12px;color:#183b50;text-decoration:none;border-radius:4px;white-space:nowrap}.language-picker a:hover,.language-picker a:focus-visible,.language-picker a[aria-current=page]{background:#e5eef5}.language-picker summary:focus-visible,.language-picker a:focus-visible{outline:2px solid #1766a0;outline-offset:2px}.language-picker .flag{font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif}

/* V16.2 */
header .wrap{position:relative}header .language-picker{margin:0 0 .7rem auto;z-index:50}header .language-picker summary{background:#fff} .home-v162 header .language-picker{margin-bottom:.4rem}.home-v162 .hero-right .coffee{max-width:24rem;margin:.6rem 0 0 auto;padding:.55rem;display:grid;grid-template-columns: minmax(0, 7rem) minmax(0,1fr);gap:.45rem;background:rgba(255,250,242,.92)}.home-v162 .hero-right .coffee img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;align-self:center}.home-v162 .coffee h2{font-size:1.05rem}.home-v162 .coffee p{font-size:.78rem;margin:.15rem 0}.home-v162 .coffee-action{grid-column:1/-1;margin:0;display:flex;flex-wrap:wrap;gap:.3rem;align-items:center}.home-v162 .coffee-action button{font-size:.8rem;padding:.4rem .65rem}.carousel-frame{position:relative;aspect-ratio:16/9;background:#e8dfd2;border-radius:.75rem;overflow:hidden}.hero .carousel-frame img{width:100%;height:100%;object-fit:contain;aspect-ratio:auto}.carousel-frame button{position:absolute;top:50%;transform:translateY(-50%);border:0;border-radius:50%;width:44px;height:44px;background:#142b3bd9;color:white;font-size:22px;cursor:pointer;opacity:0;transition:opacity .15s}.carousel-prev{left:10px}.carousel-next{right:10px}.carousel-frame:hover button,.carousel-frame:focus-within button{opacity:1}.carousel-frame button:focus-visible{outline:3px solid white}.home-carousel figcaption{background:#fffdf4e8;padding:.25rem .5rem;border-radius:4px}.home-v162 header{padding-top:.65rem}.home-v162 header .hero figure{transform:none!important}@media(hover:none){.carousel-frame button{opacity:1}}@media(min-width:1200px){.home-v162 main.wrap{margin-left:24px;margin-right:auto;width:min(calc(100% - 48px),67rem)}}@media(max-width:700px){.home-v162 .hero-right .coffee{margin-inline:auto}.home-v162 header .language-picker{margin-inline-start:auto;margin-inline-end:0}}

/* V16.3 : contraste de la présentation d’accueil */
body.home-v162 header .hero>div:first-child{background:rgba(255,255,255,.92);border-radius:14px;padding:clamp(14px,2vw,24px);box-sizing:border-box;color:#101820;}
body.home-v162 header .hero>div:first-child :is(.eyebrow,.v16motto,.intro,.edition){color:#101820!important;text-shadow:none!important;line-height:1.5;}
body.home-v162 header .hero .eyebrow{font-size:.95rem;font-weight:700;letter-spacing:.08em;}
body.home-v162 header .hero .v16motto{font-size:1.15rem;font-weight:750;}
body.home-v162 header .hero .intro{font-size:1.2rem;font-weight:600;}
body.home-v162 header .hero .edition{font-weight:500;}
body.home-v162 header .hero h1,body.home-v162 header .hero h1 span{color:#101820;text-shadow:none!important;}

.coffee img.coffee-dance{width:100%;height:auto;aspect-ratio:1;object-fit:contain;}

.coffee-dance-popup{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(320px,90vw,85vh);height:auto;aspect-ratio:1;object-fit:contain;border-radius:16px;box-shadow:0 8px 36px #0006;z-index:10000;pointer-events:none;}

.coffee-dance-popup{display:block!important;width:320px!important;height:320px!important;max-width:90vw!important;max-height:85vh!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:center!important;box-sizing:border-box!important;padding:0!important;margin:0!important;}
