/* =========================================
   Base styles & layout
   ========================================= */

/* Root colors and typography tokens
   Adjust these values to change the overall mood of the site. */
:root {
    --color-bg: #f6f1e7;           /* Soft sand / parchment */
    --color-bg-alt: #efe3d2;       /* Slightly deeper sand */
    --color-accent: #b88a57;       /* Warm light brown */
    --color-accent-dark: #7a5a34;  /* Deeper brown for hover/focus */
    --color-text: #342822;         /* Deep, readable brown */
    --color-muted: #7b6d63;        /* Softer text */

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Georgia", "Times New Roman", serif;

    --max-width: 960px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: radial-gradient(circle at top left, #fdf8ef 0, var(--color-bg) 55%, #ebdfcf 100%);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* Generic container for inner content
   Reuse this class to keep the layout consistent. */
.section-inner,
.footer-inner,
.hero-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-inline: 1.5rem;
}

/* =========================================
   Hero section
   ========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 5rem 1rem 4rem;
    color: #fdf8ef;
    background-image: url("assets/images/daniel-facerias.jpeg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-overtitle {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin: 0 0 1.25rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.3rem, 4vw, 3rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(254, 252, 248, 0.9);
    margin: 0;
}

/* Dark overlay / gradient to improve text readability over the image */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(25, 18, 12, 0.78) 0%,
        rgba(25, 18, 12, 0.6) 32%,
        rgba(25, 18, 12, 0.25) 60%,
        rgba(25, 18, 12, 0.05) 100%
    );
    pointer-events: none;
}

/* =========================================
   Sections (About, Music, Videos, Contact)
   ========================================= */

.section {
    padding: 3.5rem 1rem;
}

.section-about {
    background-color: rgba(255, 255, 255, 0.88);
}

.section-music {
    background-color: var(--color-bg);
}

.section-videos {
    background-color: var(--color-bg-alt);
}

.section-contact {
    background-color: rgba(255, 255, 255, 0.94);
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

.section-text {
    margin: 0 0 1.5rem;
    color: var(--color-text);
}

/* =========================================
   Music links
   ========================================= */

.music-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.music-links a {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 138, 87, 0.4);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.music-links a:hover,
.music-links a:focus-visible {
    background-color: var(--color-accent);
    border-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* =========================================
   Vidéos intégrées
   ========================================= */

.video-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* Cliquable thumbnail linking to YouTube */
.video-thumb {
    position: relative;
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    aspect-ratio: 16 / 9;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
    color: #fdf8ef;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.video-play-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.video-play-icon::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid rgba(255, 255, 255, 0.9);
    margin-left: 2px;
}

.video-thumb-label {
    font-size: 0.8rem;
}

.video-thumb:hover .video-thumb-overlay,
.video-thumb:focus-visible .video-thumb-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35));
}

/* Sur écrans plus larges, disposer les vidéos par rangées pouvant aller jusqu'à trois colonnes */
@media (min-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================
   Contact
   ========================================= */

.contact-email {
    font-size: 1rem;
}

.contact-email a {
    color: var(--color-accent-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 138, 87, 0.4);
    padding-bottom: 0.1rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email a:hover,
.contact-email a:focus-visible {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
    padding: 2rem 1rem 2.5rem;
    background: linear-gradient(to top, #ddc9ae, #f4e7d5);
}

.footer-text {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* =========================================
   Responsive tweaks
   ========================================= */

@media (max-width: 600px) {
    .hero {
        min-height: 100vh;
        padding-top: 3.25rem;
        padding-bottom: 2.75rem;
        text-align: center;
        justify-content: center;
        background-position: center center;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .music-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 900px) {
    .hero-inner {
        padding-inline: 2rem;
    }

    .section-inner {
        padding-inline: 0;
    }
}
