/*
 * Mille des Lys
 * Identité graphique du site public
 * Cassiopeia Extended
 */

:root {
    --mdl-black: #080808;
    --mdl-black-soft: #111111;
    --mdl-gold: #c9a34a;
    --mdl-gold-light: #e0c477;
    --mdl-gold-dark: #967329;
    --mdl-ivory: #f8f5ee;
    --mdl-white: #ffffff;
    --mdl-text: #252525;

    --body-bg: var(--mdl-ivory);
    --body-color: var(--mdl-text);

    --headerbg: var(--mdl-black);
    --headercolor: var(--mdl-white);

    --footerbg: var(--mdl-black);
    --footercolor: var(--mdl-white);

    --link-color: var(--mdl-gold-dark);
    --link-hover-color: var(--mdl-gold);

    --btnbg: var(--mdl-gold);
    --btnbgh: var(--mdl-gold-light);
    --btncolor: var(--mdl-black);
    --btncolorh: var(--mdl-black);
}

/* ---------------------------------------------------------
   STRUCTURE GENERALE
   --------------------------------------------------------- */

body {
    background: var(--mdl-ivory);
    color: var(--mdl-text);
}

.container-header {
    background: var(--mdl-black);
    background-image: none;
    color: var(--mdl-white);
    border-bottom: 1px solid rgba(201, 163, 74, .55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}

/* ---------------------------------------------------------
   MARQUE
   --------------------------------------------------------- */

.container-header .navbar-brand {
    margin: 0;
}

.container-header .navbar-brand a {
    color: var(--mdl-white);
    text-decoration: none;
}

.container-header .navbar-brand img {
    width: auto;
    max-width: min(280px, 65vw);
    max-height: 150px;
    object-fit: contain;
}

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.container-header .mod-menu {
    color: var(--mdl-white);
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    color: var(--mdl-white);
    font-weight: 600;
    letter-spacing: .035em;
    text-decoration: none;
    transition:
        color .2s ease,
        border-color .2s ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a {
    color: var(--mdl-gold-light);
}

.container-header .navbar-toggler {
    border-color: var(--mdl-gold);
    color: var(--mdl-gold);
}

/* ---------------------------------------------------------
   TITRES
   --------------------------------------------------------- */

h1,
h2,
h3 {
    color: var(--mdl-black);
}

h1 {
    font-weight: 700;
}

h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin-top: .55rem;
    background: var(--mdl-gold);
}

/* ---------------------------------------------------------
   LIENS ET BOUTONS
   --------------------------------------------------------- */

a {
    transition: color .2s ease;
}

.btn-primary {
    --btn-color: var(--mdl-black);
    --btn-bg: var(--mdl-gold);
    --btn-border-color: var(--mdl-gold);
    --btn-hover-color: var(--mdl-black);
    --btn-hover-bg: var(--mdl-gold-light);
    --btn-hover-border-color: var(--mdl-gold-light);

    font-weight: 700;
    border-radius: 0;
}

/* ---------------------------------------------------------
   CARTES / BLOCS
   --------------------------------------------------------- */

.card {
    border: 1px solid rgba(150, 115, 41, .25);
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
}

/* ---------------------------------------------------------
   PIED DE PAGE
   --------------------------------------------------------- */

.container-footer {
    background: var(--mdl-black);
    background-image: none;
    color: var(--mdl-white);
    border-top: 2px solid var(--mdl-gold);
}

.container-footer a {
    color: var(--mdl-gold-light);
}

.container-footer a:hover,
.container-footer a:focus {
    color: var(--mdl-white);
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 991.98px) {
    .container-header .navbar-brand img {
        max-width: min(230px, 70vw);
        max-height: 120px;
    }
}

@media (max-width: 575.98px) {
    .container-header .navbar-brand img {
        max-width: 190px;
        max-height: 105px;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }
}


/* =========================================================
   MILLE DES LYS - LOGO HEADER RECADRE
   ========================================================= */

.container-header .navbar-brand img {
    width: auto;
    height: 170px;
    max-width: none;
    max-height: 170px;
    object-fit: contain;
}

.container-header .grid-child {
    padding-top: .35rem;
    padding-bottom: .35rem;
}

@media (max-width: 991.98px) {
    .container-header .navbar-brand img {
        height: 145px;
        max-height: 145px;
        max-width: 70vw;
    }
}

@media (max-width: 575.98px) {
    .container-header .navbar-brand img {
        height: 115px;
        max-height: 115px;
        max-width: 72vw;
    }
}


/* =========================================================
   MILLE DES LYS - HEADER FINAL
   Logo à gauche / navigation à droite
   ========================================================= */

@media (min-width: 992px) {

    /*
     * Cassiopeia place le branding et la navigation dans
     * deux .grid-child distincts. Le header devient ici
     * une grille à deux colonnes.
     */
    .container-header {
        display: grid;
        grid-template-columns:
            minmax(125px, max-content)
            minmax(0, 1fr);
        align-items: center;
        column-gap: 2.25rem;
    }

    .container-header > .grid-child {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-top: .45rem;
        padding-bottom: .45rem;
    }

    .container-header > .grid-child:first-child {
        grid-column: 1;
        justify-self: start;
        padding-left: max(
            1rem,
            calc((100vw - 1320px) / 2)
        );
    }

    .container-header > .container-nav {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
        padding-right: max(
            1rem,
            calc((100vw - 1320px) / 2)
        );
    }

    .container-header .navbar-brand {
        margin: 0;
        padding: 0;
        line-height: 0;
    }

    .container-header .navbar-brand .brand-logo {
        display: block;
        line-height: 0;
    }

    .container-header .navbar-brand img {
        display: block;
        width: auto;
        height: 125px;
        max-width: 170px;
        max-height: 125px;
        object-fit: contain;
    }

    .container-header .container-nav .mod-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(.75rem, 1.25vw, 1.5rem);
        width: auto;
        margin: 0;
        padding: 0;
    }

    .container-header .container-nav .mod-menu > li {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }

    .container-header .container-nav .mod-menu > li > a {
        display: block;
        padding: .75rem 0;
        color: var(--mdl-white);
        font-size: clamp(.86rem, .95vw, 1rem);
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        transition:
            color .2s ease,
            border-color .2s ease;
    }

    .container-header .container-nav .mod-menu > li > a:hover,
    .container-header .container-nav .mod-menu > li > a:focus {
        color: var(--mdl-gold-light);
        border-bottom-color: var(--mdl-gold-light);
    }

    .container-header .container-nav .mod-menu > li.active > a,
    .container-header .container-nav .mod-menu > li.current > a {
        color: var(--mdl-gold);
        border-bottom-color: var(--mdl-gold);
    }
}


