/*
Theme Name: Chiffonnier
Template : twentytwentyfive
Author: Fanny Plantier
*/

:root {
  --gutter: 2%;
  --nav-gap: 3%;
  --nav-mobile-width: 55%;
}

body {
  margin: 0;
  font-family: 'livvic-regular', sans-serif;
}

/* ========== header ========== */
#mon-header {
  background-color: #104b4d;
  color: #fff;
  padding: calc(var(--gutter) * 0.6) calc(var(--gutter) * 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1001;
}

/* ========== logo ========== */
.desktop-logo {
  display: block;
}

.mobile-logo {
  display: none;
}

.site-logo {
  height: auto;
  max-height: 30vh;
  width: auto;
  max-width: 36%;
}

/* =========== navigation desktop ========== */
#primary-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

#primary-nav ul {
  display: flex;
  gap: 1.875rem;
  text-transform: uppercase;
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-nav ul li {
  position: relative;
}

#primary-nav ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

#primary-nav ul li a:hover {
  color: #ffaf00;
}

/* sous-menus desktop */
#primary-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #104b4d;
  min-width: 180px;
  padding: 0.5rem 0;
  box-shadow: none;
  z-index: 9999;
  text-transform: none;
}

#primary-nav ul li:hover > ul {
  display: block;
}

#primary-nav ul ul li a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

#primary-nav ul ul li a:hover {
  background: #992800;
  color: #ffaf00;
}

/* =========== footer =========== */
#mon-footer {
  text-align: center;
  font-size: small;
  background-color: #104b4d;
  color: whitesmoke;
  padding: 0.8% 0;
  margin-top: 4%;
  line-height: 1.5;

}

.mentions-legales {
  color: whitesmoke;
  font-size: x-small;
}

.mentions-legales a {
  color: whitesmoke;
  text-decoration: none;
}

.mentions-legales a:hover {
  text-decoration: underline;
  color: #54ae9b;
}

.chiffonnier-upper {
  color: #ffaf00;
  text-transform: uppercase;
}

.enchante-upper {
  color: #d34a24;
  text-transform: uppercase;
}

/* =========== général =========== */

body {
  margin: 0;
}

h1 {
  font-size: x-large;
  color: #992800;
  text-transform: uppercase;
  padding: 3% 15% 1% 15%;
}

h2 {
  font-size: x-large;
  color: #3c7f72;
  padding: 3% 15% 1% 15%;
}

h3 {
  font-size: large;
  color: #d34a24;
  padding: 0 15%;
}

h4 {
  font-size: large;
  color: #ffaf00;
  padding: 0 15%;
  text-transform: uppercase;
}

h5 {
  font-size: medium;
  color: #ffaf00;
  padding: 0 15%;
  text-transform: uppercase;
}


p {
  margin: 0;
  padding: 0 15% 2% 15%;
  font-size: large;
  line-height: 1.7;
}

blockquote {
  margin: 0;
}

.separateur-titre {
  display: block;
  width: 40%;
  margin: 0 0 4% 15%;
  border: 1px solid #992800;
  background: transparent;
  padding: 0;
} 

.separateur-hr {
  width: 40%;
  margin: 2% auto 3% auto; 
}

.bouton a {
display: flex;
justify-content: center;
background-color: #ffaf00;
color: #104b4d;
margin-bottom: 5%;
font-weight: bold;
}

.bouton a:hover {
background-color: #d34a24;
color: #ffaf00;
}

/* =========== page accueil =========== */
.accueil-texte-3-colonnes {
  display: flex;
  justify-content: center;
  padding: 0 10%;
  }

  .accueil-citation {
  font-style: italic;
  font-size: xx-large;
  color:#ffaf00;
  padding: 4% 10% 0;
  }

/* =========== page ateliers tissage =========== */
.page-id-63 p a {
 text-decoration: underline;
 color: #ffaf00;
 font-style: italic;
}

.page-id-63 p a:hover {
 color: #54ae9b;
}

.tissage-photo-haut-page {
  padding: 0 15% 5% 15%; 
  margin: 0 auto; 
}

.tissage-3-colonnes{
  padding: 2% 15% 1% 15%;
  column-gap: 3%;
}

.tissage-1-colonne {
  padding: 2%;
  line-height: 1.2;
  border-top-right-radius: 20%;
  border-bottom-left-radius: 20%;
}

.tissage-1-colonne ul {
  margin: 0;
  padding: 1% 2% 6% 4%;
}

.tissage-1-colonne li{
  margin: 3%;
}

.tissage-photo-g-liste {
  padding: 1% 13% 0 15%;
}

.tissage-photo-d-liste {
  padding: 1% 15% 1% 12%;
}

.tissage-photo-g-liste li, 
.tissage-photo-d-liste li, 
.tissage-photo-d-liste2 li {
  line-height: 1.3;
  padding: 1rem 0 1rem 0;
  font-size: large;
}

