
body {
  font-family: 'FunktionalGroteskPro-Book', sans-serif;
  color : #000;
}

a,
a:hover,
a:visited {
  color : black;
}

h1, h2, h3, h4, h5, h6 {
  margin-top : 10px;
  margin-bottom : 10px;
}


/* ERROR 404 */

.error-404 .page-title {
  padding-left : 20px;
  padding-top : 100px;
  padding-bottom : 300px;
}

.no-resident {
  padding-left : 20px;
}

/* NAVIGATION BAR */

.site-header {
  max-height : 60px;
  width : 100vw;
  background-color: white;
  border-bottom: 0.2px black solid;
  position: fixed;
  display: flex;
  justify-content:space-between;
  padding : 15px 20px;
  z-index : 99999999;
  top : 0;

}

.site-branding {
    display: inline-block;
    width: auto;
    padding: 0;
    margin: 0;

}

.site-branding svg {
    display: block;
    height: 30px;
    width: auto;
    max-width: 100%;
}

.main-navigation {
    display: inline-block;
    width: auto;
    padding: 0;
    margin: 0;
}

.main-navigation ul {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
}


.main-navigation ul,
.main-navigation li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'FunktionalGroteskPro-Semibold', sans-serif;
}

.main-navigation ul {
    display: flex;
    gap: 1rem; /* Optional spacing between menu items */
}

.main-navigation a {
    text-decoration: none !important;
    color: #000;
    padding: 0.5rem 1rem;
    display: block;
}

.main-navigation a:hover {
    text-decoration: underline !important;
}

/* .main-navigation a:hover,
.main-navigation a:focus {
  text-decoration: none;
  color: #000;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: underline;
}

.main-navigation ul ul {
  float : initial;
  display: flex;
  flex-direction : column;
  background-color : #fff;
} */

/* Ensure main nav is positioned relative for the submenu bar */
.main-navigation {
    position: relative;
    bottom: 2px;
}

.main-navigation .menu-item-has-children {
    position: relative; /* important */
}


/* Hide sub-menus by default */
.main-navigation .menu-item-has-children .sub-menu {
    display: none;
    position: absolute; /* so it can float over content */
    right: 0;
    background-color: #fff; /* sub-menu bar color */
    padding: 10px 0;    /* vertical spacing */
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
    z-index: 999;
}

/* Make the sub-menu horizontal */
.main-navigation .menu-item-has-children .sub-menu li {
    display: inline-block; /* horizontal alignment */
    margin: 0 20px;        /* spacing between items */
}

/* Style the links inside sub-menu */
.main-navigation .menu-item-has-children .sub-menu li a {
    display: block;
    padding: 5px 0;
    text-decoration: none !important;
    color: #000; /* change as needed */
}

.main-navigation .menu-item-has-children .sub-menu li a:hover {
  text-decoration: underline !important;
}


/* Show the sub-menu on hover */
.main-navigation .menu-item-has-children:hover .sub-menu {
    display: flex;
    justify-content: flex-end;
    text-align : right;
    flex-direction : column;
}

/* create the dark overlay */
main::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.1);  /* darkness */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

main.dimmed::before {
    opacity: 1;
}


/* .main-navigation .sub-menu {
  left: 50%;
  transform: translateX(-50%);
} */

/* MAIN INTRO */

.site-main {
  position: relative;
  top : 60px;
}
.main-intro {
  width : 100vw;
  display: flex;
}

.main-intro-photologo {
  width : 60%;
  height : calc(100vh - 50px);
}


.main-intro-logo svg {
  width : 100%;
  height : auto;
}
.main-intro-agenda {
  width : 40%;
}

.main-intro-agenda {
  font-size :2em;
  padding : 20px;
}

.main-intro-agenda-titre {
  font-weight: bold;
}

.main-intro-agenda-content {
  margin-top : 15px;
}

.agenda-item {
  display : block;
}

.agenda-item:hover {
  font-weight : 900;
}


.agenda-dates {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1;
}

