
/* Variables CSS */
:root {
  --black: #1D1D1D;
  --yellow: #FBCE04;
  --gray: #a1a0a0;
  --darkgray: #333333;
  --white: #FFFFFF;
  --radius: 0.5rem;
}

/* Réinitialisation CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--black);
  line-height: 1.5;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

button{
    background-color: transparent;
    border: none;
}

a{
  text-decoration: none;
  gap: 48px;
  list-style-type: none;
  color: var(--darkgray);
  font-weight: 500;
}
  
a:hover {
  color: var(--black);
  position: relative;      
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--yellow);
}

a:hover::after {
  width: 100%;
}

.invisiblelink a{
  text-decoration: none;
}
  
.invisiblelink a:hover {
  text-decoration: none;     
}

.invisiblelink a::after {
  text-decoration: none;
  position: relative;
  height:0px;
}

/* Layout général */
main {
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}


@font-face {
   font-family: Impact;
   src: url('../fonts/Impact.ttf') format('truetype');
}

.scrollable-section{
  touch-action: pan-y;
  -ms-touch-action:pan-y;
}


/* ---------- Typo ---------- */

      h1{
        font-family: 'Raleway', sans-serif;
        font-weight: 900;
        font-size: 3rem;
        text-align: left;
        text-transform: uppercase;
        margin-bottom: 0.3rem;
      }

      h2{
        font-family: 'Raleway', sans-serif;
        font-weight: 900;
        font-size: 2rem;
        text-align: center;
        margin-bottom: 3rem;
      }

      h3{
        font-family: 'Raleway', sans-serif;
        font-weight: 700;
        font-size: 1.8rem;
      }

      h4{
         font-family: 'Raleway', sans-serif;
        font-weight: 600;
        font-size: 1.4rem;
      }

      h5{
        font-family: 'Raleway', sans-serif;
        font-weight: 400;
        font-size: 1.4rem;
      }

      h6{
        font-family: 'Raleway', sans-serif;
        font-weight: 700;
        font-size: 1rem;
      }


      .quote{
        font-family: 'Open Sans', sans-serif;
        font-style: italic;
        font-weight: 300;
        color: var(--gray);
      }

      .project-name{
        font-family: 'Open Sans', sans-serif;
        font-style: italic;
        font-weight: 300;
        color: var(--darkgray);
      }

/* ---------- Align ---------- */

    .textcenter{
      text-align: center;
    }

    .textleft{
      text-align: left;
    }
    .textright{
      text-align: right;
    }

    .itemcenter{
      align-items: center;
    }

    .itemend{
      align-items: end;
    }

  .vert-align-bottom{
    vertical-align:text-bottom;
  }


  section{
    padding: 4rem 0rem;
  }


/* ---------- HEADER --------- */
  .header-home {
    position: relative;
    height: 50em;
    overflow: hidden;
    background-image: url('../img/header.webp');
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: -3em;
  }

  .header-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: end;
    margin-left: 8em;
    margin-bottom: 4em;
    color: var(--white);
  }

  .header-subtitle {
    text-shadow: 1px 1px 6px black;
  }


  .header-subtitle p{
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    text-shadow: 1px 1px 6px black;
  }


/* ---------- MENU --------- */
      .nav-menu, .nav-menu-project {
        position: sticky;
        top: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
      }
      
      .nav-menu.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
      }

      .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 64px;
        max-width: 90%;
        margin: 0 auto;
      }
      
      .nav-logo {
        width: 8rem;
      }
      
      .nav-links {
        display: flex;
        gap: 48px;
        list-style-type: none;
      }
      
      .nav-link, .nav-link:hover {
        color: var(--black);
        position: relative;      
      }
      
      .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background-color: var(--yellow);
        transition: width 0.2s ease;
      }
      
      .nav-link:hover::after {
        width: 100%;
      }
      
      .nav-mobile-button {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
      }

    /* Mobile, padding top pour le contenu uniquement si menu fixé */
      body.has-fixed-nav {
        padding-top: 64px;
      }
      
      @media (max-width: 768px) {
        .nav-links { display: none; }
        .nav-mobile-button { 
          display: block;
          color: var(--black); 
        }
      }

      @keyframes fade-in {
        from { opacity: 0; transform: translateY(-15px);}
        to { opacity: 1; transform: translateY(0);}
      }


      .mobile-menu-panel {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        background: var(--white);
        z-index: 99;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
        animation: fade-in 0.25s;
        padding: 2rem 1.5rem;
        border-radius: 0 0 8px 8px;
      }
      .mobile-menu-panel.open {
        display: block;
      }
      .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
        list-style-type: none;
      }

      .mobile-menu-links .nav-link {
        color: var(--black);
        font-size: 1rem;
        letter-spacing: 0.01em;
        padding: 0.4rem 0;
        width: 100%;
      }
      @media (min-width: 769px) {
        .mobile-menu-panel { display: none !important; }
      }


