/* Document CSS */
/* Ce fichier décrit l'ensemble des styles appliqués sur les pages html du site danielvero.fr */

/* Taille des polices par défaut */
html {
	font-size: 100%; /* Respecte la préférence utilisateur si utilisation du zoom (en principe, 16px par défaut) */
}

/* téléchargement des polices de caractères exotiques si nécessaire à partir du site, 
   avec affichage de la police par défaut en attendant (cas des connexions lentes)*/
@font-face
{
    font-family: 'Lucida Calligraphy';
    src: url('/polices/22799_LCALLIG.woff') format('woff'),
         url('/polices/22799_LCALLIG.ttf') format('truetype');
    font-display: swap;
}

@font-face
{
    font-family: 'Stencil';
    src: url('/polices/36103_Stencil2.woff') format('woff'),
	     url('/polices/36103_Stencil2.ttf') format('truetype');
	font-display: swap;	 
}

@font-face
{
    font-family: 'calibri';
    src:  url('/polices/calibri.woff') format('woff'),
	      url('/polices/calibri.ttf') format('truetype');
    font-display: swap;		 
}

/* Définition des tailles de polices */
/* preservation du vertical-rythm, voir ici http://soqr.fr/vertical-rhythm/ */
p,
ul,
ol,
dl,
blockquote,
pre,
td,
th,
label,
textarea,
caption,
details, 
figure, 
hgroup {
	font-size: 1em; /* equiv 14px */
	line-height: 1.5;
	margin: 1.5em 0 0;
}
h1, .h1-like {
	font-size: 1.8571em; /* equiv 26px */
	font-weight: bold;
	line-height: 1.6154em;
	margin: .8077em 0 0 0;
}
h2, .h2-like {
	font-size: 1.7143em; /* equiv 24px */
	font-weight: normal;
	line-height: 1.75em;
	margin: .875em 0 0 0;
}
h3, .h3-like {
	font-size: 1.5714em; /* equiv 22px */
	font-weight: normal;
	line-height: 1.909em;
	margin: .9545em 0 0 0;
}
h4, .h4-like {
	font-size: 1.4286em; /* equiv 20px */
	font-weight: normal;
	line-height: 1.05em;
	margin:  1.05em 0 0 0;
}
h5, .h5-like {
	font-size: 1.2857em; /* equiv 18px */
	font-weight: normal;
	line-height: 1.1667em;
	margin:  1.1667em 0 0 0;
}
h6, .h6-like {
	font-size: 1.1429em; /* equiv 16px */
	font-weight: normal;
	line-height: 1.3125em;
	margin:  1.3125em 0 0 0;
}

/* Autres tailles de polices */
.smaller {
	font-size: .7143em; /* equiv 10px */
	line-height: 2.1em;
}
.small {
	font-size: .8571em; /* equiv 12px */
	line-height: 1.75em;
}
.big {
	font-size: 1.1429em; /* equiv 16px */
	line-height: 1.3125em;
}
.bigger {
	font-size: 1.2857em; /* equiv 18px */
	line-height: 1.1667em;
}
.biggest {
	font-size: 1.4286em; /* equiv 20px */
	line-height: 1.05em;
}

/* === RAZ MODERNE DES PAGES === */

