/* Section: Home (Grille Principale) */
.homecontainer {
    flex: 1;
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-auto-flow: column;
    gap: 0px 0px;

    grid-template-columns: 1fr 1fr 1fr 2.5fr 0.25fr;
    grid-template-rows: 0.75fr 0.5fr 0.1fr 1fr 1fr 2fr 1fr;

    grid-template-areas:
        "menu menu fetivalcourtsmetrages fetivalcourtsmetrages papillon"
        "menu menu LieuxDateHeure LieuxDateHeure LieuxDateHeure"
        "menu menu mainPicture mainPicture mainPicture"
        "menu menu mainPicture mainPicture mainPicture"
        "Clocher Epis mainPicture mainPicture mainPicture"
        "Clocher Villagoies BandeAnnonce Presentation Presentation"
        "ListePartenaires ListePartenaires BandeAnnonce Presentation Presentation"
}

@media (max-width: 768px) {
    .homecontainer {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, auto);
        grid-template-areas:
            "menu"
            "fetivalcourtsmetrages"
            "LieuxDateHeure"
            "mainPicture"
            "Clocher"
            "Villagoies"
            "BandeAnnonce"
            "Presentation"
            "Epis"
            "ListePartenaires";
        height: auto;
        width: 100vw;
        gap: 0;
    }
}

.menu {
    grid-area: menu;
}

/* --- 1. Titre / Intro --- */
.fetivalcourtsmetrages {
    grid-area: fetivalcourtsmetrages;
    background-color: var(--color-fuschia);
}

.fetivalcourtsmetrages .section-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: unset !important;
    margin-right: 40%;
}

@media (max-width: 1200px) {
    .fetivalcourtsmetrages .section-text {
        margin-right: 0;
    }
}

.fetivalcourtsmetrages .section-text h2 {
    font-size: 1.5em;
    color: var(--color-lin);
    text-align: center;
    text-transform: uppercase;
}

/* --- 2. Lieux & Date --- */
.LieuxDateHeure {
    grid-area: LieuxDateHeure;
    background-color: var(--color-olive);
}

.datefestivalico {
    text-align: end !important;
}

.datefestivalico i {
    font-size: 3.5em;
}

.datefestival span {
    font-size: 1.5em;
    background-color: white;
    color: #D85F91;
}

.datefestival .date-title {
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.datefestival .location-container {
    display: flex;
    align-items: end;
    gap: 10px;
}

.datefestival .location-pin {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 5px;
}

.datefestival .location-pin::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--color-olive);
    border-radius: 50%;
    transform: rotate(45deg);
}

.datefestival .location-text {
    font-size: 30px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .datefestival .location-text {
        font-size: 25px;
    }

    .datefestival .date-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .datefestival .location-pin {
        width: 24px;
        height: 24px;
    }

    .datefestival .location-pin::before {
        width: 8px;
        height: 8px;
    }

    .datefestival .location-container {
        gap: 6px;
    }
}

/* --- 3. Main Picture --- */
.mainPicture {
    grid-area: mainPicture;
    min-height: 350px;
    background-image: url('../../assets/route.webp');
    /* Route relative correction needed? Assets are in plugin root? No, theme root. Need checking paths */
    /* Original was ./assets/route.webp from style.css. If this file is in assets/css/, then ../../assets/route.webp is correct */
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

@media (max-width: 768px) {
    .mainPicture {
        background-color: rgba(0, 0, 0, 0.3);
        background-blend-mode: multiply;
    }
}

.mainPicture .section-text {
    position: absolute;
    bottom: 30px;
    right: 0;
    color: var(--color-lin);
    padding: 10px;
}

.homecontainer .mainPicture .section-text {
    padding: 1.5em 15% 0em 5%;
    text-align: center;
    align-content: center;
    height: unset;
}

.mainPicture .section-text h1 {
    font-size: 3.5em;
    color: var(--color-lin);
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.mainPicture .section-text h2 {
    font-size: 2.5em;
    color: var(--color-lin);
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .mainPicture .section-text h1 {
        font-size: 2.5em;
    }

    .mainPicture .section-text h2 {
        font-size: 1.6em;
    }
}

/* Etoile Badge */
.homecontainer .etoile {
    color: var(--color-lin);
    background-image: url('../../assets/etoile.svg');
    background-size: cover;
    position: absolute;
    text-align: center;
    height: 10em;
    width: 10em;
    right: 1em;
    top: -1em;
    z-index: 1000;
    display: flex;
}

.homecontainer .etoile .container {
    align-items: center;
    justify-content: center;
    transform: rotate(11deg);
    display: grid;
    gap: 0px 0px;
    grid-template-areas: "texte1" "texte2";
    grid-template-rows: auto auto;
    line-height: 0.8;
}

.homecontainer .etoile .text1 {
    align-self: end;
    text-align: justify;
    font-size: 1.7em;
    line-height: 1em;
    margin-top: 15px;
    grid-area: texte1;
}

.homecontainer .etoile .text2 {
    text-align: justify;
    align-self: baseline;
    font-size: 4em;
    grid-area: texte2;
}

/* --- 4. Presentation --- */
.Presentation {
    grid-area: Presentation;
    background-color: var(--color-carotte);
    display: flex;
}

section.titre .Presentation .section-text {
    height: 100%;
    align-content: center;
    padding: 0em 5% 0em 5%;
}

.Presentation .section-text h3 {
    text-align: center;
}

@media (max-width: 1024px) and (min-width: 768px) {

    .Presentation .section-text span,
    .Presentation .section-text h3 {
        font-size: small;
    }
}

.Presentation span {
    font-size: xx-large;
}

/* --- 5. Autres Grilles --- */
.Clocher {
    grid-area: Clocher;
    background-image: url('../../assets/clocher.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    display: block;
}

.Villagoies {
    grid-area: Villagoies;
    background-image: url('../../assets/villageois.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    display: block;
}

.BandeAnnonce {
    grid-area: BandeAnnonce;
    background-color: black;
}

.Epis {
    grid-area: Epis;
    display: flex;
    flex-direction: row;
    background-color: var(--color-carotte);
}

.Epis .Image {
    background-image: url('../../assets/episble.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-carotte);
    width: 100%;
    height: 100%;
    display: block;
}

.Epis .prix {
    background-image: url('../../assets/logoprix/LogosPrix.gif');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    display: block;
}

section .Epis .section-text {
    padding: 1em;
}

.Papillon {
    grid-area: papillon;
    margin: 15%;
}

.Papillon .Image {
    background-image: url('../../assets/papillons.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    display: block;
}

.Vache {
    grid-area: Vache;
    background-image: url('../../assets/vache.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    display: block;
}

.ListePartenaires {
    grid-area: ListePartenaires;
}

/* Animations */
.award-div {
    display: none !important;
    opacity: 0;
}

.award-div.active {
    opacity: 1;
    display: block !important;
    transition: opacity 1s ease-in-out;
}