.agenda-title {
  display: inline;
  text-transform: uppercase;
  margin-left : 1px;
}

.agenda-extra-title {
  font-size : 36px;
  text-transform: uppercase;
  margin : 5px 0;
}

.agenda-extra a,
.agenda-extra a:visited {
  color : black;
  text-decoration: underline;
}

.agenda-extra a:hover {
  color : black;
  text-decoration: none;
}

.main-intro-agenda-content {
    font-size: 1em;
    line-height: 1.5em;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 1.5em,
        black 1.52em, /* line thickness 0.02em */
        black 1.53em
    );
    padding: 0;
    border-top: 0.5px solid black;
    border-bottom: 0.5px solid black;
}

.main-intro-agenda-content .agenda-item {
    padding-top: 0.05em; /* small vertical nudge */
}


.agenda-extra {
    position: fixed;
    top: 60px;
    right: 0;
    width: calc(40vw - 20px);
    height: calc(100vh - 50px);
    background: white;
    transform: translateX(2600px); /* hidden off-screen */
    transition: transform 0.5s ease;
    overflow-y: auto;
    z-index: 9999;
    padding: 10px;
    padding-top : 50px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    font-size : 18px;
    line-height : 1.2;
}

.agenda-extra.open {
    transform: translateX(0); /* slide into view */
}

.agenda-extra .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    cursor: pointer;
}

.agenda-item {
    margin-bottom: 1.5em; /* space between items */
}

.agenda-item:last-child {
    margin-bottom: 0; /* remove spacing for last item */
}


/* MAIN RESIDENTS */

.main-residents {

  margin-top : 40px;
}

.en-ce-moment {
  font-size : 56px;
  font-weight : bold;
  color : #000;
  padding : 0 20px;
}

.main-residents-content {
  width : 100vw;
  display: flex;
  justify-content: center;
  margin-bottom : 30px;
}

.main-residents-left {
  width : 33vw;
  padding : 0 20px;
}

.main-residents-right {
  /* width : 67vw; */
  padding : 0 20px;
}
.main-residents-right img {
  max-height : 65vh !important;
  width : auto!important;
}


.main-residents-info {
  margin-top : 20px;
  line-height : 0.9;
}

.main-residents-dates {
  font-size : 20px;
  color : black;
}

.main-residents-nom {
  font-size : 32px;
  color : #000;
  line-height: 1;
  margin-top : 15px;
}

.main-residents-intro {
  font-size : 12px;
  line-height : 1.2;
}

.main-residents-intro p {
  margin-top : 5px;
  margin-bottom : 15px;
  font-size : 17px;
}


.main-residents-plus {
  font-size : 14px;
}

.main-residents-plus a {
  color : #000;
  text-decoration: underline;
}

.main-residents-plus a:hover {
  text-decoration: none;
}

/* MAIN NOUS CONNAITRE */

.main-nc {
  margin-top : 30px;
}

.lieuhybride {
  font-size : 56px;
  font-weight: bold;
  color : #000;
  padding-left : 20px;
  line-height: 1;
}

.nc-container {
  width : 100vw;
  display: flex;
  padding : 20px 0;
  justify-content: center;
}

.nc-left {
  width : 33vw;
  padding : 0 20px;
}

.nc-right {
  width : 50vw;
  max-height : 100vh;
  padding : 0 20px;
}

.nc-title {
  font-size : 56px;
  line-height: 0.9;
}

.nc-subtitle {
  font-size : 20px;
}

.nc-texte {
  font-size : 16px;
  line-height : 1.2;
}

.nc-texte p:last-child {
    margin-bottom: 0;
}

/* MAIN ARCHIVES RESIDENTS */
.archives-title {
  padding : 20px;
  font-size : 56px;
  font-weight: bold;
}
.archives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-template-rows: repeat(2, auto);   /* 2 rows */
  gap: 50px;
  padding : 0 20px;
}


.archive-item {
  text-align: left;
}

