/* ==========================================================================
   VERCHAIX — verchaix-base.css
   Socle commun : couleurs, haut de page (H1), chapô, conteneur, composants partagés, texte de présentation
   Portée : Toutes les pages intérieures. L'accueil (body-page-1) n'est pas concerné.
   ========================================================================== */

/* Palette (contrastes WCAG AA vérifiés) :
   aubergine #522A4D (texte blanc 11,7:1) · pétrole #007086 (texte blanc 5,7:1)
   menthe #06E2A5 : jamais en texte sur fond clair · crème #FEFAF3 · sable #F4EDE1 · gris #5b5257 (7,2:1) */

:root{
  --vx-aub:#522A4D;
  --vx-aub-d:#3d1f39;
  --vx-pet:#007086;
  --vx-menthe:#06E2A5;
  --vx-creme:#FEFAF3;
  --vx-sable:#F4EDE1;
  --vx-ligne:#E6DDD2;
  --vx-txt:#211A1A;
  --vx-gris:#5b5257;
  --vx-r:28px;
  --vx-r-s:20px;
}

body.body-pages:not(.body-page-1) .template-animation{
  display:none;
}

body.body-pages:not(.body-page-1) .bloc-top{
  position:relative;
  overflow:hidden;
  background:var(--vx-sable);
  padding:52px 20px 46px;
  text-align:center;
}

body.body-pages:not(.body-page-1) .bloc-top::before,
body.body-pages:not(.body-page-1) .bloc-top::after{
  content:"";
  position:absolute;
  bottom:0;
  width:260px;
  height:120px;
  pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 120'%3E%3Cg fill='%23522A4D' opacity='.08'%3E%3Cpath d='M30 120 L60 30 L90 120Z'/%3E%3Cpath d='M80 120 L120 0 L160 120Z'/%3E%3Cpath d='M150 120 L185 40 L220 120Z'/%3E%3Cpath d='M205 120 L230 65 L255 120Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat bottom;
}

body.body-pages:not(.body-page-1) .bloc-top::before{
  left:2%;
}

body.body-pages:not(.body-page-1) .bloc-top::after{
  right:2%;
  transform:scaleX(-1);
}

body.body-pages:not(.body-page-1) .bloc-top .bloc-h1{
  position:relative;
  z-index:1;
  margin:0;
  padding:0;
}

body.body-pages:not(.body-page-1) .bloc-top h1{
  position:relative;
  z-index:1;
  font-family:Figtree,sans-serif;
  font-size:clamp(30px,4vw,46px);
  line-height:1.12;
  font-weight:700;
  color:var(--vx-aub)!important;
  text-align:center;
  margin:0 auto;
  max-width:900px;
  padding:0;
}

body.body-pages:not(.body-page-1) .bloc-top h1::after{
  content:"";
  display:block;
  width:102px;
  height:5px;
  margin:16px auto 0;
  border-radius:3px;
  background:linear-gradient(90deg,var(--vx-aub) 0 30px,transparent 30px 36px,var(--vx-pet) 36px 66px,transparent 66px 72px,var(--vx-menthe) 72px 102px);
}


@media (min-width:1200px){

  body.body-pages:not(.body-page-1) .bloc-top{
    padding-top:calc(max(124px,8.6vw) + 44px);
    padding-bottom:56px;
  }

}

.vx .vx-chapo{
  text-align:center;
  color:var(--vx-gris);
  font-size:19px;
  line-height:1.6;
  margin:44px auto 28px!important;
  padding:0 20px;
  max-width:760px;
}

.vx .vx-seo{
  background:var(--vx-sable);
  border-radius:var(--vx-r);
  max-width:920px;
  margin:64px auto 0;
  padding:40px 48px;
}

.vx .vx-seo h2{
  margin:0 0 14px;
  font-size:26px;
  color:var(--vx-aub);
}

.vx .vx-seo p{
  font-size:16px;
  line-height:1.7;
  color:var(--vx-txt);
  margin:0 0 12px;
}

.vx .vx-seo p:last-child{
  margin-bottom:0;
}

.vx .vx-seo a{
  color:var(--vx-pet);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}

.vx .vx-seo a:hover,
.vx .vx-seo a:focus-visible{
  color:var(--vx-aub);
}


@media (max-width:760px){

  body.body-pages:not(.body-page-1) .bloc-top{
    padding:36px 16px 34px;
  }

  body.body-pages:not(.body-page-1) .bloc-top::before,
  body.body-pages:not(.body-page-1) .bloc-top::after{
    width:150px;
    height:70px;
    background-size:contain;
  }

  .vx .vx-chapo{
    font-size:17px;
    margin-top:30px!important;
  }

  .vx .vx-seo{
    padding:28px 22px;
    margin-top:48px;
    border-radius:var(--vx-r-s);
  }

  .vx .vx-seo h2{
    font-size:22px;
  }

}

.vx{
  max-width:1160px;
  margin:0 auto;
  padding:0 0 70px;
  color:var(--vx-txt);
  font-size:16px;
  line-height:1.55;
}

.vx *{
  box-sizing:border-box;
}

.vx img{
  max-width:100%;
  height:auto;
}

.vx h2{
  font-size:30px;
  line-height:1.2;
  font-weight:700;
  margin:52px 0 8px;
  color:var(--vx-txt);
}

.vx h2 .vx-acc{
  color:var(--vx-aub);
}

.vx h3{
  line-height:1.25;
}

.vx p{
  margin:0 0 12px;
}

.vx a{
  color:var(--vx-pet);
}

.vx .vx-sr{
  position:absolute!important;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  margin:0;
  padding:0;
}

.vx .vx-module{
  background:#fff3cd;
  color:#5c4400;
  border-radius:12px;
  padding:12px 16px;
  font-weight:700;
}

