/* ============================================================
   GOOGLE MAPS FICHE — STYLE GOOGLE BUSINESS PROFILE
   Inspiration : panneau latéral Google Maps 2025
   ============================================================ */

.gmf-shortcode-wrapper { max-width: 100%; position: relative; }

.gmf-fiche {
    font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    color: #202124;
    background: #fff;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(60,64,67,0.1), 0 2px 6px rgba(60,64,67,0.08);
    width: 100%;
}
.gmf-fiche * { box-sizing: border-box; }

.gmf-container {
    background: #fff;
    overflow-y: auto;
    height: 100%;
}
.gmf-panel {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
}

/* ============================================================
   EN-TÊTE
   ============================================================ */
.gmf-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 14px;
    gap: 12px;
}
.gmf-top-left { flex: 1; min-width: 0; }
.gmf-biz-name {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 4px;
    line-height: 1.25;
    color: #1f1f1f;
    letter-spacing: -0.1px;
}
.gmf-biz-subtitle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #444746;
    flex-wrap: wrap;
    line-height: 1.4;
}
.gmf-score { color: #1f1f1f; font-weight: 400; }
.gmf-stars-mini { color: #fbbc04; font-size: 14px; }
.gmf-reviews-count { color: #0b57d0; }
.gmf-dot { color: #444746; margin: 0 2px; }
.gmf-category { color: #444746; }

.gmf-top-right {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.gmf-icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.gmf-icon-btn:hover { background: #f1f3f4; }

/* ============================================================
   ONGLETS PILLS
   ============================================================ */
.gmf-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.gmf-tabs::-webkit-scrollbar { display: none; }
.gmf-tab {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    background: #e8f0fe;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.gmf-tab:hover { background: #d2e3fc; }
.gmf-tab-active {
    background: #fff;
    color: #0b57d0;
    border-color: #0b57d0;
}
.gmf-tab-active:hover { background: #f8fbff; }

.gmf-tab-content { display: none; }
.gmf-tab-content-active { display: block; }

/* ============================================================
   CARROUSEL PHOTOS
   ============================================================ */
.gmf-carousel {
    position: relative;
    margin: 0 20px 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eaed;
}
.gmf-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.gmf-carousel-track::-webkit-scrollbar { display: none; }

.gmf-carousel-slide {
    flex: 0 0 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #e8eaed;
    scroll-snap-align: start;
}

.gmf-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    padding: 0 !important;
    margin: 0;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
    line-height: 1;
    font-size: 0;
    color: #202124;
}
.gmf-carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.gmf-carousel-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    pointer-events: none;
}
.gmf-carousel-prev { left: 10px; }
.gmf-carousel-next { right: 10px; }

.gmf-carousel-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.gmf-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.gmf-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}
.gmf-carousel-dot.gmf-dot-active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.gmf-carousel-empty {
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #80868b;
    font-size: 14px;
    background: #f1f3f4;
}

/* ============================================================
   BOUTONS D'ACTION (carrousel horizontal style Google Maps)
   ============================================================ */
.gmf-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 12px 20px;
    justify-content: space-around;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.gmf-actions::-webkit-scrollbar { display: none; }
.gmf-action-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #0b57d0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.15s;
    min-width: 72px;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.gmf-action-pill:hover { background: #f1f3f4; }
.gmf-action-pill svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 14px;
    background: #e8f0fe;
    border-radius: 50%;
    box-sizing: content-box;
    transition: background 0.15s;
}
.gmf-action-pill:hover svg { background: #d2e3fc; }
.gmf-action-pill span {
    white-space: nowrap;
    line-height: 1.2;
}
.gmf-action-whatsapp { color: #1a8d3f; }
.gmf-action-whatsapp svg { background: #e6f9ed; }
.gmf-action-whatsapp:hover svg { background: #ceefd9; }

/* ============================================================
   INFO ROWS (rangées d'info)
   ============================================================ */
.gmf-info-section {
    border-top: 1px solid #e8eaed;
}
.gmf-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: #1f1f1f;
}
.gmf-info-row:hover { background: #f8f9fa; }

.gmf-info-icon-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gmf-info-icon-whatsapp { background: #e6f9ed; }

.gmf-info-text {
    flex: 1;
    font-size: 15px;
    color: #1f1f1f;
    line-height: 1.4;
    min-width: 0;
}
.gmf-info-extra { color: #444746; font-size: 14px; }
.gmf-status-open { color: #1e8e3e; font-weight: 500; }
.gmf-status-closed { color: #d93025; font-weight: 500; }
.gmf-info-rating-num { color: #1f1f1f; font-weight: 400; }
.gmf-stars-orange { color: #fbbc04; font-size: 14px; letter-spacing: -1px; }

.gmf-chevron, .gmf-chevron-right { flex-shrink: 0; }

/* Mini-carte décorative à côté de l'adresse */
.gmf-info-map-thumb {
    width: 64px;
    height: 48px;
    background:
        linear-gradient(90deg, transparent 49%, #c8c4ba 49%, #c8c4ba 51%, transparent 51%) 0 0 / 30px 30px,
        linear-gradient(0deg, transparent 49%, #c8c4ba 49%, #c8c4ba 51%, transparent 51%) 0 0 / 30px 30px,
        #e8e6e0;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.gmf-info-map-pin {
    position: absolute;
    top: 50%; left: 50%;
    width: 12px; height: 12px;
    background: #ea4335;
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -100%) rotate(-45deg);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Horaires dépliés */
.gmf-info-collapse {
    padding: 4px 20px 14px 76px;
    border-bottom: 1px solid #e8eaed;
    display: none;
}
.gmf-info-collapse.gmf-open { display: block; }
.gmf-hours-list { font-size: 14px; }
.gmf-hours-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #444746;
}
.gmf-hours-day { flex: 0 0 100px; }
.gmf-hours-line.gmf-today { color: #1f1f1f; font-weight: 500; }

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.gmf-section {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}
.gmf-section h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 14px;
    color: #202124;
}

.gmf-section-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.gmf-section-head h3 { margin: 0; }
.gmf-info-i {
    color: #5f6368;
    font-size: 13px;
    cursor: help;
}

/* ============================================================
   RÉSUMÉ AVIS GOOGLE (histogramme + note)
   ============================================================ */
.gmf-rating-summary {
    padding-bottom: 12px;
}
.gmf-rating-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}
.gmf-rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gmf-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gmf-rating-bar-label {
    font-size: 13px;
    color: #5f6368;
    width: 12px;
    text-align: center;
}
.gmf-rating-bar-track {
    flex: 1;
    height: 8px;
    background: #f1f3f4;
    border-radius: 4px;
    overflow: hidden;
}
.gmf-rating-bar-fill {
    height: 100%;
    background: #fbbc04;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.gmf-rating-score { text-align: center; flex-shrink: 0; }
.gmf-rating-score-num {
    font-family: 'Google Sans', sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #202124;
    line-height: 1;
    margin-bottom: 4px;
}
.gmf-rating-score-stars {
    color: #fbbc04;
    font-size: 14px;
    letter-spacing: 1px;
}
.gmf-rating-score-count {
    font-size: 12px;
    color: #5f6368;
    margin-top: 2px;
}

.gmf-summary-quote {
    margin: 12px 0;
    font-size: 13px;
    color: #5f6368;
    line-height: 1.5;
}

/* Bouton "Autres avis Google" */
.gmf-pill-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: #f1f3f4;
    border: none;
    border-radius: 20px;
    color: #202124;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    font-family: inherit;
    transition: background 0.15s;
}
.gmf-pill-btn-large:hover { background: #e8eaed; }

/* ============================================================
   DONNER UNE NOTE (étoiles cliquables)
   ============================================================ */
.gmf-rate-section { padding: 18px 20px; }
.gmf-rate-title {
    font-size: 14px;
    font-weight: 400;
    color: #202124;
    margin: 0 0 14px;
}
.gmf-rate-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.gmf-avatar-big {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    flex-shrink: 0;
}
.gmf-rating-input {
    display: flex;
    gap: 6px;
}
.gmf-star {
    font-size: 32px;
    color: #dadce0;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
    user-select: none;
}
.gmf-star:hover { transform: scale(1.1); }
.gmf-star.gmf-star-active,
.gmf-star.gmf-star-hover { color: #fbbc04; }

/* Formulaire d'avis (s'ouvre au clic sur une étoile) */
.gmf-review-form {
    margin-top: 16px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 12px;
}
.gmf-form-row { margin-bottom: 10px; }
.gmf-form-row input[type="text"],
.gmf-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}
.gmf-form-row input[type="text"]:focus,
.gmf-form-row textarea:focus {
    outline: none;
    border-color: #1a73e8;
}
.gmf-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.gmf-btn-primary {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}
.gmf-btn-primary:hover { background: #1557b0; }
.gmf-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.gmf-btn-secondary {
    background: transparent;
    color: #1a73e8;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}
.gmf-btn-secondary:hover { background: #f1f3f4; }

.gmf-review-message {
    margin-top: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}
.gmf-review-message.gmf-success { display: block; background: #e6f4ea; color: #1e8e3e; }
.gmf-review-message.gmf-error   { display: block; background: #fce8e6; color: #d93025; }

/* ============================================================
   LISTE DES AVIS
   ============================================================ */
.gmf-reviews-list { padding-top: 8px; }
.gmf-review {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}
.gmf-review:last-child { border-bottom: none; }
.gmf-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.gmf-review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    flex-shrink: 0;
}
.gmf-review-author {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}
.gmf-review-meta { font-size: 12px; color: #5f6368; }
.gmf-review-rating-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.gmf-review-stars {
    color: #fbbc04;
    font-size: 14px;
    letter-spacing: -1px;
}
.gmf-review-date { font-size: 12px; color: #5f6368; }
.gmf-review-text {
    font-size: 14px;
    color: #202124;
    line-height: 1.5;
}

/* ============================================================
   AFFLUENCE (en bas)
   ============================================================ */
.gmf-affluence-days {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.gmf-aff-day {
    border: 1px solid #dadce0;
    background: #fff;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    color: #5f6368;
    font-family: inherit;
}
.gmf-aff-day:hover { background: #f8f9fa; }
.gmf-aff-active {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
    font-weight: 500;
}
.gmf-aff-chart {
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 0 4px;
    border-bottom: 1px solid #e8eaed;
}
.gmf-aff-bar {
    flex: 1;
    background: #1a73e8;
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: height 0.4s ease;
}
.gmf-aff-bar.gmf-aff-bar-now { background: #ea4335; }
.gmf-aff-hours {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 11px;
    color: #5f6368;
}
.gmf-aff-now {
    font-size: 13px;
    color: #5f6368;
    text-align: center;
    margin-top: 8px;
}

/* ============================================================
   PUBLICATIONS / RÉSEAUX SOCIAUX
   ============================================================ */
.gmf-update-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    margin-bottom: 10px;
}
.gmf-update-thumb {
    width: 56px; height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff9a3c, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.gmf-update-content { flex: 1; }
.gmf-update-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.gmf-update-text { font-size: 13px; color: #5f6368; line-height: 1.4; }
.gmf-update-date { font-size: 12px; color: #5f6368; margin-top: 6px; }

.gmf-social-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #202124;
    transition: background 0.15s;
}
.gmf-social-card:hover { background: #f8f9fa; }
.gmf-social-thumb {
    width: 72px; height: 72px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f1f3f4;
    flex-shrink: 0;
}
.gmf-social-thumb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.gmf-social-platform { font-size: 13px; color: #1a73e8; font-weight: 500; margin-bottom: 4px; }
.gmf-social-text { font-size: 13px; color: #202124; line-height: 1.4; }
.gmf-social-date { font-size: 12px; color: #5f6368; margin-top: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .gmf-shortcode-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    .gmf-fiche {
        border-radius: 0;
        box-shadow: none;
    }
    .gmf-panel { max-width: 100%; }
    .gmf-biz-name { font-size: 20px; }
    .gmf-actions { padding: 4px 8px 16px; }
    .gmf-section, .gmf-rate-section { padding: 16px; }
    .gmf-info-row { padding: 14px 16px; gap: 14px; }
    .gmf-info-collapse { padding-left: 70px; padding-right: 16px; }
    .gmf-top { padding: 16px 16px 12px; }
    .gmf-tabs { padding: 0 16px 14px; }
    .gmf-carousel {
        margin: 0 0 16px;
        border-radius: 0;
    }
}
