/* ==================================================
   FESTIVAL HENRY-MARY
   FEUILLE DE STYLE PRINCIPALE
   ================================================== */


/* ==================================================
   CHARTE GRAPHIQUE
   ================================================== */

:root {
    --black: #080c0f;
    --black-soft: #11171b;
    --black-pure: #000000;

    --white: #f7f4ec;
    --white-pure: #ffffff;

    --gold: #f5bf19;
    --gold-light: #ffd43b;

    --orange: #f47b20;
    --orange-dark: #d85f0c;

    --brown-dark: #351608;

    --text-muted: #c9c9c9;

    --border-dark: rgba(255, 255, 255, 0.15);

    --font-display: Georgia, "Times New Roman", serif;
    --font-sans: Arial, Helvetica, sans-serif;

    --container-width: 1180px;
}


/* ==================================================
   RÉINITIALISATION
   ================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}

.container-narrow {
    max-width: 850px;
}


/* ==================================================
   ACCUEIL
   ================================================== */

.hero {
    position: relative;
    display: flex;
    min-height: 90vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.56),
            rgba(0, 0, 0, 0.20)
        ),
        url("../images/sartene-hero.png");

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.04) 46%,
            rgba(0, 0, 0, 0.58) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, 1000px);
    padding: 72px 0 78px;
    text-align: center;
}

.hero-kicker {
    max-width: 850px;
    margin: 0 auto 24px;
    color: var(--orange);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.6vw, 2rem);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.15;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.85),
        0 4px 16px rgba(0, 0, 0, 0.55);
}

.festival-title {
    position: relative;
    display: flex;
    margin: 0;
    padding-bottom: 18px;
    flex-direction: column;
    align-items: center;
    line-height: 0.92;
}

.festival-title::after {
    content: "";
    width: min(320px, 58vw);
    height: 2px;
    margin-top: 24px;

    background:
        linear-gradient(
            90deg,
            rgba(245, 191, 25, 0),
            rgba(245, 191, 25, 0.78),
            rgba(245, 191, 25, 0)
        );

    box-shadow: 0 0 18px rgba(245, 191, 25, 0.20);
}

.festival-word {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: clamp(4.6rem, 10vw, 8.2rem);
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.055em;

    text-shadow:
        0 3px 5px rgba(0, 0, 0, 0.85),
        0 5px 22px rgba(0, 0, 0, 0.55);
}

.festival-name {
    margin-top: 12px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: clamp(2.7rem, 6.4vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;

    text-shadow:
        0 3px 5px rgba(0, 0, 0, 0.90),
        0 5px 20px rgba(0, 0, 0, 0.65);
}

.festival-dates {
    margin: 18px auto 27px;
    color: var(--gold);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.90),
        0 3px 14px rgba(0, 0, 0, 0.65);
}

.hero-credit {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 8px;
    margin: 0;
    padding: 1px 3px;
    background: transparent;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.52rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1;
    opacity: 0.50;
    transition: opacity 180ms ease;
}

.hero:hover .hero-credit,
.hero:focus-within .hero-credit {
    opacity: 0.78;
}


/* ==================================================
   BOUTONS
   ================================================== */

.button {
    display: inline-block;
    padding: 15px 28px;
    border: 2px solid transparent;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.button-primary {
    border-color: var(--gold);
    background-color: var(--gold);
    color: var(--black);
}

.button-primary:hover,
.button-primary:focus-visible {
    border-color: var(--orange);
    background-color: var(--orange);
    color: var(--black);
    transform: translateY(-2px);
}


/* ==================================================
   STRUCTURE DES SECTIONS
   ================================================== */

.section {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--black);
    color: var(--white);
}

.section-light {
    background-color: var(--white);
    color: var(--black);
}

.section-orange {
    background-color: var(--orange);
    color: var(--black);
}

.section-kicker {
    margin: 0 0 18px;
    color: var(--orange);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    line-height: 1.5;
    text-transform: uppercase;
}

.section-kicker-dark {
    color: var(--brown-dark);
}

.section-title {
    max-width: 900px;
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.7rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.section-title-dark {
    color: var(--black);
}

.title-line {
    width: 110px;
    height: 8px;
    margin: 30px 0 45px;
    background-color: var(--gold);
}

.title-line-dark {
    background-color: var(--brown-dark);
}

.text-content {
    max-width: 850px;
}

.text-content p {
    margin: 0 0 24px;
    color: var(--white);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.text-content p:last-child {
    margin-bottom: 0;
}

.section-intro {
    max-width: 760px;
    margin: 0 0 45px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.section-intro-dark {
    color: #292929;
}


/* ==================================================
   AFFICHE OFFICIELLE
   ================================================== */

.poster-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
    background-color: var(--black);
    box-shadow: 20px 20px 0 var(--gold);
}

.festival-poster {
    width: 100%;
    height: auto;
}


/* ==================================================
   BILLETTERIE WEEZEVENT
   ================================================== */

.weezevent-container {
    width: 100%;
    max-width: 760px;
    min-height: 600px;
    margin: 0 auto;
    padding: 24px;
    overflow: hidden;
    border: 3px solid var(--brown-dark);
    background-color: var(--white);
}

.weezevent-container iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 0 auto;
    border: 0;
}

.weezevent-notice {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--brown-dark);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}


