/* ============================================================ 
🌟 single-projet.css
============================================================ */ 
:root {
  --color-main: #AA6615;   /* couleur accent (hover, + actif, cercle rempli) */
  --color-muted: #878787; /* gris liens / boutons */
  --color-text: #000;  /* texte principal */
}

/* ==========================
🚀 PAGE PROJET — LAYOUT
========================== */

.project-acf{
  display:flex;
  align-items:flex-start;
  gap:60px;
}

.project-left{
  width:55%;
  display:flex;
  flex-direction:column;
}

.project-right{
  width:45%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  position:relative;
}

/* ==========================
TYPO
========================== */

.titre1{
  font-size:36px;
  color:var(--color-text);
  font-family:"The Bigmouth Regular";
  font-weight:bold;
  margin:0;
}

.section-title{
  font-size:14px;
  font-family:archivo;
  font-weight:bold;
  text-transform:uppercase;
  letter-spacing:1px;
  color: var(--color-text);;
  margin:20px 0 10px;
}

.project-description{
  font-size:14px;
  color:var(--color-text);
  font-family:archivo, sans-serif;
  text-align:justify;
  width:100%;
}

.mini-info{
  font-size:14px;
  color:var(--color-text);
  font-family:archivo, sans-serif;
  font-style:italic;
  margin:0; 
  text-align: justify;
}

/* ==========================
ACF (label + valeur sur une ligne)
========================== */

.acf-line{
  display:flex;
  align-items:baseline;
  gap:8px;
}

.acf-label{
  font-size:14px;
  font-family:archivo;
  white-space:nowrap;
  color:var(--color-text);
}

.acf-value{
  font-size:14px;
  font-family:archivo;
  font-weight:300;
  color: var(--color-text);
  min-width:0;
}

/* Liens de la colonne droite */
.project-right a{
  color:var(--color-muted);
  text-decoration:none;
}
.project-right a:hover{
  color:var(--color-main);
}

/* ==========================
HEADER ROW (titre + bouton)
========================== */

