/* ===================================================
   STYLES PRINCIPAUX POUR LE SITE FANZINE CRUCIFY
   Charte pastel, douce, responsive
   =================================================== */

/* =============================
   1. TYPOGRAPHIE & VARIABLES
   ============================= */

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

:root {
  /* --- Couleurs de fond --- */
  --fond-principal: #fff9f0;
  --fond-header: #ffe3b3;
  --fond-cadre: #fff0d9;
  --fond-fiche: #FFF8EE;
  --fond-contact: #fff3e6;

  --header-bg: #ffe3b3; /* à adapter au besoin */

  /* --- Bordures --- */
  --bordure: #ffb347;
  --bordure-fiche: #ffc991;
  --bordure-extraits: #ffb58f;

  /* --- Couleurs de texte --- */
  --texte-principal: #333;
  --texte-foncé: #222;
  --texte-moyen: #444;
  --texte-clair: #666;

  /* --- Variantes orange --- */
  --orange-accent: #f7a072;
  --orange-hover: #f9bb87;
  --orange-lien: #d46a2e;
  --orange-visité: #aa5533;
  --orange-actif: #cc5522;
  --orange-h2: #e27d2b;
  --orange-bio: #dd7631;
  --orange-date: #cc8844;
  --orange-fiche: #d2681e;
  --orange-btn-contact: #ffb66e;
  --orange-btn-hover: #ff9940;
  --orange-404: #ff8c42;
}

/* =============================
   2. BASE / STRUCTURE GLOBALE
   ============================= */

body {
  background-color: var(--fond-principal);
  font-family: 'Comic Neue', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--texte-principal);
}

a {
  color: var(--orange-lien);
  text-decoration: none;
}

a:visited {
  color: var(--orange-visité);
}

a:active {
  color: var(--orange-actif);
}

/* =============================
   3. HEADER & NAVIGATION
   ============================= */

header {
  background-color: var(--fond-header);
  padding: 20px;
  text-align: center;
  border-bottom: 4px solid var(--bordure);
}

.logo {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  background: var(--fond-cadre);
  padding: 8px 12px;
  border-radius: 15px;
  border: 2px solid var(--bordure);
  color: var(--texte-foncé);
  transition: background 0.3s;
}

nav a:hover {
  background: var(--bordure);
  color: white;
}

/* =============================
   4. FOOTER
   ============================= */

footer {
  text-align: center;
  background-color: var(--fond-header);
  padding: 15px;
  margin-top: 30px;
  border-top: 4px solid var(--bordure);
}

.footer-links a {
  margin: 0 10px;
  color: var(--texte-principal);
  text-decoration: none;
}

/* =============================
   5. CONTENU PRINCIPAL
   ============================= */

main {
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

.intro h2 {
  color: var(--orange-h2);
}

/* =============================
   6. GALERIES GÉNÉRALES
   ============================= */

.gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-preview img {
  max-width: 100%;
  height: auto;
  margin: 10px;
  border-radius: 20px;
  border: 2px solid var(--fond-header);
}

.gallery-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff6e6;
  width: 200px;
  transition: transform 0.2s ease;
  text-align: center;
  font-family: 'Comic Neue', cursive;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  display: block;
  max-width: 200px; 
  margin: 0 auto 10px auto;
  height: auto;
  border-radius: 15px;
}


.gallery-item h3 {
  font-size: 1rem;
  margin: 0.5em;
}

.gallery-item p {
  font-size: 0.875rem;
  padding: 0 0.5em 0.5em;
}

/* =============================
   7. PAGE 404
   ============================= */

.page-404 {
  text-align: center;
  padding: 2em;
  background-color: #fff8f1;
  color: var(--texte-moyen);
}

.page-404 h1 {
  font-size: 2.5em;
  margin-bottom: 0.3em;
  color: var(--orange-404);
}

.page-404 a {
  color: var(--orange-404);
  font-weight: bold;
}

