/*
Theme Name: coloDesPoilus
Theme URI: https://kiss-prod.fr/
Author: myKissProductions
Author URI: https://kiss-prod.fr/
Description: un Theme pour la Colo des poilus 
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Text Domain: colodespoilus
*/

/* CSS Variables */
:root {
    --primary-color: #d2b48c;
    --primary-dark: #b89f7b;
    --secondary-color: #e6d5b8;
    --primary-light: #f5f5dc;
    --text-color: #4a3f35;
    --text-muted: #666;
    --white: #ffffff;
    --border-radius: 20px;
    --border-radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
}

/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

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

a:hover {
    color: var(--primary-dark);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

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

/* Top Bar */
.top-bar {
    background-color: #000;
    color: var(--white);
    padding: 4px 0;
    font-size: 0.9rem;
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
}

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

.top-link {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-link:hover {
    color: var(--primary-color);
}

.top-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.top-link:hover .top-icon {
    filter: none;
}

.top-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
}

.social-link {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

/* Header */
header#masthead {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header#masthead .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-box {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 24px;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Hamburger Active State */
.menu-toggle.toggled .hamburger-inner {
    transform: rotate(45deg);
}

.menu-toggle.toggled .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.menu-toggle.toggled .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

.site-logo a {
    display: flex;
    align-items: center;
}

.custom-logo-img {
    max-height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover .custom-logo-img {
    transform: scale(1.05);
}

nav#site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav#site-navigation ul li {
    margin-left: 30px;
}

nav#site-navigation ul li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

nav#site-navigation ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav#site-navigation ul li a:hover {
    color: var(--primary-color);
}

nav#site-navigation ul li a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    padding: 100px 0;
    color: var(--text-color);
    position: relative;
    border-radius: 0 0 50px 50px;
    background-color: var(--primary-light);
    background-image: url('assets/images/header.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bienvenue {
    font-family: 'Grand Hotel', cursive;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    margin-left: -200px;
}

.custom-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.hero-subtitle {
    text-align: center;
    margin-top: 40px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.85);
    padding: 15px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

.la-colo {
    font-family: 'Grand Hotel', cursive;
    font-size: 110px;
    color: #cc4900; /* dark orange */
    transform: rotate(-15deg);
    margin-right: 15px;
    margin-top: -80px;
}

.des-poilus {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    line-height: 0.9;
}

.des {
    font-size: 55px;
    color: #f1a33a; /* lighter orange/yellowish */
    text-shadow:
        -1px -1px 0 #5c260b, 1px -1px 0 #5c260b, -1px 1px 0 #5c260b, 1px 1px 0 #5c260b, /* Outline */
        0px 1px 0 #5c260b, 0px 2px 0 #5c260b, 0px 3px 0 #5c260b, 0px 4px 0 #5c260b, 0px 5px 0 #5c260b, 0px 6px 0 #5c260b; /* 3D */
    margin-left: -60px;
    letter-spacing: 1px;
    transform: scale(1, 0.9);
}

.poilus {
    font-size: 90px;
    color: #d8682b; /* darker orange */
    text-shadow:
        -1px -1px 0 #5c260b, 1px -1px 0 #5c260b, -1px 1px 0 #5c260b, 1px 1px 0 #5c260b, /* Outline */
        0px 1px 0 #5c260b, 0px 2px 0 #5c260b, 0px 3px 0 #5c260b, 0px 4px 0 #5c260b, 0px 5px 0 #5c260b, 0px 6px 0 #5c260b, 0px 7px 0 #5c260b, 0px 8px 0 #5c260b; /* 3D */
    letter-spacing: 1px;
    transform: scale(1, 0.9);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Make services section center items on desktop when there are odd numbers */
@media (min-width: 992px) {
    .services .service-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .services .service-card {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
        box-sizing: border-box;
    }
}

.service-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

/* Specific styling for front page services */
.services .service-card {
    background: var(--white);
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.services .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.services .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.1);
}

.services .service-card:hover::before {
    transform: scaleX(1);
}

.services .service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.1);
}

.services .service-card:hover .service-icon-wrapper {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

.services .service-icon-wrapper img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0;
    transition: filter 0.4s ease;
}

.services .service-card:hover .service-icon-wrapper img {
    filter: brightness(0) invert(1);
}

.services .service-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
    font-weight: 700;
}

.services .service-card:hover h3 {
    color: var(--primary-color);
}

.services .service-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.services .service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.services .service-card .btn {
    display: inline-block;
    align-self: center;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    margin-top: auto;
}

