/* =========================
   Général
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: white;
    color: #222;

    overflow-y: auto;
}


/* =========================
   Topbar
========================= */

.topbar {
    width: 100%;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background: #ffffff;
    border-bottom: 1px solid #ddd;

    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #5B5E73;
    text-decoration: none;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navigation a {
    color: #444;
    text-decoration: none;
    font-size: 15px;

    transition: color 0.2s ease;
}

.navigation a:hover {
    color: #5B5E73;
}

.navigation a.active {
    color: #5B5E73;
    font-weight: bold;
}

/* Topbar carousel (mobile): make navigation horizontally scrollable with optional arrows */
.navigation.scrollable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 6px;
}

.navigation.scrollable::-webkit-scrollbar {
    height: 8px;
}

.topbar-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #5B5E73;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 110;
    border: none;
}

.topbar-arrow.left { left: 8px; }
.topbar-arrow.right { right: 8px; }

.topbar-arrow.hidden { display: none; }

@media (max-width: 700px) {
    .topbar {
        padding: 0 12px;
        height: 56px;
    }

    .topbar-left {
        gap: 12px;
    }

    .navigation {
        gap: 12px;
    }

    .navigation a {
        font-size: 15px;
        padding: 8px 6px;
        white-space: nowrap;
        display: inline-block;
    }

    .topbar-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .topbar-arrow {
        display: flex;
    }
}


/* =========================
   Bouton Topbar
========================= */

.topbar-button {
    border: none;
    border-radius: 8px;

    padding: 10px 18px;

    background: #5B5E73;
    color: white;

    font-size: 14px;
    cursor: pointer;

    transition: background 0.2s ease;
}

.topbar-button:hover {
    background: #3F3D56;
}


/* =========================
   Contenu
========================= */

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

    padding: 50px 30px;
}

.content h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.description {
    margin-bottom: 35px;
    color: #666;
}


/* =========================
   Grande vignette
========================= */

.large-card {
    width: 100%;
    height: 400px;

    padding: 30px;

    margin-bottom: 50px;

    background: #5B5E73;
    color: white;

    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
}

.large-card h2 {
    margin-bottom: 15px;
    font-size: 26px;
}

.large-card p {
    line-height: 1.6;
    max-width: 700px;
}

.large-card .card-button {
    margin-top: auto;
}


/* =========================
   Sections Carousel
========================= */

.carousel-section {
    width: 100%;

    margin-bottom: 50px;
}

.carousel-section > h2 {
    margin-bottom: 20px;

    font-size: 24px;
}


/* =========================
   Wrapper Carousel
========================= */

.carousel-wrapper {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;
}


/* =========================
   Carousel
========================= */

.carousel {
    width: 100%;

    display: flex;

    gap: 20px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    padding: 5px 2px 15px;

    flex-wrap: nowrap;

    scrollbar-width: thin;
}


/* =========================
   Cartes Carousel
========================= */

.carousel-card {
    flex: 0 0 calc((100% - 80px) / 5);

    min-width: 220px;
    height: 220px;

    padding: 25px;

    background: #f5f5f5;
    color: #222;

    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
}

.carousel-card h3 {
    margin-bottom: 12px;

    font-size: 19px;
}

.carousel-card p {
    line-height: 1.5;

    opacity: 0.9;
}


/* =========================
   Carousel 4
========================= */

#carousel4 .carousel-card {
    flex-basis: calc((100% - 60px) / 4);
}


/* =========================
   Carousel 3
========================= */

#carousel3 .carousel-card {
    flex-basis: calc((100% - 40px) / 3);
}


/* =========================
   Boutons Carousel
========================= */

