/* Reset and base styles */
:root {
    --primary-color: #095BA3;
    --secondary-color: #1E73BE;
    --text-color: #3D3D3D;
    --background-color: #fff;
    --menu-height: 80px;
    --hover-color: #1E73BE;
    --gray-light: #f1f1f1;
    --shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
}

/* Layout */
.page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    /*margin: 1.5rem 0 1rem;*/
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

h3 {
    color: var(--secondary-color);
}
p {
    margin-bottom: 1rem;
}

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

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

/* Header and Navigation */
.top-bar {
    background: var(--primary-color);
    padding: 10px 0 0;
}

.logo-top{
    width:175px;
    padding-right: 30px;
}

/* Menu styling */
.menuBar {
    position: fixed;
    width: calc(100% - 2rem);
    max-width: calc(1000px - 2rem); /* Match .page max-width */
    margin: 0 auto;    /* Center horizontally */
    left: 0;
    right: 0;
    background: var(--background-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Banner styling */
.banniere {
    position: fixed;
    width: calc(100% - 2rem);
    max-width: calc(1000px - 2rem); /* Match .page max-width */
    margin: 0 auto;
    padding: 0 1rem;
    left: 0;
    right: 0;
    top:0;
    background-color: rgb(255, 223, 0);
    font-size: 1.125rem;
    font-weight: bold;
    text-align: center;
    z-index: 2000;
    height: 60px;
    min-height: fit-content;
    display: none;
}

/* Page container */
.page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    transition: margin-top 0.3s ease;
}

/* Mobile adjustments */
@media screen and (max-width: 699px) {
    .banniere {
        padding: 8px;
        font-size: 1rem;
    }
}
/* Navigation Buttons */
.btn {
    border: none;
    text-decoration: none;
    padding: 10px 10px ;
    margin: 0px;
    cursor: pointer;
    display: inline-block;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.btn:hover {
    color: var(--hover-color);
}

.btn.selected {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Nous Joindre*/
.erreur{
    font-size:smaller;
    color:#ff0000;
    height:30px;
    vertical-align: top;
}

.btnEnvoyer {
    border: none;
    background-color:#3D66BC;
    padding: 5px 5px;
    margin: 0px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    color: white;
    user-select: none;
}

.btnEnvoyer:hover {background: #eee;}

.form-group{
    margin-bottom: 2em;
}

/* Mobile Menu */
.MenuSmall {
    position: relative;
    margin-left: auto;
}


/* Mobile menu specific styles */
.MenuSmall .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Reduce padding specifically for mobile menu items */
.MenuSmall .dropdown-content a,
.MenuSmall .dropdown-content p {
    padding: 8px 16px;  /* Reduced vertical padding */
    text-decoration: none;
    display: block;
    text-align: right;
    margin: 0;          /* Remove any margin */
    line-height: 1.2;   /* Tighter line height */
}

/* Optional hover effect for better touch feedback */
.MenuSmall .dropdown-content a:hover,
.MenuSmall .dropdown-content p:hover {
    background-color: #ddd;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-color);
    padding: 5px 10px;
    font-size: 1.875rem;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--gray-light);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    overflow: hidden;
}

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

.dropdown-content a,
.dropdown-content p {
    padding: 12px 16px;
    display: block;
    text-align: right;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #ddd;
}



.main-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    padding: 0 1rem;
}


/* Responsive adjustments */
@media screen and (max-width: 699px) {
    .main-title {
        font-size: 1.75rem;
        margin: 0.75rem 0;
    }
}

/* If you want to visually hide the title but keep it for SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Slideshow container */
.slideshow-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    touch-action: pan-x; /* Enable horizontal swiping */
    margin-bottom: 20px;
}

/* Slides */
.mySlides {
    display: none;
    position: relative;
    width: 100%;

}

.mySlides img {
    width: 100%;
    height: auto;
    display: block;
}
/* Desktop-specific styles */
@media screen and (min-width: 769px) {
    .slideshow-container {
        position: relative;
    }
    .slideshow-nav {
        display: flex;
        justify-content: center;
    }

    /* Navigation arrows for desktop */
    .prev, .next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.4);
        transition: background-color 0.3s ease;
        z-index: 2;
        text-decoration: none;
        border: none;
        padding: 0;
    }

    .prev {
        left: 0;
        border-radius: 0 3px 3px 0;
    }

    .next {
        right: 0;
        border-radius: 3px 0 0 3px;
    }

    .prev:hover, .next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    /* Dots container for desktop */
    .dots-container {
        position: static;
        padding: 10px 0;
        display: flex;
        justify-content: center;
        gap: 8px;
        background: none;
        transform: none;
    }

    /* Dot appearance for desktop */
    .dot {
        height: 12px;
        width: 12px;
        background-color: #bbb;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.3s ease;
        cursor: pointer;
        margin: 0 4px;
    }

    .dot.active {
        background-color: #717171;
    }
}
/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    /* Hide desktop navigation */
    .slideshow-nav {
        display: none;
    }

    /* Dots container for mobile */
    .dots-container {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        background-color: rgba(0, 0, 0, 0.3);
        padding: 8px 12px;
        border-radius: 20px;
        display: flex;
        gap: 8px;
    }

    /* Dot appearance for mobile */
    .dot {
        height: 10px;
        width: 10px;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .dot.active {
        background-color: white;
    }

    /* Hide navigation arrows on mobile */
    .prev, .next {
        display: none;
    }
}