.vx .vx-sous{
  color:var(--vx-gris);
  margin:0 0 24px;
}

.vx .vx-mut{
  color:var(--vx-gris);
  font-size:14px;
}

.vx .vx-bloc{
  background:#fff;
  border-radius:var(--vx-r);
  padding:28px;
}

.vx .vx-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--vx-aub);
  color:#fff;
  border-radius:999px;
  padding:11px 22px;
  font-weight:600;
  font-size:15px;
  text-decoration:none;
}

.vx .vx-btn:hover,
.vx .vx-btn:focus-visible{
  background:var(--vx-aub-d);
  color:#fff;
}

.vx .vx-btn--clair{
  background:#fff;
  color:var(--vx-aub);
}

.vx .vx-btn--clair:hover,
.vx .vx-btn--clair:focus-visible{
  background:var(--vx-sable);
  color:var(--vx-aub);
}

.vx a:focus-visible,
.vx button:focus-visible{
  outline:3px solid var(--vx-pet);
  outline-offset:3px;
  border-radius:6px;
}

.vx .vx-sombre a:focus-visible,
.vx-sombre a:focus-visible{
  outline-color:var(--vx-menthe);
}

.vx .vx-pastille{
  display:inline-block;
  white-space:nowrap;
  font-size:12.5px;
  font-weight:700;
  line-height:1.4;
  padding:3px 11px;
  border-radius:999px;
  background:var(--vx-aub);
  color:#fff;
}

.vx .vx-pastille--pet{
  background:var(--vx-pet);
}

.vx .vx-pastille--sable{
  background:var(--vx-sable);
  color:var(--vx-aub);
}

.vx .vx-note{
  background:var(--vx-sable);
  border-radius:var(--vx-r-s);
  padding:16px 20px;
  display:flex;
  gap:14px;
  font-size:15px;
}

.vx .vx-note::before{
  content:"i";
  flex:none;
  width:26px;
  height:26px;
  border-radius:50%;
  background:var(--vx-aub);
  color:#fff;
  font-weight:700;
  font-style:italic;
  display:grid;
  place-items:center;
  font-family:Georgia,serif;
}

.vx .vx-note p{
  margin:0;
}

.vx .vx-sommaire{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 10px;
  padding:0;
  list-style:none;
}

.vx .vx-sommaire a{
  display:inline-block;
  text-decoration:none;
  color:var(--vx-aub);
  background:#fff;
  border-radius:999px;
  padding:8px 16px;
  font-weight:600;
  font-size:14px;
}

.vx .vx-sommaire a:hover,
.vx .vx-sommaire a:focus-visible{
  background:var(--vx-aub);
  color:#fff;
}


@media (min-width:1700px){

  .vx{
    max-width:1280px;
  }

}


@media (max-width:1100px){

  .vx{
    padding-left:16px;
    padding-right:16px;
  }

}


@media (max-width:760px){

  .vx h2{
    font-size:24px;
  }

}


@media (prefers-reduced-motion:reduce){

  .vx *,
  .vx *::before,
  .vx *::after{
    transition:none!important;
  }

}

/* --------------------------------------------------------------------------
   Pied de page (toutes les pages, accueil compris)
   bleu.css met les liens du copyright en blanc sur le fond crème (1,04:1).
   Gris #5b5257 sur crème #FEFAF3 = 7,2:1 ; soulignés pour rester identifiables.
   -------------------------------------------------------------------------- */
.copyright{
  color:var(--vx-gris);
}
.copyright a,
.copyright a:link,
.copyright a:visited{
  color:var(--vx-gris)!important;
  text-decoration:underline;
  text-underline-offset:3px;
}
.copyright a:hover,
.copyright a:focus-visible{
  color:var(--vx-aub)!important;
}
.copyright a:focus-visible{
  outline:2px solid var(--vx-aub);
  outline-offset:2px;
  border-radius:2px;
}


/* --------------------------------------------------------------------------
   Bouton « Webcam » de l'en-tête (option B) — lien vers la webcam de Joux Plane
   Blanc sur aubergine 11,7:1 ; point menthe décoratif « en direct ».
   En mobile (≤ 760 px) : pastille ronde, le mot reste lu par les lecteurs d'écran.
   -------------------------------------------------------------------------- */
.vx-webcam{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:44px;
  box-sizing:border-box;
  padding:0 16px 0 14px;
  margin:0 4px;
  border-radius:999px;
  background:var(--vx-aub,#522A4D);
  color:#fff!important;
  font-family:Figtree,sans-serif;
  font-size:14px;
  font-weight:700;
  line-height:1;
  text-decoration:none!important;
  vertical-align:middle;
  white-space:nowrap;
  position:relative;
}
.vx-webcam:hover,
.vx-webcam:focus-visible{
  background:var(--vx-aub-d,#3d1f39);
  color:#fff!important;
}
.vx-webcam:focus-visible{
  outline:3px solid var(--vx-pet,#007086);
  outline-offset:3px;
}
.vx-webcam svg{
  flex:none;
  width:21px;
  height:21px;
}
.vx-webcam-live{
  flex:none;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--vx-menthe,#06E2A5);
}
.vx-webcam .vx-sr{
  position:absolute!important;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}
@media (max-width:760px){
  .vx-webcam{
    width:44px;
    height:44px;
    padding:0;
    justify-content:center;
    gap:0;
  }
  .vx-webcam .vx-webcam-txt{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
  }
  .vx-webcam svg{
    width:22px;
    height:22px;
  }
  .vx-webcam-live{
    position:absolute;
    top:1px;
    right:1px;
    width:11px;
    height:11px;
    box-shadow:0 0 0 2px var(--vx-creme,#FEFAF3);
  }
}
