/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* General Body Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Lighter, cleaner background */
    color: #343a40; /* Darker text for better readability */
    scroll-behavior: smooth;
}

/* Global container for content */
.container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header Styles */
header {
    background-color: #1A2A40; /* Dark blue from logo */
    color: #C0A060; /* Golden yellow from logo */
    padding: 1.2rem 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative; /* For burger menu positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-primary {
    background-color: #C0A060; /* Golden yellow from logo */
    color: #1A2A40; /* Dark blue from logo */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    margin-top: 20px; /* Space from navigation */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.button-primary:hover {
    background-color: #a2d2b7; /* Slightly darker on hover */
    color: #ffffff;
    transform: translateY(-3px);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 2.8rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px; /* Limit the width to force wrapping into two lines */
    margin-left: auto; /* Center the navigation block */
    margin-right: auto; /* Center the navigation block */
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #C0A060; /* Golden yellow from logo */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 10px 15px; /* Padding for tab appearance */
    border-radius: 5px 5px 0 0; /* Rounded top corners */
    margin-bottom: -2px; /* Overlap with section border */
    display: block; /* Make the whole area clickable */
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
    color: #C0A060; /* Golden yellow from logo */
}

nav ul li a.active {
    background-color: #ffffff; /* White background for active tab */
    color: #1A2A40; /* Dark blue from logo */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* Section Styles */
section {
    display: none; /* Hide all sections by default */
    padding: 60px 20px;
    margin: 30px auto;
    max-width: 1000px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    opacity: 0; /* Initial state for fade-in */
    transform: translateY(20px); /* Initial state for slide-up */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.active {
    display: block; /* Show active section */
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #1A2A40; /* Dark blue from logo */
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #C0A060; /* Golden yellow from logo */
    border-radius: 2px;
}

section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.golden-text {
    color: #C0A060; /* Golden yellow from logo */
}

/* Specific Section Styling */
#accueil {
    text-align: center;
    padding: 80px 20px;
}

#accueil p {
    font-size: 1.3rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

#services ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

#services ul li {
    background-color: #f4f7f6;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
    font-weight: 400;
    color: #343a40;
    text-align: left;
    border-left: 4px solid #C0A060; /* Golden yellow from logo */
}

#services ul li strong {
    color: #1A2A40; /* Dark blue from logo */
    font-weight: 600;
}

#services ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

blockquote {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    margin: 40px auto;
    padding: 30px;
    background-color: #e9f2ef;
    border-left: 6px solid #C0A060; /* Golden yellow from logo */
    max-width: 800px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    position: relative;
}

blockquote p {
    font-size: 1.2rem;
    color: #1A2A40; /* Dark blue from logo */
    margin-bottom: 15px;
}

    blockquote footer {
        margin-top: 20px;
        font-weight: 600;
        color: #6c757d;
        font-size: 1rem;
    }

    /* Carousel Styles - Custom styles removed/modified for Bootstrap compatibility */
    .carousel-container {
        /* Keeping some container styles for overall appearance, but removing layout-specific ones */
        max-width: 800px;
        margin: 40px auto;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        background-color: #ffffff;
    }

    /* Bootstrap carousel controls are .carousel-control-prev and .carousel-control-next */
    .carousel-control-prev,
    .carousel-control-next {
        z-index: 5; /* As requested by user */
        pointer-events: auto; /* Ensure clicks are registered */
        background-color: rgba(26, 42, 64, 0.7); /* Dark blue with transparency */
        color: #C0A060; /* Golden yellow */
        border-radius: 5px;
        transition: background-color 0.3s ease, color 0.3s ease;
        opacity: 1; /* Ensure they are always visible */
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: #1A2A40; /* Darker blue on hover */
        color: #ffffff;
    }

    /* Custom styling for the icons if needed, but Bootstrap provides default icons */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-image: none; /* Remove default Bootstrap icon */
        font-size: 24px; /* Adjust size */
        line-height: 1;
    }

    .carousel-control-prev-icon::before {
        content: '❮'; /* Custom prev icon */
        color: #C0A060;
    }

    .carousel-control-next-icon::before {
        content: '❯'; /* Custom next icon */
        color: #C0A060;
    }

    /* Remove custom carousel-button styles as they are replaced by Bootstrap's */
    .carousel-button {
        display: none; /* Hide old custom buttons */
    }

    .carousel-button:hover {
        background-color: #1A2A40; /* Darker blue on hover */
        color: #ffffff;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }

    @media (max-width: 768px) {
        .carousel-button {
            padding: 10px 7px;
            font-size: 20px;
        }
        .carousel-button.prev {
            left: 5px;
        }
        .carousel-button.next {
            right: 5px;
        }
        .carousel-slide {
            padding: 20px;
        }
    }

address {
    text-align: center;
    font-style: normal;
    margin-top: 30px;
    font-size: 1.1rem;
}

address strong {
    color: #1A2A40; /* Dark blue from logo */
}

address a {
    color: #C0A060; /* Golden yellow from logo */
    text-decoration: none;
    transition: color 0.3s ease;
}

address a:hover {
    color: #1A2A40; /* Dark blue from logo */
    text-decoration: underline;
}

/* Contact Form Styles */
#contactForm {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f4f7f6;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#contactForm p {
    margin-bottom: 20px;
    text-align: left;
}

#contactForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1A2A40; /* Dark blue from logo */
    font-family: 'Montserrat', sans-serif;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm textarea:focus {
    border-color: #C0A060; /* Golden yellow from logo */
    box-shadow: 0 0 0 0.2rem rgba(192, 160, 96, 0.25);
    outline: none;
}

#contactForm button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #1A2A40; /* Dark blue from logo */
    color: #C0A060; /* Golden yellow from logo */
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

#contactForm button:hover {
    background-color: #3a5a4a; /* Darker green, need to adjust */
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background-color: #1A2A40; /* Dark blue from logo */
    color: #C0A060; /* Golden yellow from logo */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
}

/* Back to Top Button */
#backToTopBtn {
    background-color: #C0A060; /* Golden yellow from logo */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#backToTopBtn:hover {
    background-color: #8cbfa4; /* Need to adjust */
}

/* Responsive Design - Burger Menu */
.burger {
    display: none; /* Hidden by default, shown on small screens */
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}
.burger div {
    width: 30px;
    height: 3px;
    background-color: #C0A060; /* Golden yellow from logo */
    margin: 6px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 20px; /* Adjust padding for better mobile spacing */
        flex-direction: row; /* Align logo and burger horizontally */
        justify-content: space-between; /* Space out logo and burger */
        align-items: center;
    }

    header img {
        height: 60px; /* Adjust logo size for mobile */
    }

    .button-primary {
        display: none; /* Hide primary button on mobile, it's in the nav */
    }

    .burger {
        display: block;
        position: static; /* Remove absolute positioning */
        transform: none;
    }

    nav {
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #1A2A40; /* Dark blue from logo */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(255,255,255,0.2);
        display: none; /* Hidden by default */
        flex-direction: column;
        z-index: 999;
    }

    nav.nav-active {
        display: flex; /* Show when active */
    }

    nav ul {
        flex-direction: column;
        margin: 0;
        padding: 10px 0;
    }
    nav ul li {
        text-align: center;
        margin: 10px 0;
    }
    nav ul li a {
        font-size: 1rem;
        padding: 10px;
        border-radius: 5px; /* Full rounded corners for mobile */
        margin-bottom: 5px;
    }

    section {
        margin: 20px 10px;
        padding: 30px 15px;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    #accueil {
        padding: 60px 15px;
    }

    #accueil p {
        font-size: 1.1rem;
    }

    #services ul {
        grid-template-columns: 1fr;
    }

    blockquote {
        margin: 30px 15px;
        padding: 25px;
    }

    blockquote p {
        font-size: 1.1rem;
    }

    #contactForm {
        margin: 30px 15px;
        padding: 25px;
    }

    .carousel-button {
        padding: 10px 7px;
        font-size: 20px;
    }
    .carousel-button.prev {
        left: 5px;
    }
    .carousel-button.next {
        right: 5px;
    }
    .carousel-slide {
        padding: 20px;
    }
}

/* Burger Animation */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-7px, 6px);
}
.burger.toggle .line2 {
    opacity: 0;
}
.burger.toggle .line3 {
    transform: rotate(45deg) translate(-7px, -6px);
}

