/* =========================================================
   RESET AK PARAMÈT JENERAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bleu-fonce: #031f30;
    --bleu-principal: #082f49;
    --bleu-clair: #0e7490;
    --jaune: #d4a017;
    --blanc: #ffffff;
    --fond: #f5f7fa;
    --gris-clair: #f8fafc;
    --gris-bordure: #e3e8ed;
    --gris-texte: #66717c;
    --texte: #263746;
    --vert: #138a4b;
    --rouge: #b52b3a;
    --orange: #b77900;
    --ombre: 0 10px 28px rgba(3, 31, 48, 0.11);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    overflow-x: hidden;

    padding-top: 82px;

    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--fond);
    color: var(--texte);
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   CONTENEUR JENERAL
========================================================= */

.container {
    width: min(92%, 1200px);
    margin: auto;
}


/* =========================================================
   NAVBAR FIXED
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    z-index: 2000;

    background-color: var(--bleu-fonce);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

.navbar {
    position: relative;

    width: min(92%, 1200px);
    min-height: 82px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--blanc);
}

.logo {
    width: 50px;
    height: 50px;

    object-fit: contain;
    border-radius: 50%;

    flex-shrink: 0;
}

.hotel-name {
    color: var(--blanc);
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;

    list-style: none;
}

.nav-links a {
    display: block;
    padding: 11px 13px;

    color: var(--blanc);
    font-size: 14px;
    font-weight: 600;

    border-radius: 6px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--bleu-clair);
    color: var(--blanc);
}

.nav-links .btn-connexion {
    margin-left: 8px;
    padding: 12px 18px;

    background-color: var(--jaune);
    color: var(--blanc);
}

.nav-links .btn-connexion:hover {
    background-color: #b8890e;
    transform: translateY(-2px);
}


/* =========================================================
   MENU HAMBURGER
========================================================= */