/* ---------- Section introduction ---------- */
    .introduction {
      max-width: 90%;
      margin: 0 auto;
    }

    .yellow-line {
      text-decoration-line: underline;
      text-decoration-style: solid;
      text-decoration-thickness: 12px;
      text-underline-offset: -8px;
      text-decoration-color: var(--yellow);
      text-decoration-skip-ink: none; /* marche sur Firefox & Chrome, mais pas Safari */ 
      text-decoration-skip: none; /* marche sur Safari, mais pas chrome et firefox */
    }

    .introduction-content {
      max-width: 55%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      text-align: center;
      justify-content: center;
    }

    .introduction-content p:last-child {
        margin-bottom: 1.5rem;
    }

    .introduction-hidden {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s ease-out;
    }

    .introduction-hidden.expanded {
      max-height: 500px;
    }

    .introduction-button-container {
      display: flex;
      justify-content: center;
    }

    .introduction-button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.5rem;
      height: 2.5rem;
      cursor: pointer;
      color: var(--black);
    }

    .introduction-button .plus-icon,
    .introduction-button .minus-icon {
      transition: all 0.3s ease;
    }

    .hidden {
      display: none;
    }

/* ---------- Section EVENT SOLETTA ---------- */
    .event {  
      background-color: var(--yellow);
      color: var(--black);
      background-image: url(../img/background.svg);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .event-container {
      max-width: 90%;
      margin: 0 auto;
      text-align: center;
    }

    .event-link a{
      text-decoration: underline;  
    }



/* ---------- Section PROJETS ---------- */
    .projets {  
      background-color: var(--black);
      color: var(--white);
    }

    .projets-container{
      max-width: 90%;
      margin: 0 auto;
    }

    .generique {
      max-width: 90%;
      margin: 0 auto;
      padding: 0;
    }

    .projets-container h6{
      margin: 2rem 0 1rem;
    }


    .generique-col {
      position: relative;
      overflow: hidden;
      background-color: var(--white);
    }

    .illustration{
      background-image: url(../img/projects/soletta.webp);
      background-size: contain;
      background-repeat: no-repeat;
    }

    .illustration:hover{
      background-image: url("../img/projects/soletta-hover.webp");
    }

    /* Tous les filtres */
    .projets-filtres {
      margin-bottom: 3rem;
    }

    /* Filtre unité */
    .projet-filtre {
      padding: 0.25rem 0.75rem;
      color: var(--white);
      font-size: 0.875rem;
      transition: background-color 0.3s;
      font-family: 'Raleway', sans-serif;
      font-weight: 600;
    }

    .projet-filtre:hover {
      color: var(--yellow);
    }

    .projet-filtre.active {
      color: var(--white);
      border-bottom: solid 1px var(--yellow);
    }

    .projets-grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 2rem;
    }


    .generique-grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 2rem;
      margin-bottom: 1rem;
    }



    .generique-grid-solo{
      width: 50%;
      text-align: center;
      margin: 1rem auto;
    }

    .projet-image-hover {
      position: relative;
      width: 0;
      height: 0;
    }

    .projet-card {
      position: relative;
      overflow: hidden;
      background-color: var(--white);
      cursor: pointer;
      border-radius: 8px;
      box-shadow: 4px 4px 20px 0 rgba(0, 0, 0, 0.2);
    }

    .project-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem;
    }

    .project-card-footer__CTA {
      color: var(--black);
    }

    .projet-card a{
      text-decoration: none;
    }
      
    .projet-card a:hover {
      text-decoration: none;     
    }

    .projet-card a::after {
      text-decoration: none;
      position: relative;
      height:0px;
    }


    .hidden-projet {
      display: none;
    }

    .hidden-projet.expanded-projet {
      display: block;
    }

    .projet-image-container {
      position: relative;
      height: 15rem;
      overflow: hidden;
    }

    .projet-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 1;
    }

    .projet-overlay {
      position: absolute;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .projet-title {
      color: var(--white);
      font-size: 3rem;
      font-weight: 100;
      text-align: center;
      padding: 0 1rem;
      font-family: 'Impact','Open Sans',sans serif; 
      text-transform: uppercase;
    }

    .projet-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
    }

    .projet-tag {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      color: var(--black);
      font-size: 0.75rem;
      font-family: "Open Sans", sans-serif;
      font-weight: 300;
      font-style: italic;
    }

    .voir-plus-container {
      display: flex;
      justify-content: center;
      margin-top: 3rem;
    }

    .voir-plus-button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.5rem;
      height: 2.5rem;
      color: var(--white);
      cursor: pointer;
    }