/* Base : marges & paddings retirés */
html, body, textarea, figure, label {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Listes avec indentation classique */
ul, ol {
  padding-left: 2em;
  margin: 0;
}

/* Polices monospaces */
code, pre, samp {
  white-space: pre-wrap;
  font-family: Consolas, 'DejaVu Sans Mono', Courier, monospace;
}
code {
  line-height: 1em;
}

/* Table : espacement et largeur */
table {
  margin-bottom: 1.5em;
  border-collapse: collapse;
  width: 100%;
}

/* Évite les marges hautes sur le 1er élément */
p:first-child,
ul:first-child,
ol:first-child,
dl:first-child,
blockquote:first-child,
pre:first-child,
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

/* Évite les marges inutiles dans les listes imbriquées */
li p,
li ul,
li ol {
  margin-top: 0;
  margin-bottom: 0;
}

/* HTML5 : déjà block aujourd’hui, mais on garde si cible ancienne */
article, aside, details, figcaption, figure,
footer, header, hgroup, nav, section {
  display: block;
}

/* Éléments à largeur limitée */
img, table, td, blockquote, code, pre,
textarea, input, video {
  max-width: 100%;
  height: auto;
}

/* Texte fluide et césure */
div, textarea, table, td, th, code, pre, samp {
  word-wrap: break-word;
  hyphens: auto;
}

/* Images */
img {
  vertical-align: middle;
  border-style: none;
}

/* Images dans liens : pas de bordure */
a img {
  border: 0;
}

/* Cache les balises <script> dans <body> (rare) */
body > script {
  display: none !important;
}

/* Skip-links (accessibilité) */
.skip-links {
  position: absolute;
}
.skip-links a {
  position: absolute;
  left: -9999px;
  padding: 0.5em;
  background: #000;
  color: #fff;
  text-decoration: none;
}
.skip-links a:focus {
  position: static;
}


/* Style des liens hypertextes */
a:hover {
	background-color: rgb(160, 0, 0);
	}
a:link {
	color: rgb(155, 155, 23);
	}
a:visited {
	color: rgb(109, 22, 22);
	}
a:active {
	background-color: rgb(255, 45, 45);
	color:rgb(160, 0, 0);
	}

/* Style général appliqué à toutes les pages du site */
body{
    color:yellow; 
    background-color:rgb(0, 0, 0); /* fond noir (utilisé par défaut si l'image de fond n'est pas disponible) */
    background-image:url(Images/Fond_Ecran/Fond%20Ecran.JPG); 
    background-attachment:fixed; 
    background-size:cover; 
    background-position:center;
  
    width: auto;
    margin-left:auto; 
    margin-right:auto;

    font-family:'Lucida Calligraphy',calibri,sans-serif;
    text-align:center;
    font-size: 1.167rem; /* 14pt ≈ 18.67px ≈ 1.167rem */
    font-weight:bold;
    vertical-align:middle;
    margin-left:auto;
    margin-right:auto;
}

/* Style appliqué aux messages déposés sur le site */
.message {
	font-weight:normal; 
	font-size:1.125rem; 
	text-align:  justify; 
	color:yellow; 
	font-family:calibri,'Times New Roman',Times,serif; 
	background: linear-gradient(rgba(8,8,8,0.8), rgba(0,0,0,0.1)); 
	padding: 20px; 
	margin-bottom: 20px; 
	border-radius: 8px; 
	box-shadow: 0 0 1px #ccc;
	max-width: 1200px;
	margin: auto;
	word-wrap: break-word;
}

/* Style appliqué aux réponses aux messages déposés sur le site */
.reponse {
	font-weight:normal; 
	font-size:1.125rem; 
	text-align:  justify; 
	color:black; 
	font-family:calibri,'Times New Roman',Times,serif; 
	background: linear-gradient(rgba(200,200,200,0.8), rgba(255,255,255,0.1)); 
	padding: 10px; 
	border-left: 5px solid #c60000; 
	margin-top: 10px;
	max-width: 1200px;
	margin: auto;
	word-wrap: break-word;
}


/* Affichage d'un avertissement si le langage JavaScript est désactivé sur le navigateur */   
.no-js-warning {
    color: red;
    font-size: 1.5625rem;
    margin-top: 20px;
    font-family:calibri,'Times New Roman',Times,serif;
}

/*Style des boutons*/
.Boutons {
	display: inline-block; /* Nécessaire pour s'assurer que le style complet est bien pris en compte */
    border: none;       /*Pas d'affichage des bordures blanches autour du bouton*/
    margin:5px 5px;     /*Ecart autour du bouton*/
    width:200px;        /*Largeur du bouton*/
    height: 40px;       /*Hauteur du bouton*/
    cursor: pointer;    /*Type de pointeur au survol*/
    text-align: center; /*Centrage du texte dans le bouton*/
    background-color: rgba(102, 0, 0, 1); /*Couleur en arrière plan du bouton*/
    font-weight:bold;   /*Style du texte dans le bouton*/
    font-size: 1.25rem;    /*Taille du texte dans le bouton*/
    color: yellow;
    border-radius: 5px; /* Arrondi des coins */
    transition: background-color 0.3s, box-shadow 0.3s;
}

.Boutons:hover {
    background-color: rgb(160, 0, 0); /*Couleur en arrière plan du bouton s'il est survolé par la souris*/
}

/* Style de texte calibri, normal, 0.95rem, justifié à gauche, italique. Utilisé pour remarques, notes, liste des mises à jour, etc... */
.style_page_2{
    font-size:0.95rem;
    font-style:italic;
    text-align:left;
    font-family:calibri,'Times New Roman',Times,serif;
    font-weight:normal;
}

/* Style de texte calibri, gras, centré verticalement. Utilisé par appliqué pour les paragraphes en tête des pages 'Escales' */
.style_page_3{
    font-family:calibri,'Times New Roman',Times,serif;
    font-weight:bold;
    vertical-align:middle;
}

/* Style appliqué pour les tableaux incorporant les photos ou vidéos */
.style_page_photo{
    width: auto;
    max-width: 1080px;
    height:auto;
    margin-left:auto; 
    margin-right:auto;
    vertical-align:middle;
    border-collapse:collapse;
    font-family: calibri,'Times New Roman',Times,serif;
    font-weight:normal;
    text-align:center;
}

/* Style appliqué pour les tableaux incorporant les photos en 768x512px */
.style_page_photo_768-512{
    width: auto;
    height: auto; 
    margin-left:auto; 
    margin-right:auto;
    vertical-align:middle;
    border-collapse:collapse;
    padding:20px 300px;
    font-family: calibri,'Times New Roman',Times,serif;
    font-weight:normal;
    font-size:0.95rem;  
    text-align:center;
}

/* classe pour la cellule en première colonne des tableaux contenant les photos */
.cel_tab1{
    border: 1px solid yellow;
    background-color: rgb(20, 0, 0, 0.9);
	    max-width:780px;
}

/* classe pour la cellule en deuxième colonne des tableaux contenant les commentaires */
.cel_tab2{
    border: 1px solid yellow;
    background-color: rgb(42, 0, 0, 0.9);
    max-width:300px;
}

/* Style appliqué pour les titres pour les pages 'escales' */
.titre_escales{
    border:0px;
    background-color:rgb(102, 0, 0);
    font-family:Stencil;
    width:100%;
    position: sticky;
    top: 0px;
    z-index:3; /* Permet de placer le titre en première position */
}

/* Style appliqué pour les sous-titres pour les pages 'escales' */
.titre_escales_2{
    border:0px;
    background-color:rgb(102, 0, 0);
    font-family:Stencil;
    width:100%;
}

/* Style appliqué pour les titres de toutes les pages (sauf 'escales') */
.titre_accueil{
    border:0px;
    background-color:rgb(102, 0, 0);
    font-family:'Lucida Calligraphy',calibri,sans-serif; 
    width:100%;
    position: sticky;
    top: 0px;
    z-index:3; /* Permet de maintenir le titre affiché en première position */
}

/* Style appliqué pour les sous-titres de toutes les pages (sauf 'escales') */
.titre_accueil_2{
    border:0px;
    background-color:rgb(102, 0, 0);
    font-family:'Lucida Calligraphy',calibri,sans-serif; 
    width:auto;
}

/* NEW- Style des sous-titres de toutes les pages (sauf 'escales') / texte calibri, normal, 1.8rem, centré, italique */
.sous_titre{
    margin-left: auto; 
    margin-right: auto;
    text-align: center;  
    /*max-width: 1080px;   largeur max à ajuster */
    width: 100%;
    font-weight: normal;
	font-family: Calibri, sans-serif;
	font-size: 1.8rem;
    font-style:italic;
}

/* NEW- Style des tableaux appliqués à la page d'accueil*/
.tableaux_accueil{
    display: inline-block;
    vertical-align: middle;
    border: 1px solid transparent; /* sinon border:1px n’a pas d’effet */
    margin-left: auto; 
    margin-right: auto;
    text-align: center;  
    max-width: 1080px;  /* largeur max à ajuster */
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 2px;
    font-weight: normal;
}

/* NEW - Style appliqué pour le titre du sélecteur de menu en page d'accueil */
.titre_accueil_page1{
    text-align: center;
    font-size: 2rem; 
    font-weight: bold;
    padding: 20px 0; /* espace haut et bas */
    margin-bottom: 20px;
    color: #ffd700; /* Jaune */
    background-color: #660000; /* Rouge foncé */
    border-radius: 4px; /* arrondi des coins de la box */
}

/* NEW - Style appliqué sur le sélecteur de menu en page d'accueil */
.ligne_selection {
  height: 50px;
}

/* NEW - Style appliqué sur le sélecteur de menu en page d'accueil */
.selection_accueil {
  display: block;
  width: 100%;
  height: 50px;       /* Hauteur fixe de la box */
  line-height: 50px;  /* Centrage vertical */
  font-weight: normal;
  text-align: left; /* Alignement à gauche des menus */
  padding-left: 10px; /* Ajout d'un léger décalage à droite du texte */
  text-decoration: none;
  color: #ffd700 !important;
  background-color: #660000;
  border-radius: 4px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* NEW - Effet hover lorsque la souris passe sur le menu */
.lien_accueil:hover {
  background-color: #a00000; /* rouge clair */
  color: #FFD700; /* le texte reste jaune */
  box-shadow: 0 0 1px #660000; /* léger effet lumineux */
} 

/* NEW - Espacement entre la dernière ligne du sélecteur de menu et la suite sur la page d'accueil */
.espace_ligne {
  height: 40px;
}

/* NEW - Grilles des photos */
.photo-grid {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 24px;
   padding: 20px;
   align-items: stretch; /* Pour que tous les enfants aient la même hauteur */
  }

/* NEW - Bloc des photos sur la grille */
.photo-item {
  background-color: rgba(102, 0, 0, 0.9);
  width: 250px;
  height: 300px; /* <-- hauteur fixe uniforme */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  border-radius: 8px;
  box-sizing: border-box;
  color: yellow;
  font-family: Calibri, Arial, sans-serif;
  margin: 0 auto;
}

/* NEW - Image de la photo dans le bloc */
.photo-item img {
  width: 100%;
  height: auto;
  max-height: 180px; /* <-- empêche l’image de déborder */
  object-fit: cover;
  border-radius: 4px;
  }
  
/* NEW - Image de la vidéo dans le bloc */
.video-item video {
  width: 100%;
  max-width: 600px;  /* Limite à 600px de large */
  height: auto;
  aspect-ratio: 16/9; /* moderne, sinon fallback ci-dessous */
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin: 0 auto;    /* Centre la vidéo */
  }  

/* NEW - Texte dans le bloc photo */  
.photo-caption {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 5px;
  }

/* Définition des fenêtres modales (ajout de messages,...)*/
.modal {
  display: none; /* Caché par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(80,80,80,0.4); /* fond semi-transparent */
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}
.modal.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(2px);
}
.modal-contenu {
  background-color: #300;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 40%;
  max-width: 800px; /* optionnel, pour limiter sur grands écrans */
  box-sizing: border-box; /* 👈 corrige le débordement */
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
  font-family: 'Lucida Calligraphy', Calibri, sans-serif;
}
.modal-contenu form {
  text-align: left; /* Empêche l’héritage d’un centrage éventuel */
}
.modal-contenu label,
.modal-contenu input[type="text"],
.modal-contenu input[type="email"],
.modal-contenu textarea {
  width: 80%;
  display: block;
  margin: 0 auto 12px auto;
  padding: 8px;
  font-size: 1em;
  box-sizing: border-box;
  font-family: Calibri, sans-serif;
}
/* Boutons centrés */
.modal-contenu .boutons-formulaire {
  text-align: center;
  margin-top: 20px;
}
.modal-contenu button {
	display: inline-block; /* Nécessaire pour s'assurer que le style complet est bien pris en compte */
    border: none;       /*Pas d'affichage des bordures blanches autour du bouton*/
    margin:5px 5px;     /*Ecart autour du bouton*/
    width:200px;        /*Largeur du bouton*/
    height: 40px;       /*Hauteur du bouton*/
    cursor: pointer;    /*Type de pointeur au survol*/
    text-align: center; /*Centrage du texte dans le bouton*/
    background-color: rgba(102, 0, 0, 1); /*Couleur en arrière plan du bouton*/
    font-weight:bold;   /*Style du texte dans le bouton*/
    font-size: 1.25rem;    /*Taille du texte dans le bouton*/
    color: yellow;
    border-radius: 5px; /* Arrondi des coins */
    transition: background-color 0.3s, box-shadow 0.3s;
}
.modal-contenu button:hover {
    background-color: rgb(160, 0, 0); /*Couleur en arrière plan du bouton s'il est survolé par la souris*/
	box-shadow: 0 0 10px rgba(255, 255, 100, 0.1); /* léger halo jaune doux */
}
/* Fermeture de la fenêtre modale (bouton annuler, ou si clic en dehors de la fenêtre*/
.fermer {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* NEW - Affichage de photos en gallerie */
.media-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* espacement entre les éléments */
  justify-content: center;
}

/* NEW - Affichage de photos/vidéos en gallerie */
.media-gallery img,
.media-gallery video {
  max-width: 170px;
  max-height: 170px;
  width: 100%;
  height: auto;
  flex: 1 1 170px; /* les vignettes peuvent se réduire si nécessaire */
  object-fit: cover;
  border-radius: 8px; /* optionnel : angles arrondis */
}

/* NEW - Adaptation automatique des pages aux écrans dont la résolution horizontale est inférieure à 600px, type smartphones (adaptation dite "Responsive") */
@media (max-width: 600px) {
  .tableaux_accueil {
    display: block;
  }
  .tableaux_accueil tr,
  .tableaux_accueil td {
    display: block;
    width: 100%;
  }
  .titre_accueil_page1 {
    font-size: 1.5rem;
    padding: 30px 0;
  }
  .selection_accueil {
    line-height: normal;
    padding: 1em;
    font-size: 1rem;
  }
  .photo-grid {
    flex-direction: column;
    align-items: center;
  }
  .photo-item {
    width: 90%;
    max-width: 300px;
  }
  .video-item {
    flex: 1 1 100%;
  }
  .media-gallery img,
  .media-gallery video {
    flex: 1 1 45%; /* les vignettes peuvent se réduire si nécessaire */
	  max-width: 60px;
    max-height: 60px;
  }
  .modal-contenu {
    width: 95%;
  }
}

/* Code permettant d'afficher les photos sous la forme d'un carroussel en page d'accueil */
#caroussel{
    width:400px;
    overflow:hidden;
}
.images{
   display:flex; 
   animation-duration: 10s;
   animation-name: mesImages;
   animation-iteration-count: infinite;
   animation-direction: inherit;
}
	