.carousel-button {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #5B5E73;
    color: white;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    z-index: 2;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.carousel-button:hover {
    background: #3F3D56;

    transform: scale(1.05);
}

.carousel-button:active {
    transform: scale(0.95);
}


/* =========================
   Boutons dans les cartes
========================= */

.card-button {
    align-self: flex-start;

    padding: 10px 16px;

    border: none;
    border-radius: 7px;

    background: white;
    color: #4C4E63;

    cursor: pointer;

    transition: transform 0.2s ease;
}

.card-button:hover {
    transform: translateY(-2px);
}


/* =========================
   Petites vignettes
========================= */

.small-cards-section {
    width: 100%;

    margin-bottom: 60px;
}

.small-cards-section > h2 {
    margin-bottom: 20px;

    font-size: 24px;
}


/*
   Les petites vignettes sont légèrement
   moins larges que les grandes cartes.

   Elles s'adaptent automatiquement à
   la largeur disponible.
*/

.small-cards {
    width: 100%;

    display: flex;
    justify-content: center;

    gap: 25px;
}

.small-card {
    width: calc((100% - 50px) / 3);

    min-height: 140px;

    padding: 20px;

    background: #f5f5f5;
    color: #222;

    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
}

.small-card h3 {
    margin-bottom: 10px;

    font-size: 18px;
}

.small-card p {
    line-height: 1.5;

    opacity: 0.9;
}


/* =========================
   Footer
========================= */

.footer {
    width: 100%;

    background: #eeeeee;
    color: #444;

    border-top: 1px solid #ddd;
}

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

    padding: 50px 30px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 40px;
}

.footer-column h3 {
    margin-bottom: 15px;

    color: #222;

    font-size: 17px;
}

.footer-column p {
    line-height: 1.7;

    font-size: 14px;

    color: #666;
}

.footer-column p a {
    color: #4C4E63;

    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-column p a:hover {
    color: #3F3D56;

    text-decoration: underline;
}


/* =========================
   Responsive
========================= */

@media (max-width: 1000px) {

    .carousel-card {
        flex-basis: calc((100% - 40px) / 3);
    }

    #carousel4 .carousel-card {
        flex-basis: calc((100% - 40px) / 3);
    }

    #carousel3 .carousel-card {
        flex-basis: calc((100% - 40px) / 3);
    }


    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   Écran moyen / petit
========================= */

@media (max-width: 700px) {

    .topbar {
        padding: 0 15px;
    }

    .topbar-left {
        gap: 15px;
    }

    .navigation {
        display: none;
    }

    .content {
        padding: 30px 15px;
    }


    /* Grande vignette */

    .large-card {
        height: 400px;

        padding: 25px;

        margin-bottom: 40px;
    }


    /* Carousel */

    .carousel-card {
        flex-basis: calc((100% - 20px) / 2);

        min-width: 200px;
    }

    #carousel4 .carousel-card {
        flex-basis: calc((100% - 20px) / 2);
    }

    #carousel3 .carousel-card {
        flex-basis: calc((100% - 20px) / 2);
    }


    .carousel-button {
        width: 36px;
        height: 36px;

        font-size: 24px;
    }


    /* Petites vignettes */

    .small-cards {
        gap: 15px;
    }

    .small-card {
        width: calc((100% - 30px) / 3);

        min-height: 130px;

        padding: 16px;
    }


    /* Footer */

    .footer-content {
        padding: 40px 20px;

        grid-template-columns: repeat(2, 1fr);

        gap: 30px;
    }
}


/* =========================
   Très petit écran
========================= */

@media (max-width: 450px) {

    /* Carousel */

    .carousel-card {
        flex-basis: 100%;

        min-width: 0;
    }

    #carousel4 .carousel-card {
        flex-basis: 100%;
    }

    #carousel3 .carousel-card {
        flex-basis: 100%;
    }

    .carousel-wrapper {
        gap: 5px;
    }

    .carousel {
        gap: 15px;
    }


    /* Petites vignettes */

    .small-cards {
        flex-direction: column;

        align-items: center;

        gap: 15px;
    }

    .small-card {
        width: 90%;

        min-height: 120px;
    }


    /* Footer */

    .footer-content {
        grid-template-columns: 1fr;

        padding: 35px 20px;
    }
}


/* =========================
   À Propos
========================= */

.about-content {
    width: 100%;
}

.about-section {
    margin-bottom: 40px;

    padding: 25px;

    background: #f5f5f5;
    border-radius: 12px;

    border-left: 4px solid #5B5E73;
}

.about-section h2 {
    margin-bottom: 15px;

    font-size: 22px;

    color: #4C4E63;
}

