/* --- GLOBAL.CSS (VERSION ÉQUILIBRÉE RE.LAB) --- */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Sora', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- ALIGNMENT CLASSES (FOR WYSIWYG) --- */
.align_center, .align-center { text-align: center; }
.align_right, .align-right { text-align: right; }
.align_left, .align-left { text-align: left; }
.align_justify, .align-justify { text-align: justify; }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
}

/* --- HEADER --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: none;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background-color: #0161bb;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header:hover::after {
    width: 100%;
}

/* Effet WOW : Flouter le reste de la page au survol du header */
header~* {
    transition: filter 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header:hover~* {
    filter: blur(6px);
    opacity: 0.4;
    pointer-events: none;
    /* Empêche les clics sur le contenu flouté pendant le hover du header */
}

.logo-link img {
    max-height: 38px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0161bb;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.link-gestion {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #444;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.link-gestion:hover {
    color: #0161bb;
}

.btn-logout-header {
    color: #ef4444 !important;
    background: #fef2f2;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-logout-header:hover {
    color: #dc2626 !important;
    background: #fee2e2;
}

.link-gestion .material-symbols-outlined {
    font-size: 20px !important;
}

.btn-main-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-main-contact:hover {
    background: #0161bb;
}

.btn-boutique {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0161bb;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-boutique:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 97, 187, 0.2);
}

/* --- STRUCTURE DE PAGE --- */
.container-narrow {
    max-width: 1300px; /* Standard RE-LAB pour les contenus boutique/dashboard */
    margin: 0 auto;
    width: 100%;
}

.page-header {
    text-align: center;
    padding: 40px 20px 0px;
}

.pre-intro {
    font-size: 1rem;
    color: #888;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#headline {
    font-weight: 800;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: -2px;
    margin: 10px 0 0;
}

.page-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px 40px;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
}

/* --- GRILLE DE TARIFS (ÉQUILIBRÉE) --- */

#content .pricing-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin: 20px 0 !important;
    width: 100% !important;
}

#content .pricing-card {
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding: 22px 20px !important;
    /* Entre-deux parfait */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.pricing-card.light {
    background: #f8faff;
    border: 1px solid #eef2ff;
}

.pricing-card.dark {
    background: #1a1a1a;
    color: #ffffff;
}

.pricing-card h3 {
    margin: 10px 0 8px 0 !important;
    font-size: 1.25rem;
    font-weight: 700;
}

.pricing-card p {
    margin: 0 0 12px 0 !important;
    font-size: 0.92rem;
    color: #666;
    line-height: 1.45;
}

.pricing-card.dark p {
    color: #bbb;
}

.pricing-card .price {
    font-family: 'Sora', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #0161bb;
    margin: 8px 0;
}

.pricing-card.dark .price {
    color: #ffffff;
}

.pricing-card .note {
    font-size: 0.78rem;
    color: #999;
    margin-top: auto;
    padding-top: 10px;
}

/* --- MENTION LÉGALE BAS DE PAGE --- */

#content>p:last-child {
    margin-top: auto !important;
    padding: 30px 0 0;
    margin-bottom: 0;
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    font-style: italic;
    width: 100%;
}

/* --- FOOTER --- */

footer {
    background-color: #fcfcfc;
    padding: 40px 40px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    max-height: 28px;
    margin-bottom: 14px;
    opacity: 0.9;
}

.footer-desc {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
    max-width: 300px;
}

.footer-col h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #666;
    font-size: 0.82rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0161bb;
}

.footer-links .material-symbols-outlined {
    font-size: 18px;
    color: #0161bb;
}

.footer-hours p {
    display: flex;
    justify-content: space-between;
    max-width: 220px;
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 7px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 4px;
}

.footer-hours .closed {
    color: #cc0000;
    font-weight: 700;
}

.footer-bottom {
    max-width: 1300px;
    margin: 24px auto 0;
}

.footer-bottom hr {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 14px;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 0.72rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #aaa;
    text-decoration: none;
}

/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
    #headline {
        font-size: 3.1rem;
    }

    .page-content {
        padding: 0 30px 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 25px;
    }

    #headline {
        font-size: 2.2rem;
        flex-wrap: wrap;
    }

    .pre-intro {
        font-size: 1.1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-desc,
    .footer-links a {
        justify-content: center;
        margin: 0 auto 10px;
    }

    .footer-hours p {
        margin: 0 auto 10px;
        max-width: 220px;
    }

    .bottom-content {
        flex-direction: column;
        gap: 15px;
    }

    #content .pricing-wrapper {
        grid-template-columns: 1fr !important;
    }
}