.archive-item a,
.archive-item a:visited,
.resident-card a,
.resident-card a:visited {
  color : black;
  text-decoration: none;
}

.archive-item a:hover .archive-nom,
.resident-card a:hover .archive-nom {
  color : black;
  text-decoration: underline;
}

.archive-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* perfect square */
  overflow: hidden;
}

.archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the square, crop overflow */
  display: block;
}

.archive-dates {
  font-size: 0.9em;
  margin-top: 8px;
}

.archive-nom {
  font-size: 1.3em;
  font-weight: bold;
  line-height : 1;
}

/* SCOTCH IMG */

.scotch-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100vw;
  overflow: hidden;
}

.scotch-img {
  transform: rotate(5deg) translateX(150px) translateY(40px);
  padding : 50px;
  transform-origin : center center;
  display: block;
  max-width: 35vw; /* keeps it responsive */
  position: relative;
  margin-bottom : 40px;
}

.scotch-img2 {
  transform: rotate(-2deg) translateX(-80px) translateY(40px);
  padding : 50px;
  transform-origin : center center;
  display: block;
  max-width: 55vw; /* keeps it responsive */
  position: relative;
  margin-bottom : 40px;
}

.scotch-img3 {
  transform: rotate(2deg) translateX(0px) translateY(40px);
  padding : 50px;
  transform-origin : center center;
  display: block;
  max-width: 55vw; /* keeps it responsive */
  position: relative;
  align-self: flex-end;
  margin-bottom : 0px;
}

/* MAIN GALERIE */

.main-galerie {
  padding : 20px;
}

.main-galerie-titre {
  font-size : 56px;
  font-weight : bold;
}

.main-galerie {
  width: 100%;
  overflow: hidden;
}

.main-galerie-viewport {
  width: 100%;
  overflow: hidden;
}

.main-galerie-track {
  white-space: nowrap;       /* force horizontal layout */
  font-size: 0;              /* remove spaces between inline-blocks */
}

.galerie-item {
  display: inline-block;     /* iOS-friendly horizontal items */
  vertical-align: top;
  margin-right: 20px;
}

.galerie-item img {
  height: 70vh;
  width: auto;
  display: block;
}

/* FOOTER */

.site-footer {
  padding-top : 30px;
  padding-bottom : 50px;
  margin-top : 50px;
  border-top : 0.5px solid black;
  position: relative;
  top: 30px;
  width : 100vw;
  font-weight: bold;
}

.site-footer nav ul {
  font-size : 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height : 1.2;
}

.site-footer nav ul li {
    margin: 0;
    padding: 0;
}

.site-footer nav ul li a {
  font-size : 19px;
    text-decoration: none;
    color: inherit;
}

.site-footer nav ul li a:hover {
    text-decoration: underline;
    cursor: pointer;
}


.footer-logo svg {
  width : 70%;
  position: relative;
  padding-left : 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
}

.footer-colonne1,
.footer-colonne2,
.footer-colonne3,
.footer-colonne4 {
  width : 25vw;
  font-size : 19px;
  line-height : 1.2;
}

.footer-colonne4 p {
  margin : 0;
}

.footer-colonne4 a,
.page .footer-colonne4 a {
  text-decoration: none;
  color : black;
}

.footer-colonne4 a:hover,
.footer-colonne4 a:visited,
.page .footer-colonne4 a:hover,
.page .footer-colonne4 a:visited {
  text-decoration: underline;
  color : black;

}

.footer-infos {
  display: flex;
  justify-content: space-between;
  font-size : 23px;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom : 15px;
  padding : 0 20px;
}

.footer-lieuhybride {
  text-align: right;
}

.reseaux_soc {
  display: flex;
}

.reseaux_soc svg {
    width: 30px;
    height: auto;
    display: block; /* avoids layout issues */
    margin-right : 10px;
}

/* SINGLE RESIDENT */

.single-resident-main {
  display: flex;
  padding-top : 10px;
  justify-content: center;
  margin : 0 auto;
}