.services .service-card:hover .btn {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Shop Category Styles */
.shop-category-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.shop-category-card .btn {
    margin-top: auto;
}

.shop-category-card h3 {
    color: #000;
}

.subcategories-list, .sub-subcategories-list {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
    margin-bottom: 20px;
}

.subcategories-list > li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.subcategories-list > li:last-child {
    border-bottom: none;
}

.subcategories-list a {
    font-weight: 600;
    color: var(--text-color);
}

.subcategories-list a:hover {
    color: var(--primary-color);
}

.sub-subcategories-list {
    margin-top: 5px;
    margin-bottom: 0;
    padding-left: 15px;
}

.sub-subcategories-list > li {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.sub-subcategories-list a {
    font-weight: 400;
    color: var(--text-muted);
}

/* Footer */
footer#colophon {
    background-color: var(--secondary-color);
    padding: 50px 0;
    text-align: left;
    margin-top: 80px;
    border-radius: 50px 50px 0 0;
    color: var(--white);
}

footer#colophon .container {
    width: 100%;
    max-width: 100%;
}

footer#colophon h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer#colophon p,
footer#colophon a,
footer#colophon ul li {
    margin: 0 0 10px 0;
    color: var(--white);
    text-decoration: none;
    list-style: none;
}

footer#colophon ul {
    padding-left: 0;
}

footer#colophon a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 150px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-logo .site-title a {
    color: var(--white);
    text-decoration: none;
}

.footer-content {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }

    footer#colophon {
        text-align: center;
    }
}

/* Utility classes */
.rounded {
    border-radius: var(--border-radius);
}

/* Dogs Carousel Section */
.dogs-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}
.dogs-carousel::-webkit-scrollbar {
    display: none; /* WebKit */
}

.dogs-carousel .carousel-item {
    flex: 0 0 auto;
    width: 320px;
    scroll-snap-align: center;
}

.dogs-carousel .carousel-item-inner {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dogs-carousel .carousel-item-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dogs-carousel .dog-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    width: 100%;
    height: 350px;
    background-color: var(--primary-light);
}

.dogs-carousel .carousel-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    transition: transform 0.5s ease;
}

.dogs-carousel .carousel-item-inner:hover img {
    transform: scale(1.05);
}

.dogs-carousel .dog-story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 140, 0, 0.9); /* var(--primary-color) with opacity */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.dogs-carousel .dog-story-overlay p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    max-height: 100%;
    overflow-y: auto;
}

.dogs-carousel .carousel-item-inner:hover .dog-story-overlay {
    opacity: 1;
}

.dogs-carousel .carousel-item-inner h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* Dog Management Styles */
.cdp-dog-management, .cdp-reservation-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.cdp-dog-management h3, .cdp-reservation-form h3 {
    margin-top: 0;
}

.dog-list {
    list-style: none;
    padding: 0;
}

.dog-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.success {
    color: #28a745;
    background: #d4edda;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.error {
    color: #dc3545;
    background: #f8d7da;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

/* Form Styles */
form p {
    margin-bottom: 15px;
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="date"],
form select,
form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
}

/* Front Page Specific Styles */
.dogs-carousel-section {
    padding: 80px 0;
    background-color: var(--primary-light);
}

.reservations {
    padding: 80px 0;
    background-color: var(--white);
}

.reservation-container {
    background: var(--primary-light);
    padding: 40px;
    box-shadow: var(--shadow);
}

.news {
    padding: 80px 0;
    background-color: var(--white);
}

.shop-showcase {
    padding: 80px 0;
    background-color: var(--primary-light);
}

.trainer {
    padding: 80px 0;
    background-color: var(--white);
}

.trainer-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.trainer-col {
    flex: 1;
    min-width: 300px;
}

.trainer-img {
    box-shadow: var(--shadow);
}

.reviews {
    padding: 80px 0;
    background-color: var(--primary-light);
}

.review-card {
    background: var(--white);
    text-align: center;
}

