/* site.css */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  background: #ffffffdd;
  border-bottom: 1px solid #e2dfdb;
  backdrop-filter: blur(6px);
}

.header-content {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0;
}

.main-nav a {
  margin-left: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  background: #111;
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Hero */

.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-grid {
  align-items: center;
}

/* Left */

.hero h1 {
  font-size: 2.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.roles-line {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.dot {
  width: 6px;
  height: 6px;
  background: #111;
  border-radius: 50%;
  display: inline-block;
}

.demo-button,
.news-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #111;
  background: transparent;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.demo-button:hover,
.news-button:hover {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* Right */

.hero-photo {
  display: flex;
  justify-content: flex-end;
}

.hero-photo-inner {
  width: 480px;
  height: 660px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Footer */

.site-footer {
  border-top: 1px solid #e2dfdb;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #666;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

/* Responsive */

@media (max-width: 800px) {

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    justify-content: flex-start;
  }

  .hero-photo-inner {
    width: 280px;
    height: 380px;
  }
}

/* -------- PAGE A PROPOS -------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: flex-start;
}

/* Colonne photos */

.about-photos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-photo {
  width: 260px;          /* taille fixe = tranquille 🙂 */
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.about-photos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* important */
  gap: 1.2rem;
}

/* ----- Slider photos page À propos (version mobile-friendly) ----- */

.about-photos-slider {
  display: none; /* caché par défaut (desktop) */
}

.about-photos-slider input[type="radio"] {
  display: none;
}

/* conteneur du slider */
.about-slides {
  max-width: 320px;   /* taille max du slider */
  width: 100%;
  margin: 0 auto;
}

/* chaque "diapo" */
.about-slide {
  display: none;      /* on cache tout par défaut */
}

.about-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* n'afficher que la bonne diapo */
#about-slide-1:checked ~ .about-slides .s1,
#about-slide-2:checked ~ .about-slides .s2,
#about-slide-3:checked ~ .about-slides .s3 {
  display: block;
}

/* flèches sous l'image */
.about-slider-arrows {
  margin-top: 0.4rem;
}

.about-slider-arrows .arrows {
  display: none;
  max-width: 320px;
  width: 100%;
  margin: 0.2rem auto 0;
  justify-content: space-between;
  align-items: center;
}

/* flèches visibles seulement pour la diapo active */
#about-slide-1:checked ~ .about-slider-arrows .arrows-1,
#about-slide-2:checked ~ .about-slider-arrows .arrows-2,
#about-slide-3:checked ~ .about-slider-arrows .arrows-3 {
  display: flex;
}

.about-slider-arrows label {
  font-size: 1.4rem;  /* flèches plus petites */
  cursor: pointer;
  padding: 0 0.4rem;
  user-select: none;
}

/* Colonne texte */

.about-text h1 {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 2.4rem;     /* avant : 1.5rem */
  font-size: 1.9rem;
}

.about-text h2 {
  margin-top: 3rem;          /* avant : 2.5rem */
  margin-bottom: 1rem;       /* avant : 0.8rem */
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-text p {
  max-width: 38rem;
}

.about-text p + p {
  margin-top: 0.9rem;
}

.about-text ul {
  margin-left: 1.2rem;
}

.about-text li + li {
  margin-top: 0.35rem;
}

.section {
  margin-top: 1rem;
}

/* Liste type "CV" à deux colonnes (date / texte) */

.cv-list {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0 0;        /* un peu plus d’air au-dessus */
}

.cv-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 1.4rem;        /* légèrement plus large */
  margin-bottom: 1.2rem;     /* avant : 0.9rem */
}

.cv-date {
  white-space: nowrap;
  color: #222;
}

.cv-text {
  color: #111;
  display: block;
  text-align: justify;
  line-height: 1.6;                /* un peu plus de souffle */
}

/* Titres de sections du CV un peu plus espacés */

.about-text h1 {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.5rem;           /* un peu plus bas que avant */
  font-size: 1.9rem;
}

.about-text h2 {
  margin-top: 2.5rem;              /* espace avant chaque partie */
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* lien + petite icône dans le CV */

.cv-link {
  text-decoration: underline;
}

.cv-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.cv-favicon {
  width: 14px;
  vertical-align: -2px;
  margin: 0 4px 0 0;               /* petit espace entre l’icône et le texte */
}

/* -------- ACTUALITÉS (page d'accueil) -------- */

.news-wrapper {
  margin-top: 1.8rem;
  position: relative;
  display: inline-block;
}

.news-wrapper input[type="checkbox"] {
  display: none;
}

.news-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 0.8rem);
  min-width: 260px;
  max-width: 360px;
  padding: 1rem 1.2rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2dfdb;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  font-size: 0.85rem;
  text-align: left;
  display: none;
  z-index: 50;
}

.news-panel h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.7rem;
}

.news-panel p {
  margin: 0 0 0.6rem 0;
  text-align: left;
}

#news-toggle:checked ~ .news-panel {
  display: block;
}