.single-main-left {
  width : 50%;
  padding : 20px;
}

.single-main-content {
  width : 50%;
  padding : 20px;
}

.single-main-content .entry-title {
  margin : 0;
  font-size : 76px;
  line-height: 0.8;
}

.single-main-content .entry-content {
  line-height: 1.1;
  font-size : 20px;
  max-width : 600px;
}

.single-main-content .entry-dates {
  font-size : 22px;
  margin-top : 5px;
  line-height: 0.9;
}

.single figure {
  margin : 0;
}

.single .gallery {
  /* grid-gap : 0.7em;
  margin-bottom : 0.5em; */
}

/* .single-gallery .gallery-caption {
  position : relative;
  top: -5px;
  font-size: 14px;
  text-align: left;
} */


/* .gallery {
  grid-gap : 15px;
}

.single-infos_pages .gallery-caption,
.main-intro-agenda .gallery-caption,
.post-type-archive-agenda_soma .gallery-caption,
.single-gallery .gallery-caption,
.single-main-content .gallery-caption {
  position : relative;
  top: 5px;
  font-size: 14px;
  text-align: left;
}

.single-gallery .gallery-icon,
.single-infos_pages .gallery-icon,
.main-intro-agenda .gallery-icon,
.post-type-archive-agenda_soma .gallery-icon {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.single-gallery .gallery-icon,
.single-gallery .gallery-icon a,
.single .gallery-icon a,
.main-intro-agenda .gallery-icon a,
.post-type-archive-agenda_soma .gallery-icon a {
  width: 100%;
  height: 100%;
  display: block;
}

.single-gallery .gallery-item img,
.single-infos_pages .gallery-item img,
.main-intro-agenda .gallery-item img,
.post-type-archive-agenda_soma .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */

.gallery {
  grid-gap : 15px;
}

 .gallery-icon {
  position: relative;
  width: 100%;
  padding-bottom: 133%; /* 4/3 ratio */
  overflow: hidden;
}

 .gallery-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-infos_pages .gallery-caption,
.main-intro-agenda .gallery-caption,
.post-type-archive-agenda_soma .gallery-caption,
.single-gallery .gallery-caption,
.single-main-content .gallery-caption {
  position : relative;
  top: 5px;
  font-size: 14px;
  text-align: left;
}


/* ARCHIVE RESIDENTS */

.year-filter ul {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
}

.resident-card:hover {
  cursor : pointer;
}

.resident-card:hover .resident-name {
  text-decoration: underline;
}
.residents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 🔹 exactly 4 equal columns */
  gap: 30px;
  margin-top: 30px;
  padding : 0 20px;
}

.resident-thumb {
  width: 100%;              /* take full column width */
  aspect-ratio: 4 / 3;      /* force square shape */
  overflow: hidden;         /* crop image overflow */
}

.resident-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* fill the square */
  display: block;
}

.resident-dates {
  font-size : 14px;
  color : #787878;
  margin-top : 5px;
}

.resident-name {
  font-size : 28px;
  margin : 5px 0;
  line-height : 0.9;

}

.resident-intro {
  font-size : 14px;
  line-height : 1.2;
}

.resident-intro p {
  margin : 5px 0;

}

.archive-title {
  font-size : 36px;
  font-weight : bold;
  padding-left : 20px;
  padding-top : 30px;
}

