﻿/* ============================
   GRHIM - Thème Hilton Lagoon Fusionné
   ============================ */

/* === Variables globales === */
:root {
    --primary-color: #1a5f82; /* Bleu lagon doux */
    --secondary-color: #b9935a; /* Doré sable */
    --accent-color: #e5c79e; /* Sable clair */
    --footer-bg: #b7c3c7; /* Gris sable chaud */
    --footer-text: #1f2a35; /* Texte foncé */
    --light-bg: #f7f6f2; /* Fond beige clair */
    --dark-text: #2b2b2b;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s ease;
    --font-main: 'Poppins', 'MuseoSansRounded', sans-serif;
}

/* === Structure générale === */
/* === Poppins === */
@font-face {
    font-family: 'Poppins';
    src: url('../font/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../font/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../font/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'MuseoSansRounded';
    src: url('../font/MuseoSansRounded300.otf') format('opentype'), url('../font/MuseoSansRounded500.otf') format('opentype');
}


html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--dark-text);
    margin: 0;
    padding: 0;
    margin-bottom: 60px;
    line-height: 1.6;
}

/* === Liens === */
a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

    a.disabled {
        pointer-events: none;
        color: gray;
        cursor: not-allowed;
    }

/* === Navbar et menus === */
.navbar, .fond-menu {
    background-color: var(--primary-color) !important;
    box-shadow: var(--shadow);
}

.navbar-brand img {
    height: 48px;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: var(--transition);
}

    .nav-link:hover, .nav-link.active {
        color: var(--accent-color) !important;
    }

/* === Pied de page === */
.footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text);
    text-align: center;
    padding: 20px 0;
}

    .footer a {
        color: var(--footer-text);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer a:hover {
            color: var(--secondary-color);
        }

.pied-menu {
    font-weight: 600;
    font-variant-caps: all-petite-caps;
    font-size: larger;
}

/* === Boutons === */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: white;
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: white;
    }

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
    color: white;
}

    .btn-secondary:hover {
        background-color: var(--primary-color);
    }

/* === Form Switch === */
.form-switch .form-check-input {
    width: 50px;
    height: 25px;
}

/* === Formulaires === */
.form-control {
    border-radius: var(--radius);
    border: 1px solid #d0d0d0;
    transition: var(--transition);
}

    .form-control:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0.25rem rgba(185,147,90,0.25);
    }

/* === Tables === */
.table {
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

    .table thead {
        background-color: var(--primary-color);
        color: white;
    }

    .table tbody tr:hover {
        background-color: rgba(185,147,90,0.08);
    }

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(183,195,199,0.2);
}

/* === Cartes === */
.card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    background: white;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

.card-footer {
    background-color: rgba(26, 95, 130, 0.05);
    color: var(--dark-text);
}

/* === Modales === */
.modal {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.modal-dialog {
    margin: 0 auto !important;
    padding: 0 !important;
    pointer-events: auto !important; /* corrige le décalage */
    display: flex;
    justify-content: center;
}


.modal-content {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    background-color: var(--light-bg);
}

    .modal-footer .btn-primary {
        background-color: var(--secondary-color);
        border: none;
    }

        .modal-footer .btn-primary:hover {
            background-color: var(--primary-color);
        }

/* === Calendrier === */
.calendar-container {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 15px;
    text-align: center;
    margin: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
}

.calendar-day {
    display: inline-block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    line-height: 42px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin: 5px;
}

    .calendar-day.open {
        background-color: var(--secondary-color);
        color: white;
    }

    .calendar-day.selected {
        background-color: var(--primary-color);
        color: white;
        box-shadow: 0 0 8px rgba(0, 75, 114, 0.4);
    }

    .calendar-day.closed {
        background-color: #ddd;
        color: #888;
        cursor: not-allowed;
    }

.day-label, .day-number {
    display: block;
    text-align: center;
    line-height: 1.1;
}

.day-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: normal;
    margin: 5px 0 2px 0;
}

.day-number {
    font-size: 14px;
    font-weight: bold;
}

/* === Éléments GRHIM === */
.aller {
    background-color: rgba(26,95,130,0.1);
}

.retour {
    background-color: rgba(185,147,90,0.1);
}

.heure-primo {
    font-weight: 700;
    font-size: large;
    color: var(--primary-color);
}

.heure-minus {
    font-size: medium;
    color: var(--secondary-color);
}

.fond-rotation {
    background-color: var(--footer-bg) !important;
    font-weight: 600;
}

/* === Images et logos === */
.grand-logo {
    width: 128px;
    height: 128px;
}

.moyen-logo {
    height: 64px !important;
}

.mini-logo {
    width: 75px;
}

.img-16x16 {
    height: 16px;
}

.img-20x20 {
    height: 20px;
}

.img-24x24 {
    height: 24px;
}

.img-32x32 {
    height: 32px;
}

.img-48x48 {
    height: 48px;
}

.img-64x64 {
    height: 64px;
}

.img-256 {
    height: 256px;
}

.img-768 {
    height: 768px;
}

.img-1024 {
    width: 1024px;
}

.button-image {
    border: 0;
    background: transparent;
}

.pointer-hand {
    cursor: pointer;
}

.modalMap {
    height: 350px;
    width: 100%;
}

/* === Boutons scroll === */
#scrollTopButton, #scrollBottomButton {
    width: 50px;
    height: 50px;
    right: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1050;
    display: none;
}

#scrollTopButton {
    bottom: 80px;
}

#scrollBottomButton {
    bottom: 20px;
}

    #scrollTopButton:hover, #scrollBottomButton:hover {
        background-color: var(--secondary-color);
        color: #ffffff;
    }

/* === Divers === */
.refresh-button {
    width: 38px;
    height: 38px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

    .refresh-button:hover {
        background-color: #e0e0e0;
    }

.rotated {
    rotate: 90deg;
}

/* === Animations douces === */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cartes homogènes premium */
.card-style-grhim {
    background: white;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: transform .15s ease;
}

    .card-style-grhim:hover {
        transform: translateY(-3px);
    }

/* Icônes cerclées cohérentes GRHIM */
.icon-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    margin: 0 auto 10px auto;
    font-size: 1.2rem;
}

/* Fonds doux lagon */
.bg-gradient-info-grhim {
    background: linear-gradient(135deg,#eef9ff,#e4f9f7);
}

.bg-gradient-steps-grhim {
    background: linear-gradient(135deg,#ffffff,#f4faff);
}

.border-primary-root {
    border-color: var(--primary-color) !important;
}