/* General Body & Typography */
:root {
    --primary-color: #0056b3; /* Darker blue for primary actions */
    --secondary-color: #28a745; /* Green for success/highlight */
    --accent-color: #ffc107; /* Yellow for accents */
    --text-color: #333;
    --light-text-color: #666;
    --white-color: #ffffff;
    --light-bg: #f8f9fa; /* Light grey background */
    --dark-bg: #343a40; /* Dark background for footer */
    --border-color: #dee2e6;
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 6px 12px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    color: var(--text-color);
    line-height: 1.2;
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.6em;
    font-weight: 500;
    color: var(--primary-color);
}

p {
    margin-bottom: 1em;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

section {
    padding: 60px 0;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: #004494;
    transform: translateY(-2px);
    text-decoration: none;
}

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

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

.highlight {
    background: var(--accent-color);
    color: var(--text-color);
}
.highlight:hover {
    background: #e0a800;
    color: var(--text-color);
}

/* Header & Navigation */
header {
    background: var(--white-color);
    color: var(--text-color);
    padding: 15px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav .logo img {
    height: 50px;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    position: relative;
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white-color);
    min-width: 160px;
    box-shadow: var(--shadow-light);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    top: 100%;
    left: 0;
    padding: 10px 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Highlighted Nav Item */

/* Mobile Menu - Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: var(--text-color);
    margin-bottom: 5px;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover; /* Placeholder for hero-bg.jpg */
    color: var(--white-color);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--white-color);
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Charte Section */
.charte-section {
    background-color: var(--white-color);
    padding: 80px 20px;
    text-align: center;
}

.charte-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.charte-item {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 300px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.charte-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.charte-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--light-bg);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.cta-btn {
    min-width: 200px;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white-color);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    margin: 5px 0;
}

/* Page Hero for Subpages */
.page-hero {
    background: #ffffff;
    padding: 48px 20px;
    text-align: center;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 20px;
    min-height: auto;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.page-hero h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.page-hero p {
    font-size: 1.1em;
    max-width: 700px;
    margin-top: 1rem;
    color: var(--light-text-color);
}

/* Content Sections (general for subpages) */
.content-section {
    background-color: var(--white-color);
    padding: 60px 20px;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    margin-top: 15px;
}

.service-card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.service-card ul li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Tarifs Page - Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--light-text-color);
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover, .tab-button.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-content {
    padding: 30px 0;
    text-align: center;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.price-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.price-card h4 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price-card .price {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.price-card .description {
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.price-card .btn {
    width: 100%;
    padding: 10px 0;
}



/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.contact-info ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info ul li strong {
    color: var(--primary-color);
}

.contact-form-container {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.contact-form-container h2 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.contact-form-container h2::after {
    display: none;
}


/* Forms (general styling) */
form {
    display: flex;
    flex-direction: column;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #004494;
}

.confirmation-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* CORRECTED Pop-up Styles */
/* Nos Niveaux Pages */
.level-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.level-image {
    text-align: center;
}

.level-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.level-text h2 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.level-text h2::after {
    margin-left: 0;
}

.level-text ul {
    list-style: none;
    margin: 20px 0;
}

.level-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.level-text ul li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.level-text .btn {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.8em;
    }
    .hero-section {
        min-height: 400px;
        padding: 80px 20px;
    }
    .hero-section h1 {
        font-size: 3em;
    }
    .hero-section p {
        font-size: 1.3em;
    }

    nav ul {
        margin-right: 0;
    }
    nav ul li {
        margin-left: 20px;
    }

    .level-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    nav .logo {
        margin-bottom: 15px;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default for mobile */
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    nav ul li a {
        padding: 10px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    nav ul li.highlight-nav a {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: var(--light-bg);
        padding: 0;
        margin-left: 20px;
        width: calc(100% - 20px);
    }
    .dropdown-content a {
        padding: 8px 25px;
    }
    .dropdown:hover .dropdown-content {
        display: none; /* Managed by JS for mobile */
    }
    .dropdown.active .dropdown-content {
        display: block;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 25px;
        right: 20px;
    }

    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    .hero-section {
        padding: 60px 20px;
        min-height: 350px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }

    .charte-item, .price-card, .service-card {
        max-width: 100%;
    }
    .charte-items, .price-cards, .service-cards {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .cta-btn {
        width: 100%;
    }
    .page-hero {
        padding: 60px 20px;
        min-height: 250px;
    }
    .page-hero h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .popup-form-area {
        padding: 20px;
    }
    .popup-form-area h2 {
        font-size: 1.5em;
    }
    .popup-form-area p {
        font-size: 0.9em;
    }
}
/* --- Scoped Styles for tr-home-modern (index.html) - HERO ONLY --- */
.tr-home-modern .tr-home-hero {
    padding: 60px 20px;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.tr-home-modern .tr-home-hero-container {
    display: flex;
    flex-direction: column; /* Default to column for mobile first */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.tr-home-modern .tr-home-hero-text {
    text-align: center;
    max-width: 600px;
}



.tr-home-modern .tr-home-hero-text h1 {
    font-size: 3em;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.tr-home-modern .tr-home-hero-text p {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 30px;
}

.tr-home-modern .tr-home-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.tr-home-modern .tr-home-hero-cta .btn {
    min-width: 200px; /* Ensure buttons are not too small */
}

.tr-home-modern .tr-home-hero-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.tr-home-modern .tr-home-hero-image {
    max-width: 520px; /* Max width for image */
    text-align: center;
}

.tr-home-modern .tr-home-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: var(--shadow-medium);
}

/* Responsive adjustments */
@media (min-width: 900px) {
    .tr-home-modern .tr-home-hero-container {
        flex-direction: row; /* Two columns for desktop */
        text-align: left;
    }

    .tr-home-modern .tr-home-hero-text {
        text-align: left;
        margin-right: 40px;
        flex: 1;
    }



    .tr-home-modern .tr-home-hero-cta {
        justify-content: flex-start;
    }

    .tr-home-modern .tr-home-hero-badges {
        justify-content: flex-start;
    }

    .tr-home-modern .tr-home-hero-image {
        margin-left: 40px;
        flex-shrink: 0;
        flex: 1; /* Allow image to take available space */
    }
}

@media (max-width: 768px) {
    .tr-home-modern .tr-home-hero-text h1 {
        font-size: 2.5em;
    }
    .tr-home-modern .tr-home-hero-text p {
        font-size: 1.1em;
    }
    .tr-home-modern .tr-home-hero-cta .btn {
        width: 100%; /* Full width buttons on smaller mobile */
    }
}

@media (max-width: 480px) {
    .tr-home-modern .tr-home-hero-text h1 {
        font-size: 2em;
    }
    .tr-home-modern .tr-home-hero-text p {
        font-size: 1em;
    }
    .tr-home-modern .tr-home-hero-badges li {
        padding: 8px 15px;
        font-size: 0.8em;
    }
}
/* Promo Banner */
.site-brand{display:flex;align-items:center;gap:10px}
.site-logo-main{height:52px;width:auto}
.site-logo-wordmark{height:34px;width:auto;opacity:.95}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-main {
    height: 52px; /* Consistent height for the main logo */
    width: auto;
}

.logo-text {
    height: 34px; /* Consistent height for the text logo */
    width: auto;
    opacity: 0.95;
}

/* On smaller screens, hide the text part of the logo */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
}