.year-filter {
  margin-top : 15px;
}
.year-filter ul li a:hover {
  text-decoration: underline;
}
.year-filter ul {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.year-filter li {
  border: 1px solid #000;
}

.year-filter li:hover {
  cursor : pointer;
}

.year-filter a:hover {
  cursor : pointer;
}



.year-filter a {
  display: block;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: #000;
}

.year-filter a.active {
  background: none; /* background handled by JS if needed */
  color: #000;
}

/* ---------------------------
   Handcrafted layouts by count
   --------------------------- */

/* 2 years → 2 boxes 50% */
.year-filter ul.count-2 { grid-template-columns: repeat(2, 1fr); }

/* 3 years → 3 boxes 33.3% */
.year-filter ul.count-3 { grid-template-columns: repeat(3, 1fr); }

/* 4 years → 4 boxes 25% */
.year-filter ul.count-4 { grid-template-columns: repeat(4, 1fr); }

/* 5 years → first row 3 (33.3%), second row 2 (50% each) */
.year-filter ul.count-5 { grid-template-columns: repeat(3, 1fr); }
.year-filter ul.count-5 li:nth-child(4),
.year-filter ul.count-5 li:nth-child(5) { grid-column: span 2; }

/* 6 years → 2 rows of 3 (33.3% each) */
.year-filter ul.count-6 { grid-template-columns: repeat(3, 1fr); }

/* 7 years → first row 4 (25%), second row 3 (33.3%) */
.year-filter ul.count-7 { grid-template-columns: repeat(4, 1fr); }
.year-filter ul.count-7 li:nth-child(5),
.year-filter ul.count-7 li:nth-child(6),
.year-filter ul.count-7 li:nth-child(7) { grid-column: span 1; }

/* 8 years → two full rows of 4 (25%) */
.year-filter ul.count-8 { grid-template-columns: repeat(4, 1fr); }

/* 9 years → 3 + 3 + 3 (33.3% each) */
.year-filter ul.count-9 { grid-template-columns: repeat(3, 1fr); }

/* 10 years → 4 + 3 + 3 (first row 4, second/third row 3 each) */
.year-filter ul.count-10 { grid-template-columns: repeat(4, 1fr); }
.year-filter ul.count-10 li:nth-child(n+5) { grid-column: span 1; }

/* 11 years → 4 + 4 + 3 */
.year-filter ul.count-11 { grid-template-columns: repeat(4, 1fr); }
.year-filter ul.count-11 li:nth-child(n+9) { grid-column: span 1; }

/* 12 years → 4 + 4 + 4 */
.year-filter ul.count-12 { grid-template-columns: repeat(4, 1fr); }

/* 13 years → 4 + 3 + 3 + 3 */
.year-filter ul.count-13 { grid-template-columns: repeat(4, 1fr); }
.year-filter ul.count-13 li:nth-child(n+5):nth-child(-n+13) { grid-column: span 1; }

/* 14 years → 4 + 4 + 3 + 3 */
.year-filter ul.count-14 { grid-template-columns: repeat(4, 1fr); }
.year-filter ul.count-14 li:nth-child(n+9) { grid-column: span 1; }

/* 15 years → 4 + 3 + 4 + 3 */
.year-filter ul.count-15 { grid-template-columns: repeat(4, 1fr); }
.year-filter ul.count-15 li:nth-child(n+5):nth-child(-n+15) { grid-column: span 1; }

/* 16 years → 4 + 4 + 4 + 4 */
.year-filter ul.count-16 { grid-template-columns: repeat(4, 1fr); }


/* AGENDA ARCHIVES */

.agenda-archive .page-title {
  text-transform: uppercase;
  padding-left : 20px;
  font-size : 46px;
  margin-bottom : 20px;
}

.archag-list {
  border-top: 1px solid #000;
}

.archag-details-right {
  max-width : 600px;
}

.archag-item {
  border-bottom: 1px solid #000;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.archag-summary {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.archag-title {
  text-align : right;

}

.archag-dates {
  flex: 0 0 200px;
  font-weight: bold;
}



.archag-details {
  display: none;
  padding: 20px;
  background: inherit;
}

.archag-details-left {
  flex: 0 0 auto;             /* shrink to fit image */
}

.archag-details-left img {
  max-height: 33vh;
  width: auto;        /* keep aspect ratio */
  max-width: 100%;    /* don’t overflow its column */
  object-fit: cover;  /* crop nicely if it’s too tall */
  display: block;
}

.archag-desc {
  margin-bottom: 15px;
}

.archag-desc p:first-of-type {
  margin-top: 0;
}


.archag-item.expanded .archag-details {
  display: flex;              /* instead of grid */
  align-items: flex-start;    /* align at top */
  gap: 20px;
  justify-content: center;
}

.archag-link a {
  color: black;
  text-decoration: underline;
}

.archag-link a:hover {
  color: black;
  text-decoration: none;
  cursor : pointer;
}

.archag-link a:visited {
  color: black;
  text-decoration: underline;
}

#archag-load-more {
  display: block;
  margin: 40px auto;       /* center horizontally + space around */
  padding: 15px 30px;      /* bigger button */
  font-size: 1.5rem;       /* bigger font */
  border: none;
  cursor: pointer;
  font-weight: normal;
  color: #000;             /* text color */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#archag-load-more:hover {
  transform: scale(1.05);  /* slight zoom on hover */
}