/* bouton principal */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

/* conteneur et espacement page */
.page-section { margin: clamp(24px, 6vw, 56px) 0; }

/* Bouton CTA Golden Ways (global) */
.gw-cta {
  background-color: #C0A060; /* Golden yellow from logo */
  color: #1A2A40; /* Dark blue from logo */
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  line-height: 1.2;
}
.gw-cta:hover { background-color: #a2d2b7; transform: translateY(-1px); }
.gw-cta:active { transform: translateY(0); }
.gw-cta:focus-visible { outline: 3px solid rgba(255,215,0,.55); outline-offset: 3px; }

/* Pleine largeur sur mobile */
@media (max-width: 576px){
  footer .gw-cta {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important; /* S'assure que le padding est inclus dans la largeur */
  }
}

@media (max-width: 640px) {
  .calendly-embed iframe { height: 760px; }
}

.notice { padding: 12px 16px; border-radius: 8px; margin-top: 16px; }
.notice.success { border: 1px solid rgba(0,0,0,.08); box-shadow: 0 6px 18px rgba(0,0,0,.06); }

/* Mise en page spécifique de la page consultation */
.consult-page { 
  text-align: center; 
}

/* Lisibilité du texte centré */
.consult-page h1,
.consult-page h2,
.consult-page p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.consult-page ul {
  display: inline-block;
  text-align: left;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Centrage du bouton */
.consult-cta {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.calendly-embed {
  margin: 2rem auto;
  max-width: 1024px;
}

.masterclass-page { 
  text-align: center; 
}
.masterclass-page p { 
  max-width: 60ch; 
  margin: 0.5rem auto 1.25rem; 
  line-height: 1.6; 
}

/* Wrapper vidéo responsive (16:9) */
.video-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  max-width: 960px;
  margin: 1rem auto;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Entreprises Page Styles */
#hero-entreprises {
    text-align: center;
    padding: 80px 20px;
    background-color: #1A2A40;
    color: #ffffff;
}

#hero-entreprises h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

#hero-entreprises h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #C0A060;
    margin-bottom: 20px;
}

#hero-entreprises p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

#problemes .probleme-item {
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#problemes .probleme-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

#problemes .probleme-item i {
    color: #C0A060;
}

#solutions .solutions-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

#solutions .solutions-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

#solutions .solutions-list i {
    color: #C0A060;
    margin-right: 15px;
}

#benefices ul {
    list-style: none;
    padding: 0;
}

#benefices ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#contact-entreprises {
    padding: 60px 20px;
    background-color: #f4f7f6;
}

#problemes p.text-center,
#solutions p.text-center,
#benefices p.text-center {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#benefices .row {
    margin-top: 30px;
}

#benefices ul {
    padding-left: 20px;
}

#benefices ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#benefices ul li i {
    color: #C0A060;
    margin-right: 15px;
}

.conteneur-entreprises {
  max-width: 900px; /* largeur max du bloc */
  margin: 0 auto;   /* centre le bloc */
}

.conteneur-entreprises p {
  text-align: center; /* Forcer le centrage du paragraphe */
}

/* Custom Button Styles for Accueil Section */
.accueil-buttons {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center buttons horizontally */
    gap: 1rem; /* Space between buttons */
    margin-top: 1.5rem;
}

.btn-gw {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 200px; /* Fixed width for alignment */
    text-align: center;
}

.btn-gw-primary {
    background-color: #C0A060; /* Gold */
    color: #1A2A40; /* Dark Blue */
    border: 1px solid #C0A060;
}

.btn-gw-primary:hover {
    background-color: #1A2A40;
    color: #C0A060;
}

.btn-gw-secondary {
    background-color: #1A2A40; /* Dark Blue */
    color: #C0A060; /* Gold */
    border: 1px solid #1A2A40;
}

.btn-gw-secondary:hover {
    background-color: #C0A060;
    color: #1A2A40;
}

.gw-column {
    border: 1px solid #C0A060; /* Gold border */
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Custom container to override Bootstrap */
.gw-container {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Ensure sections are centered */
section {
    margin-left: auto !important;
    margin-right: auto !important;
}