/* ==================================================
   INFORMATIONS PRATIQUES
   ================================================== */

.practical-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.practical-card {
    min-height: 290px;
    padding: 32px;
    border: 1px solid var(--border-dark);
    background-color: var(--black-soft);
}

.card-number {
    margin: 0 0 35px;
    color: var(--orange);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
}

.practical-card h3 {
    margin: 0 0 18px;
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.practical-card p:last-child {
    margin: 0;
    color: var(--white);
}


/* ==================================================
   PARTENAIRES
   ================================================== */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.partner-card {
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px solid var(--black);
    background-color: var(--white-pure);
}

.partner-card img {
    width: 100%;
    max-width: 170px;
    height: 88px;
    object-fit: contain;
    object-position: center;
}


/* ==================================================
   ASSOCIATION ORGANISATRICE
   ================================================== */

.organizer-section {
    padding: 70px 0;
    border-top: 8px solid var(--orange);
    background-color: var(--gold);
    color: var(--black);
}

.organizer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 60px;
}

.organizer-kicker {
    margin: 0 0 14px;
    color: var(--brown-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.organizer-title {
    max-width: 820px;
    margin: 0;
    color: var(--black);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
}

.organizer-logo-wrapper {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--white-pure);
}

.organizer-logo {
    width: 100%;
    max-width: 210px;
    height: auto;
    object-fit: contain;
}


/* ==================================================
   PIED DE PAGE
   ================================================== */

.site-footer {
    padding: 50px 0;
    border-top: 8px solid var(--gold);
    background-color: var(--black-pure);
}

.footer-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.footer-title {
    margin: 0 0 5px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
}

.footer-subtitle {
    color: var(--white);
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.footer-links a {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}


/* ==================================================
   PAGE DES MENTIONS LÉGALES
   ================================================== */

.legal-header {
    padding: 70px 0;
    border-bottom: 8px solid var(--gold);
    background-color: var(--black);
}

.legal-header a {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}

.legal-header a:hover,
.legal-header a:focus-visible {
    text-decoration: underline;
}

.legal-title {
    max-width: 850px;
    margin: 25px 0 0;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.95;
}

.legal-page {
    padding: 75px 0;
    background-color: var(--white);
    color: var(--black);
}

.legal-content {
    max-width: 900px;
}

.legal-section {
    margin-bottom: 55px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 20px;
    color: var(--black);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.legal-section h3 {
    margin: 28px 0 10px;
    color: var(--orange-dark);
    font-size: 1.05rem;
    text-transform: uppercase;
}

.legal-section p {
    margin: 0 0 14px;
}

.legal-section a {
    color: var(--orange-dark);
    font-weight: 700;
}


/* ==================================================
   TABLETTES
   ================================================== */

@media (max-width: 900px) {

    .section {
        padding: 80px 0;
    }

    .practical-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .organizer-content {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 35px;
    }
}


/* ==================================================
   TÉLÉPHONES
   ================================================== */

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, var(--container-width));
    }

    .hero {
        min-height: 92svh;
        background-position: center center;
    }

    .hero-content {
        width: min(100% - 28px, 1000px);
        padding: 58px 0 72px;
    }

    .hero-kicker {
        max-width: 320px;
        margin-bottom: 20px;
        font-size: 1.18rem;
        line-height: 1.2;
    }

    .festival-word {
        font-size: clamp(4rem, 21vw, 6rem);
    }

    .festival-name {
        margin-top: 10px;
        font-size: clamp(2.2rem, 11vw, 3.4rem);
    }

    .festival-title::after {
        width: min(250px, 68vw);
        margin-top: 20px;
    }

    .festival-dates {
        margin-top: 14px;
        margin-bottom: 24px;
        font-size: 0.92rem;
        letter-spacing: 0.07em;
    }

    .button {
        width: min(100%, 340px);
        padding: 14px 18px;
        font-size: 0.76rem;
        letter-spacing: 0.07em;
    }

    .hero-credit {
        right: 6px;
        bottom: 5px;
        font-size: 0.47rem;
        opacity: 0.40;
    }

    .section {
        padding: 65px 0;
    }

    .section-kicker {
        letter-spacing: 0.20em;
    }

    .section-title {
        font-size: 3.2rem;
    }

    .title-line {
        margin-bottom: 35px;
    }

    .poster-wrapper {
        padding: 8px;
        box-shadow: 10px 10px 0 var(--gold);
    }

    .weezevent-container {
        min-height: 650px;
        padding: 10px;
    }

    .practical-card {
        min-height: auto;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        min-height: 140px;
        padding: 20px;
    }

    .partner-card img {
        max-width: 180px;
        height: 82px;
    }

    .organizer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .organizer-logo-wrapper {
        min-height: 150px;
    }

    .organizer-logo {
        max-width: 180px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        align-items: flex-start;
        text-align: left;
    }
}