/* PAGES */

.page h1 {
  font-size : 46px;
}

.page .site-main {
  margin-left : 20px;
  margin-right : 20px;
}

.page hr {
  margin : 15px 0;
  background-color: #000;
}

.page .wp-block-separator {
  border-top : 0px;
}

.page a,
.page a:visited {
  color : black;
  text-decoration: underline;
}

.page a:hover {
  color : black;
  text-decoration: none;
}

.page h1,
.page h2,
.page h3,
.page h4,
.page h5,
.page h6 {
  margin : 0;
}

.page p {
  margin-bottom : 0;
  line-height : 1.2;
}

.page .wp-block-columns {
  margin-bottom : 0;
}

.lien-page a {
  font-size : 24px;
}

.page table {
  font-size : 22px;
  font-weight: bold;
}

.page table a,
.page table a:visited {
  text-decoration: none;
}

.page table a:hover {
  text-decoration: underline;
}

.page .wp-block-table td,
.page .wp-block-table th {
  padding : 20px;
}

.page .site-main .entry-content figure.wp-block-table {
  position: relative; /* could be absolute if needed */
  left: 50%;
  right: 50%;
  margin-left: -50vw;  /* move left by half of viewport */
  margin-right: -50vw; /* move right by half of viewport */
  width: 100vw;         /* full viewport width */
  max-width: 100vw;
}

.page .site-main .entry-content figure.wp-block-table table {
  width: 100%; /* table itself takes full width */
  max-width: 100%;
}

.page figure {
  margin-top : 0;
}

/* INFO PAGES */

.single-infos_pages main {
  padding : 20px;
}

.single-infos_pages .infos-title,
.single-liens_pages .infos-title {
  margin-top : 0;
  margin-bottom : 10px;
}

.single-liens_pages .infos-title {
  margin-left : 20px;
  margin-top : 20px;
}

.liens-tableau ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid black;
  padding-bottom : 30px;
}

.liens-tableau li {
  border-bottom: 1px solid black;
  border-right: 1px solid black;
}

.liens-tableau li:nth-child(2n) {
  border-right: none; /* dernière colonne */
}

.liens-tableau a {
  display: block;
  padding: .75rem 1rem;
  text-decoration: none;
  color: inherit;
  font-size : 22px;
}

/* Hover (optionnel) */
.liens-tableau a:hover {
  text-decoration: underline;
}


.infos-colonnes {
  display : flex;
  line-height : 1.1;
  font-size : 20px;
}

.infos-main-left,
.infos-main-right {
  width : calc(50% - 20px);
}

.infos-main-left {
  padding-right : 10px;
}

.infos-main-right {
  padding-left : 10px;
}

.infos-main-left > :first-child,
.infos-main-right > :first-child {
  margin-top: 0;
}

/* FOOTER NAV */

.footer-navigation {
    width: 100%;
    padding: 20px;
}

.footer-navigation .footer-menu {
    display: flex;
    justify-content: space-between; /* evenly spaced */
    align-items: center;
    list-style: none; /* remove bullets */
    margin: 0;
    padding: 0;
}

.footer-navigation .footer-menu li {
    margin: 0; /* no extra margin, spacing handled by flex */
}

