body {
    background-color: hsl(150deg 30% 90%);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0px;
}

section {
    padding: 20px;
    margin: 20px 0;
}
 /* Conteneur  */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #EEEFF0;
}
 /* Conteneur principal Pages annexes */
.container2 {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    /* border: 3px solid #3B4109; */
    background-color: #EEEFF0;
}



/* ===== Bandeau supérieur page d'accueil ===== */
header {
    background: linear-gradient(to right, #3f8fc4, #245c8f);
    text-align: center;
    padding: 10px 0px;
    width: 100%;
}
/* bandeau pages annexes */
.header2 {
    position: relative;
    background: linear-gradient(to right, #3f8fc4, #245c8f);
    text-align: center;
    width: 100%;
    height: 130px;
}

.association-label {
    padding-top: 10px;
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d6e4f2;
}

.association-name {
    margin: 6px 0 16px 0;
    color: white;
    text-shadow: 2px 2px 4px #000000;
}


/* Portrait */
.leyat-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leyat-portrait img {
    width: 150px;
    border-radius: 8px;
    border: 2px solid white;
}

.dates {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #e6eef6;
    font-style: italic;
}

/* ===== Présentation page d'accueil ===== */
.presentation {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: #ffffff;
    padding: 40px 24px;
    font-family: "Crimson Pro", serif;
    font-size: 1.3rem;
    line-height: 1.5;
}

.presentation h2 {
    text-align: center;
    font-family: "Libre Baskerville", serif;
    margin-bottom: 32px;
}

.presentation p {
    margin-bottom: 1.2rem;
    text-align: justify;
    hyphens: auto;
}

/* ===== Galerie ===== */
.galerie {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    margin-bottom: 60px;
    font-family: "Crimson Pro", serif;
    font-size: 1.3rem;
}

.galerie h2 {
    text-align: center;
    font-family: "Libre Baskerville", serif;
    margin-bottom: 28px;
}

.galerie-intro {
    max-width: 780px;
    margin: 0 auto 40px auto;
    font-size: 1.3rem;
    line-height: 1.5;
    text-align: justify;
    hyphens: auto;
}

.galerie-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.galerie-images figure {
    margin: 0;
    text-align: center;
}

.galerie-images img {
    width: 80%;
    height: auto;
    border-radius: 4px;
}

.galerie-images figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}
/* ===== Lightbox ===== */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* actif */
#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* petit bonus UX */
.galerie-images img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.galerie-images img:hover {
  transform: scale(1.03);
}
#lightbox-caption {
  position: absolute;
  bottom: 30px;
  color: black;
  font-size: 14px;
  opacity: 0.9;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 20px;
  background-color: rgba(238,231,254,0.8);
  box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}
#lightbox img {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#lightbox.active img {
  transform: scale(1);
}
/* ===== Projet LEYEL ===== */
/* Image sous  titre */
.img-titre {
    margin: 0;
    background: none;
}
/* Images Inline */
.img-in1 {
    display: flex;
    width: 35%;
    height: auto;
    border-radius: 4px;
    margin-left: 32%;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}
.img-in2 {
    display: flex;
    width: 35%;
    height: auto;
    border-radius: 4px;
    margin-left: 32%;
}

figcaption {
    margin-top: 8px;
    font-size: 0.8rem;
    font-style: italic;
    color: #999999;
    margin-left: 36%;
    text-shadow: 3px 0 4px white;
}
.img-pos1 {
    min-width: 70px;
    height: 65px;
    padding-right: 8px;
    padding-left: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-left: 30%;
    object-fit: contain;
    transform: translateY(30px) translateX(45px);
    background-color: rgba(238,231,254,0.8);
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    border-radius: 48%;
}

.projet-leyel {
    width: 800px;
    margin: 10px auto;
    padding: 38px 32px;
    border-radius: 6px;
    font-size: 1.1rem;
    line-height: 1.5;
    background-color: rgba(229,235,235,0.9);
}
   /* Image de fond presentation leyel */