.menu-toggle {
    display: none;

    width: 46px;
    height: 42px;

    border: none;
    border-radius: 7px;

    background-color: rgba(255, 255, 255, 0.11);
    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 3px;
    margin: 5px auto;

    border-radius: 5px;
    background-color: var(--blanc);

    transition: 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =========================================================
   BANNIÈRE CHAMBRES
========================================================= */

.banner-chanm {
    min-height: 420px;

    background:
        linear-gradient(
            rgba(3, 31, 48, 0.72),
            rgba(3, 31, 48, 0.72)
        ),
        url("images/image1.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-overlay {
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;
}

.banner-content {
    max-width: 850px;

    text-align: center;
    color: var(--blanc);
}

.banner-content span {
    display: inline-block;
    margin-bottom: 12px;

    color: #ffd45a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.banner-content h1 {
    margin-bottom: 18px;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.2;
}

.banner-content p {
    max-width: 720px;
    margin: auto;

    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}


/* =========================================================
   PRÉSENTATION
========================================================= */

.presentation {
    padding: 70px 0 35px;

    background-color: var(--fond);
}

.section-title {
    text-align: center;
}

.section-title > span {
    display: inline-block;
    margin-bottom: 8px;

    color: var(--jaune);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title h2 {
    margin-bottom: 12px;

    color: var(--bleu-principal);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.25;
}

.title-line {
    width: 72px;
    height: 4px;
    margin: 0 auto 20px;

    border-radius: 20px;
    background-color: var(--bleu-clair);
}

.presentation-text {
    max-width: 800px;
    margin: auto;

    text-align: center;
    color: var(--gris-texte);
    font-size: 17px;
}


/* =========================================================
   SECTION CHAMBRES
========================================================= */

.chanm-section {
    padding: 55px 0 90px;

    background-color: var(--fond);
}

.chanm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;

    align-items: stretch;
}


/* =========================================================
   CARTE CHAMBRE
========================================================= */

.chanm-card {
    min-width: 0;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background-color: var(--blanc);
    border: 1px solid var(--gris-bordure);
    border-radius: 16px;

    box-shadow: var(--ombre);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.chanm-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 17px 36px rgba(3, 31, 48, 0.16);
}


/* =========================================================
   PHOTO CHAMBRE
========================================================= */

.chanm-photo-container {
    position: relative;

    width: 100%;
    height: 240px;
    overflow: hidden;

    background-color: #eaf0f5;
}

.chanm-photo {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.5s ease;
}

.chanm-card:hover .chanm-photo {
    transform: scale(1.07);
}

.numero-photo {
    position: absolute;
    left: 15px;
    bottom: 15px;

    padding: 8px 12px;

    border-radius: 8px;

    background-color: rgba(3, 31, 48, 0.82);
    color: var(--blanc);

    font-size: 14px;
    font-weight: 800;
}

.estati {
    position: absolute;
    top: 15px;
    right: 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 95px;
    padding: 7px 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
}

.estati.disponible {
    background-color: #e4f7eb;
    color: var(--vert);
}

.estati.occupee {
    background-color: #fde8eb;
    color: var(--rouge);
}

.estati.reservee {
    background-color: #fff3d5;
    color: var(--orange);
}

.estati.indisponible {
    background-color: #e8edf3;
    color: #59697d;
}


/* =========================================================
   INFOS CHAMBRE
========================================================= */

.chanm-info {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 24px;
}

.chanm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.petit-titre {
    margin-bottom: 3px;

    color: var(--gris-texte);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.chanm-header h3 {
    color: var(--bleu-principal);
    font-size: 24px;
    line-height: 1.3;
}

.prix {
    flex-shrink: 0;

    text-align: right;
}

.prix strong {
    display: block;

    color: var(--bleu-clair);
    font-size: 20px;
    line-height: 1.2;
}

.prix span {
    color: var(--gris-texte);
    font-size: 12px;
}


/* =========================================================
   DÉTAILS CHAMBRE
========================================================= */

.chanm-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 20px;
}

.detail {
    padding: 13px;

    border-radius: 9px;
    background-color: #eef4f7;
}

.detail-label {
    display: block;
    margin-bottom: 4px;

    color: var(--gris-texte);
    font-size: 12px;
    font-weight: 700;
}

.detail strong {
    color: var(--bleu-principal);
    font-size: 14px;

    overflow-wrap: anywhere;
}

.chanm-description {
    margin-bottom: 22px;

    color: var(--gris-texte);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   BOUTONS
========================================================= */

.bouton-reserver,
.bouton-indisponible {
    width: 100%;

    margin-top: auto;
    padding: 13px 18px;

    border: none;
    border-radius: 8px;

    text-align: center;
    font-size: 15px;
    font-weight: 800;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.bouton-reserver {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background-color: var(--bleu-principal);
    color: var(--blanc);
}

.bouton-reserver:hover {
    background-color: var(--bleu-clair);
    transform: translateY(-2px);
}

.bouton-indisponible {
    background-color: #e5eaf0;
    color: #7a8797;

    cursor: not-allowed;
}


/* =========================================================
   MESSAGE
========================================================= */

.message-section {
    padding: 0 0 85px;

    background-color: var(--fond);
}

.message-box {
    display: flex;
    align-items: center;
    gap: 22px;

    padding: 32px;

    border-radius: 16px;

    background-color: var(--bleu-principal);
    color: var(--blanc);

    box-shadow: var(--ombre);
}

.message-icon {
    width: 64px;
    min-width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: var(--jaune);
    color: var(--blanc);

    font-size: 30px;
}

.message-box h2 {
    margin-bottom: 7px;

    font-size: 26px;
}

.message-box p {
    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;

    background-color: var(--bleu-fonce);
    color: var(--blanc);
}

.footer-container {
    width: min(90%, 1200px);
    margin: auto;
    padding: 50px 0;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 38px;
}

.footer-column h3 {
    margin-bottom: 15px;

    color: var(--jaune);
    font-size: 20px;
}

.footer-column p {
    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.8);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
    color: var(--jaune);
}

.footer-bottom {
    padding: 18px 20px;

    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 1000px) {

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav-links {
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;

        width: 100%;
        max-height: 0;
        overflow: hidden;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        padding: 0 18px;

        background-color: var(--bleu-fonce);

        opacity: 0;
        visibility: hidden;

        transition:
            max-height 0.4s ease,
            padding 0.4s ease,
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .nav-links.show {
        max-height: 620px;
        padding: 15px 18px 20px;

        opacity: 1;
        visibility: visible;

        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 13px 14px;
    }

    .nav-links .btn-connexion {
        margin-left: 0;
        margin-top: 5px;

        text-align: center;
    }

    .chanm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TELEFÒN
========================================================= */

@media screen and (max-width: 620px) {

    body {
        padding-top: 72px;
    }

    .navbar {
        width: 92%;
        min-height: 72px;
    }

    .nav-links {
        top: 72px;
    }

    .logo {
        width: 44px;
        height: 44px;
    }

    .hotel-name {
        font-size: 18px;
    }

    .banner-chanm,
    .banner-overlay {
        min-height: 340px;
    }

    .banner-content h1 {
        font-size: 35px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .presentation {
        padding: 55px 0 28px;
    }

    .presentation-text {
        font-size: 15px;
    }

    .chanm-section {
        padding: 42px 0 65px;
    }

    .chanm-grid {
        grid-template-columns: 1fr;
    }

    .chanm-photo-container {
        height: 235px;
    }

    .chanm-info {
        padding: 21px;
    }

    .chanm-header {
        flex-direction: column;
        gap: 10px;
    }

    .prix {
        text-align: left;
    }

    .chanm-details {
        grid-template-columns: 1fr;
    }

    .message-section {
        padding-bottom: 65px;
    }

    .message-box {
        align-items: flex-start;
        flex-direction: column;

        padding: 25px;
    }

    .message-box h2 {
        font-size: 23px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

}