.review-image-wrapper-alt {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.review-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Page Profile */
.page-profile-restricted-main {
    padding: 50px 0;
    text-align: center;
}

.page-profile-main {
    padding: 50px 0;
}

.page-profile-content {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .profile-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hidden {
    display: none !important;
}

.user-profile-info {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.user-profile-info p {
    margin-bottom: 10px;
}

.user-profile-info p.mb-0 {
    margin-bottom: 0;
}

/* Taxonomy Product Category */
.taxonomy-hero {
    padding: 60px 0;
    background-color: var(--primary-light);
    text-align: center;
}

.taxonomy-content {
    padding: 60px 0;
    background-color: var(--white);
}

.taxonomy-subcategories-grid {
    margin-bottom: 60px;
}

.shop-category-card-secondary {
    background: var(--secondary-color);
}

.taxonomy-product-card {
    background: var(--white);
    box-shadow: var(--shadow);
}

.taxonomy-product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.taxonomy-product-card h3 a {
    color: var(--primary-color);
}

/* Page FAQ */
.page-faq-main {
    padding: 50px 0;
}

.page-faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

details.faq-item {
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--border-radius, 20px);
    box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

details.faq-item[open] {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

summary.faq-question {
    color: var(--primary-color, #ff8c00);
    margin: 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* remove default triangle */
    outline: none;
}

summary.faq-question:focus-visible {
    outline: 2px solid var(--primary-color, #ff8c00);
    outline-offset: 4px;
    border-radius: var(--border-radius-sm);
}

/* Remove default triangle in Safari */
summary.faq-question::-webkit-details-marker {
    display: none;
}

/* Custom icon container */
summary.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color, #ff8c00);
    transition: transform 0.3s ease;
    margin-left: 15px;
    line-height: 1;
}

details.faq-item[open] summary.faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--text-color, #333);
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    animation: fadeIn 0.4s ease-in-out;
    display: block;
}

.faq-answer * {
    color: var(--text-color, #333) !important;
}

/* Ensure that any dynamically loaded HTML inside faq-answer has proper color context */
.faq-answer p,
.faq-answer div,
.faq-answer span {
    color: #333 !important;
}

/* Ensure body text defaults actually propagate properly to details */
details {
    color: #333;
}

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

/* 404 Pattern Styles */
.error-heading {
    margin: 0;
    font-size: 300px;
    font-style: normal;
    font-weight: 600;
    text-align: center;
}

.error-message {
    text-align: center;
    color: var(--foreground, #000000);
    font-size: clamp(22px, 4.2vw, 24px); /* matches content-heading */
    margin: 0;
}

@media (max-width: 768px) {
    .error-heading {
        font-size: 150px;
    }
}

.error-spacer {
    height: 70px;
}

/* Index Styles */
.index-main {
    padding: 50px 0;
}

/* Page Creneaux */
.page-creneaux-main {
    padding: 50px 0;
}

.page-creneaux-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-creneaux-content {
    background: var(--white, #fff);
    padding: 40px;
    border-radius: var(--border-radius, 20px);
    box-shadow: var(--shadow, 0 4px 6px rgba(0,0,0,0.1));
}

.page-creneaux-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.cdp-creneaux-container h3 {
    color: var(--primary-color, #ff8c00);
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.cdp-creneaux-container h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
}

.cdp-dates-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cdp-dates-list li {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: var(--border-radius, 20px);
    font-size: 0.9em;
    color: #555;
    border: 1px solid #ddd;
}

/* SVGs */
.icons-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.folder-svg {
    enable-background: new 0 0 512.001 512.001;
}

/* Sections */
.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Service Info visibility on mobile */
.service-info {
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 15px;
    }

    header#masthead .container {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
        padding: 0 15px;
    }

    nav#site-navigation {
        position: static;
        width: 100%;
        height: auto;
        background-color: transparent;
        display: none; /* Hidden by default */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: none;
        padding-bottom: 20px;
    }

    /* Show when toggled */
    nav#site-navigation.toggled {
        display: flex;
    }
    nav#site-navigation ul {
        flex-direction: column;
        margin-top: 0;
        width: 100%;
    }
    nav#site-navigation ul li {
        margin: 10px 0;
        text-align: center;
    }
    nav#site-navigation ul li a {
        font-size: 1rem;
    }
    .hero-title-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .custom-logo-text {
        flex-direction: column;
    }

    .hero-title-container {
        margin-left: 0;
    }

    .la-colo {
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 20px;
        font-size: 80px;
    }

    .bienvenue {
        margin-left: 0;
        font-size: 24px;
    }

    .des {
        font-size: 45px;
        margin-left: 0;
    }

    .poilus {
        font-size: 70px;
    }

    /* Mobile Services section tap-to-expand styles */
    #services .service-card {
        cursor: pointer;
    }

    #services .service-card h3 {
        position: relative;
    }

    #services .service-card:not(.active) h3::after {
        content: "Appuyez pour plus d'infos";
        display: block;
        font-size: 0.8rem;
        color: var(--text-muted);
        font-weight: 400;
        margin-top: 5px;
    }

    #services .service-card .service-info {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }

    #services .service-card.active .service-info {
        max-height: 500px;
        opacity: 1;
        margin-top: 15px;
    }
}

/* Page Calendar */
.page-calendar-main {
    padding: 50px 0;
}

