/* =============================================
   BERLIN – TI  |  Style adapté au portfolio
   ============================================= */

:root {
  --bg:         #080512;
  --panel:      #130b24;
  --panel-soft: #1b1033;
  --line:       rgba(216, 180, 254, .18);
  --text:       #fbf7ff;
  --muted:      #c9b8de;
  --accent:     #c084fc;
  --accent-2:   #f0abfc;
  --warm:       #f9a8d4;
  --red:        #a90331;   /* garde la couleur Berlin pour les accents thématiques */
}

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

html { scroll-behavior: smooth; }

/* ── Body ── */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18%  8%, rgba(192,132,252,.28), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(240,171,252,.18), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(124,58,237,.22), transparent 32rem),
    linear-gradient(135deg, #080512 0%, #160a2c 52%, #0b0618 100%);
  color: var(--text);
  font-family: "Space Grotesk", "Poppins", Arial, sans-serif;
  line-height: 1.6;
  width: 100%;
}

a { color: inherit; transition: color .2s ease; }

/* ── Header / Bannière ── */
.entete {
  width: 100%;
  padding: 20px 20px 0;
}

.banniere {
  background-image: url("/img/banniere.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 220px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.banniere::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 18, .55);
  border-radius: 10px;
}

/* Halo violet sur la bannière */
.banniere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(192,132,252,.22), transparent 70%);
  pointer-events: none;
}

.titre-capitale {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text);
  width: 300px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  border-radius: 25px;
  /* Drapeau allemand en dégradé */
  background: linear-gradient(to bottom, #111 33%, #a90331 33% 66%, #d4a017 66%);
  border: 1px solid rgba(240,171,252,.3);
  box-shadow: 0 0 40px rgba(192,132,252,.25), 0 4px 15px rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  opacity: .92;
  text-shadow: 1px 1px 4px rgba(0,0,0,.7);
}