/* ---------- Section PRATIQUES ---------- */
    .pratiques {
      max-width: 90%;
      margin: 0 auto;
    }

    .pratiques-grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 2rem;
    }

    .pratique-category {
      text-align: center;
    }

    .pratique-category-title {
      font-weight: 700;
      font-size: 1.25rem;
      margin-bottom: 1rem;
    }

    .pratique-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      font-family: 'Open Sans', sans-serif;
      font-weight: 300;
      color: var(--black);
    }

    .pratique-list li {
      color: #4B5563;
    }

/* ---------- Section PARTENAIRES ---------- */
    .partenaires {
      padding: 4rem 0rem;
      max-width: 90%;
      margin: 0 auto;
    }

    .partenaires-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 4rem;
    }

    .partenaire {
      width: 8rem;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .partenaire-logo {
      max-width: 100%;
      max-height: 5rem;
      object-fit: contain;
      filter: grayscale(100%);
    }

    .partenaire-logo:hover {
      filter: grayscale(0%);
    }

/* ---------- Section CONTACT ---------- */
    .contact {
      padding: 4rem 0rem;
      max-width: 90%;
      margin: 0 auto;
    }

    .contact-headline{
      margin-bottom: 1rem;
    }

    .contact-title {
      text-align: left;
      margin-bottom: 0.4rem;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
    }

    .contact-map {
      display: flex;
      justify-content: center;
    }

    .contact-map-placeholder {
      width: 100%;
      max-width: 28rem;
      height: 24rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 1rem;
      background-image: url('../img/clementchabot.webp');
      background-size: cover;
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      max-width: 75%;
    }

    .contact-info > p {
      color: var(--black);
    }

    .contact-details {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .contact-name {
      font-weight: 500;
    }

    .contact-email {
      color: var(--darkgray);
    }




/* ---------- FOOTER ---------- */
  .footer {
    background-color: #F3F4F6;
    padding: 1.5rem 1rem;
  }

  .footer-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4B5563;
  }

  .footer-copyright{
    font-size: 0.75rem;
  }

  .footer-links {
    display: flex;
    gap: 1rem;
  }

  .footer-link {
    color: var(--darkgray);
  }


/* ---------- Responsive Home ----------*/
@media (max-width: 430px) {
  .header {
    height: 18rem;
    background-size: contain;
    margin-top: 0;
  }

  .header-home {
    position: relative;
    height: 19em;
    overflow: hidden;
    background: url(../img/header.webp);
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: 0em;
  }

  .event {  
    background-image: none;
  }

}

@media (max-width: 640px) {
  .header {
    height: 18rem;
    background-size: cover;
    margin-top: 0;
  }
  .header-content {
    margin-left: 2rem;
    margin-bottom: 2rem;
  }

  .header-home {
    position: relative;
    height: 19em;
    overflow: hidden;
    background-image: url(../img/header.webp);
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: 0em;
  }

  section{
    padding: 2rem 0rem;
  }

  h1{
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  h4 {
    font-size: 1rem;
  }
  h6 {
    font-size: 0.9rem;
  }

  .header-subtitle p {
    font-size: 1rem;
  }

  .introduction-content {
    max-width: 90%;
  }

  .pratiques-grid {
    gap: 0.6rem;
  }

  .contact-info {
    max-width: 100%;
  }
  .contact-headline {
    margin-bottom: 0rem;
    text-align: center;
  }

  .contact-title {
    text-align: center;
  }

  .event {  
    background-image: none;
  }
}


@media (min-width: 640px) {
  .projets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pratiques-grid, .generique-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (min-width: 768px) {
  .header {
    height: 54em;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .projets-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .pratiques-grid, .generique-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projet-image-container {
      height: 12rem;
  }

  .projet-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  /* Effet au survol pour afficher la nouvelle image */
  .projet-card:hover .projet-image {
    opacity: 0;
  }

  .projet-card:hover .projet-image-hover {
    opacity: 1;
  }

  /* Faire disparaître le titre au survol */
  .projet-card:hover .projet-overlay {
    opacity: 0;
  }

  .projet-card:hover .project-card-footer__CTA{
    color: var(--yellow);
  }

  .projet-image {
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

  .projet-overlay {
    transition: opacity 0.5s ease;
  }

}

@media (min-width: 1280px) {
  .generique-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projets-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projet-image-container {
      height: 15rem;
  }

  .introduction-content {
    max-width: 36%;
  }
}

@media (min-width: 1700px) {

  .header-home {
    height: 52em;
    margin-top: 0em;
  }
}



/* ---------- PAGES PROJETS ---------- */

    .projet-detail {
      padding: 6rem 0 3rem 0;
    }

    .projet-detail-content {
      max-width: 90%;
      margin: 0 auto;
    }

    .projet-detail-flex {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .projet-detail-images {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: 100%;
    }

    .projet-detail-main-img, .soletta-detail-main-img{
      width: 100%;
      height: 300px;
      overflow: hidden;
      border-radius: 4px;
    }

    .projet-detail-main-img-v {
      width: 100%;
      height: auto;
      overflow: hidden;
      border-radius: 4px;
    }


    .projet-detail-main-img img, .projet-detail-main-img-v img, .soletta-detail-main-img img, .soletta-detail-main-img-v img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .projet-detail-secondary-imgs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

    .projet-detail-img {
      height: 100px;
      overflow: hidden;
      border-radius: 4px;
    }

    .projet-detail-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 4px;
    }

    .projet-detail-img-v img {
      height: 100%;
      object-fit: cover;
      width: 100%;
      border-radius: 4px;
    }

    .projet-detail-title {
      font-size: 1.875rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
    }

    .projet-detail-description {
      color: var(--black);
      width: 100%;
      padding-top: 8rem;
    }

    .projet-detail-description p {
      margin-bottom: 1.5rem;
    }

    .projet-detail-list {
      margin: 1rem 0 2rem 1rem;
    }

    .projet-detail-list li {
      margin-bottom: 0.5rem;
    }

    .projet-sub-list {
      margin: 0 0 1rem 2rem;
    }

    .projet-detail-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin: 3rem auto;
      text-align: center;
    }

/*soletta sortie */
    .soletta-detail-program {
      color: var(--black);
      width: 100%;
    }

    .soletta-detail-program h3, .soletta-detail-program h4{
      margin-bottom: 1rem;
    }
    .soletta-detail-program p {
      margin-bottom: 0.5rem;
    }

    .soletta-detail-list {
      margin: 0 0 1rem 4rem;
    }

    .soletta-detail-list li {
      margin-bottom: 0.5rem;
    }

/* */ 

.projet-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--black);
}

.other-projects h4 {
  margin-bottom: 2rem;
}

.generique h4 {
  margin-bottom: 0.4rem;
}

.SendMail{
  margin-top: 3rem;
}

.mentions-legales {
padding-left: 2rem;
}

.mentions-legales h3{
  margin: 3rem 0 1rem;
}


.mentions-list {
  margin: 1rem 0 2rem;
}

.mentions-list li {
  margin-bottom: 0.5rem;
}

/* Media queries pour la mise en page à deux colonnes */
@media (max-width: 640px){
  .generique-grid-solo {
    width: 100%;
    text-align: left;
    margin: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 767px){
  .projet-detail-description {
    padding-top: 0rem;
  }
}
@media (min-width: 768px) {
  .projet-detail-header {
    height: 500px;
  }
  
  .projet-detail-flex {
    flex-direction: row;
  }
  
  .projet-detail-images {
    width: 50%;
  }
  
  .projet-detail-description {
    width: 50%;
    padding-left: 2rem;
  }
  
  .projet-detail-main-img {
    height: auto;
  }

  .soletta-detail-main-img {
    height: auto;
  }
  
  .projet-detail-img {
    height: auto;
  }

  .projet-detail-secondary-imgs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

  .mentions-list{
    list-style-type:none;
  }
}


@media (max-width: 1024px){
  .generique-grid-solo {
    width: 80%;
  }
}

@media (min-width: 1024px) {
  .projet-detail-main-img {
    height: 450px;

  .soletta-detail-main-img {
  height: auto;
  }

  .projet-detail-main-img-v {
    height: 100%;
  }
  
  .projet-detail-img {
    height: 12rem;
  }

    .projet-detail-secondary-imgs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
  }
}
