@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800&display=swap');


/* ------------------------------
   OVERRIDE GLOBAL CUSTOM CSS
------------------------------ */

#section-77,#section-72,#section-98 {
    background: rgb(255, 255, 255) !important;

}

/* ------------------------------
   STRUCTURE GLOBALE
------------------------------ */

.box {
	font-family: "Unbounded", sans-serif;
	display: flex;
	width: 100%;
	min-height: 400px;
	margin: 0 auto; /* ✅ centre horizontalement */
	padding: 0;
	align-items: stretch; 
	
}


/* ------------------------------
   TITRES
------------------------------ */
h2.yellow {
	font-weight: 200 !important;
	margin: 0 auto;
	font-size: 4rem !important;
	padding-top: 1em;
	font-family: "Unbounded", sans-serif !important;
	color:#666 !important;
	
}

h2.yellow.acc {
	
	padding-top: 0em;
	
}

h3 {
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.25rem;
	background: #ffd645;
	display: inline-block !important;
	margin: 0;
	padding: 0.2em 0.4em;
	font-size: 1.4rem;
	margin-bottom: 1em;
	color:#000;
}
h4 {
	font-family: "Google Sans Code", monospace;
	font-weight: 600;
	font-style:italic;
	margin:0;
	padding:0;
	font-size:1.6em;
	line-height:1.8em;
	color:#000;
}

h4.acc{
	border-bottom: 2px solid #ffd645;
	padding-bottom:2em;
}

/* ------------------------------
   COLONNES PRINCIPALES ACCUEIL
------------------------------ */
.box.acc {
	align-items: flex-start; /* ✅ force l’alignement haut */
}

/* Colonne droite d'accueil : contenu aligné à droite */
.col-droite.acc {
	align-items: flex-end;   /* ✅ contenu collé à droite */
	text-align: right;       /* ✅ texte aligné à droite */
	justify-content: flex-start; /* ✅ titre en haut */
	align-items: stretch; 
}

/* Ajustement pour le titre de droite */
.col-droite.acc h2.yellow.acc {
	align-self: flex-end;    /* ✅ le h2 se cale bien à droite */
	margin-bottom: 1em; 
text-align:right;
margin-right:0;	/* petit espace au besoin */
}

.col-gauche.acc {
	width: 75%;
	text-align: left;
	border: none;

}

.col-droite.acc {
	width: 25%;
	display: flex;            
	padding:0;
	margin:0;
	flex-direction: column;
	color:#000;
}

.acc p {
	font-weight: 200;
	line-height: 1.5;
	font-size: 1.8rem;
	padding-top:0.5em;
	padding-bottom:0.5em;
	text-align:justify;
	color:#000;
}

/* ------------------------------
   SOUS-BLOC INTERNE ACCUEIL (3 COLONNES)
------------------------------ */

.sous-bloc.acc {
	display: flex;
	margin: 1em 0 0.8em 0;
	padding-top: 0.35em;
	padding-bottom: 0.35em;
	font-weight: 200;
	font-size: 1.2em;
	border-top: 2px solid #ffd645;
	border-bottom: none !important;
	gap: 0;
	text-align:center;
	justify-content: center;   /* ✅ centre horizontalement les enfants */
	align-items: center;
}

.sous-bloc.acc > div {
	display: flex;
	justify-content: center;   /* ✅ centre le contenu horizontalement */
	align-items: center;       /* ✅ centre le contenu verticalement */
}
.sous-bloc.acc p {
	text-align:center !important;;
}

.sous-gauche.acc {
	width: 33%;
	border-right: 2px solid #ffd645;
}
.centre.acc {
	width: 33%;
	border-right: 2px solid #ffd645;
}

.sous-droite.acc {
	width: 33%;
}

/* ------------------------------
   COLONNES PRINCIPALES
------------------------------ */

.col-gauche {
	width: 45%;
	padding: 0;
	box-sizing: border-box;
	text-align: left;
	border-bottom: 2px solid #ffd645;
	margin-right: 1em;
}

