/* CSS Document */
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	/* Permet un défilement fluide de page */
	scroll-behavior: smooth;
	height: 100%;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #fff;
	background-color: #000;
	
	min-height: 100%;
    height: auto; /* Laisse le body s'étirer selon le contenu */
    overflow-y: auto; /* Garantit le défilement vertical */
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
  outline: none;
  text-decoration: none;
  color: #fff; 
  font-size:14px;
}

a:link {
  color: #fff;
}

a:visited {
  color: #fff;
}

a:focus {
  /*border-bottom: 1px solid;*/
  /*background: #bae498;*/
}

a:hover {
  /*border-bottom: 1px solid;*/
  /*background: #cdfeaa;*/
}

a:active {
  /*background: #265301;*/
  /*color: #cdfeaa;*/
}

h1 {
   font-size: 2.5rem;
   margin-bottom: 10px;
   text-align: center;
}

p {
  line-height: 1.6;
  font-size: 1.1rem;
}


/* Container principal */
.div-container {
    position: relative;
    display: flex;
    justify-content: center;     /* Centre horizontalement toujours */
    align-items: flex-start;     /* Aligne le contenu en haut pour éviter de couper le sommet en mode paysage */
    width: 100vw;
    min-height: 100vh;
    height: auto;
	
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Div Background fixe (compatible mobile) */
.div-bg {
  position: fixed;
  
  /* On étire la div un peu au-delà des bords */
  top: -10vh;
  left: 0;
  width: 100%;
  
  /* 120 lvh assure une couverture totale sans bande lors du scroll */
  height: 120lvh;
  
  background-image: url('/images/accueil.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Assure qu'il reste sous le contenu */
  z-index: -1;
  
  /* Optionnel : Filtre d'assombrissement pour garder le texte lisible */
  /*filter: brightness(0.6);*/
}

/* Div Content */
.div-content  {
	position: relative;
	z-index: 1;
	max-width: 750px;
	/*margin: auto; /* marge du haut - marges droite et gauche en auto */
	/*padding: 40px 20px;*/
	display: flex;
	flex-direction: column;
	  
	background: rgba(0, 0, 0, 0.40);
	backdrop-filter: blur(3px);
	border-radius: 16px;
}

/* Typographie fluide */
.div-content h1 {
	font-size: clamp(1.8rem, 2vw, 3.2rem);
	margin-top: 15px;    /* Espace au-dessus du grand titre */
	margin-bottom: 15px; /* Espace entre le titre et le premier paragraphe */
	text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.div-content p {
	font-size: clamp(0.95rem, 2.5vw, 1.2rem);
	line-height: 1.2;
	
	color: #eee;
	text-shadow: 0 1px 5px rgba(0,0,0,0.5);
	text-align: justify;	
	margin: 0 0 10px 0;  /* Ajoute 10px d'espace UNIQUEMENT sous chaque paragraphe */
}

.div-content ul {
	padding-left: 20px;
	margin: 0 0 20px 0;  /* Ajoute un espace sous la liste */
}

.div-content li {
	font-size: clamp(0.95rem, 2.5vw, 1.2rem);
}

/* Animation au défilement (Fade-in) */
.fade-element {
 	background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px); /* Compatibilité iOS */
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* État initial pour l'effet d'apparition */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
	/*will-change: opacity, transform; /* Optimise les performances du navigateur */
}

/* Classe activée en JS au scroll */
.fade-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MEDIA QUERIES (MOBILE) --- */
@media (max-width: 768px) {
	
	a {
		font-size:13px;
	}
	
	.div-container {
	    display: flex;
  		align-items: flex-start;     /* Centre verticalement */
	}
	
	.div-bg {
		background-image: url('/images/mobile/apropos_mobile.jpg');
		background-color: rgba(153,0,0,1);		
	}
	
	.div-content {
		padding: 1.2rem 1rem;
		width: 90%;  /*Laisse voir l'image sur les côtés gauche et droit */
	}

	/* Typographie fluide */
	.div-content h1 {
		font-size: clamp(1.5rem, 2vw, 3.2rem);
	}
	
	.div-content p {
		font-size: 0.80rem;       /* Texte ajusté */
		line-height: 1.5;
	}
	
	.div-content li {
		font-size: 13px;
	}
}

/* --- CORRECTION ULTRA-COMPACTE : MOBILE EN MODE PAYSAGE --- */
@media (max-height: 500px) and (orientation: landscape)
{
	.div-container {
		/* Maintien strict de la hauteur sur les mobiles landscape avec barres système */
		height: 100vh;
		height: 100svh;
	}	
	
	.div-content {
		padding: 0.5rem 1rem;     /* Padding ultra réduit */
		max-width: 490px;         /* Moins large pour libérer de la hauteur */
		/*max-height: 85vh;          S'assure que le bloc ne dépasse jamais la vue */
		border-radius: 10px;
	}
	.div-content h1 {
		font-size: 1.2rem;        /* Titre très compact */
		margin-bottom: 0.2rem;
	}
	.div-content p {
		font-size: 0.80rem;       /* Texte ajusté */
		line-height: 1.5;
	}
	
	.div-content li {
		font-size: 13px;
	}	
	
	.div-bg {
		height: 115%;
	}
	
	.share-container {
		visibility:hidden;	
	}
}	

/* Accessibilité */
@media (prefers-reduced-motion: reduce)
{
	.div-bg {
		transform: none !important;
	}
}