.page-calendar-header {
    text-align: center;
    margin-bottom: 40px;
}

.calendar-container {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius, 20px);
    box-shadow: var(--shadow, 0 4px 6px rgba(0,0,0,0.1));
}

.calendar-iframe {
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.calendar-notice {
    background: var(--white, #fff);
    padding: 20px;
    border-radius: var(--border-radius, 20px);
    border-left: 4px solid var(--primary-color, #ff8c00);
    box-shadow: var(--shadow, 0 4px 6px rgba(0,0,0,0.1));
}

.calendar-content-wrap {
    margin-top: 40px;
}

/* Grid System (inspired by Bootstrap) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px; /* Gutter */
    padding-left: 15px;  /* Gutter */
}

/* By default, columns are 100% width. Use col-* for mobile-first designs. */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}


/* Chrome-like Reservation Form Tabs */
.cdp-reservation-form form {
    margin-top: 20px;
}

.cdp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px; /* Small gap between tabs like modern browsers */
    margin-bottom: 0;
    padding: 10px 10px 0 10px;
    background-color: #e8eaed; /* Light gray background like Chrome tab bar */
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.cdp-tab-btn {
    flex-grow: 1;
    min-width: 100px;
    max-width: 200px;
    background-color: transparent;
    border: none;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-family);
    color: #5f6368;
    cursor: pointer;
    border-radius: 10px 10px 0 0; /* Rounded top corners */
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    z-index: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cdp-tab-btn:hover {
    background-color: #f1f3f4;
    color: #202124;
}

.cdp-tab-btn.active {
    background-color: var(--white); /* White background to match content area */
    color: var(--primary-color);
    font-weight: 600;
    z-index: 2; /* Sit above the container */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05); /* Subtle shadow on top of active tab */
}

/* Add left/right "curves" mimicking Chrome (optional, simple version) */
.cdp-tab-btn.active::before,
.cdp-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 10px;
    z-index: 2;
}

.cdp-tab-btn.active::before {
    left: -10px;
    border-bottom-right-radius: 10px;
    box-shadow: 5px 5px 0 5px var(--white);
}

.cdp-tab-btn.active::after {
    right: -10px;
    border-bottom-left-radius: 10px;
    box-shadow: -5px 5px 0 5px var(--white);
}

/* Hide curves on first/last if they touch edge */
.cdp-tab-btn.active:first-child::before {
    display: none;
}
.cdp-tab-btn.active:last-child::after {
    display: none;
}

/* Tab content container */
.cdp-tab-content {
    background: var(--white);
    padding: 25px;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Subtle shadow for depth */
    display: none;
    position: relative;
    z-index: 1;
    border: 1px solid #e8eaed;
    border-top: none; /* Connected to tabs */
}

.cdp-tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease-in-out;
}

@keyframes fadeInTab {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Espace Client */
.page-espace-client-main {
    padding: 50px 0;
}
.page-espace-client-main header {
    text-align: center;
    margin-bottom: 40px;
}
.espace-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.client-page-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}
.client-page-card .service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.1);
}
.client-page-card .service-icon-wrapper img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0;
    transition: filter 0.4s ease;
}
.client-page-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}
.client-page-card .service-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.client-page-card .service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}
.client-page-card .btn {
    display: inline-block;
    align-self: center;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    margin-top: auto;
    transition: all 0.3s ease;
}
.client-page-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.1);
}
.client-page-card:hover .service-icon-wrapper {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}
.client-page-card:hover .service-icon-wrapper img {
    filter: brightness(0) invert(1);
}
.client-page-card:hover h3 {
    color: var(--primary-color);
}
.client-page-card:hover .btn {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Layout Calendrier / Réservation (70% - 30%) */
.calendar-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Sur mobile : 100% de la largeur, empilés */
    gap: 30px;
}

@media (min-width: 1024px) {
    .calendar-layout-wrapper {
        grid-template-columns: 7fr 3fr; /* Sur ordinateur : 70% / 30% */
    }
}

/* Page Conseils / Diplômes */
.page-conseils-main {
    padding: 50px 0;
}
.page-conseils-main .entry-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-conseils-main .intro-text {
    font-size: 1.1rem;
    color: var(--text-color, #4a3f35);
    margin-bottom: 30px;
    line-height: 1.6;
}
.diplome-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius, 20px);
    box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.1));
    margin-bottom: 30px;
}
.diplome-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.diplome-list {
    list-style-type: none;
    padding: 0;
}
.diplome-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color, #4a3f35);
}
.diplome-list li strong {
    color: var(--secondary-color, #d2b48c);
}

.trainer-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}