@keyframes mesImages {
    0%{
        transform: translateX(0px);
    }
    17%{
        transform: translateX(-400px);
    }
    34%{
        transform: translateX(-800px);
    }
    51%{
        transform: translateX(-1200px);
    }
    68%{
        transform: translateX(-800px);
    }
	85%{
        transform: translateX(-400px);
    }
    100%{
        transform: translateX(0px);
    }
}

.images2{
   display: flex; 
   animation-duration: 20s;
   animation-name: mesImages2;
   animation-iteration-count: infinite;
   animation-direction: inherit;
}

@keyframes mesImages2 {
    0%{
        transform: translateX(0px);
    }
    17%{
        transform: translateX(-400px);
    }
    34%{
        transform: translateX(-800px);
    }
    51%{
        transform: translateX(-1200px);
    }
    68%{
        transform: translateX(-800px);
    }
	85%{
        transform: translateX(-400px);
    }
    100%{
        transform: translateX(0px);
    }
}

.images3{
   display: flex; 
   animation-duration: 30s;
   animation-name: mesImages3;
   animation-iteration-count: infinite;
   animation-direction: inherit;
}

@keyframes mesImages3 {
    0%{
        transform: translateX(0px);
    }
    17%{
        transform: translateX(-400px);
    }
    34%{
        transform: translateX(-800px);
    }
    51%{
        transform: translateX(-1200px);
    }
    68%{
        transform: translateX(-800px);
    }
	85%{
        transform: translateX(-400px);
    }
    100%{
        transform: translateX(0px);
    }
}

