/*
Theme Name: ANV-COP21 - Alternatiba GRENOBLE
Author: Groupe Informatique d'ANV-Cop21 / Alternatiba GRENOBLE
Template: anv-cop21
Description: Thème dédié à Alternatiba Grenoble
Version: 1.0
*/


/* UTILISATION :
Dans ce CSS, les couleurs utilisées sur le site sont listées en premier lieu. Les Groupes Locaux qui souhaitent personnaliser le thème au-delà de ce qui est développé par le Groupe Informatique devraient le faire après la balise /* FIN COULEURS */

/*
Liste des couleurs :
- Couleur d'écriture principale : #47425d
- Gris foncé des titres : #443f3f
- Gris clair de contrast : #252525
- Gris très clair de contrast sur blanc : #d9d8d8
- Rouge ANV : #690F0F
- Jaune ANV : #ECBF25
- Blanc ANV : #FFF
- Vert Alt : #00804D
- Jaune Alt : #FED819
- Framboise Alt : #D64B4C
- Bleu foncé Alt : #00083A

- Rouge du message d'erreur : #AC1919
*/

/**********************/
/***   FRONT PAGE   ***/
/**********************/

/* Bannière */
.bande-hero {
  height: 320px;
  margin-top: -85px;
  overflow: hidden;
  position: relative;
}

.bande-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* Qui sommes-nous ? */
.qsn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;

  transform: translateY(-55px);
  position: relative;
  z-index: 2;
}
.qsn-card {
  position: relative;
  display: flex;

  overflow: hidden;
  border-radius: 18px;

  color: #fff;
  text-decoration: none;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.qsn-card.vert {
  background-color: #00804d;
}

.qsn-card.rouge {
  background-color: #690f0f;
}
.qsn-card__contenu {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content:space-between;

  padding: 30px 32px 26px;

  box-sizing: border-box;
}
.qsn-card__contenu h2 {
  margin: 0 0 14px;
  color: #ecbf25;
  letter-spacing: -0.035em;
}
.qsn-card__esp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /*color:#FED819;*/
}
.qsn-card__fleche {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;

    transition:
        transform .25s ease,
        background .25s ease;
}
.qsn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}
.qsn-card:hover .qsn-card__fleche {
  background: rgba(255,255,255,.12);
  transform: translate(5px, -3px);
}
@media (max-width: 600px) {
  .bande-hero {
    height: 200px;
  }
  .qsn {
    grid-template-columns: 1fr;
    gap: 12px;
    transform: translateY(-25px);
  }
}

/* Calendrier */
.calendar-iframe {
  width:100%;
  min-height:min(550px,95vh);
  max-height:100vh;
  aspect-ratio: 1 / 1;
  border-radius:1rem 1rem 0rem 0rem;
}

/* Liste des articles */

.articles_liste {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: stretch;
}

/* Tuile */

.article-tuile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;

    background: #fff;
    border: 1px solid #e8e9e7;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(20, 35, 25, 0.04);

    text-align: left;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Lien couvrant toute la carte */

.article-tuile .tuile-lien-global {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

/* Focus clavier */

.article-tuile .tuile-lien-global:focus-visible {
    outline: 3px solid #356344;
    outline-offset: -4px;
}

/* Survol */

@media (hover: hover) and (pointer: fine) {
    .article-tuile:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(20, 35, 25, 0.12);
        border-color: #d5dfd4;
    }

    .article-tuile .thumbnail_container img {
        transition: filter 0.25s ease;
    }

    .article-tuile:hover .thumbnail_container img {
        filter: brightness(1.05);
    }
}

/* Image */

.article-tuile .thumbnail_container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f3ef;
}

.article-tuile .thumbnail_container a {
    display: block;
    width: 100%;
    height: 100%;
}

.article-tuile .thumbnail_container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Badges */

.article-tuile .pastille_local,
.article-tuile .pastille_global {
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
    max-width: calc(100% - 36px);
    margin: 18px 18px 0;
    padding: 6px 10px;

    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.035em;
    overflow-wrap: anywhere;
}

.article-tuile .pastille_local {
    color: #356344;
    background: #eaf3eb;
}

.article-tuile .pastille_global {
    color: #555d53;
    background: #f0f1ed;
}

/* Contenu */

.article-tuile .text_container {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 0;
}

.article-tuile .text_container_wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    padding: 18px 22px 22px;
}

/* Titres */

