/* ==============================
   CHARTE COULEUR – CAMAÏEU ROSE
   ============================== */

:root {
  --rose-fonce: #A13D85;      /* navigation / titres forts */
  --rose-principal: #a33a5b;  /* accents */
  --rose-doux: #e9c7d3;       /* fonds légers */
  --rose-clair: #f6eef1;      /* fond général */
  --gris-texte: #2b2b2b;
  --gris-secondaire: #666;
  --blanc: #ffffff;
}

/* ==============================
   BASE
   ============================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--rose-clair);
  color: var(--gris-texte);
  line-height: 1.6;
}

/* ==============================
   HEADER / MENU
   ============================== */

header {
  background-color: var(--rose-fonce);
  border-bottom: 4px solid var(--rose-principal);
}

nav {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: var(--blanc);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
}

nav a:hover {
  text-decoration: underline;
}

/* ==============================
   CONTENU GENERAL
   ============================== */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

h1 {
  text-align: center;
  color: var(--rose-fonce);
  font-size: 2rem;
  margin-bottom: 12px;
}

.intro {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 40px;
  color: var(--gris-secondaire);
  font-size: 1.05rem;
}

/* ==============================
   CARTES / GRILLES
   ============================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: var(--blanc);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.card-content {
  padding: 18px;
}

.name {
  margin: 0;
  font-size: 1.2rem;
  color: var(--rose-fonce);
}

.role {
  margin: 6px 0 10px;
  font-weight: 700;
  color: var(--rose-principal);
  font-size: 0.95rem;
}

.bio {
  font-size: 0.95rem;
  color: var(--gris-texte);
}

/* ==============================
   BOUTONS DISCRETS
   ============================== */

button,
.btn {
  font-family: inherit;
}

.btn,
.btn-more {
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--rose-principal);
  background: var(--blanc);
  color: var(--rose-principal);
  cursor: pointer;
}

.btn:hover,
.btn-more:hover {
  background: var(--rose-doux);
}

/* ==============================
   FOOTER
   ============================== */

footer {
  margin-top: 50px;
  padding: 20px;
  background: var(--rose-doux);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gris-texte);
}
/* ==============================
   ENTÊTE PANORAMIQUE
   ============================== */

.hero {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.7);
  animation: heroZoom 12s ease-in-out infinite alternate;
}

/* Effet de zoom lent */
@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}
/* ==============================
   MODALE "SAVOIR PLUS"
   ============================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 1000;

  align-items: flex-start;
  justify-content: center;
  padding: 16px;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal.active { display: flex; }


/* ==============================
   MODALE – STRUCTURE 2 COLONNES
   ============================== */

.modal-content {
  background: var(--blanc);
  max-width: 650px;
  width: 90%;
  padding: 25px;
  border-radius: 4px;
  position: relative;

  display: flex;
  gap: 25px;
  align-items: flex-start;

  margin: 0 auto;
  box-sizing: border-box;

  max-height: calc(100vh - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Colonne gauche */
.modal-left {
  width: 180px;
  text-align: center;
  flex-shrink: 0;
}

.modal-left img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.modal-left h2 {
  margin: 10px 0 0;
  font-size: 1.1rem;
  color: var(--rose-fonce);
}

/* Colonne droite */
.modal-right {
  flex: 1;
}

.modal-right p {
  margin: 0 0 10px;
  text-align: justify;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 600px) {
  .modal-content {
    flex-direction: column;
    text-align: center;
  }

  .modal-left {
    width: 100%;
  }

  .modal-left img {
    height: 160px;
  }

  .modal-right p {
    text-align: justify;
  }
}
/* ==============================
   TITRE + SOUS-TITRE SUR LE HERO
   ============================== */

.hero-title{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:3;

  text-align:center;
  color: var(--blanc);

  padding: 14px 26px;
  background: rgba(0,0,0,0.35);
  border-radius: 6px;

  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.hero-main{
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-sub{
  margin-top: 6px;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: .4px;
  opacity: .95;
}

@media (max-width: 600px){
  .hero-title{ padding: 10px 18px; }
  .hero-main{ font-size: 1.5rem; }
  .hero-sub{ font-size: 1rem; }
}
/* ==============================
   MODALE PHOTO PLEIN ÉCRAN
   ============================== */

.photo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.photo-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal {
  position: relative;
  width: 95vw;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-modal img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  transform-origin: center center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.photo-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}