.footer-navigation .footer-menu li a {
    color: #000; /* text color */
    text-decoration: none; /* remove underline */
    font-weight: bold;
    font-size : 18px;
    text-transform: uppercase;
}

.footer-navigation .footer-menu li a:hover {
    text-decoration: underline; /* underline on hover */
}


/* RESPONSIVE */

@media (max-width: 600px) {

  .site-main {
    top : 50px;
  }

  .main-navigation {
    font-size : 12px;
    top : 8px;
  }

  .main-navigation a {
    padding : 0;
  }

  .site-header {
    max-height : 50px;
    padding : 10px;
  }

  .main-intro {
    flex-direction: column;
  }

  .main-intro-photologo,
  .main-intro-agenda {
    width : 100vw;
  }

  .main-intro-photologo {
    height : initial;
  }

  .main-intro-agenda {
    font-size : 20px;
    padding : 10px;
  }

  .main-intro-agenda-titre {
    font-size : 45px;
  }

  .main-intro-agenda-content,
  .agenda-item {
    max-width : calc(100vw - 20px);
  }

  .en-ce-moment {
    font-size : 28px;
    padding : 0 10px;
  }

  .main-residents-nom {
    font-size : 22px;
    margin-top : 7px;
  }
  .main-residents-content {
    flex-direction: column;
  }

  .main-residents-left,
  .main-residents-right {
    width : 100vw;
    padding :  10px;
  }

  .main-residents-right {
    display: none;
  }

  .main-residents-info {
    margin-top : 10px;
    line-height : 1.2;
  }

  .archag-desc {
    line-height : 1.2;
  }

  .year-filter li {
    border: 0.5px solid #000;
  }


  .lieuhybride {
    font-size : 42px;
    padding-left : 10px;
  }
  .nc-container {
    flex-direction: column-reverse;
  }

  .nc-title {
    font-size : 28px;
  }

  .nc-left,
  .nc-right {
    width : 100vw;
    padding: 0 10px;
  }

  .nc-left {
    margin-top : 10px;
  }

  .archives-title {
    font-size : 28px;
    padding : 10px;
  }

  .archives-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10px;
  }

  .archive-nom {
    font-size : 16px;
  }

  .archive-dates {
    font-size : 12px;
  }

  .footer-navigation .footer-menu {
    flex-wrap : wrap;
  }

  .main-galerie-titre {
    font-size : 28px;
  }

  .main-galerie {
    padding : 10px;
  }
  .galerie-item img {
    width : auto;
    height : 43vh;
  }
  .footer-infos {
    font-size : 16px;
    padding : 0 10px;
  }

  .footer-navigation {
    font-size : 14px;
    padding : 10px;
  }

  .footer-navigation .footer-menu li a {
    font-size : 12px;
  }

  .scotch-img {
    transform: rotate(10deg) translateX(-50px) translateY(30px);
    padding: 30px;
    transform-origin: center center;
    display: block;
    width: 100%;
    max-width : 100%;
    position: relative;
    display: block;
  }

  .scotch-img2 {
    transform: rotate(-2deg) translateX(30px) translateY(0px);
    padding: 30px;
    transform-origin: center center;
    display: block;
    width: 100%;
    max-width : 100%;
    position: relative;
    display: block;
  }

  .scotch-img3 {
    transform: rotate(2deg) translateX(0px) translateY(40px);
    padding: 30px;
    transform-origin: center center;
    display: block;
    width: 100%;
    max-width : 100%;
    position: relative;
    display: block;
  }

  .scotch-container {
    overflow: hidden;
  }

  .main-navigation .menu-item-has-children .sub-menu {
    padding-bottom : 0;
  }

  .main-navigation .menu-item-has-children .sub-menu li {
    margin : 10px;
  }

  .main-navigation .sub-menu {
    gap : 10px !important;
  }

  .main-navigation ul ul a {
    width : 100% !important;
    display: block;
  }
  .main-navigation .menu-item-has-children .sub-menu li {
    margin-top : 0;
    margin-bottom : 0;
    display: block;
  }

  .agenda-extra {
    width : 100vw;
    top : 50px;
    padding : 10px;
  }

  .agenda-extra-dates {
    margin-top : 30px;
  }

  .agenda-archive .page-title {
    text-transform: uppercase;
    padding-left: 10px;
    font-size: 28px;
    margin-bottom: 10px;
  }

  .archag-summary {
    padding: 10px;
    font-size: 15px;

    }

    .archag-item.expanded .archag-details {
      flex-direction : column;
    }

    .archag-details-left {
      align-self : center;
    }

    .archive-title {
      font-size: 28px;
      font-weight: bold;
      padding-left: 10px;
      padding-top: 20px;
    }

    .year-filter a {
      display: block;
      padding: 8px;
      text-align: center;
      text-decoration: none;
      color: #000;
    }

    .residents-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 15px;
          margin-top: 20px;
          padding: 0 10px;
      }

    .resident-name {
          font-size: 22px;
      }
    .resident-intro {
        font-size: 11px;
    }

    .page .site-main {
        margin-left: 10px;
        margin-right: 10px;
        top : 35px;
    }

    .page h1 {
      font-size : 38px;
    }
    .single-resident-main {
      flex-direction : column;
    }
    .single-main-left,
    .single-main-content {
      width : 100%;
      padding : 10px;
    }

    .single-main-content .entry-title {
      font-size : 28px;
    }

    .entry-content p {
      line-height : 1.2;
      font-size : 14px;
    }

    .site-footer nav ul li a,
    .footer-colonne1, .footer-colonne2, .footer-colonne3, .footer-colonne4 {
      font-size : 11px;
    }

    .footer-colonne1 {
      width : 100vw;
      line-height: 1
    }
    .footer-colonne2,
    .footer-colonne3 {
        width: 33vw;
        line-height: 0.8
    }

    .footer-colonne4 {
        width: 33vw;
        line-height: 1.2;
    }

    .site-footer nav ul {
      line-height: 0.8;
    }

    .footer-colonne2,
    .footer-logo svg {
      padding-left : 10px;
    }

    .footer-logo svg {
      width : calc(100% - 10px);
      margin-bottom : 25px;
    }


}