.col-droite {
	width: 55%;
	display: flex;             /* ✅ pour centrer l’image verticalement */
	align-items: stretch;      /* ✅ occupe toute la hauteur de la .box */
	justify-content: center;
}

.col-droite img {
	width: 100%;
	height: 100%;              /* ✅ prend toute la hauteur du parent */
	object-fit: cover;         /* ✅ remplit la colonne sans déformation */
	display: block;
	padding-top: 4em;
}
/* ------------------------------
   SOUS-BLOC INTERNE (2 COLONNES)
------------------------------ */

.sous-bloc {
	display: flex;
	margin: 1em 0 0.8em 0;
	padding-top: 0.35em;
	padding-bottom: 0.35em;
	font-weight: 200;
	font-size: 1.2em;
	border-top: 2px solid #ffd645;
	border-bottom: 2px solid #ffd645;
	gap: 0;
	text-align:center;
}

.sous-gauche {
	width: 60%;
	border-right: 2px solid #ffd645;
}

.sous-droite {
	width: 40%;
}


/* ------------------------------
   GRILLE Accueil
------------------------------ */
.grille.acc {
	display: block;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
	background-image: url("/img/structure/zig2_accueil.png");
	background-size: contain;
	background-repeat: no-repeat;
}
.grille.acc li {
	line-height:1em;
	font-size:1.2em;
}


/* ✅ Alignement des colonnes */
.grille.acc li:nth-child(3n + 1) {
	text-align: right;
}
.grille.acc li:nth-child(3n + 2) {
	text-align: right;
}
.grille.acc li:nth-child(3n) {
	text-align: right;
}



/* ------------------------------
   GRILLE 3 × 3
------------------------------ */

.grille {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
}


.grille li {
	text-align: center;
	padding-top: 1em;
	font-weight: 200;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	font-size:0.8em;
}

/* ✅ Alignement des colonnes */
.grille li:nth-child(3n + 1) {
	text-align: left;
}
.grille li:nth-child(3n + 2) {
	text-align: center;
}
.grille li:nth-child(3n) {
	text-align: right;
}

/* ============================================================
   🌐 RESPONSIVE DESIGN
============================================================ */

/* --- Tablette : structure en colonne, grille 2 colonnes --- */
@media (max-width: 900px) {
	.box {
		flex-direction: column;
		width: 90%;
	}

	.col-gauche,
	.col-droite {
		width: 100%;
		margin-right: 0;
	}

	.col-droite {
		min-height: 300px; /* garde une hauteur visuelle */
	}

	h2 {
		font-size: 1.8rem;
		padding-top: 0.5em;
	}

	h3 {
		font-size: 1rem;
	}

	.sous-bloc {
		flex-direction: column;
		font-size: 1em;
	}

	.sous-gauche,
	.sous-droite {
		width: 100%;
		border: none;
		border-bottom: 1px solid #ffd645;
	}

	.grille {
		grid-template-columns: repeat(2, 1fr);
	}

	.grille li:nth-child(3n + 1),
	.grille li:nth-child(3n + 2),
	.grille li:nth-child(3n) {
		text-align: center;
	}
}

/* --- Mobile : 1 colonne --- */
@media (max-width: 500px) {
	.grille {
		grid-template-columns: 1fr;
	}

	h2 {
		font-size: 1.5rem;
	}

	h3 {
		font-size: 0.9rem;
	}

	.sous-bloc {
		font-size: 0.95em;
	}
}

/* ============================================================
   BLOCS SUPPLÉMENTAIRES — VERSION LINÉAIRE (75/25)
============================================================ */

.bloc-standard,
.bloc-special {
	width: 100%;
	margin: 0em auto;
	display: flex;
	flex-direction: column;
	gap: 0em;
	font-size:1.2rem;
}

.bloc p{
	font-size:0.8em;
	font-weight:200 !important;
}

/* Chaque bloc texte + image */
.bloc {
	display: flex;
	align-items: center;
	margin-bottom: 1em;
	font-size:1rem;
}

