/* ==========================================================================
   Google Reviews — Carrousel adaptatif
   - Avec photo : split gauche (texte) / droite (photo)
   - Sans photo : pleine largeur
   ========================================================================== */

:root {
    --gr-color-title:       #1b4d1e;
    --gr-color-subtitle:    #555;
    --gr-color-star-filled: #f5a623;
    --gr-color-star-empty:  #ddd;
    --gr-color-text:        #333;
    --gr-color-author:      #222;
    --gr-color-card-bg:     #f7f7f7;
    --gr-color-arrow:       #1b4d1e;
    --gr-radius-card:       10px;
    --gr-spacing-section:   180px 0;
}

.gr-section { 
	padding-top: 40px;
	padding-bottom: 180px;
}

.gr-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* --- En-tête --- */
.gr-header { text-align: center; margin-bottom: 40px; }

.gr-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--gr-color-title);
    letter-spacing: 0.03em;
    margin: 0 0 8px;
}

.gr-subtitle {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: var(--gr-color-subtitle);
    letter-spacing: 0.12em;
    margin: 0;
}

/* --- Wrapper & piste --- */
.gr-carousel-wrapper { position: relative; display: flex; align-items: center; gap: 30px; margin-top: 4rem;}
.gr-carousel { flex: 1; overflow: hidden; }
.gr-track { display: flex; transition: transform 0.45s cubic-bezier(.4,0,.2,1); will-change: transform; }

/* --- Slide base --- */
.gr-slide {
    flex: 0 0 100%;
    display: flex;
    background: var(--gr-color-card-bg);
    border-radius: var(--gr-radius-card);
    overflow: hidden;
    height: 380px; /* hauteur fixe — photo cropée au centre */
}

/* --- Slide AVEC photo : split 55/45 --- */
.gr-slide--with-photo .gr-slide__content {
    flex: 0 0 55%;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    overflow: hidden; /* évite que le texte dépasse */
}

.gr-slide__photo {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.gr-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* crop automatique */
    object-position: center; /* cadré sur le milieu */
    display: block;
    transition: transform 0.4s ease;
}

.gr-slide--with-photo:hover .gr-photo { transform: scale(1.03); }

/* --- Slide SANS photo : désactivé (filtré côté template) --- */

/* --- Étoiles --- */
.gr-stars { display: flex; gap: 4px; }
.gr-star { font-size: 3.5rem; line-height: 1; color: var(--gr-color-star-empty); }
.gr-star--filled { color: var(--gr-color-star-filled); }

/* --- Texte avis --- */
.gr-review-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--gr-color-text);
    margin: 0;
    padding: 0;
    border: none;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Auteur --- */
.gr-author { display: flex; align-items: center; margin-top: 4px; }
.gr-author__name { font-size: 0.85rem; font-weight: 700; color: var(--gr-color-author); letter-spacing: 0.05em; }

/* --- Flèches --- */
.gr-arrow {
    background: none; border: none; cursor: pointer;
    font-size: 4rem; color: var(--gr-color-arrow);
    line-height: 1; padding: 8px 12px; flex-shrink: 0;
    transition: opacity 0.2s, transform 0.15s; opacity: 0.6;
    font-weight: 300;
}
.gr-arrow:hover { opacity: 1; transform: scale(1.1); }
.gr-arrow:disabled { opacity: 0.15; cursor: not-allowed; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .gr-slide--with-photo .gr-slide__content { padding: 28px 32px; }
    .gr-slide { height: 320px; }
}

@media (max-width: 680px) {
    .gr-slide--with-photo { flex-direction: column; height: auto; }
    .gr-slide--with-photo .gr-slide__content { flex: 0 0 auto; padding: 28px 24px 20px; }
    .gr-slide__photo { flex: 0 0 220px; height: 220px; }
    .gr-arrow { font-size: 2.8rem; padding: 8px 6px; }
    .gr-review-text { -webkit-line-clamp: 4; }
}

@media (max-width: 480px) {
    .gr-carousel-wrapper { gap: 2px; }
    .gr-slide__photo { flex: 0 0 180px; height: 180px; }
    .gr-star { font-size: 1.4rem; }
}