.about-section p {
    line-height: 1.8;

    color: #444;

    margin-bottom: 12px;
}

.about-section ul {
    margin-left: 20px;

    margin-top: 12px;
}

.about-section li {
    margin-bottom: 8px;

    color: #444;

    line-height: 1.6;
}

.about-section-final {
    margin-bottom: 40px;

    padding: 40px;

    background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);

    color: #222;

    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(91, 94, 115, 0.2);

    text-align: center;
}

.about-section-final h2 {
    color: white;

    margin-bottom: 20px;
}

.about-section-final p {
    color: rgba(255, 255, 255, 0.95);

    line-height: 1.8;
}

.values-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 20px;

    margin-top: 20px;
}

.value-item {
    padding: 20px;

    background: white;

    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    text-align: center;
}

.value-item h3 {
    color: #4C4E63;

    margin-bottom: 12px;

    font-size: 18px;
}

.value-item p {
    color: #666;

    line-height: 1.6;

    font-size: 14px;
}


/* =========================
   Contact
========================= */

.contact-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    margin-bottom: 50px;
}

.contact-form-container h2 {
    margin-bottom: 25px;

    font-size: 24px;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;

    display: flex;

    flex-direction: column;
}

.form-group.checkbox {
    flex-direction: row;

    align-items: center;

    gap: 10px;
}

.form-group label {
    margin-bottom: 8px;

    font-weight: 600;

    color: #444;

    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 8px;

    font-family: Arial, sans-serif;

    font-size: 14px;

    color: #333;

    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;

    border-color: #5B5E73;

    box-shadow: 0 0 0 3px rgba(91, 94, 115, 0.1);
}

.form-group textarea {
    resize: vertical;

    min-height: 120px;
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;

    height: 18px;

    cursor: pointer;

    flex-shrink: 0;
}

.form-group.checkbox label {
    margin-bottom: 0;

    cursor: pointer;

    font-weight: normal;
}

.form-button {
    padding: 12px 30px;

    border: none;

    border-radius: 8px;

    background: #5B5E73;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease;

    width: 100%;
}

.form-button:hover {
    background: #3F3D56;
}

.map-container h2 {
    margin-bottom: 25px;

    font-size: 24px;
}

.map-wrapper {
    width: 100%;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    margin-bottom: 25px;
}

.map-wrapper iframe {
    display: block;
}

.address-info {
    padding: 20px;

    background: #f5f5f5;

    border-radius: 12px;
}

.address-info h3 {
    color: #4C4E63;

    margin-bottom: 10px;

    font-size: 18px;
}

.address-info p {
    color: #666;

    line-height: 1.8;

    font-size: 14px;
}

.address-info a {
    color: #4C4E63;

    text-decoration: none;
}

.address-info a:hover {
    text-decoration: underline;
}


/* =========================
   FAQ
========================= */

.faq-section {
    width: 100%;

    margin-bottom: 50px;
}

.faq-section h2 {
    margin-bottom: 25px;

    font-size: 24px;
}

.faq-container {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 20px;
}

.faq-item {
    padding: 25px;

    background: #f9f9f9;

    border-radius: 12px;

    border: 1px solid #e0e0e0;

    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    border-color: #5B5E73;
}

.faq-item h3 {
    color: #4C4E63;

    margin-bottom: 15px;

    font-size: 16px;
}

.faq-item p {
    color: #666;

    line-height: 1.7;

    font-size: 14px;
}


/* =========================
   Tarifs
========================= */

.tarif-section {
    width: 100%;

    margin-bottom: 50px;
}

.tarif-section h2 {
    margin-bottom: 25px;

    font-size: 24px;
}

.tarif-table {
    width: 100%;

    border-collapse: collapse;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    border-radius: 12px;

    overflow: hidden;
}

.tarif-table thead {
    background: #5B5E73;

    color: white;
}

.tarif-table th {
    padding: 15px;

    text-align: left;

    font-weight: 600;

    border: none;
}

.tarif-table td {
    padding: 15px;

    border-bottom: 1px solid #e0e0e0;

    color: #333;
}

.tarif-table tbody tr:hover {
    background: #f5f5f5;
}