/* Colonnes gauche et droite */
.bloc .col-gauche {
	width: 65%;             /* ✅ élargie à 75 % */
	padding: 0em;
	box-sizing: border-box;
	text-align: left;
	border: none; /* ✅ supprime toute bordure héritée */
}

.bloc .col-droite {
	width: 25%;             /* ✅ réduite à 25 % */
	min-height: 300px;
	background-size: cover;
	background-position: center;
}

.bloc .col-droite,
.bloc-special .col-droite {
	width: 35%;
	min-height: auto; /* ✅ plus de hauteur fixe inutile */
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bloc .col-droite img,
.bloc-special .col-droite img {
	width: 100%;          /* ✅ prend toute la largeur de la colonne */
	height: auto;         /* ✅ conserve les proportions naturelles */
	object-fit: contain;  /* ✅ ne coupe pas, s’adapte */
	display: block;
}
/* Force la section spéciale à être horizontale */
.bloc-special {
	width: 100%;
	margin: 0 auto;
	border-left: 30px solid #ffd645;
	padding: 0 0 0 1em;
	margin-bottom:4em;
	gap: 0;
	display: flex;
	flex-direction: column; /* ✅ titre au-dessus */
}

/* Groupe horizontal : texte + image */
.bloc-special .content-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
}

/* Titre */
.bloc-special .titre-section {
	display: block;
	width: 100%;
	margin-bottom: 1em;
	text-align: left;
	font-weight:200 !important;
}

/* Colonnes internes */
.bloc-special .col-gauche {
	width: 75%;
	padding: 0;
	box-sizing: border-box;
	border: none;
	text-align: left;
}

.bloc-special .col-droite {
	width: 25%;
	padding: 0;
}

.bloc-special .col-droite img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.titre-section.titre-special {
	font-weight:200 !important;
padding: 0 0 0 2em;
background: url('/img/structure/bg_titre.png') center/70% no-repeat;

}

.bloc-special .titre-section {
	display: block;
	width: 100%;
	margin-bottom: 1em;
	text-align: left;
	font-weight:200 !important;
}

/* Colonnes internes : */
.bloc-special .col-gauche {
	width: 75%;
	padding: 0;
	box-sizing: border-box;
	border: none; /* ✅ supprime toute bordure héritée */
}

.bloc-special .col-droite {
	width: 25%;
	padding: 0;
}

.bloc-special .col-droite img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain; /* pas de crop */
}

.bloc-special .col-gauche {
	width: 75%;             /* ✅ cohérence */
	padding: 0 0 0 0em;
	box-sizing: border-box;
	text-align: left;
}

.bloc-special .col-droite {
	width: 25%;
	min-height: 400px;
	background-size: cover;
	background-position: center;
}

/* Titres et textes */
.bloc-standard .titre-section,
.bloc-special .titre-section {
	text-align: left !important;
}
.col-gauche .titre-section {
	text-align: left !important;
}
.col-gauche .titre-section {
	align-self: flex-start; /* ✅ sort le h2 du centrage flex */
	text-align: left;
}



.titre-section {
	display: inline-block; /* juste au cas où */
	font-weight: 200 !important;
	font-size: 2.5rem;
	margin: 0 0 1em 0; /* ✅ espace sous le titre */
	color: #4f5b5b !important;
	text-align: left;
	text-transform:uppercase;
}
.bloc h3 {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 2rem;
	margin-bottom: 0.5em;
}

.bloc p,
.bloc-special p {
	font-weight: 200;
	line-height: 1.5;
	font-size: 1.8rem;
}


/* ============================================================
    VERSION TABLETTE PAYSAGE ≤1200px

============================================================ */
@media screen and (max-width: 1200px) {
.grille.acc li {
	line-height:0.8em;
	font-size:0.9em;
}

  .sous-bloc.acc {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0;
    font-size: 0.85em; /* ✅ typo plus petite */
  }
  .sous-bloc p {
 font-size:0.6em;
}
}  
  /* ============================================================
    VERSION TABLETTE ≤900px

============================================================ */
@media screen and (max-width: 900px) {
.grille.acc li {
	line-height:0.8em;
	font-size:0.9em;
}

  .sous-bloc.acc {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0;
    font-size: 0.85em; /* ✅ typo plus petite */
  }
    .sous-bloc p {
 font-size:0.6em;
}
} 
/* ============================================================
    VERSION MOBILE ≤768px
   Tout en colonne sauf .sous-bloc.acc (3 colonnes)
============================================================ */