/* Pour éviter que la bulle déborde sur mobile */
@media (max-width: 800px) {
  .news-panel {
    left: 0;
    transform: none;
  }
}
/* -------- MOBILE : PAGE ACCUEIL UNIQUEMENT -------- */
@media (max-width: 800px) {

  /* 1) Comédienne / Metteuse / Ateliers : en colonne, centrés */
  .page-home .roles-line {
    display: flex;
    flex-direction: column;   /* une ligne par rôle */
    align-items: center;
    text-align: center;
    gap: 0.3rem;
  }

  /* on enlève les ronds entre les mots en mobile */
  .page-home .roles-line .dot {
    display: none;
  }

  /* on ajoute une puce APRÈS chaque rôle */
  .page-home .roles-line .role-item::after {
    content: " •";
  }

  /* 2) Photo centrée sur mobile pour la home */
  .page-home .hero-photo {
    justify-content: center;
  }
}

/* ------ MOBILE : PAGE CONTACT ------ */
@media (max-width: 800px) {

  /* 1) Diminuer un peu la taille du nom */
  .page-contact .hero h1 {
    font-size: 1.8rem;
  }

  /* 2) Centrer la photo */
  .page-contact .hero-photo {
    justify-content: center;
  }
}

/* ------ MOBILE : PAGE A PROPOS ------ */
@media (max-width: 800px) {

  /* On casse la grille et on empile simplement les blocs
     (slider PUIS texte), pour éviter tout chevauchement. */
  .page-about .about-layout {
    display: block;
  }

  /* On cache l’ancienne colonne photos en mobile */
  .page-about .about-photos {
    display: none;
  }

  /* Slider visible, centré, avec un peu d’air dessous */
  .page-about .about-photos-slider {
    display: block;
    margin: 0 auto 1.5rem;
  }

  /* Bloc texte confortable en mobile */
  .page-about .about-text {
    font-size: 0.95rem;
    padding-bottom: 2rem;
  }

  /* Titre "À propos" */
  .page-about .about-text h1 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  /* Sous-titres (Comédienne, Mise en scène, etc.) */
  .page-about .about-text h2 {
    font-size: 0.9rem;
    margin-top: 1.6rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.12em;
  }

  /* Liste CV : dates + texte lisibles */
  .page-about .cv-list {
    margin-top: 0.4rem;
  }

  /* Chaque item du CV en "bloc" (pas deux colonnes) */
  .page-about .cv-list li {
    display: block;
    margin-bottom: 1rem;
  }

  /* Date en gras sur sa propre ligne */
  .page-about .cv-date {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0.1rem;
  }

  /* Texte en dessous, pleine largeur */
  .page-about .cv-text {
    display: block;
    text-align: justify;
    line-height: 1.6;
  }
}
