@charset "utf-8";

body{
	position: relative;
    width: 100%;
    margin: 0;
	background-color: #F1F4F6;
	/* height: 100vh; */
	overflow: scroll;
}

* {
    font-family: 'Roboto', sans-serif;
}

.page {
    position: relative;
    /* height: 100vh; */
    width: 100%;
    display: flex;
    /* align-items: center; */
    align-content: center;
    flex-direction: column;
    padding: 20px;
    padding-top: 140px;
    box-sizing: border-box;
    overflow-y: auto;
}

.page-sansimage {
    position: relative;
    /* height: 100vh; */
    width: 100%;
    display: flex;
    /* align-items: center; */
    align-content: center;
    flex-direction: column;
    padding: 20px;
    padding-top: 0px;
    box-sizing: border-box;
    overflow-y: auto;
}

.page>* {
    margin: auto;
		z-index: 1;
}

.page-sansimage>* {
    margin: auto;
		z-index: 1;
}

h1,h2,h3,p,a {
    color: 2b2b2b;
}

hr {
    border:0;
    border-top: 1px solid rgba(0,0,0,0.05);
		clear: both;
}



.button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0,0,0,0.1);
    border: 0;
    border-radius: 5px;
    font-size: 16px;
    margin: 10px;
    text-decoration: none;
}

a{
	color: #2b2b2b;
	text-decoration: none;
}

a:hover{
	color: #000;
	text-decoration: none;
}

[disabled]{
    opacity: 0.3;
}

@media screen and (max-width: 500px){
    .button {
        margin: 5px 10px;
    }
    .or {
        display: inline-block;
        width: 100%;
    }
}

.carte{
    position: relative;
    background: white;
    max-width: 600px;
    width: 100%;
    border-radius: 25px;
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.1);
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

#carte-naissance {
    padding-top: 75px;
}

#carte-naissancesansimage {
    padding-top: 1px;
}

#prenom {
    margin-bottom:0;
		color: #5e7995;
		font-family: 'Pacifico', cursive;
		font-size: 4em;
		font-weight: normal;
}

#prenom-sansimage{
	margin-bottom:0;
	margin-top: 10px;
	color: #5e7995;
	font-family: 'Pacifico', cursive;
	font-size: 4em;
	font-weight: normal;
}

#date-de-naissance {
    margin-top:0;
    font-weight: 500;
    color: #2b2b2b;
}

img.photo-haut {
    position: absolute;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    top: -125px;
    left: calc(50% - 130px);
    border: 5px solid white;
		-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

img.photo-haut:hover{
	-webkit-filter: brightness(50%);
	filter: brightness(50%);
}


#arc {
	width: 150px;
}

#marraine {
	font-size: 0.9em;
}

/* #chat {
	float: right;
	width: 50%;
	font-size: 0.9em;
} */

#visites{
font-size: 0.9em;
display: block;
}

#adresse-parents{
	font-size: 0.9em;
	display: block;
}

#adresse-parents a{
	text-decoration: none;
	color: #2b2b2b;
}

#adresse-parents a:hover{
	text-decoration: underline;
	color: #000;
}

#gallerie {
	width: 100%;
}

.gallerie_legende{
	font-size: 0.7em;
}

img.gallerie_image
{
	width: 100%;
	border-radius: 3%;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

img.gallerie_image:hover{
	-webkit-filter: brightness(80%);
	filter: brightness(80%);
}

video {
  max-height: 90vh;
	max-width: 100%;
	height: auto;
}

.divideo{
	margin-top: 30px;
}

/* 1) Correction du code couleur (il manquait le #) */
h1, h2, h3, p, a {
  color: #2b2b2b;
}

/* 2) Styles pour <h1> et <h2> génériques */
.carte h1 {
  margin-bottom: 0;
  color: #5e7995;
  font-family: 'Pacifico', cursive;
  font-size: 5em;
  font-weight: normal;
}
.carte h2 {
  margin-top: 0;
  font-weight: 500;
  color: #2b2b2b;
}

/* 3) Passage des anciens #marraine, #visites, #adresse-parents en classes ou balise address */
.marraine {
  font-size: 0.9em;
  margin: 1em 0 0;
}
.visites {
  font-size: 0.9em;
  margin: 1em 0;
}
address {
  font-size: 0.9em;
  font-style: normal;  /* override italics si besoin */
  margin-bottom: 1em;
  line-height: 1.4;
}
address a {
  text-decoration: none;
  color: #2b2b2b;
}
address a:hover {
  text-decoration: underline;
  color: #000;
}

/* 4) Style de la nav en liste horizontale */
nav ul {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
}
nav ul li {
  display: inline-block;
  margin: 0 0.5em;
}
nav ul li .button {
  margin: 0;
}

/* Place la partie horaire sur une ligne à part, en plus petit */
.carte h2 .heure {
  display: block;        /* force le retour à la ligne */
  font-size: 0.75em;     /* ajustez à la taille souhaitée */
  margin-top: 0.2em;     /* un petit espace au-dessus */
  color: #2b2b2b;        /* même couleur que le h2, ou nuance plus claire */
}

nav ul {
  display: flex;
  flex-wrap: wrap;          /* permet au troisième bouton de passer sur une nouvelle ligne si besoin */
  justify-content: center;  /* centre tous les boutons */
  gap: 1em;                 /* espace uniforme entre chaque bouton */
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
}

nav ul li {
  /* plus besoin de margin ici, le gap s’en charge */
}

/* 1. On définit la transition sur les propriétés qu’on veut animer */
.button {
  transition: 
    background-color 0.2s ease, 
    transform 0.2s ease, 
    box-shadow 0.2s ease;
}

/* 2. Au survol, on change légèrement la couleur de fond, on élève le bouton et on ajoute une ombre */
.button:hover {
  background-color: rgba(0,0,0,0.15);   /* un peu plus foncé */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* Nouvelle version : photos empilées les unes sous les autres */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 1em;      /* espace entre chaque photo */
  margin: 1em 0;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform .3s ease, box-shadow .3s ease;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 5px;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery figcaption {
  text-align: center;
  font-size: 0.8em;
  padding: 0.5em 0;
  color: #555;
}


/* — Video container — */
video {
  max-height: 90vh;
  max-width: 100%;
  height: auto;
}

.divideo {
  margin-top: 30px;
}

.parrain-marraine {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  width: 100%;
}

.bloc-gauche,
.bloc-droit {
  flex: 1 1 45%;
  box-sizing: border-box;
  text-align: center; /* 🆕 centrer le texte dans chaque colonne */
}


.ligne {
  font-size: 0.8em;
  margin-bottom: 0.2em;
  color: #2b2b2b;
}

.nom {
  font-size: 0.8em;
  color: #2b2b2b;
}

#carte-photos{
    padding-top: 0px;
}

#carte-photos > header:nth-child(1) > h1:nth-child(1){
    margin-top: 0px;
}