/* ---------- RESPONSIVE MOBILE ---------- */
@media (max-width: 768px) {

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    img, iframe, video {
        max-width: 100%;
        height: auto;
    }

    body {
        padding-bottom: 80px;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    main {
        padding: 0;
    }

    .hero {
        margin-bottom: 2rem;
    }

    .hero-image-container img {
        height: 150px;
    }

    .hero-title {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
        line-height: 1.1;
        background: #fff;
        color: var(--primary-color);
        border-radius: 8px 8px 0 0;
        margin: 0;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .hero-text {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }

    .hero-text p {
        font-size: 0.85rem;
        line-height: 1.4;
        text-align: center;
    }

    .mobile-text {
        display: block;
        font-size: 0.8rem;
        font-weight: 500;
        line-height: 1.4;
        text-align: center;
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        letter-spacing: 0.3px;
    }

    .desktop-text {
        display: none;
    }

    .details {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .details span {
        background: var(--secondary-color);
        padding: 0.6rem 1rem;
        border-radius: 8px;
        border: 1px solid #e9ecef;
        font-size: 0.9rem;
        text-align: center;
    }

    /* Sections info mobile */
    .info-section {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 2rem;
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* espace entre les activités */
    .activites-section {
        gap: 3rem;
    }

    .activite-item h2 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    /* equipements */
    .equipements, .location {
        flex: 1 1 auto;
    }

    .equipements h2, .location h2 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1.2rem;
        color: var(--primary-color);
    }

    /* Images dans les sections activités */
    .equipements img, .activite-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
        max-width: 100%;
        display: block;
    }

    .equipements p, .activite-item p {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: justify;
        margin-bottom: 1rem;
    }

    /* Liste équipements mobile */
    .equip-list {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .equip-list li {
        display: flex !important;
        align-items: center !important;
        padding: 1rem !important;
        margin-bottom: 0.8rem !important;
        background: var(--secondary-color) !important;
        border-radius: 8px !important;
        border: 1px solid #e9ecef !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 1rem !important;
    }

    .equip-list li i {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
        font-size: 1rem !important;
    }

    /* Assurer que le conteneur parent prend toute la largeur */
    .equipements {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Localisation mobile */
    .location img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    .location-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .map-container {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .map-container iframe {
        height: 300px;
        width: 100%;
        max-width: 100%;
    }

    /* ---------- DESCRIPTION LOCALISATION MOBILE ---------- */
    .location-description {
        width: 100%;
        text-align: center;
        margin-bottom: 0rem;
        padding: 0 1rem;
    }

    .location-description p {
        font-size: 0.9rem;
        color: var(--text-color);
        margin-bottom: 0.5rem;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .location-description .building-info {
        font-style: italic;
        color: #666;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .location-description .desktop-text {
        display: none;
    }

    .location-description .mobile-text {
        display: block;
    }

    /* Tourism link mobile  */
    .tourism-link {
        margin: 0;
        width: 100%;
        padding: 0;
    }

    .tourism-link a {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        line-height: 1.3;
        width: 100%;
        text-align: center;
        border: 1px solid var(--primary-color);
        border-radius: var(--border-radius);
        color: var(--primary-color);
        text-decoration: none;
        transition: var(--transition);
    }

    .tourism-link a:hover {
        background-color: var(--primary-color);
        color: #fff;
    }

    .tourism-link a br {
        display: none;
    }

    /* Commerces mobile */
    .commerces-section {
        padding: 1.5rem 1rem;
    }

    .commerces-container {
        flex: 1 1 100%;
    }

    .commerces-title {
        font-size: 1.3rem;
        text-align: center;
        margin: 0 0 1rem 0 !important;
        color: var(--primary-color);
    }

    .commerces-title .mobile-text {
        display: block;
        font-size: 1.3rem;
        text-align: center;
        margin: 0 0 1rem 0;
        color: var(--primary-color);
        font-weight: 600;
        line-height: 1.2;
    }

    .commerces-title .desktop-text {
        display: none;
    }

    .commerces-list {
        font-size: 0.85rem;
        line-height: 1.3;
        list-style: none;
        padding-left: 0;
        column-count: 1;
    }

    .commerce-group {
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--secondary-color);
        border-radius: var(--border-radius);
        border-left: 4px solid var(--primary-color);
    }

    .commerce-group strong {
        display: block;
        font-size: 1rem;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        font-weight: 700;
    }

    .commerce-item {
        margin-bottom: 0.3rem;
        padding-left: 0.8rem;
        position: relative;
        line-height: 1.3;
        font-size: 0.8rem;
    }

    .commerce-item::before {
        content: "•";
        color: var(--primary-color);
        position: absolute;
        left: 0;
        font-weight: bold;
    }

    .commerce-item strong {
        color: var(--primary-color);
        font-weight: 600;
        display: inline;
        margin-bottom: 0;
        font-size: 0.85rem;
    }

    /* Page contact mobile OPTIMISÉE */
    .contact-section {
        padding: 1rem;
        margin: 0;
    }

    .contact-container {
        gap: 1rem;
        padding: 0;
    }

    .contact-info {
        text-align: center;
        font-size: 0.75rem;
        color: #666;
        margin-bottom: 1rem;
        padding: 0;
        background: none;
        border: none;
        border-radius: 0;
    }

    .contact-info p {
        margin: 0;
        line-height: 1.3;
    }

    /* CALENDRIER OPTIMISÉ */
    .calendar {
        margin: 1rem 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: var(--shadow-medium);
        width: 100%;
        max-width: 100%;
    }

    .calendar iframe {
        width: 100% !important;
        height: 450px !important;
        border: 0;
        display: block;
        max-width: 100%;
    }

    /* Tarifs mobile */
    .tarifs {
        margin-top: 0px;
        text-align: center;
        background-color: #fff;
        padding: 1.5rem 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-light);
    }

    .tarifs h2 {
        font-size: 1.1rem;
        color: var(--primary-color);
        margin-bottom: 1.2rem;
        font-weight: 600;
        white-space: nowrap;
        text-align: center;
    }

    .tarif-table {
        width: 100%;
        border-collapse: collapse;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--shadow-light);
        font-size: 0.9rem;
        margin: 0 auto;
        max-width: 100%;
    }

    .tarif-table th, .tarif-table td {
        padding: 12px 8px;
        border-bottom: 1px solid var(--border-color);
    }

    .tarif-table th {
        background-color: var(--primary-color);
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 0.8rem;
    }

    .tarif-table tr:nth-child(even) {
        background-color: #fafafa;
    }

    .tarif-table td strong {
        color: var(--primary-color);
        font-size: 0.95rem;
    }

    .tarif-note {
        margin-top: 1rem;
        font-size: 0.8rem;
        color: #555;
        line-height: 1.5;
        text-align: center;
    }

    /* FORMULAIRE OPTIMISÉ COMPACT */
    .contact-aligned {
        padding: 0.5rem;
        margin: 1rem 0;
        max-width: 100%;
    }

    .contact-aligned h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .contact-form {
        background: var(--secondary-color);
        padding: 1rem;
        border-radius: 12px;
        margin: 1rem 0;
        box-shadow: var(--shadow-light);
        width: 100%;
        box-sizing: border-box;
    }

    /* LIGNES DU FORMULAIRE COMPACTES */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .form-group {
        flex: 1;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .form-group.full-width {
        flex: 1 1 100%;
        width: 100%;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.3rem;
        font-weight: 600;
        color: var(--primary-color);
        font-size: 0.9rem;
    }

    /* CHAMPS DE SAISIE COMPACTS */
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.7rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 1rem;
        transition: var(--transition);
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

       .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(15, 43, 69, 0.1);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 80px;
        font-family: inherit;
    }

    /* BOUTON D'ENVOI COMPACT */
    .form-submit {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem auto 0;
        width: 100%;
        max-width: 250px;
        box-sizing: border-box;
    }

    .form-submit:hover,
    .form-submit:active {
        background: #0d2235;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(15, 43, 69, 0.3);
    }

    /* CONTACT DIRECT COMPACT */
    #direct-contact-text {
        text-align: center;
        margin: 1.5rem 0 0.8rem 0;
        color: #666;
        font-style: italic;
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .contact-box {
        text-align: center;
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .contact-mail {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        font-size: 0.95rem;
        font-weight: 600;
        transition: var(--transition);
        width: 100%;
        max-width: 250px;
        box-sizing: border-box;
    }

    .contact-mail:hover,
    .contact-mail:active {
        background: #0d2235;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(15, 43, 69, 0.3);
    }

    /* Plan marina mobile */
    .image-clickable {
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .image-clickable img {
        border-radius: 8px;
        box-shadow: var(--shadow-medium);
    }

    /* Navigation mobile */
    .side-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        border-radius: 0;
        padding: 0.8rem 0;
        border-right: none;
        border-top: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.1);
    }

    .side-nav .nav-links {
        flex-direction: row;
        gap: 2rem;
    }

    .side-nav .nav-links li a {
        writing-mode: horizontal-tb;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
        font-weight: 600;
    }

    .side-nav .nav-links li a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 43, 69, 0.2);
    }

    /* Lightbox mobile */
    .lightbox img {
        max-width: 95%;
        max-height: 75%;
        border-radius: 8px;
    }

    .lightbox button {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
        border-radius: 6px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.9);
    }

    .lightbox-prev,
    .lightbox-next {
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    /* Footer mobile */
    .footer {
        padding: 1rem;
        font-size: 0.8rem;
        text-align: center;
        background: var(--secondary-color);
        color: var(--text-color);
        margin-bottom: 0;
    }

    /* Logo masqué sur mobile */
    .logo-bas-droite {
        display: none;
    }
}

/* ---------- TRÈS PETITS ÉCRANS ---------- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
        padding: 0.3rem 0.8rem;
    }

    .gallery-item img {
        width: 120px;
        height: 90px;
    }

    .info-section {
        padding: 1rem 0.3rem;
    }

    .equipements img, .activite-item img {
        height: 150px;
    }

    .calendar iframe {
        height: 400px !important;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 16px;
    }

    .form-submit,
    .contact-mail {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    .contact-aligned h2 {
        font-size: 1.2rem;
    }

    .side-nav .nav-links {
        gap: 1.5rem;
    }

    .side-nav .nav-links li a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .commerces-list {
        font-size: 0.75rem;
    }

    .tarif-note {
        font-size: 0.75rem;
    }

    .equip-list {
        max-width: 280px;
    }
}

/* ---------- COMMENTAIRES MOBILE ---------- */
@media (max-width: 768px) {
    .commentaires-section {
        margin: 2rem 0.5rem;
        padding: 1.5rem 1rem;
    }

    .commentaires-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .commentaires-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .commentaire-card {
        padding: 1rem;
    }

    .commentaire-nom {
        font-size: 1rem;
    }
}
