/* Mobile complet - tout inclus */
@media (max-width: 768px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html, body {
        height: 100%;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        line-height: 1.6;
        color: #333;
        background: #fff;
        display: flex;
        flex-direction: column;
    }

    :root {
        --header-height: 10vh;
        --footer-height: 30vh;
        --tampon-size: 3vh;
    }

    /* Header avec snap */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 15px 20px;
        height: var(--header-height);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .header-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .header-top {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .page-title-mobile {
        font-size: 1em;
        font-weight: 600;
        color: #333;
        margin-left: auto;
    }

    .header-icons,
    .site-navigation {
        display: none;
    }

    /* Contenu avec snap scroll moins agressif */
    .site-content {
        margin-top: var(--header-height);
        padding: 0;
        padding-bottom: var(--footer-height);
        min-height: calc(100vh - var(--header-height));
        background: #fff;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y proximity;
        -webkit-overflow-scrolling: touch;
        scroll-padding-top: var(--header-height);
        scroll-padding-bottom: var(--footer-height);
    }

    /* Point de snap en haut (pour header) */
    .site-content::before {
        content: '';
        display: block;
        height: 1px;
        scroll-snap-align: start;
    }

    /* Point de snap en bas (pour footer) */
    .site-content::after {
        content: '';
        display: block;
        height: 1px;
        scroll-snap-align: end;
    }

    .page-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 20px 0;
    }

    /* Niveau 1 : Vidéo */
    .page-video {
        width: 100%;
        margin: 20px 0;
        aspect-ratio: 16 / 9;
        border: none;
        outline: none;
        background: transparent;
        scroll-snap-align: start;
    }

    .page-video iframe,
    .page-video video {
        width: 100%;
        height: 100%;
        border: none;
        outline: none;
        object-fit: contain;
    }

    /* Niveau 2 : Début du texte */
    .seo-text,
    .page-content {
        padding: 20px;
        scroll-snap-align: start;
    }

    /* Niveau 3 : Google Reviews */
    .reviews-section {
        padding: 0 20px;
        margin: 20px 0;
        scroll-snap-align: start;
    }

    /* Niveau 4 : Maps */
    .map-section {
        width: 100%;
        margin: 0;
        padding: 0;
        scroll-snap-align: start;
    }

    .map-container,
    .map-placeholder {
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        outline: none;
    }

    .map-iframe {
        width: 100%;
        height: 100%;
        border: none;
        outline: none;
    }

    /* Footer avec snap */
    .site-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #333;
        color: #fff;
        z-index: 1000;
        max-height: var(--footer-height);
        display: flex;
        flex-direction: column;
        scroll-snap-align: end;
        scroll-snap-stop: always;
    }

    /* Menu navigation avec snap */
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        overflow-x: auto;
        overflow-y: hidden;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;
    }

    .mobile-bottom-nav .header-icons {
        display: flex;
        gap: 12px;
        flex-shrink: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .mobile-bottom-nav .header-icons a {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .mobile-bottom-nav .header-icons a.icon-phone {
        background: rgba(76, 175, 80, 0.2);
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
    }

    .mobile-bottom-nav .header-icons a.icon-phone:hover {
        background: rgba(76, 175, 80, 0.3);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.7);
    }

    .mobile-bottom-nav .header-icons a.icon-email,
    .mobile-bottom-nav .header-icons a[class*="icon-instagram"] {
        background: rgba(0,0,0,0.05);
    }

    .mobile-bottom-nav .header-icons a svg {
        width: 20px;
        height: 20px;
        color: #333;
    }

    .mobile-bottom-nav .header-icons a.icon-phone svg {
        color: #4caf50;
    }

    .mobile-bottom-nav a:not(.header-icons a) {
        padding: 8px 16px;
        background: rgba(0,0,0,0.05);
        border-radius: 20px;
        text-decoration: none;
        color: #333;
        font-size: 0.85em;
        white-space: nowrap;
        flex-shrink: 0;
        scroll-snap-align: start;
        font-weight: normal;
    }

    .mobile-bottom-nav a:not(.header-icons a):hover {
        background: rgba(0,0,0,0.1);
    }

    /* Page active dans le menu */
    .mobile-bottom-nav a:not(.header-icons a).active {
        background: #00adef;
        color: #fff;
        font-weight: bold;
    }

    /* Footer content */
    .footer-content {
        flex: 1;
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 16px 20px;
    }

    .footer-content::-webkit-scrollbar {
        height: 4px;
    }

    .footer-content::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 999px;
    }

    .footer-block {
        flex: 0 0 auto;
        min-width: clamp(180px, 70vw, 240px);
    }



    /* Composants communs */
    .site-logo {
        max-height: 6vh;
        max-width: 100%;
        object-fit: contain;
    }

    .loading {
        text-align: center;
        padding: 40px;
        color: #999;
    }

    /* Reviews */
    .reviews-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .reviews-title {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #555;
        font-weight: 600;
    }

    .reviews-google-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: conic-gradient(#4285F4 0 25%, #DB4437 0 50%, #F4B400 0 75%, #0F9D58 0 100%);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
    }

    .reviews-title-text {
        font-size: 0.95em;
    }

    .reviews-rating {
        font-size: 0.9em;
        color: #777;
    }

    .reviews-link {
        font-size: 0.9em;
        color: #007bff;
        text-decoration: none;
    }

    .reviews-track {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .review-card {
        flex: 0 0 220px;
        max-width: 220px;
        min-height: 220px;
        background: #f8f9fa;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 12px;
        padding: 10px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .review-top {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #e5e7eb;
        color: #555;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.9em;
    }

    .meta {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .name {
        font-size: 0.8em;
        font-weight: 600;
        color: #333;
    }

    .stars {
        color: #f59e0b;
        font-size: 0.75em;
        letter-spacing: 0.6px;
    }

    .verified {
        margin-left: auto;
        font-size: 0.75em;
        color: #888;
        white-space: nowrap;
    }

    .review-text {
        font-size: 0.82em;
        color: #444;
        line-height: 1.4;
        flex: 1;
        overflow: hidden;
        line-clamp: 6;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
    }

    .date {
        display: block;
        margin-top: 8px;
        font-size: 0.75em;
        color: #888;
    }

    .footer-block h3 {
        font-size: 1em;
        font-weight: 600;
    }

    .footer-block p {
        font-size: 0.9em;
        line-height: 1.5;
    }

    .footer-block a {
        color: #fff;
        text-decoration: none;
    }

    .footer-block a:hover {
        text-decoration: underline;
    }
}