/* ── Layout wrapper ── */
.wrapper {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Navigation ── */
.navigation {
  width: 100%;
  background: rgba(19, 11, 36, .78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0 6px;
  position: sticky;
  top: 10px;
  z-index: 20;
  box-shadow: 0 8px 32px rgba(8,5,18,.3);
}

.nav-liste {
  display: none;
  flex-direction: column;
  list-style: none;
}

.nav-liste.ouvert { display: flex; }

.nav-lien {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--muted);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
  border-radius: 6px;
}

.nav-lien:hover {
  background: rgba(192,132,252,.13);
  color: var(--text);
}

/* Burger */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger-barre {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Contenu page ── */
.contenu-page {
  width: 100%;
  background: rgba(19, 11, 36, .72);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  margin-top: 12px;
  padding: 0 0 30px;
  box-shadow: 0 24px 80px rgba(8,5,18,.28);
  text-align: justify;
}

/* Titre de section */
.titre-page {
  background: linear-gradient(135deg, rgba(192,132,252,.25), rgba(240,171,252,.15));
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  text-align: center;
  height: 56px;
  line-height: 56px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 24px;
  letter-spacing: .04em;
  text-shadow: 0 0 20px rgba(240,171,252,.4);
}

/* Texte dans les pages */
.contenu-page p,
.contenu-page h3,
.contenu-page ul {
  font-size: 1rem;
  margin: 16px 30px;
  color: var(--muted);
  line-height: 1.75;
}

.contenu-page h3 {
  color: var(--accent-2);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.contenu-page ul { padding-left: 20px; }
.contenu-page li { margin-bottom: 4px; }

/* ── Image centrée ── */
.img-centree {
  width: 22%;
  display: block;
  margin: 0 auto 20px;
  text-align: center;
}

.img-centree img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 0 30px rgba(192,132,252,.2);
}

/* ── Sommaire ── */
.sommaire {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 16px 30px;
}

.sommaire li { margin: 10px 0; }

.sommaire a {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color .2s ease;
}

.sommaire a:hover { color: var(--text); }

/* ── Référence ── */
.reference {
  text-align: center;
  font-size: .88rem;
  margin: 20px 30px;
  color: var(--muted);
}

.reference a { color: var(--accent); text-decoration: none; }
.reference a:hover { color: var(--text); }

/* ── Galerie ── */
.galerie-grille {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px 20px;
}

.galerie-image { width: 100%; }

.galerie-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(8,5,18,.4);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.galerie-image img:hover {
  border-color: rgba(240,171,252,.42);
  box-shadow: 0 8px 40px rgba(126,34,206,.3);
}

.galerie-image p {
  font-size: .9rem;
  text-align: center;
  margin-top: 8px;
  color: var(--muted);
}

/* ── Formulaire contact ── */
.formulaire {
  max-width: 700px;
  margin: 20px auto;
  padding: 0 20px;
}

.form-ligne {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.form-ligne label {
  width: 180px;
  height: 30px;
  line-height: 30px;
  flex-shrink: 0;
  font-size: .95rem;
  color: var(--accent-2);
  font-weight: 600;
}

.form-ligne input,
.form-ligne textarea {
  flex: 1;
  background: rgba(27, 16, 51, .72);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: 0 10px;
  height: 36px;
  transition: border-color .2s ease;
}

.form-ligne input:focus,
.form-ligne textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,132,252,.15);
}

.form-ligne textarea {
  height: 90px;
  padding: 10px;
  resize: vertical;
}

.form-bouton {
  text-align: center;
  margin-top: 20px;
}

.form-bouton button {
  height: 50px;
  width: 280px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  background: linear-gradient(135deg, #f5d0fe, #c084fc 48%, #8b5cf6);
  color: #160a2c;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(192,132,252,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.form-bouton button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(192,132,252,.4);
}

/* ── Liens (capitales) ── */
.liens-liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0 30px;
  margin: 20px 30px;
  gap: 10px 0;
}

.liens-liste li {
  width: 33.33%;
  text-align: center;
  font-size: 1rem;
  padding: 5px 0;
}

.liens-liste a {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color .2s ease;
}

.liens-liste a:hover { color: var(--text); }

/* ── Center helper ── */
.center p { text-align: center; font-size: 1rem; margin: 20px 30px; color: var(--muted); }
.center h3 { text-align: center; font-size: 1.2rem; margin: 20px 30px; color: var(--accent-2); }

/* ── Lien erreur ── */
.contenu-page .erreur-lien {
  text-align: center;
  display: block;
  color: var(--accent);
  font-size: 1rem;
  text-decoration: none;
  margin: 20px 30px;
  transition: color .2s ease;
}

.contenu-page .erreur-lien:hover { color: var(--text); }

/* ── Page 404 ── */
.error404 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background:
    radial-gradient(circle at 50% 50%, rgba(192,132,252,.18), transparent 50%),
    linear-gradient(135deg, #080512 0%, #160a2c 100%);
}

/* ── Responsive ── */

/* Tablette */
@media screen and (min-width: 480px) {
  .wrapper { width: calc(100% - 32px); }
}

@media screen and (min-width: 640px) {
  body { display: flex; flex-direction: column; align-items: center; }

  .wrapper { width: min(1120px, calc(100% - 32px)); }

  .burger-btn { display: none; }

  .nav-liste,
  .nav-liste.ouvert {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    height: 50px;
    overflow: hidden;
    border-radius: 8px;
  }

  .nav-liste li { flex: 1; }
  .nav-lien { height: 50px; width: 100%; }

  .galerie-grille { flex-direction: row; flex-wrap: wrap; }
  .galerie-image { width: calc(50% - 8px); }
}

/* Desktop */
@media screen and (min-width: 1024px) {
  .wrapper { flex-direction: row; align-items: flex-start; gap: 16px; }

  .navigation {
    width: 20%;
    min-width: 160px;
    position: sticky;
    top: 14px;
    align-self: flex-start;
    margin: 12px 0;
    flex-shrink: 0;
  }

  .nav-liste,
  .nav-liste.ouvert {
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 0;
    border: none;
    overflow: visible;
  }

  .nav-liste li { flex: none; }
  .nav-lien { height: 50px; border-radius: 0; }

  .contenu-page { flex: 1; margin-top: 12px; }

  .galerie-image { width: calc(33.33% - 11px); }
}

/* ─────────────────────────────────────────
   Lightbox overrides
───────────────────────────────────────── */
.lb-close {
  display: block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: var(--text);
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s ease;
}

.lb-close::after { content: "×"; }
.lb-close:hover { opacity: .8; }
