/*
 * LTQR Digital Signage
 * --------------------
 * Affichage principal : écran paysage / TV Full HD 16:9.
 *
 * Les tailles fluides (clamp, vw, vh) permettent également
 * un affichage correct sur un écran ou une tablette paysage.
 */
:root {
    --ltqr-red: #B10A14;
    --ltqr-dark: #171717;
    --ltqr-light: #F7F7F7;
    --ltqr-muted: #737373;
    --ltqr-radius: 2rem;

    --signage-content-width: 85%;
}


/* ---------------------------------------------------------
   Base / écran
   --------------------------------------------------------- */
html,
body {
    /* Dimensions */
    width: 100%;
    height: 100%;

    /* Position */
    margin: 0;
    overflow: hidden;

    /* Apparence */
    background: linear-gradient(135deg, #9B0713, var(--ltqr-red));
}

body {
    /* Apparence */
    color: #FFF;

    /* Texte */
    font-family: Lato, sans-serif;
}

.signage,
.slide-stage,
.signage-slide {
    /* Dimensions */
    width: 100%;
    height: 100%;
}

.signage {
    /* Position */
    position: relative;
}

.slide-stage {
    /* Position */
    position: relative;
    overflow: hidden;
}


/* ---------------------------------------------------------
   Transition entre les slides
   --------------------------------------------------------- */
.signage-slide {
    /* Position */
    position: absolute;
    inset: 0;

    /* Disposition */
    display: flex;
    align-items: stretch;

    /* Apparence */
    opacity: 0;

    /* Animation */
    transform: scale(1.01);
    transition: opacity .55s ease, transform .55s ease;

    /* Interaction */
    pointer-events: none;
}

.signage-slide.is-visible {
    /* Apparence */
    opacity: 1;

    /* Animation */
    transform: scale(1);

    /* Interaction */
    pointer-events: auto;
}


/* ---------------------------------------------------------
   Eléments communs
   --------------------------------------------------------- */
.slide-inner {
    /* Dimensions */
    width: 100%;

    /* Position */
    padding: clamp(2rem, 4vw, 5rem);
}

.signage-content-width {
    /* Dimensions */
    width: var(--signage-content-width);
}

.slide-eyebrow {
    /* Position */
    margin-bottom: 1rem;

    /* Apparence */
    color: var(--ltqr-dark);

    /* Texte */
    font-size: clamp(1rem, 1.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.slide-title {
    /* Position */
    margin: 0;

    /* Texte */
    font-size: clamp(3.4rem, 7vw, 8.5rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.05em;
}

.big-value {
    /* Texte */
    font-size: clamp(5rem, 11vw, 13rem);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -.06em;
}

.big-label {
    /* Texte */
    font-size: clamp(1.5rem, 2.4vw, 3rem);
    font-weight: 700;
}

.info-card {
    /* Apparence */
    background: rgba(255, 255, 255, .08);
    border: 0;
    border-radius: var(--ltqr-radius);
}


/* ---------------------------------------------------------
   Météo
   --------------------------------------------------------- */
.slide-weather {
    /* Apparence */
    color: #FFF;
    background: linear-gradient(135deg, #0B76B0, #02334E);
}

.weather-icon {
    /* Texte */
    font-size: clamp(5rem, 10vw, 11rem);
}


/* ---------------------------------------------------------
   Horaires d'ouverture
   --------------------------------------------------------- */
.slide-opening-hours {
    /* Apparence */
    color: #111;
    background: #FFF;
}

.opening-hours-layout {
    /* Disposition */
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Dimensions */
    width: var(--signage-content-width);
}

.opening-hours-title {
    /* Position */
    margin: 0;

    /* Apparence */
    color: var(--ltqr-red);

    /* Texte */
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 1;
    font-weight: 500;
}

.opening-table {
    /* Dimensions */
    width: 100%;
}

.opening-row {
    /* Disposition */
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Dimensions */
    min-height: clamp(3rem, 6.5vh, 6rem);

    /* Position */
    padding: 1.2rem clamp(.2rem, 1.7vw, 2rem);

    /* Apparence */
    border-bottom: 1px solid #D9DDE0;

    /* Texte */
    font-size: clamp(1rem, 2.15vw, 3rem);
}

.opening-row:last-child {
    /* Apparence */
    border: 0;
}

.opening-day {
    /* Texte */
    font-weight: 500;
}

.opening-time {
    /* Texte */
    font-weight: 700;
    text-align: right;
}

.opening-row.is-today {
    /* Position */
    margin-top: .2rem;

    /* Apparence */
    color: #FFF;
    background: var(--ltqr-red);
    border: 0;
    border-radius: 999px;
}

.opening-row.is-today .opening-day,
.opening-row.is-today .opening-time {
    /* Texte */
    font-weight: 600;
}


/* ---------------------------------------------------------
   Tarifs
   --------------------------------------------------------- */
.slide-prices {
    /* Apparence */
    color: #111;
    background: #FFF;
}

.prices-layout {
    /* Disposition */
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Dimensions */
    width: var(--signage-content-width);
}

.prices-heading {
    /* Disposition */
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.prices-title {
    /* Position */
    margin: 0;

    /* Apparence */
    color: var(--ltqr-red);

    /* Texte */
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 1;
    font-weight: 500;
}

.prices-update {
    /* Position */
    margin-top: 2rem;
    margin-right: 2rem;

    /* Apparence */
    color: #111;
    opacity: .3;

    /* Texte */
    font-size: clamp(.7rem, .75vw, 1rem);
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-align: right;
    text-transform: uppercase;
}

.prices-table {
    /* Dimensions */
    width: 100%;
}

.prices-row {
    /* Disposition */
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Dimensions */
    min-height: clamp(3rem, 6.5vh, 6rem);

    /* Position */
    padding: 1.2rem clamp(.2rem, 1.7vw, 2rem);

    /* Apparence */
    border-bottom: 1px solid #D9DDE0;

    /* Texte */
    font-size: clamp(1rem, 2.15vw, 3rem);
}

.prices-row:last-child {
    /* Apparence */
    border: 0;
}

.prices-row span {
    /* Texte */
    font-weight: 500;
}

.prices-row strong {
    /* Texte */
    font-weight: 700;
    text-align: right;
}

.prices-note {
    /* Position */
    margin-top: 2rem;

    /* Texte */
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    text-align: center;
}


/* ---------------------------------------------------------
   Cours de théorie
   --------------------------------------------------------- */
.slide-theory {
    /* Position */
    overflow: hidden;

    /* Apparence */
    color: #FFF;
    background: linear-gradient(135deg, #9B0713, var(--ltqr-red));
}

.theory-copy {
    /* Position */
    position: relative;
    z-index: 2;

    /* Espacement */
    padding-right: 3vw;
}

.theory-dates {
    /* Texte */
    font-size: clamp(3rem, 6vw, 7rem);
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 0 30px #706D6D;
}

.theory-hours {
    /* Texte */
    font-size: clamp(2rem, 3.3vw, 4rem);
    font-weight: 700;
    text-shadow: 0 0 30px #706D6D;
}

.theory-cta {
    /* Texte */
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 0 30px #706D6D;
}

.theory-cta span {
    /* Disposition */
    display: block;

    /* Position */
    margin-bottom: 1rem;

    /* Apparence */
    opacity: .75;

    /* Texte */
    font-size: .55em;
    font-weight: 800;
    letter-spacing: .12em;
    text-shadow: none;
    text-transform: uppercase;
}

.theory-teacher {
    /* Position */
    position: relative;

    /* Disposition */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.theory-teacher::before {
    /* Contenu */
    content: "";

    /* Position */
    position: absolute;

    /* Dimensions */
    width: 42vw;
    height: 42vw;
    max-width: 760px;
    max-height: 760px;

    /* Apparence */
    background: rgba(255, 255, 255, .10);
    border-radius: 50%;
}

.theory-teacher-image {
    /* Position */
    position: relative;
    z-index: 2;

    /* Dimensions */
    width: auto;
    max-width: 100%;
    height: 92%;

    /* Apparence */
    object-fit: contain;
    object-position: center bottom;
}

.teacher-label {
    /* Position */
    position: absolute;
    z-index: 3;
    top: 9%;
    right: 5%;

    /* Disposition */
    display: flex;
    flex-direction: column;

    /* Espacement */
    padding: .7rem 1.4rem;

    /* Apparence */
    color: var(--ltqr-red);
    background: #FFF;
    border-radius: 1rem;

    /* Texte */
    font-size: clamp(1.5rem, 2.4vw, 3rem);
    line-height: 1;

    /* Effets */
    transform: rotate(3deg);
    box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .15);
}

.teacher-label-small {
    /* Texte */
    font-size: .48em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Message exceptionnel
   --------------------------------------------------------- */
.slide-message {
    /* Apparence */
    color: #FFF;
    background: linear-gradient(135deg, #222, #111);
}

/* Information générale */
.slide-message[data-variant="info"] {
    /* Apparence */
    background: linear-gradient(135deg, #075985, #0284C7);
}

/* Avertissement */
.slide-message[data-variant="warning"] {
    /* Apparence */
    background: linear-gradient(135deg, #9B4C00, #D27000);
}

/* Information importante */
.slide-message[data-variant="danger"] {
    /* Apparence */
    background: linear-gradient(135deg, #8E101C, #D52535);
}

/* Bonne nouvelle */
.slide-message[data-variant="success"] {
    /* Apparence */
    background: linear-gradient(135deg, #166534, #22A35A);
}

.message-content {
    /* Dimensions */
    max-width: 1500px;

    /* Texte */
    font-size: clamp(2rem, 4vw, 5rem);
    line-height: 1.15;
    font-weight: 750;
}


/* ---------------------------------------------------------
   Hot News
   --------------------------------------------------------- */
.slide-hot-news {
    /* Apparence */
    color: var(--ltqr-dark);
    background: #FFF;
}

.slide-hot-news .slide-inner {
    /* Disposition */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*gap: 5vw;*/
}

.hot-news-content {
    /* Dimensions */
    width: 65%;
}

.hot-news-title {
    /* Position */
    margin: 0;

    /* Apparence */
    color: var(--ltqr-red);

    /* Texte */
    font-family: "Nunito";
    font-size: clamp(3.5rem, 5.8vw, 7rem);
    font-size: clamp(4rem, 6vw, 6rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.04em;
}

.hot-news-text {
    /* Position */
    margin-top: 2.5rem;

    /* Texte */
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    line-height: 1.35;
}

.hot-news-text p {
    /* Position */
    margin: 0 0 1rem;
}

.hot-news-text p:last-child {
    /* Position */
    margin-bottom: 0;
}

.hot-news-text strong {
    /* Apparence */
    color: var(--ltqr-red);
}

.hot-news-visual {
    /* Dimensions */
    width: 46%;
    /*height: 72%;*/

    /* Apparence */
    overflow: hidden;
    border-radius: 2rem;

    /* Effets */
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, .18);
}

.hot-news-visual img {
    /* Dimensions */
    width: 100%;
    height: 100%;

    /* Apparence */
    object-fit: cover;
    object-position: center;
}


/* ---------------------------------------------------------
   Nouveau site Internet
   --------------------------------------------------------- */
.slide-website-launch .slide-inner {
    /* Disposition */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.website-launch-content {
    /* Position */
    position: relative;
    z-index: 2;

    /* Dimensions */
    width: 50%;
}

.website-launch-title {
    /* Position */
    margin: 0;

    /* Texte */
    font-family: "Nunito";
    font-size: clamp(4rem, 9vw, 11rem);
    font-size: clamp(4rem, 6vw, 6rem);
    line-height: .88;
    font-weight: 950;
    text-shadow: 0 0 30px #706D6D;
}

.website-launch-message {
    /* Dimensions */
    max-width: 850px;

    /* Position */
    margin-top: 2rem;

    /* Texte */
    font-size: clamp(1.6rem, 2.3vw, 3rem);
    line-height: 1.25;
}

.website-launch-url {
    /* Position */
    margin-top: 4rem;

    /* Texte */
    font-size: clamp(1.4rem, 2vw, 2.5rem);
    line-height: 1.2;
}

.website-launch-url span {
    /* Disposition */
    display: block;

    /* Position */
    margin-bottom: .35rem;

    /* Apparence */
    opacity: .75;

    /* Texte */
    font-size: .55em;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.website-launch-url strong {
    /* Texte */
    font-weight: 900;
}

.website-launch-visual {
    /* Position */
    position: relative;
    position: absolute;
    right: clamp(2rem, 4vw, 5rem);

    /* Disposition */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Dimensions */
    width: 45%;
}

.website-launch-screen {
    /* Dimensions */
    width: 100%;
    aspect-ratio: 16 / 10;

    /* Position */
    margin-right: 5%;

    /* Apparence */
    overflow: hidden;
    background: #FFF;
    border: clamp(.5rem, .8vw, 1rem) solid #171717;
    border-radius: 1.5rem;

    /* Effets */
    transform: rotate(3deg);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, .25);
}

.website-launch-mobile {
    /* Position */
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -10%;

    /* Dimensions */
    width: 23%;
    height: 65%;

    /* Apparence */
    overflow: hidden;
    background: #FFF;
    border: clamp(.3rem, .6vw, .8rem) solid #171717;
    border-radius: 1.5rem;

    /* Effets */
    transform: rotate(3deg);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, .25);
}


/* ---------------------------------------------------------
   Slide générique LTQR
   --------------------------------------------------------- */
.slide-brand {
    /* Apparence */
    background-image: url("../assets/img/logo.png");
    background-repeat: no-repeat;
    background-position: 90% center;
    background-size: auto 70%;
}

.brand-name {
    /* Texte */
    font-family: "Nunito";
    font-size: clamp(4rem, 6vw, 6rem);
    line-height: .88;
    font-weight: 950;
    text-shadow: 0 0 30px #706D6D;
}

.brand-tagline {
    /* Dimensions */
    width: 50%;

    /* Position */
    margin-top: 2rem;

    /* Texte */
    font-size: clamp(2rem, 3vw, 5rem);
    line-height: 1.2;
    text-shadow: 0 0 30px #706D6D;
}

.brand-website {
    /* Position */
    margin-top: 5rem;

    /* Texte */
    font-size: clamp(1.4rem, 2vw, 2.5rem);
    line-height: 1.2;
}

.brand-website span {
    /* Disposition */
    display: block;

    /* Position */
    margin-bottom: .4rem;

    /* Apparence */
    opacity: .75;

    /* Texte */
    font-size: .55em;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand-website strong {
    /* Texte */
    font-weight: 800;
}

/* ---------------------------------------------------------
   Horloge
   --------------------------------------------------------- */
.slide-clock {
    /* Apparence */
    color: #FFF;
    background: linear-gradient(135deg, #0B76B0, #02334E);
}

.slide-clock .slide-eyebrow {
    /* Apparence */
    color: rgba(255, 255, 255, .75);
}

.clock-layout {
    /* Position */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clock-time {
    /* Disposition */
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1.5rem;

    /* Texte */
    font-family: "Nunito";
    font-size: clamp(10rem, 22vw, 27rem);
    line-height: .85;
    font-weight: 950;
    /*letter-spacing: -.06em;*/
}

.clock-seconds {
    /* Position */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* Apparence */
    opacity: .35;
    /* Texte */
    font-size: .12em;
    font-weight: 800;
    letter-spacing: 0;
}

.clock-date {
    /* Position */
    margin-top: 3rem;

    /* Apparence */
    font-size: clamp(2rem, 3.5vw, 4.5rem);
    font-weight: 600;
    text-transform: capitalize;
}


/* ---------------------------------------------------------
   Petit état technique (chargement / erreur réseau)
   --------------------------------------------------------- */
.status-overlay {
    /* Position */
    position: absolute;
    z-index: 100;
    right: 1.25rem;
    bottom: 1.25rem;

    /* Disposition */
    display: flex;
    align-items: center;
    gap: .75rem;

    /* Espacement */
    padding: .7rem 1rem;

    /* Apparence */
    color: #FFF;
    background: rgba(0, 0, 0, .65);
    border-radius: 999px;

    /* Texte */
    font-size: .9rem;
}

.status-overlay .spinner-border {
    /* Dimensions */
    width: 1rem;
    height: 1rem;

    /* Apparence */
    border-width: .15rem;
}


/* ---------------------------------------------------------
   Divers / sécurité
   --------------------------------------------------------- */
.noscript-warning {
    /* Position */
    position: fixed;
    inset: 0;

    /* Disposition */
    display: grid;
    place-items: center;

    /* Espacement */
    padding: 2rem;

    /* Apparence */
    color: #FFF;
    background: #111;

    /* Texte */
    font-size: 2rem;
    text-align: center;
}


/*
 * Ecrans moins larges / tablette paysage.
 *
 * On conserve uniquement une adaptation légère :
 * le signage reste volontairement pensé pour un affichage paysage
 * et non pour un véritable usage mobile.
 */
@media (max-aspect-ratio: 4/3) {

    :root {
        --signage-content-width: 86%;
    }

    .slide-title {
        /* Texte */
        font-size: clamp(2.5rem, 7vw, 5rem);
    }

    .big-value {
        /* Texte */
        font-size: clamp(4rem, 10vw, 8rem);
    }

    .brand-tagline {
        /* Dimensions */
        width: 55%;
    }
}


/*
 * Si les animations système sont désactivées,
 * on respecte le choix du système.
 */
@media (prefers-reduced-motion: reduce) {

    .signage-slide {
        /* Animation */
        transition: none;
    }
}