@media (min-width: 1800px) {
  .site-header {
    max-height: 80px;
  }

  .site-branding svg {
    height : 50px;
  }

  .main-navigation {
    font-size : 22px;
    top : 2px;
  }

  .agenda-extra-title {
    font-size: 40px;
  }

  .agenda-description p {
    font-size : 20px;
  }

  .agenda-extra .close-btn {
    font-size : 3em;
  }

  .site-main,
  .agenda-extra {
    top: 80px;
  }

  .en-ce-moment,
  .nc-title,
  .archives-title,
  .main-galerie-titre,
  .page-title,
  .archive-title,
  .page h1 {
    font-size : 66px;
  }

  .page h2,
  .lien-page a {
    font-size : 48px;
  }

  .nc-subtitle,
  .footer-nav li a,
  .year-filter {
    font-size : 28px;
  }

  .main-residents-dates,
  .archive-dates,
  .resident-dates {
    font-size : 16px;
  }

  .main-residents-nom,
  .archive-nom,
  .footer-lieuhybride,
  .footer-adresse,
  .archag-summary,
  #archag-load-more,
  .resident-name {
    font-size : 36px;
  }

.post-type-archive .site-main {
  padding-bottom : 30px;
}


  .archag-dates {
    flex: 0 0 290px;
  }

  .main-residents-intro,
  .nc-texte {
    font-size : 18px;
  }


  .archag-details-right,
  .resident-intro,
  .page p {
    font-size : 22px;
    line-height : 1.2;
  }

  .main-residents-plus {
    font-size : 16px;
  }

  .single-main-content .entry-content {
    font-size : 1.3em;
    line-height : 1.2;
  }

  #page table {
    font-size : 28px;
  }

}