/*
 * Écrans intermédiaires :
 * on conserve le logo et la navigation lisibles sans
 * laisser le menu sortir de l'écran.
 */
@media (min-width: 992px) and (max-width: 1199.98px) {

    .container-header {
        column-gap: 1.25rem;
    }

    .container-header .navbar-brand img {
        height: 105px;
        max-height: 105px;
        max-width: 145px;
    }

    .container-header .container-nav .mod-menu {
        gap: .65rem;
    }

    .container-header .container-nav .mod-menu > li > a {
        font-size: .82rem;
    }
}


/*
 * Tablette / mobile :
 * Cassiopeia conserve sa structure native.
 */
@media (max-width: 991.98px) {

    .container-header {
        display: block;
    }

    .container-header > .grid-child {
        padding-top: .35rem;
        padding-bottom: .35rem;
    }

    .container-header .navbar-brand {
        margin: 0;
    }

    .container-header .navbar-brand img {
        width: auto;
        height: 120px;
        max-width: min(220px, 70vw);
        max-height: 120px;
        object-fit: contain;
    }

    .container-header .container-nav {
        padding-top: 0;
    }

    .container-header .container-nav .mod-menu {
        margin: 0;
    }
}


@media (max-width: 575.98px) {

    .container-header .navbar-brand img {
        height: 100px;
        max-width: min(185px, 72vw);
        max-height: 100px;
    }
}


/* =========================================================
   MILLE DES LYS - PAGE D'ACCUEIL
   ========================================================= */

.mdl-home {
    --mdl-home-max: 1180px;
    margin-top: -1rem;
}

.mdl-home .mdl-kicker {
    margin: 0 0 .7rem;
    color: var(--mdl-gold-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.mdl-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    padding: clamp(4rem, 9vw, 8rem) 2rem;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(201, 163, 74, .16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #080808 0%,
            #111111 58%,
            #19160f 100%
        );
    color: var(--mdl-white);
}

.mdl-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(201, 163, 74, .22);
    border-radius: 50%;
}

.mdl-hero__inner {
    position: relative;
    z-index: 1;
    width: min(100%, var(--mdl-home-max));
    margin: 0 auto;
}

.mdl-hero .mdl-kicker {
    color: var(--mdl-gold-light);
}

.mdl-hero h1 {
    max-width: 800px;
    margin: 0;
    color: var(--mdl-white);
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.045em;
}

.mdl-hero__lead {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: var(--mdl-gold-light);
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
}

.mdl-hero__text {
    max-width: 680px;
    margin: 1.5rem 0 0;
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
    line-height: 1.8;
}

.mdl-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2.25rem;
}

.mdl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .8rem 1.4rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.mdl-button--gold {
    border: 1px solid var(--mdl-gold);
    background: var(--mdl-gold);
    color: var(--mdl-black);
}

.mdl-button--gold:hover,
.mdl-button--gold:focus {
    border-color: var(--mdl-gold-light);
    background: var(--mdl-gold-light);
    color: var(--mdl-black);
}