.tissage-photo-d-liste2 {
  padding: 1% 14% 1% 13%;
}

.tissage-galerie {
  display: flex;
  padding: 0 15%;
  flex-wrap: nowrap;
  gap: 5% !important;
  width: 70%;
  height: auto;
}

.tissage-2-colonnes {
  gap: 7%;
  line-height: 1.7; 
  padding: 0 15%;
}

.tissage-2-colonnes p {
border :#ffaf00 solid 0.4rem;
padding: 2rem;
border-radius: 1rem;
font-size: larger;
}

.tissage-precision {
  font-size: x-large;
  font-weight: bold;
  color: #d34a24;
  padding: 2% 15% 3% 15%;
}

/* =========== page conférences =========== */
.conf-liste {
  padding-top: 2%;
  padding-bottom: 3%
}

.conf-en-tete {
  display: flex;
  padding-top: 2%
}

.conf-titre {
  text-transform: uppercase;
  padding-left: 1%;
  color:#3c7f72;
  font-weight:bold;

}

.conf-chevron {
  padding-left: 17%
}

.conf-detail {
  padding-top: 1%;
  font-style: italic;
  line-height: 1.5;
  transition: opacity 0.8s ease, max-height 0.8s ease;
  opacity: 0; 
  max-height: 0;
  overflow: hidden;
}

.conf-detail p {
  font-size: medium !important;
  padding: 0 17% !important;
}

.conf-item.open .conf-detail {
  opacity: 1;
  height: auto;
}

.conf-chevron i {
  transition: transform 0.3s;
}

.conf-item.open .conf-chevron i {
  transform: rotate(90deg);
}

.conf-tarif {
  font-weight: bold;
  font-style: italic;
  color: #d34a24;
}

.conf-bouton {
  display: inline;
  padding : 1% 15% 0 15%;
  justify-content: center;
}

/* ========== page troc ========== */
.troc-photos {
  padding: 2% 15%;
  gap: 5%;
}

.troc-citation {
  font-style: italic;
  font-size: x-large;
  color:#54ae9b;
}

.troc-photo-texte {
  padding: 0 15% 3% 15%;
}

.troc-photo-texte img{
	border-radius: 5%;
}

.troc-photo-texte p {
  padding-left: 2% !important;
  line-height: 1.5 !important;
}

.troc-precision, 
.troc-appel-a-orga {
  font-size: x-large;
  font-weight: bold;
  color: #d34a24;
  padding: 0 15% 3% 15%;
}

/* ========== page contact ========== */
.contact-formulaire {
  padding: 0 15% 3% 15%;
}

.contact-formulaire form {
  box-sizing: border-box;
  width: 60%;
  margin: 0 auto;
}


/* ========== page en construction ========== */
.construction-illustration {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4%
}

/* ========== page agenda ========== */
.agenda-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 3%;
  margin-bottom: 2%;
}

.event-ha {
  flex: 1 1 30%;
  max-width: 30%; 
  border: none; 
  min-height: 44rem; 
}

.event-ha iframe {
  width: 100% !important;
  height: 100% !important;
}

.event-ha:first-child {
  margin-left: 15%; /
}

/* ================================================== RESPONSIVE ================================================== */

/* =========== header =========== */
/* cacher le bouton burger sur desktop */
#menu-toggle {
  display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 30px;
  height: 4px;
  background: whitesmoke;
  position: relative;
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-icon::before { 
  top: -10px; 
}

.menu-icon::after { 
  top: 10px; 
}

/* burger → croix */
#mon-header.menu-open #menu-toggle .menu-icon { 
  background: transparent; 
}

#mon-header.menu-open #menu-toggle .menu-icon::before { 
  transform: rotate(45deg); 
  top: 0; 
}

#mon-header.menu-open #menu-toggle .menu-icon::after { 
  transform: rotate(-45deg); 
  top: 0; 
}

