
/* Styles pour le site public */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 68px;
    --footer-height: calc((20vh + 50px) * 1.25);
    --footer-padding-bottom: 20px;
    --video-visible-ratio: 0.9; /* 90% de l'espace disponible */
    --video-gap-ratio: calc((1 - var(--video-visible-ratio)) / 2);
}

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;
}

/* Header fixe */
.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;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.header-right {
    display: none;
}

.site-logo {
    max-height: 5vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: 20px;
}

.header-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.header-icons a.icon-phone,
.header-icons a.icon-email {
    width: 45px;
    height: 45px;
    font-size: 1.4em;
}

.header-icons a:hover {
    background: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.site-navigation {
    margin-left: auto;
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.site-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.site-navigation a:hover {
    color: #007bff;
}

a,
a:visited {
    color: #333;
}

a:hover {
    color: #007bff;
}

/* Contenu principal */
.site-content {
    margin-top: var(--header-height);
    padding: 0 20px;
    padding-bottom: calc(var(--footer-height) + 30px);
    min-height: calc(100vh - var(--header-height));
}

.site-content::after {
    content: "";
    display: block;
    height: max(var(--footer-height), 200px);
    pointer-events: none;
}

.page-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    --available-height: calc(100vh - var(--header-height) - var(--footer-height));
    min-height: var(--available-height);
}

.page-video {
    width: 100%;
    --video-height: calc(var(--available-height) * var(--video-visible-ratio));
    margin: calc(var(--available-height) * var(--video-gap-ratio)) auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--video-height);
    aspect-ratio: 16 / 9;
    max-width: 100%;
    min-height: 0;
}

.page-video iframe,
.page-video video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
    object-fit: contain;
    aspect-ratio: 16 / 9;
}

.seo-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: clamp(24px, 5vw, 40px) auto 0;
    padding: 0 20px;
    text-align: left;
}

.page-content {
    max-width: 800px;
    margin: clamp(24px, 5vw, 40px) auto 0;
    padding: 20px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
}

/* Avis Google - galerie discrète */
.reviews-section {
    max-width: 1200px;
    margin: clamp(24px, 5vw, 40px) auto 0;
    padding: 0 20px;
}

.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-link:hover {
    text-decoration: underline;
}

.reviews-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.reviews-track::-webkit-scrollbar {
    height: 6px;
}

.reviews-track::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.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;
}

.map-section {
    max-width: 1200px;
    margin: clamp(24px, 6vw, 48px) auto;
    padding: 0 20px 20px;
}

.map-container,
.map-placeholder {
    width: 100%;
    height: 50vh;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    gap: 8px;
}

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

.map-placeholder p {
    color: #555;
    font-size: 0.9em;
}

/* Footer desktop */
.site-footer {
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 5px 20px var(--footer-padding-bottom);
    z-index: 1000;
    max-height: 20vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: fixed;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: flex-start;
    gap: 25px;
    text-align: left;
}

.footer-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

.footer-block.contact-block {
    gap: 2px;
}

.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;
}

.footer-map-container {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
    border-radius: 4px;
    overflow: hidden;
}

.footer-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.footer-credit {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 50px);
    text-align: center;
    font-size: 0.75em;
    opacity: 0.2;
    border-top: 0px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .header-top {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .site-logo {
        max-height: 5vh;
    }
    
    .header-icons {
        display: flex;
        gap: 12px;
    }
    
    .site-navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .site-navigation a {
        font-size: 0.78em;
        padding: 4px 8px;
        border-radius: 4px;
        white-space: nowrap;
        background: rgba(0, 0, 0, 0.05);
    }
    
    :root {
        --header-height: 10vh;
        --footer-height: calc((20vh + 14px) * 1.25);
        --footer-padding-bottom: 20px;
        --video-visible-ratio: 0.9;
        --video-gap-ratio: calc((1 - var(--video-visible-ratio)) / 2);
    }
    
    .site-content {
        margin-top: var(--header-height);
        padding: 0;
        padding-bottom: calc(var(--footer-height) + 30px);
    }
    
    .page-video {
        margin-left: 0;
        margin-right: 0;
    }
    
    .seo-text,
    .page-content {
        padding-left: 20px;
        padding-right: 20px;
        text-align: left;
    }
    
    .site-footer {
        max-height: 30vh;
        padding: 20px 20px var(--footer-padding-bottom);
        position: fixed;
    }
    
    .footer-content {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        min-width: 0;
        width: 100%;
        overflow-x: auto;
        padding-right: 30px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

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

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

    .footer-block,
    .footer-map-container,
    .footer-map-link {
        flex: 0 0 auto;
        min-width: clamp(180px, 70vw, 240px);
        scroll-snap-align: start;
    }

    .site-footer::before,
    .site-footer::after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 34px;
        background: rgba(0,0,0,0.0);
        pointer-events: none;
    }

    .site-footer::before {
        content: '‹';
        left: 6px;
        font-size: 1.2em;
        color: rgba(255,255,255,0.45);
    }

    .site-footer::after {
        content: '›';
        right: 6px;
        font-size: 1.2em;
        color: rgba(255,255,255,0.45);
    }
}

@media (min-width: 769px) {
    .header-content {
        flex-direction: row;
    }
    
    .header-top {
        flex-direction: row;
    }
    
    .site-content {
        padding: 0 20px;
        padding-bottom: calc(var(--footer-height) + 30px);
    }
}