.tarif-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================
   Abonnements
========================= */

.abonnements-section {
    width: 100%;

    margin-bottom: 50px;
}

.abonnements-section h2 {
    margin-bottom: 25px;

    font-size: 24px;
}

.abonnements-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}

.abonnement-card {
    padding: 30px;

    background: white;

    border: 2px solid #e0e0e0;

    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

    transition: all 0.3s ease;

    text-align: center;
}

.abonnement-card:hover {
    border-color: #5B5E73;

    box-shadow: 0 8px 25px rgba(91, 94, 115, 0.15);

    transform: translateY(-5px);
}

.abonnement-card h3 {
    color: #4C4E63;

    margin-bottom: 15px;

    font-size: 20px;
}

.abonnement-price {
    font-size: 18px;

    font-weight: 600;

    color: #444;

    margin-bottom: 12px;
}

.abonnement-original {
    font-size: 14px;

    color: #999;

    text-decoration: line-through;

    margin-bottom: 5px;
}

.abonnement-reduced {
    font-size: 28px;

    font-weight: 700;

    color: #4C4E63;

    margin-bottom: 8px;
}

.abonnement-saving {
    font-size: 13px;

    color: #22a14c;

    font-weight: 600;

    margin-bottom: 20px;
}

.abonnement-card ul {
    list-style: none;

    text-align: left;

    margin: 0;

    padding: 0;
}

.abonnement-card li {
    padding: 10px 0;

    color: #666;

    font-size: 14px;

    border-bottom: 1px solid #f0f0f0;

    line-height: 1.5;
}

.abonnement-card li:last-child {
    border-bottom: none;
}


/* =========================
   CGV
========================= */

.cgv-sections {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;

    margin-bottom: 50px;
}

.cgv-card {
    padding: 25px;

    background: #f9f9f9;

    border: 1px solid #e0e0e0;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    transition: all 0.3s ease;
}

.cgv-card:hover {
    border-color: #5B5E73;

    box-shadow: 0 5px 15px rgba(91, 94, 115, 0.1);
}

.cgv-card h3 {
    color: #4C4E63;

    margin-bottom: 15px;

    font-size: 17px;
}

.cgv-card p {
    color: #666;

    line-height: 1.7;

    font-size: 14px;

    margin: 0;
}


/* =========================
   Prestations Grid
========================= */

.prestations-grid-section {
    width: 100%;

    margin-bottom: 50px;
}

.prestations-grid-section h2 {
    margin-bottom: 25px;

    font-size: 24px;
}

.prestations-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

    gap: 20px;
}

.prestation-item {
    padding: 25px;

    background: #f5f5f5;

    color: #222;

    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;

    min-height: 160px;

    display: flex;

    flex-direction: column;
}

.prestation-item:hover {
    transform: translateY(-5px);

    box-shadow: 0 8px 20px rgba(91, 94, 115, 0.2);
}

.prestation-item h3 {
    margin-bottom: 12px;

    font-size: 18px;
}

.prestation-item p {
    line-height: 1.6;

    opacity: 0.95;

    font-size: 14px;

    margin: 0;
}


/* =========================
   Responsive
========================= */

@media (max-width: 1000px) {
    .contact-section {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .abonnements-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarif-table {
        font-size: 14px;
    }

    .tarif-table th,
    .tarif-table td {
        padding: 12px;
    }

    .prestations-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 700px) {
    .contact-section {
        grid-template-columns: 1fr;
    }

    .faq-container {
        grid-template-columns: 1fr;
    }

    .abonnements-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 15px;
    }

    .about-section-final {
        padding: 25px;

        text-align: left;
    }

    .tarif-table {
        font-size: 12px;
    }

    .tarif-table th,
    .tarif-table td {
        padding: 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .prestations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .contact-section {
        grid-template-columns: 1fr;
    }

    .abonnement-card h3 {
        font-size: 16px;
    }

    .abonnement-reduced {
        font-size: 22px;
    }

    .cgv-sections {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .tarif-table {
        font-size: 11px;
    }

    .tarif-table th,
    .tarif-table td {
        padding: 6px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .prestations-grid {
        grid-template-columns: 1fr;
    }
}