.mdl-button--outline {
    border: 1px solid rgba(255,255,255,.5);
    background: transparent;
    color: var(--mdl-white);
}

.mdl-button--outline:hover,
.mdl-button--outline:focus {
    border-color: var(--mdl-gold-light);
    color: var(--mdl-gold-light);
}

.mdl-section {
    width: min(
        calc(100% - 4rem),
        var(--mdl-home-max)
    );
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.mdl-section__heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.mdl-section__heading--center {
    text-align: center;
}

.mdl-section__heading--center h2::after {
    margin-right: auto;
    margin-left: auto;
}

.mdl-intro {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.mdl-intro__content {
    font-size: 1.05rem;
    line-height: 1.85;
}

.mdl-intro__content p:first-child {
    margin-top: 0;
}

.mdl-univers {
    width: 100%;
    max-width: none;
    padding-right: max(
        2rem,
        calc((100% - var(--mdl-home-max)) / 2)
    );
    padding-left: max(
        2rem,
        calc((100% - var(--mdl-home-max)) / 2)
    );
    background: #eee9df;
}

.mdl-univers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 3rem;
    background: rgba(150,115,41,.25);
    border: 1px solid rgba(150,115,41,.25);
}

.mdl-universe-card {
    display: flex;
    min-height: 310px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    flex-direction: column;
    background: var(--mdl-ivory);
    color: var(--mdl-text);
    text-decoration: none;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.mdl-universe-card:hover,
.mdl-universe-card:focus {
    background: var(--mdl-white);
    color: var(--mdl-text);
}

.mdl-universe-card__number {
    color: var(--mdl-gold);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.mdl-universe-card h3 {
    margin: auto 0 .8rem;
    font-size: 1.8rem;
}

.mdl-universe-card p {
    min-height: 4.8em;
    margin: 0;
    line-height: 1.65;
}

.mdl-universe-card__link {
    margin-top: 1.5rem;
    color: var(--mdl-gold-dark);
    font-weight: 750;
}

.mdl-practical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 8vw, 7rem);
    align-items: start;
}

.mdl-practical__intro h2 {
    margin-top: 0;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.mdl-practical__address {
    margin: 1.5rem 0 2rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.mdl-hours {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--mdl-black);
    color: var(--mdl-white);
    border-top: 3px solid var(--mdl-gold);
}

.mdl-hours .mdl-kicker {
    color: var(--mdl-gold-light);
}

.mdl-hours__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.mdl-hours__row strong {
    color: var(--mdl-white);
    text-align: right;
}

.mdl-hours__row--second {
    padding-top: 0;
}

.mdl-hours__row--closed strong {
    color: var(--mdl-gold-light);
}

@media (max-width: 767.98px) {

    .mdl-home {
        margin-top: -.5rem;
    }

    .mdl-hero {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .mdl-section {
        width: min(calc(100% - 2.5rem), var(--mdl-home-max));
    }

    .mdl-intro,
    .mdl-practical {
        grid-template-columns: 1fr;
    }

    .mdl-univers {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .mdl-univers__grid {
        grid-template-columns: 1fr;
    }

    .mdl-universe-card {
        min-height: 240px;
    }

    .mdl-hours__row {
        grid-template-columns: 1fr;
        gap: .3rem;
    }

    .mdl-hours__row strong {
        text-align: left;
    }

    .mdl-hours__row--second span {
        display: none;
    }
}


/* =========================================================
   MILLE DES LYS - EMBLEME MAITRE ARTISAN HERO
   ========================================================= */

.mdl-hero__brand {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    max-width: 1050px;
    margin-top: .75rem;
}

.mdl-hero__emblem {
    display: block;
    flex: 0 0 auto;
    width: clamp(145px, 14vw, 210px);
    height: auto;
    object-fit: contain;
}

.mdl-hero__brand h1 {
    margin: 0;
}

@media (max-width: 767.98px) {

    .mdl-hero__brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .mdl-hero__emblem {
        width: 135px;
    }
}

@media (max-width: 420px) {

    .mdl-hero__emblem {
        width: 115px;
    }
}

/* =========================================================
   MILLE DES LYS - TITRE HERO
   Contenu = Joomla
   Présentation = CSS
   ========================================================= */

@font-face {
    font-family: "Great Vibes";
    src: url("../fonts/GreatVibes-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.mdl-hero__brand h1 {
    position: static;
    display: block;

    width: auto;
    height: auto;

    margin: 0;
    padding: 0;

    background: none;

    font-family: "Great Vibes", cursive;
    font-size: clamp(4rem, 5vw, 5rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.05;

    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;

    color: #ffffff;
}

@media (max-width: 767.98px) {
    .mdl-hero__brand h1 {
        font-size: clamp(3.5rem, 12vw, 4.5rem);
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .mdl-hero__brand h1 {
        font-size: 3.5rem;
    }
}