.header-row{
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.header-actions{
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.modal-button{
  background:none;
  border:none;
  color:var(--color-muted);
  font-size:52px;
  font-weight:bold;
  cursor:pointer;
  transition:color .2s ease-in-out, transform .2s ease-in-out;
  z-index:1; 
}

.modal-button:hover{ 
  color:var(--color-main);
}

/* ==========================
DESCRIPTION TOGGLE (checkbox)
========================== */

.desc-toggle{ display:none; }

/* cachée par défaut */
.project-description{ 
   display:none; 
   margin-top:20px; 
}

/* visible quand checked */
.desc-toggle:checked ~ .project-description{ 
   display:block; 
}

/* masquer les blocs quand description ouverte */
.desc-toggle:checked ~ .project-info,
.desc-toggle:checked ~ .telechargements{
  display:none;
}

/* rotation du + quand ouvert */
.desc-toggle:checked ~ .header-row .modal-button{
  transform:rotate(45deg);
  color:var(--color-main);
}
/* ==========================
TOGGLE CERCLE (nouvelle popup)
========================== */

.crit-toggle { 
  display: none; 
}

/* Le cercle à gauche du + */
.circle-toggle{        
  width: 25px;
  height: 25px;
  border: 5px solid var(--color-muted); 
  border-radius: 50%;
  cursor: pointer;
  box-sizing: border-box;
  transition:color .2s ease-in-out, background-color .2s ease-in-out;
}

.circle-toggle:hover {
  border-color: var(--color-main);
}

/* Cercle rempli quand ouvert */
.crit-toggle:checked ~ .header-row .circle-toggle{
  background: var(--color-main);
  border: var(--color-main);
}

/* ==========================
POPUP CRITERE (sous le titre)
========================== */

.project-crit{
  display: none;
  margin-top: 20px;
  width: 100%;
  font-family: archivo, sans-serif;
  font-size: 14px;
  color: black;
}

.crit-toggle:checked ~ .project-crit{
  display: block;
}

/* Optionnel : masquer les blocs quand critere ouvert (comme description) */
.crit-toggle:checked ~ .project-info,
.crit-toggle:checked ~ .telechargements{
  display: none;
}

/* ==========================
CRITÈRES — liste (popup)
========================== */

.project-crit .section-title{
  margin: 0 0 10px; /* titre collé à la popup */
}

.crit-list{
  display: flex;
  flex-direction: column;
  gap: 0; 
}

.crit-item{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.crit-checkbox{
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: black; 
  pointer-events: none; 
  cursor: default;
}

.crit-label{
  font-size: 14px;
  font-family: archivo, sans-serif;
  font-weight: 300;
  color: black;
}


/* ==========================
INFOS — grille 2 colonnes
========================== */

.project-info{ width:100%; }

.info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:50px;
  align-items:start;
}

.info-block{ min-width:0; }

.section-col{
  display:flex;
  flex-direction:column;
  gap:0;
  min-width:0;
}

.pair-separator{
  padding:14px 0;
  display:flex;
  align-items:center;
  width:100%;
}


/* ==========================
GALERIE (compatible JS)
========================== */

.galerie-container{
  position:relative;
  width:100%;
  overflow:hidden;
}

.galerie-slider{
  display:flex;
  flex-wrap:nowrap;
  transition:transform .5s ease-in-out;
  width:auto;
}

/* vignette carrée cropée */
.galerie-slide{
  flex:0 0 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}

.galerie-slide img{
  width:100%;
  aspect-ratio:1 / 1;
  height:auto;
  object-fit:cover;
  display:block;
  cursor: zoom-in;
}

.photo-credit{
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  line-height: 1;
  color: #000;
  background: rgba(255,255,255,0.75);
  padding: 6px 8px;
  border-radius: 999px;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* flèches */
.galerie-prev,
.galerie-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:none !important;
  color:white;
  border:none;
  cursor:pointer;
  font-size:24px;
  z-index:5;
  outline:none;
  box-shadow:none;
  transition:color .2s ease-in-out;
}
.galerie-prev{ left:10px; }
.galerie-next{ right:10px; }

.galerie-prev:hover,
.galerie-next:hover{ 
   color:black !important; 
}

/* ==========================
LIGHTBOX (compatible JS)
========================== */

.lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  padding:40px;
}
.lightbox-overlay.is-open{ display:flex; }

.lightbox-image{
  max-width:90vw;
  max-height:90vh;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

/* ===========================
DÉTAILS À TÉLÉCHARGER — MINIATURES
=========================== */

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 420px; /* évite que ça s'étire trop */
}

.detail-item {
  all: unset;
  cursor: pointer;

  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
  border-radius: 0;
}

.detail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.detail-item:hover img {
  transform: scale(1.05);
}

/* ============================================================
POPUP QUESTIONNAIRE — GOOGLE FORM
============================================================ */

/* Overlay */
.survey-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.survey-modal.is-open {
  display: block;
}

.survey-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* Fenêtre */
.survey-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 150vw);
  max-height: 150vh;
  background: #fff;
  border-radius: 0;
  padding: 5px 5px 5px;
  display: flex;
  flex-direction: column;
}

/* Bouton fermeture */
.survey-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Titre */
.survey-title {
  font-size: 16px;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  margin: 0;
}

/* Wrapper iframe */
.survey-iframe-wrapper {
  padding: 0;
  margin: 0;
  flex: 1;
  overflow: hidden; /* important */
  -webkit-overflow-scrolling: touch;
}

/* Google Form */
.survey-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 700px;
  border: none;
}

/* ===========================
MOBILE
=========================== */
@media (max-width: 600px) {
  .survey-panel {
    width: 94vw;
    max-height: 94vh;
    padding: 16px;
  }

  .survey-iframe-wrapper iframe {
    min-height: 600px;
  }
}



/* ==========================
RESPONSIVE
========================== */

@media (max-width:900px){
  .project-acf{
    flex-direction:column;
    gap:30px;
  }
  .project-left,
  .project-right{
    width:100%;
  }

  /* infos : 1 colonne */
  .info-grid{
    grid-template-columns:1fr;
    row-gap:22px;
    column-gap:0;
  }
  .single-projet .container-global {
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
  }
  .pair-separator{ 
    padding:18px 0; 
  }
}

@media (max-width:600px){
  .titre1{ 
    font-size:30px; 
  }
  .modal-button{
    font-size:48px;
  }
  .single-projet .container-global {
    padding-left: 20px;
    padding-right: 20px;
  }

}