.page-404 img {
  margin-top: 1.5em;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* =============================
   8. PAGE CONTACT
   ============================= */

.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 2em;
  background-color: var(--fond-contact);
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.contact-section form {
  display: flex;
  flex-direction: column;
}

.contact-section label {
  margin-top: 1em;
  font-weight: bold;
  color: var(--texte-moyen);
}

.contact-section input,
.contact-section textarea {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.8em;
  font-family: 'Comic Neue', sans-serif;
  font-size: 1em;
  margin-top: 0.5em;
}

.contact-section button {
  margin-top: 1.5em;
  padding: 0.8em;
  background-color: var(--orange-btn-contact);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-section button:hover {
  background-color: var(--orange-btn-hover);
}

/* =============================
   9. PAGE PRESSE
   ============================= */

.presse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  max-width: 1000px;
  margin: 2em auto;
  padding: 0 1em;
}

@media (max-width: 768px) {
  .presse-grid {
    grid-template-columns: 1fr;
  }
}

.presse-item {
  text-align: center;
}

.presse-item img {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.presse-item img:hover {
  transform: scale(1.02);
}

.presse-item figcaption {
  margin-top: 0.5em;
  font-size: 0.95em;
  color: var(--texte-moyen);
}

/* =============================
   10. PAGE AUTEURS
   ============================= */

.auteurs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  max-width: 1000px;
  margin: 2em auto;
  padding: 0 1em;
}

@media (max-width: 768px) {
  .auteurs-grid {
    grid-template-columns: 1fr;
  }
}

.auteur {
  display: flex;
  align-items: flex-start;
  gap: 1em;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.bio h2 {
  margin: 0 0 0.3em;
  font-size: 1.3em;
  color: var(--orange-bio);
}

.bio p {
  margin: 0;
  line-height: 1.6;
  font-size: 1em;
}

/* =============================
   11. PAGE SOUVENIRS
   ============================= */

.page-souvenirs p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 1.5em;
  color: var(--texte-principal);
}

.galerie-souvenirs img {
  width: 100%;
  max-width: 400px;
  margin: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.souvenir {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--texte-moyen);
}

.souvenir p {
  margin-bottom: 1.5em;
}

.souvenir figure {
  margin: 1em;
  max-width: 300px;
}

.souvenir img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.souvenir figcaption {
  font-size: 0.9em;
  color: var(--texte-clair);
  margin-top: 0.5em;
  text-align: center;
}

/* Responsive images flottantes */
.float-left {
  float: left;
  margin-right: 1.5em;
}

.float-right {
  float: right;
  margin-left: 1.5em;
}

@media (max-width: 768px) {
  .float-left, .float-right {
    float: none;
    display: block;
    margin: 1em auto;
  }
}

/* =============================
   12. PAGE FANZINE
   ============================= */

.fiche-fanzine {
  padding: 2rem;
  background-color: var(--fond-fiche);
  color: var(--texte-principal);
}

.fiche-fanzine .date {
  font-style: italic;
  color: var(--orange-date);
  margin-bottom: 1rem;
}

.fiche-contenu {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.couverture-large {
  max-width: 300px;
  border-radius: 20px;
  border: 3px solid var(--bordure-fiche);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.description {
  flex: 1;
}

.description h2, .description h3 {
  color: var(--orange-fiche);
}

.extraits {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.extraits img {
  max-width: 120px;
  border-radius: 12px;
  border: 2px solid var(--bordure-extraits);
}

.telechargement a {
  background-color: #ffd6a3;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.retour a {
  display: inline-block;
  margin-top: 2rem;
  color: #884422;
}

/* =============================
   13. ELEMENTS COMMUNS / UI
   ============================= */

.highlight {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--orange-accent);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  margin: 1rem 0;
}

.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: var(--orange-accent);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  background: var(--orange-hover);
  transform: scale(1.05);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* =============================
   14. FIGURES SPÉCIALES
   ============================= */

figure.illustration {
  display: block;
  margin: 2em auto;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

figure.illustration img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border: 12px solid transparent;
  border-image: url('https://fanzine-crucify.neocities.org/assets/img/souvenirs/sketch-border.png') 60 round;
  box-sizing: border-box;
  background-color: transparent;
}

figure.illustration figcaption {
  font-size: 0.85rem;
  color: var(--texte-moyen);
  margin-top: 0.5em;
}

.page-fanzine figure.illustration img {
  box-shadow: none !important;
}

/* =============================
   15. IMAGES FLOTTANTES
   ============================= */

.image-droite {
  float: right;
  margin-left: 1em;
  margin-bottom: 0.5em;
  max-width: 80px;
  height: auto;
}

.image-gauche {
  float: left;
  margin-right: 1em;
  margin-bottom: 0.5em;
  max-width: 80px;
  height: auto;
}

article::after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 600px) {
  .image-droite,
  .image-gauche {
    float: none;
    display: block;
    margin: 0 auto 1em auto;
    max-width: 80%;
  }
}

/* =============================
   16. PAGE SALONS
   ============================= */

.salons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
  margin-top: 2em;
}

.salons-grid article {
  background: #f9f9f9;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.salons-grid h2 {
  margin-top: 0;
}

.salons-grid img {
  display: block;
  margin: 0 auto 1em auto;
  max-width: 100%;
  height: auto;
}

/* ===============================
   17. Tutoriels - Pages individuelles
   =============================== */

.tutoriel-contenu img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
}

.tutoriel-contenu h2 {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  color: #444;
}
