* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.5;
}

header {
  display: flex;
  align-items: center;      /* centre verticalement */
  justify-content: space-between; /* logo à gauche, nav à droite */
  padding: 20px 40px;
  background-image: url('../images/bg_comp.jpg'); /* ton background */
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  height: 80px; /* fixe une hauteur pour mieux centrer le logo */
}

.logo {
  height: 50px;  /* taille du logo */
  object-fit: contain;
  display: block;
}

header h1 {
  margin: 0;
  font-size: 2rem;          /* un peu plus petit pour tenir dans la hauteur */
  font-weight: 700;
  flex: 1;
  text-align: center;
  color: #111;
  line-height: 60px;        /* aligne verticalement le texte */
  user-select: none;
}

.top-nav {
  display: flex;
  gap: 20px;
  font-size: 1.1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.top-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.top-nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.top-nav a.active {
  background-color: #00000036;
  color: white;
  pointer-events: none; /* optionnel : désactive le clic sur le lien actif */
}

.top-nav i {
  font-size: 1.3rem;
  vertical-align: middle;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 40px;
  gap: 15px;
  max-width: 1200px;
  margin: 40px auto;
}

.gallery img {
  cursor: pointer;
  max-height: 200px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(179, 79, 117, 0.6);
}

#preview {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #808080;  /* Fond gris fixe */
  backdrop-filter: blur(5px);
  display: none; /* caché par défaut */
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  cursor: pointer;
  backdrop-filter: none; /* Pas d’effet de transparence */
}

#preview > img,
#preview .preview-text {
  cursor: default;
}

#preview img {
  max-width: 60vw;
  max-height: 80vh;
  box-shadow: 0 0 15px #000;
  border-radius: 8px;
  object-fit: contain;
}

.preview-text {
  max-width: 300px;
  color: #fff;
  font-size: 1.1rem;
}

.preview-text button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #2c2c2c;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.preview-text button:hover {
  background-color: #1e1e1e;
}

.contact-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.contact-section h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.contact-form button {
  background-color: #2c2c2c;
  color: white;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1e1e1e;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  color: #777;
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

footer a {
  color: #b34f75;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

.contact-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 1.1rem;
  color: #111;
}

.contact-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.contact-form {
  flex: 2;
  max-width: 600px;
}

.contact-info {
  flex: 1.5; /* Augmente la largeur de la colonne droite */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-left: 40px;
}

.divider {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ccc;
  margin: 10px 0;
}

.portrait {
  width: 250px; /* Augmente la largeur de la photo */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.presentation {
  max-width: 350px; /* Texte plus large */
  text-align: center;
  line-height: 1.4;
  color: #555;
}

.certificat {
  font-size: 0.85rem;
  color: #555; /* optionnel, pour un gris plus doux */
  margin-top: 10px; /* un petit espace au-dessus si besoin */
}

main {
  text-align: center;
}

main h1, main section h2, main section ul {
  text-align: center;
}

main section {
  text-align: center; /* Centre le bloc liste */
}

main section ul {
  max-width: 600px;       /* largeur max pour la liste */
  margin: 0 auto;         /* centre la liste */
  padding-left: 20px;     /* espace pour les puces */
  text-align: left;       /* texte aligné à gauche à l’intérieur */
  list-style-position: outside;
}

main section ul li {
  margin-bottom: 8px;     /* espace entre les items */
  white-space: normal;    /* force retour à la ligne standard */
}

header a img.logo {
  position: relative;
  z-index: 2; /* s'assurer que le logo passe devant */
}

header a {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.3); /* fond noir semi-transparent */
  padding: 6px 10px;
  border-radius: 6px; /* optionnel : coins arrondis */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* ombre subtile */
}