/* Slideshow text overlays */
.mySlides {
    position: relative;
    width: 100%;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.slide-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    max-width: 80%;
}

.slide-description {
    color: white;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 70%;
    line-height: 1.4;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .slide-title {
        font-size: 1.8rem;
        max-width: 90%;
    }

    .slide-description {
        font-size: 1rem;
        max-width: 85%;
    }
}

@media screen and (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 0.9rem;
    }
}


/* Animation */
.fade {
    animation: fade 0.5s ease-in-out;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
/* Content Sections */
.corps {
    padding: 5px;
}

.myList {
    margin: 1rem 0 1rem 3rem;
}


/* Search Drop-down menu */
.menu-item {
    float: left;
    position: relative;
}

.menu-item ul {
    margin-top: 100px;
    list-style-type: none;
    height: 0px;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 100%;
}

.menu-item:hover ul {
    height: 10em;
    background-color: white;
}

.menu-item ul li {
    cursor: pointer;
    white-space:nowrap;
}



/* Thank you page styles */
.thank-you-section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.thank-you-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thank-you-section h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.confirmation-message {
    margin: 2rem 0;
}

.confirmation-message p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.response-time {
    color: #666;
    font-style: italic;
}

.next-steps {
    margin-top: 2rem;
    text-align: left;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
}

.next-steps p {
    font-weight: 600;
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.next-steps li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Checkmark animation */
.checkmark {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
}

.checkmark-circle {
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .thank-you-section {
        padding: 1rem;
    }

    .thank-you-content {
        padding: 1.5rem;
    }

    .thank-you-section h1 {
        font-size: 2rem;
    }

    .confirmation-message p {
        font-size: 1.1rem;
    }
}

/* Footer */
.bottom-bar {
    background: var(--primary-color);
    margin-top: 2rem;
    padding: 2.5rem 0;
    color: var(--background-color);
}

/* Animations */
.fade {
    animation: fade 1.5s ease-in-out;
}


/* Coverage area specific styles */
.coverage-area {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.coverage-area h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.coverage-map {
    margin: 2rem 0;
    text-align: center;
}

.imageZone {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coverage-details {
    margin-top: 2rem;
}

.coverage-details ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    column-count: 3;  /* Creates 3 columns */
    column-gap: 2rem;
    max-width: 800px;  /* Keeps columns at reasonable width */
}

.coverage-details li {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    break-inside: avoid; /* Prevents items from splitting across columns */
    text-align: center;
}


@media (max-width: 768px) {
    .coverage-area h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .coverage-map {
        margin: 1rem 0;
    }

    .coverage-details ul {
        column-count: 2;  /* Reduces to 2 columns on medium screens */
    }
}

@media (max-width: 480px) {
    .coverage-details ul {
        column-count: 1;  /* Single column on small screens */
    }
}
@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Media Queries */
@media screen and (max-width: 699px) {
    .MenuLarge {
        display: none;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

@media screen and (min-width: 700px) {
    .MenuSmall {
        display: none;
    }
}

/* Print Styles */
@media print {
    * {
        font-size: 12px;
        font-family: "Corbel", Arial, sans-serif;
    }
    
    .textGros {
        font-size: 14px;
    }
    
    .textPetit {
        font-size: 10px;
    }
    
    .noprint {
        display: none !important;
    }
    
    .menuBar,
    .top-bar,
    .bottom-bar,
    .slideshow-nav {
        display: none !important;
    }
    
    .marginMenu {
        padding-top: 0;
    }
    
    a {
        text-decoration: none;
        color: var(--text-color);
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus styles */
:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (forced-colors: active) {
    .btn,
    .dropbtn,
    .dot {
        border: 1px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* Ensure it's above other elements */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    background-color: rgba(9, 91, 163, 0.9); /* Slightly more visible */
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-indicator.bounce-once {
    animation: bounceOnce 1.5s ease-out;
}

.scroll-indicator-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.scroll-indicator-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounceOnce {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Hide on mobile when menu is open */
.dropdown-content.show ~ .scroll-indicator {
    opacity: 0;
    visibility: hidden;
}

/* Ensure indicator appears above other elements during transitions */
body {
    position: relative;
}

/* Hide on print */
@media print {
    .scroll-indicator {
        display: none;
    }
}

/* Map styles */
.map-container {
    width: 100%;
    height: 600px;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .map-container {
        height: 400px;
        margin: 1rem 0;
    }
}

/* Coverage area list styling */
.coverage-list {
    column-count: 3;
    column-gap: 2rem;
    margin: 1rem 0;
    padding: 0;
    list-style-position: inside;
}

@media screen and (max-width: 768px) {
    .coverage-list {
        column-count: 2;
    }
}

@media screen and (max-width: 480px) {
    .coverage-list {
        column-count: 1;
    }
}