@media screen and (max-width: 768px) {

  /* --- Structure principale : tout passe en colonne --- */
  .box,
  .box.acc,
  .bloc,
  .bloc-special,
  .bloc-standard {
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    text-align: center;
  }

  /* --- Colonnes principales deviennent pleine largeur --- */
  .col-gauche,
  .col-droite,
  .col-gauche.acc,
  .col-droite.acc {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    border: none;
  }

  .col-droite img {
    width: 100%;
    height: auto;
    padding-top: 1em;
  }

  /* --- Titres et textes adaptés --- */
  h2.yellow {
    font-size: 2rem !important;
    padding-top: 0.5em;
  }

  h3 {
    font-size: 1rem;
    letter-spacing: 0.1rem;
  }

  h4,
  h4.acc {
    font-size: 1.2em;
    line-height: 1.4em;
    border: none;
    padding: 0.5em 0;
  }

  p,
  .acc p {
    font-size: 1.2rem;
    line-height: 1.5;
    padding: 0.3em 0;
    text-align: justify;
  }

  /* --- Sous-bloc classique (2 colonnes) → passe en vertical --- */
.sous-bloc {
  display: flex;                  /* sécurité */
  flex-direction: column;         /* vertical */
  align-items: center;            /* ✅ centre horizontalement les enfants */
  justify-content: center;        /* ✅ centre verticalement si hauteur fixe */
  text-align: center;             /* ✅ centre le texte */
  font-size: 1em;
  border-top: 2px solid #ffd645;
  border-bottom: none;
  width: 100%;
  margin: 0 auto;
}

/* chaque sous-colonne en pleine largeur et centrée */
.sous-gauche,
.sous-droite {
  width: 100%;
  display: flex;
  justify-content: center;        /* ✅ centre le contenu */
  align-items: center;            /* ✅ centre verticalement le texte */
  border: none;
  border-bottom: 1px solid #ffd645;
  text-align: center;
}

.sous-bloc p {
  margin: 0.3em 0;
}

  /* --- Sous-bloc ACCUEIL : reste en 3 colonnes --- */
  .sous-bloc.acc {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0;
    font-size: 0.75em; /* ✅ typo plus petite */
  }

  .sous-bloc.acc > div {
    width: 33%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
  }

  .sous-gauche.acc,
  .centre.acc,
  .sous-droite.acc {
    border: none;
  }

  /* --- Grilles : 1 colonne (mobile) --- */
  .grille,
  .grille.acc {
    grid-template-columns: 1fr;
  }

  .grille li,
  .grille.acc li {
    font-size: 1em;
    text-align: center;
  }

  /* --- Blocs spéciaux : linéaire et centrés --- */
  .bloc-special .content-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bloc-special p{
	  padding-right:1em;
  }

  .bloc-special .col-gauche,
  .bloc-special .col-droite {
    width: 100%;
  }

  .bloc-special .col-droite img {
    max-width: 80%;
    margin: 0 auto;
  }

  /* --- Titre section --- */
  .titre-section {
    font-size: 1.8rem;
    text-align: center !important;
    background: none;
    padding: 0;
  }
/* --- Footer : centrage du logo et des pictos --- */
footer.footer {
  text-align: center;
}

footer.footer .wysiwyg p {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5em 0;
}

footer.footer .wysiwyg img {
  display: block;
  margin: 0 auto;
  max-width: 160px;
  height: auto;
}

.footer .pictos ul {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 0;
  margin: 1em 0;
}

.footer .pictos ul li {
  display: inline-block;
}

.footer .langmenu,
.footer .copyright {
  text-align: center;
  margin-top: 0.5em;
}

}