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

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;700;800&display=swap');

* {
    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;
}

/* --- 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: 1px solid #f0f0f0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.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;
}

/* --- STRUCTURE DE PAGE --- */

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

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

#headline {
    font-weight: 800;
    font-size: 3.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;
    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, .footer-hours p { justify-content: center; margin: 0 auto 10px; }
    .bottom-content { flex-direction: column; gap: 15px; }
    #content .pricing-wrapper { grid-template-columns: 1fr !important; }
}