@media (max-width: 768px) {
   #mon-header {
    position: fixed;      
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4000;   
    padding: 2%;    
  }

  /* logo */
  .desktop-logo { 
    display: none; 
  }

  .mobile-logo {
    display: block;
    max-width: 55%;
    max-height: 12%;
  }

  /* bouton burger */
  #menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1% 5%; 
    z-index: 2100;
  }

  /* drawer nav */
  #primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-mobile-width);
    height: 100%;
    background: #104b4d;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 10%; 
    overflow-y: auto;
    box-shadow: 2% 0 8% rgba(0,0,0,0.2);
    z-index: 2000;
  }

  #mon-header.menu-open #primary-nav {
    transform: translateX(0);
  }

  /* menu items */
  #primary-nav ul {
    flex-direction: column;
    gap: var(--nav-gap);
    width: 100%;
    padding-left: 6%;
    padding-right: 6%;
    box-sizing: border-box;
  }

  /* sous-menus accordéon */
  #primary-nav ul ul {
    display: none;
    position: static;
    background: #104b4d;
    box-shadow: none;
    padding-left: 0;
    margin-left: 0;
  }

  #primary-nav ul li:hover > ul,
  #primary-nav ul li:focus-within > ul {
    display: block;
  }

  /* indentation par niveau */
  #primary-nav ul ul { 
    margin-left: 10%; 
  }

  #primary-nav ul ul ul { 
    margin-left: 15%; 
  }

  #primary-nav ul ul ul ul { 
    margin-left: 20%; 
  }

  #primary-nav ul ul li a { 
    padding-left: 6%; 
    text-transform: none;
    font-size: smaller;
  }

  /* =========== footer ========== */
  #mon-footer {
    text-align: center;
    font-size: small;
    background-color: #104b4d;
    color: whitesmoke;
    padding: 3% 0;
  }

  .mentions-legales {
    color: whitesmoke;
    font-size: x-small;
  }

  .mentions-legales a {
    color: whitesmoke;
    text-decoration: underline;
  }

  .chiffonnier-upper {
    color: #ffaf00;
    text-transform: uppercase;
  }

  .enchante-upper {
    color: #d34a24;
    text-transform: uppercase;
  }


  /* =========== général ========== */
  body {
    margin: 0;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1 0 auto;
    margin: 6% 0 3% 0;
  }

  h1 {
    margin-top: 10% !important;
    font-size: larger;
    padding: 5% 10% 1% 10%; 
  }

  h2 {
    font-size: large;
    padding: 5% 10% 0 10%;
  }

  h3 {
    font-size: medium;
    padding: 2% 10% 0 ;
  }

  p {
    margin: 0;
    padding: 0 10% 1% 10%;
    font-size: medium;
  }

  blockquote {
   margin: 0;
  }

  .separateur-titre {
    display: block;
    width: 50%;
    margin: 0 0 8% 10%; 
    border: 1px solid #992800;
    background: transparent;
    padding: 0;
  }

   .bouton a{
    margin-top: 4%;
  }

  /* ========== page accueil ========== */

  #metaslider-id-151 {
    padding-top: 8%;
  }

  .flex-control-nav,
  .flex-direction-nav {
    display:none;
  }

  .accueil-h1 {
      margin-top: 0 !important;
  }

  .accueil-texte-3-colonnes {
      font-size: medium;
    }

  .accueil-texte-3-colonnes p {
    padding: 0;
  }

  .accueil-citation {
    font-style: italic;
    font-size: large;
    color:#ffaf00;
  }

  /* ========== page conférences ========== */
  .conf-liste {
  padding-bottom: 0 !important;
  }

  .conf-chevron {
    padding-left: 10%;
  }

  .conf-titre {
    padding: 0 10% 0 3%;
  }

  .conf-item {
    margin-bottom: 5%;
  }

  .conf-liste {
    padding-top: 7%;
  }

  /* ========== page troc ========== */
  .troc-citation {
    padding: 0 10% 4% 10%;
  }

  .troc-photo-texte {
    padding: 0 10% 2% 10%;
  }
  
  .troc-photo-texte img {
    margin-bottom: 5%;
  }

  .troc-photo-texte p {
    padding: 0 !important;
  }

  .wp-block-media-text > .wp-block-media-text__content {
  padding: 0 !important;
  }

  .troc-precision, 
  .troc-appel-a-orga {
  font-size: large;
  font-weight: bold;
  color: #54ae9b;
  padding: 5% 10%;
  line-height: 1.5;
  }
  
  /* ========== page ateliers tissage ========== */
  .tissage-2-colonnes {
    padding: 0 10%;
  }

  .tissage-2-colonnes p{
    margin-bottom: 5%;
    border: 0.2rem solid #ffaf00 !important;
    line-height: 1.3;
    padding: 4% !important
  }

  .tissage-precision {
    font-size: large;
    padding: 0 10% 8% 10%;
  }

  .tissage-galerie1, 
  .tissage-galerie3 {
    display:none !important;
  }

  .tissage-galerie2 {
    padding: 4% 10% 0  10%;
  }

  /* ========== page contact ========== */
  .contact-formulaire {
    padding: 0 10% 3% 10%;
  }

  .contact-formulaire form {
    box-sizing: border-box;
    width: 80%;
    margin: 0 auto;
  }

  /* ========== page en construction ========== */
  .construction-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
    padding-top: 45%;
  }

  /* ========== page agenda ========== */
  .agenda-container {
    justify-content: center;
  }

  .event-ha,
  .event-ha:first-child {
    flex-basis: 90%;
    max-width: 90%;
    margin-left: 0;    
  }
}