.bg1 {
    background-image: url("./leyel-images/dessin-proto-jl.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 10% 60%;
    z-index: -1;
}

.projet-leyel h2 {
    text-align: center;
    font-family: "Libre Baskerville", serif;
    margin-bottom: 20px;
}

/* Titre + logo LEYEL */
.leyel-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

.leyel-title h2 {
    margin: 0;
}

/* Logo LEYEL */
.leyel-title img {
    height: 38px;          /* taille équilibrée avec le h2 */
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.projet-leyel h3 {
    margin-top: 36px;
    margin-bottom: 16px;
    font-family: "Libre Baskerville", serif;
    font-size: 1.1rem;
}

.projet-leyel p {
    margin-bottom: 1.2rem;
    text-align: justify;
    hyphens: auto;
}

.leyel-objectifs {
    padding-left: 20px;
}

.leyel-objectifs li {
    margin-bottom: 10px;
}

/* ===== Contact (cercle affirmé) ===== */
.contact {
    width: 420px;
    height: 350px;
    position: relative;
    top: 60px;
    margin: 10px auto 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f4f4f4;
    border-radius: 50%;
    border: 5px solid rgba(85, 30, 140, 0.28);
    box-shadow:
	0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: "Crimson Pro", serif;
    text-align: center;
    padding: 24px;
}


/* ===== Menu ===== */
/* ===== Conteneur bouton ===== */
/* Éviter de positionner séparément : */
/* .menu-button et  #txtcercle */
.menu-container {
  position: fixed;
  top: 25px;
  left: 30px;
  width: 100px;
  height: 100px;
  z-index: 1000;
  cursor: pointer;
}
.menu-button {
  position: absolute;
  top: 10px;
  left: 2px;
  width: 100px;
  height: 100px;
  z-index: 2;
  transform: none; /* important */
}
.menu-button:hover {
  position: absolute;
  top: 10px;
  left: -0.5px;
  width: 104px;
  height: 104px;
  z-index: 2;
  transform: none; /* important */

}

.txtcercle {
  fill: black;
  text-shadow: 1px 1px 3px white;
  position: absolute;
  top: -1px;
  left: -4px;
  width: 114px;
  height: 114px;
  pointer-events: none;
  overflow: visible;
}
.txtcercle.bas text {
  fill: white;
  font-family: noto sans;
  font-size: 19px;
  text-shadow: 2px 2px 3px black;
}
.txtcercle text {
  font-size: 16px;
  letter-spacing: 1.5px;
  dominant-baseline: middle;

}


/* ===== SVG ===== */
.logo-propeller {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== Hélice ===== */
.logo-propeller .blades {
    transform-origin: 50% 50%;
    filter: drop-shadow(6px 6px 8px);
}
      /* bloc moteur */
.logo-propeller .engine {
    opacity: 0.9;
}
  /* bloc moteur disparait a la rotation  */
.menu-button.open .engine {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* ===== Animation vibration (clic) ===== */
.menu-button.open {
    animation: vibrate 0.18s linear 5;
}
.menu-button.open .blades {
    animation: spinUp 2s cubic-bezier(0.2, 0.8, 0.2, 1.2) forwards;
    filter: blur(0.3px);
    /* opacity: 0.9;  */
    filter: drop-shadow(6px 6px 8px);
}

@keyframes vibrate {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(0.9px, -0.5px); }
    50%  { transform: translate(-0.5px, 0.5px); }
    75%  { transform: translate(0.5px, 0.5px); }
    100% { transform: translate(0, 0); }
}

/* ===== Rotation hélice ===== */
.logo-propeller.open .blades {
    animation: spinUp 2s cubic-bezier(0.4, 0, 0.2, 1.5) forwards;
}

@keyframes spinUp {
    from {
	transform: rotate(0deg);
    }
    to {
	transform: rotate(1080deg);
    }
}

/* ===== Menu latéral ===== */
#side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 170px;
    height: 100%;
    background: #3D89BD;
    padding-top: 160px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

#side-menu.open {
    transform: translateX(0);
}
/* Liens */

#side-menu ul {
    list-style: none;
    padding: 0;
}

#side-menu li {
    margin: 30px;
}

#side-menu a {
    color: white;
    text-shadow: 2px 2px 4px #000000;
    text-decoration: none;
    font-size: 1.3em;
}

#side-menu a:hover {
    color: #D4B814;
}

/* Affichage du nom de la page sous le bouton de menu  */

#page-title {
  display: block;
  color:white;
  transition: opacity 0.3s ease;
  text-shadow:1px 1px 1px black;
  border-radius: 4px;
  margin-top: 40px;
  transform: translateY(95px) translateX(20px);
  pointer-events: none;
}

#page-title.hidden {
  opacity: 0;
  pointer-events: none;
}
