@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* =========================
   RESET
========================= */

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

html {
    height: 100%;
}

body {
    /* min-height (pas height) : le contenu peut dépasser 100vh sans être
       clippé par le footer fixe — voir aussi contact.css */
    min-height: 100%;
    font-family: 'DM Sans', sans-serif;
}

/* =========================
   VARIABLES
========================= */

:root {
    --beige: #f5f5f5;        /* était #fbf0de */
    --beige-light: #ffffff;  /* était #fffaf3 */
    --text: #000;
    --accent: #000;          /* était #243c5a */
}
.header {
  border-bottom: 1.5px solid #000;
}
.footer {
  border-top: 1.5px solid #000;
}
/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3 {
      font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
    font-size: 26px;
    font-weight: 400;
    /* font-style: italic; */
    margin: 0;
}

/* =========================
   BODY
========================= */

body {
    background-color: var(--beige-light);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

/* NB: pas de `flex:1` global sur main — le header et le footer sont fixes
   (hors du flux), donc chaque page gère elle-même comment son contenu
   occupe l'espace disponible (voir body.page-releases / body.page-contact
   plus bas pour le centrage). */

/* =========================
   HEADER
========================= */

.header {
    position: fixed;      /* fixe le header en haut */
    top: 0;               /* positionné en haut */
    left: 0;              /* début à gauche */
    width: 100%;          /* prend toute la largeur */
    z-index: 999;         /* au-dessus du reste du contenu */
    background-color: var(--beige); /* pour éviter la transparence lors du scroll */
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Pour éviter que le contenu soit caché sous le header et le footer,
   tous deux fixes à l'écran. Les variables --header-h / --footer-h sont
   mesurées en JS (voir layout.blade.php) pour coller à leur vraie hauteur,
   qui varie selon la taille d'écran. */
body {
    padding-top: var(--header-h, 100px);
    padding-bottom: var(--footer-h, 90px);
}

/* Pages où le contenu doit être cadré/centré entre le header et le footer :
   espace haut/bas égaux quand le contenu tient dans l'écran. "safe center"
   évite que le contenu ne parte se cacher sous le header quand il déborde :
   dans ce cas il redevient aligné en haut, et seul le bas déborde (scroll). */
body.page-releases,
body.page-contact {
    justify-content: safe center;
}

 .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo img {
    width: 500px;
    height: 150px;
    object-fit: cover;
}


.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .35s ease, opacity .35s ease;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================
   DROPDOWN MENU — MOBILE
========================= */

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: var(--beige);
    z-index: 100;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.4, 0, .2, 1), padding .35s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.mobile-nav.open {
    max-height: 400px;
    padding: 20px 0 24px;
}

.mobile-nav a {
    display: block;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    letter-spacing: .08em;
    padding: 12px 40px;
    transition: background .2s ease, color .2s ease;
}

.mobile-nav a:hover {
    background: rgba(0,0,0,.04);
}

.mobile-nav a.active {
    color: var(--accent);
    font-weight: 500;
}

/* =========================
   CONTENT
========================= */

.content {
    width: 100%;
    padding: 3%;

    /* border: 1px solid red; */
}

/* =========================
   GRID
========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* =========================
   CARD
========================= */

.card {
    text-decoration: none;
    color: black;
    padding: 40px;
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
    transition: transform .5s ease;
    border: 2px solid rgba(95, 95, 95, .45);
}

.card h3 {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

/* =========================
   FINAL SECTION
========================= */

.final-section {
    background-color: var(--beige-light);
    padding: 40px 60px 30px;
    text-align: center;
}

.final-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    overflow: hidden;
}

.final-card {
    padding: 20px;
    transition: opacity .6s ease;
}

.final-card img {
    max-width: 190px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
    transition: transform .5s ease;
}

.final-card h3 {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

/* =========================
   HOVER
========================= */

.card:hover img,
.final-card:hover img {
    transform: scale(1.04);
}

/* =========================
   DOTS
========================= */

.dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    cursor: pointer;
}

.dot {
    width: 8px;
    height: 8px;
    background: #bfc6c6;
    border-radius: 50%;
}

.dot.active {
    background: #000;

}

/* =========================
   ABOUT
========================= */

.about-text {
    max-width: 680px;
    margin: 0 auto;
    font-size: 12.5px;
    line-height: 1.6;
    font-style: italic;
}

/* Le footer (position, taille, couleurs) est défini une seule fois,
   de façon fixe, dans layout.blade.php — voir plus haut le commentaire
   sur le padding-bottom du body. */

/* =========================
   ANIMATIONS
========================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   ALBUM PAGE
========================= */

.album-page {
    display: none;
}

.album-page.active {
    display: grid;
}

/* =========================
   ALBUM HERO
========================= */

.album-show {
    background-color: var(--beige-light);
    padding-bottom: 140px;
}

.album-hero {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.album-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: albumZoom 16s ease forwards;
}

@keyframes albumZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}

.album-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.6));
}

/* =========================
   ALBUM ARTICLE
========================= */

.album-article {
    max-width: 720px;
    margin: -160px auto 0;
    background: #fff;
    padding: 90px 80px;
   
    box-shadow: 0 40px 90px rgba(0,0,0,.2);
    position: relative;
    z-index: 2;
}

.album-date {
    font-size: 12px;
    letter-spacing: .1em;
      color: #555; 
    display: block;
    margin-bottom: 18px;
}

.album-article h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.album-artist {
    font-size: 18px;
    font-weight: 400;
    color: #555;
    margin-bottom: 40px;
}

.album-description {
    font-size: 15px;
    line-height: 1.9;
    color: #222;
}

.album-description p {
    margin-bottom: 28px;
}

.back-link {
    display: inline-block;
    margin-top: 70px;
    font-size: 13px;
    text-decoration: none;
     color: #000;
    position: relative;
}

.back-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .3s ease;
}

.back-link:hover::after {
    width: 100%;
}


/* ouvrir le menu quand on hover le header */


/* =========================
   RESPONSIVE — TABLET
========================= */

@media (max-width: 1024px) {
    .grid,
    .final-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   RESPONSIVE — MOBILE
========================= */
@media (max-width: 768px) {
    /* padding-top du body géré dynamiquement via --header-h (layout.blade.php) */

    .header {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {

    /* Header */
    .header {
        padding: 20px 24px;
        align-items: center;
    }

    /* Logo */
    .logo img {
        width: 180px;
        height: auto;
    }

    /* Hide desktop menu, show hamburger */
    .menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    /* Content */
    .content,
    .final-section {
        padding: 30px;
    }

    /* Grids */
    .grid,
    .final-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Cards */
    .card {
        padding: 0;
    }

    /* Footer */
    .footer {
        display: flex;
        gap: 20px;
    }

    /* Album */
    .album-hero {
        height: 55vh;
    }

    .album-article {
        margin-top: -100px;
        padding: 50px 32px;
        border-radius: 20px;
    }

    .album-article h1 {
        font-size: 26px;
    }
}