.article-tuile h3.centered {
    width: 100%;
    margin: 0 0 12px;
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.025em;
    text-align: left;
    overflow-wrap: anywhere;
}

.article-tuile h3 a {
    color: #253b2d;
    text-decoration: none;
}

.article-tuile h3 a:hover {
    color: #487a53;
}

/* Date et auteur */

.article-tuile .article_informations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 0;
    margin: 0 0 16px;
    color: #777d77;
    font-size: 0.82rem;
    line-height: 1.5;
}

.article-tuile .article_informations li {
    margin: 0;
}

.article-tuile .article_informations a {
    color: #596b5c;
    text-decoration: none;
}

/* Catégories */

.article-tuile .article_categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
    padding: 0;
    margin: 0 0 14px;
    text-align: left;
}

.article-tuile .article_categories li {
    margin: 0;
}

.article-tuile .article_categories a {
    display: inline-block;
    padding: 5px 9px;
    color: #526b55;
    background: #f2f5f0;
    border: 1px solid #e7ece4;
    border-radius: 4px;
    font-size: 0.74rem;
    line-height: 1.4;
    text-decoration: none;
}

/* Résumé */

.article-tuile .text_container_wrapper > p {
    margin: 0 0 22px;
    color: #626a63;
    font-size: 0.94rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* Lire l'article */

.article-tuile .lien-lecture {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 4px;
    color: #356344;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.article-tuile .lien-lecture:hover {
    color: #203f2b;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Le lien global reste au-dessus des contenus.
   Désactiver ses interactions sur les liens internes
   nécessite une adaptation si ceux-ci doivent rester actifs. */

/* Tablettes */

@media (max-width: 1024px) {
    .articles_liste {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .article-tuile .text_container_wrapper {
        padding: 18px 20px 22px;
    }
}

/* Mobiles */

@media (max-width: 600px) {
    .articles_liste {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-tuile {
        border-radius: 12px;
    }

    .article-tuile .text_container_wrapper {
        padding: 16px 18px 20px;
    }

    .article-tuile h3.centered {
        font-size: 1.2rem;
    }

    .article-tuile .pastille_local,
    .article-tuile .pastille_global {
        margin: 15px 18px 0;
    }
}

/* Préférences d'accessibilité */

@media (prefers-reduced-motion: reduce) {
    .article-tuile,
    .article-tuile .thumbnail_container img {
        transition: none;
    }
}

/* END FRONT PAGE */






.mr-7px {
  margin-right:7px;
}

.mb-5px {
  margin-bottom:15px;
}






















/* IMAGES */
/*
Ici, on modifie le nom de l'image de bannière sur mobile (version portrait) 
Pour modifier les version landscape, il faut se rendre en fin de ce fichier dans la zone des media-queries
*/
#banniere_anv{
    background: url('images/2022-01-20 15.12.06-Sandy-2019-greve-generale.jpg') no-repeat;
}

/* COULEUR */
body{
	/* color: #171717; */
	background: #fff;
}
a{
	color: #D64B4C;
}

::selection {
    background-color: #47425d;
	color: #fff;
}

#main_content_container{
	background-color:#f3f3f3;
	
}
/* Titres */
h2 {
	color: #00804d;
}
h1 {
	margin: 0 auto;
	display: table;
	font-size: 3em;
	clear: both;
    letter-spacing: 0.04em;
    line-height: 1.5em;
	font-weight: 600;
	font-family:'Oswald', sans-serif;
	border-bottom: solid 3px #D64B4C;
	color: #00804d;
	margin-bottom:35px;
}
/* message d'erreur */
.error{
	color: #ac1919;
	border-color: #ac1919;
}
/* CTA */
.anv_cta a{
	color: #fff;
	background: #00804d;
}
.anv_cta a:hover{
	color: #D64B4C;
	background: #fff;
	border-color: #D64B4C;
}
.anv_cta_ghost a{
	color: #fff;
	border-color: #fff;
	background: #fff0;
}
.anv_cta_ghost a:hover{
	color: #4b133082;
	background: #fff;
}
.anv_cta_blanc a{
	color: #D64B4C;
	border-color: #fff;
	background: #fff;
}
.anv_cta_blanc a:hover{
	color: #fff;
	background: #00804d;
}
.anv_cta_jaune a{
	color: #00083A;
	border-color: #fed819;
	background: #fed819;
}
.anv_cta_jaune a:hover{
	color: #fed819;
	background: #00083A;
	border-color: #fed819;
}

.anv_cta_vert a {
	color: #fff;
	background:#00804D;
}

.anv_cta_vert a:hover {
	color: #fff;
	background: #D64B4C;
}

.anv_cta_dark a{
	color: #4c4c4c;
	border-color: #4c4c4c;
	background: #fff0;
}

.anv_cta_framboise a {
	color: #fff;
	border-color: #D64B4C;
	background: #D64B4C;
}

.anv_cta_framboise a:hover {
	color: #fff;
	border-color: #00804D;
	background: #00804D;
}

.anv_cta_bleu {
	color: #D64B4C;
	background-color: #00083A;
	border: #00083A;
}

.anv_cta_bleu:hover {
	color: #00083A;
	background-color: #fff;
	border: #00083A;
}

/* Image par défaut */
.anv_image_par_defaut{
	background: #d9d8d8;
}
.anv_image_par_defaut svg path{
	fill: #443f3f;
}








/******************/
/***   HEADER   ***/
/******************/
header {
  top: 15px;
  left: 0;
  z-index: 1000;
  transition:transform 0.3s ease-in-out;
  transform: translateY(0);
  will-change: transform;
}
.header_wrapper {
  max-width:min(95vw, 74rem);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 0 10px;
  background: #fff;
  border: 1px solid rgba(37, 37, 37, 0.08);
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow:
    0 12px 35px rgba(45, 63, 83, 0.09),
    0 3px 10px rgba(45, 63, 83, 0.04);
  pointer-events: auto;
  transition:
    box-shadow 200ms ease,
    border-color 200ms ease,
}
header.fixed.header--hidden {
    transform: translateY(-100px);
}
.header_wrapper:hover {
  border-color: rgba(37, 37, 37, 0.12);
  box-shadow:
    0 15px 40px rgba(45, 63, 83, 0.11),
    0 4px 12px rgba(45, 63, 83, 0.05);
}
#logo_header img {
  display: block;
  max-height: 68px;
  width: auto;
  margin-left: 12px;
}
.header_menu {
  display: flex;
  align-items: center;
}
.header_menu > div > a {
  color: #00804d;
}
.header_menu > div > a:hover {
  color: #D64B4C;
}
.header_menu > a {
  padding: 0.65rem 1.15rem;
  background: #D64B4C;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(214, 75, 76, 0.18);
}
.header_menu > a:hover {
  background: #BD3F40;
}
@media (max-width: 880px) {
    .header_menu {
      display:none;
    }
}
#hbm_checkbox{
	display: none;
}
.hbm_label {
  color: #00804d;
  margin-left:10px;
  cursor:pointer;
  transition: color 180ms ease;
}
.hbm_label:hover {
  color: #D64B4C;
}

/* END HEADER */


/**************************/
/***   HAMBURGER MENU   ***/
/**************************/

.hbm_wrapper {
  position: absolute;
  top: 90px;
  left: 50%;
  right: auto;
  width: min(95vw, 74rem);
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  border-radius: 12px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.20),
    0 4px 12px rgba(0, 0, 0, 0.10);
  z-index: 1001;
  overflow: hidden;
}
.hbm_container {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 0.4s ease,
    opacity 0.25s ease,
    transform 0.3s ease;
}
#hbm_checkbox:checked ~ .hbm_wrapper .hbm_container {
  max-height: calc(100dvh - 120px);
  opacity: 1;
  transform: translateY(0);
}
#hbm_menu h3, footer h3 {
  color: #FED819;
  margin: 0 0 22px;
}
#hbm_menu h3::after, footer h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  background: #FED819;
  border-radius: 2px;
}
#hbm_menu a, footer a {
  display: inline-block;
  color: #fff;
  font-weight: 400;
}
#hbm_menu a:hover, footer a:hover {
  transform:translateX(3px);
}
#hbm_menu {
  max-height: calc(100dvh - 180px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#hbm_menu::-webkit-scrollbar {
  display: none;
}

@media (max-width: 880px) {
  #hbm_menu {
    align-items:start !important;
    
  }
}

/* END HAMBURGER MENU */


/******************/
/***   FOOTER   ***/
/******************/

footer{
	color: #fff;
	background: #333;
}
#logo_footer {
  max-width: 150px;
  height: auto;
}
.menu_container {
    display: flex;
    justify-content: space-between;
}
@media (max-width: 880px) {
    .menu_container {
      flex-direction: column;
      align-items:center;
    }
    footer .menu_container > div {
      min-width:220px;
    }
}

/* END FOOTER */
