/* ========================================
   LIVRE D'OR - SECTION STATISTIQUES
======================================== */

.testimonials-stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Cartes de statistiques */
.stat-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Icône de la statistique */
.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #7ed492);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(101, 193, 120, 0.3);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Nombre de la statistique */
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* Label de la statistique */
.stat-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bouton pour ouvrir le formulaire */
.btn-add-testimonial {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.4rem;
    background: linear-gradient(135deg, var(--primary-color), #7ed492);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(101, 193, 120, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-add-testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(101, 193, 120, 0.4);
    color: white;
}

.btn-add-testimonial i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-add-testimonial:hover i {
    transform: rotate(15deg);
}

/* ========================================
   LIVRE D'OR - SECTION FORMULAIRE
======================================== */

.testimonial-form-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Wrapper du formulaire */
.form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Header du formulaire */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-title i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.form-subtitle {
    color: #888;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* Bouton fermer */
.btn-close-form {
    position: absolute;
    top: 0;
    right: 0;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-form:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.btn-close-form i {
    font-size: 1.2rem;
}

/* Labels du formulaire */
.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.required {
    color: #ff4444;
    font-weight: 700;
}

/* Champs du formulaire */
.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(101, 193, 120, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Système d'étoiles */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #e9ecef;
    transition: all 0.3s ease;
    margin: 0;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

.star-rating input[type="radio"]:checked ~ label {
    color: #ffc107;
}

/* Zone de téléchargement de photo */
.file-upload-wrapper {
    position: relative;
}

.file-upload-preview {
    margin-top: 1rem;
    display: none;
}

.file-upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-text {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

/* Messages du formulaire */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Actions du formulaire */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-cancel {
    padding: 0.85rem 2rem;
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.btn-submit {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #7ed492);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(101, 193, 120, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 193, 120, 0.4);
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(3px);
}

/* ========================================
   SECTION AFFICHAGE TÉMOIGNAGES
======================================== */

.testimonials-display-section {
    padding: 4rem 0;
    background: #ffffff;
}

/* Header de section */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #888;
    margin: 0;
}

/* Carte témoignage */
.testimonial-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Image du chien */
.testimonial-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.testimonial-card:hover .testimonial-image img {
    transform: scale(1.1);
}

/* Corps du témoignage */
.testimonial-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Étoiles de notation */
.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.testimonial-rating i {
    font-size: 1.1rem;
    color: #e9ecef;
}

.testimonial-rating i.active {
    color: #ffc107;
}

/* Nom du chien */
.testimonial-dog-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.testimonial-dog-name i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Texte du témoignage */
.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex: 1;
    text-align: center;
}

/* Footer témoignage */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.testimonial-author i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.testimonial-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #888;
}

.testimonial-date i {
    font-size: 0.8rem;
}

/* Message aucun témoignage */
.no-testimonials {
    text-align: center;
    padding: 4rem 2rem;
}

.no-testimonials-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.no-testimonials h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.no-testimonials p {
    font-size: 1rem;
    color: #888;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------------------------------------------------------------------- */

/* ========================================
   RESPONSIVE - TABLETTES (768px - 991px)
======================================== */

@media (max-width: 991px) {
    .testimonials-stats-section {
        padding: 3rem 0;
    }

    .stat-card {
        padding: 2rem 1.25rem;
    }

    .stat-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1.25rem;
    }

    .stat-icon i {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .btn-add-testimonial {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .testimonial-form-section {
        padding: 3rem 0;
    }

    .form-wrapper {
        padding: 2rem;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .form-title i {
        font-size: 1.4rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
======================================== */

@media (max-width: 768px) {
    .testimonials-stats-section {
        padding: 2rem 0;
    }

    .stat-card {
        padding: 1.25rem 1rem;
        border-radius: 15px;
        margin-bottom: 0.75rem;
    }

    .stat-card:hover {
        transform: translateY(-5px);
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.75rem;
    }

    .stat-icon i {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .btn-add-testimonial {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn-add-testimonial i {
        font-size: 0.95rem;
    }

    .testimonial-form-section {
        padding: 2rem 0;
    }

    .form-wrapper {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .form-header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .form-title {
        font-size: 1.15rem;
        flex-direction: column;
        gap: 0.35rem;
    }

    .form-title i {
        font-size: 1rem;
    }

    .form-subtitle {
        font-size: 0.8rem;
    }

    .btn-close-form {
        width: 32px;
        height: 32px;
    }

    .btn-close-form i {
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .form-label i {
        font-size: 0.75rem;
    }

    .form-control {
        padding: 0.6rem 0.85rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .star-rating label {
        font-size: 1.4rem;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 0.6rem;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   RESPONSIVE - PETITS MOBILES (max-width: 480px)
======================================== */

@media (max-width: 480px) {
    .testimonials-stats-section {
        padding: 1.5rem 0;
    }

    .stat-card {
        padding: 1rem 0.75rem;
        border-radius: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.6rem;
    }

    .stat-icon i {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }

    .btn-add-testimonial {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .btn-add-testimonial i {
        font-size: 0.85rem;
    }

    .testimonial-form-section {
        padding: 1.5rem 0;
    }

    .form-wrapper {
        padding: 1rem;
        border-radius: 12px;
    }

    .form-header {
        margin-bottom: 1rem;
        padding-bottom: 0.85rem;
    }

    .form-title {
        font-size: 1rem;
        gap: 0.3rem;
    }

    .form-title i {
        font-size: 0.9rem;
    }

    .form-subtitle {
        font-size: 0.75rem;
    }

    .btn-close-form {
        width: 28px;
        height: 28px;
        top: -5px;
        right: -5px;
    }

    .btn-close-form i {
        font-size: 0.85rem;
    }

    .form-label {
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .form-label i {
        font-size: 0.7rem;
    }

    .form-control {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .star-rating {
        gap: 0.3rem;
    }

    .star-rating label {
        font-size: 1.2rem;
    }

    .file-upload-preview img {
        max-width: 120px;
        max-height: 120px;
    }

    .form-text {
        font-size: 0.7rem;
    }

    .form-message {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .form-actions {
        gap: 0.5rem;
        margin-top: 0.65rem;
    }

    .btn-cancel,
    .btn-submit {
        padding: 0.6rem 1.15rem;
        font-size: 0.75rem;
    }
}


/* ==================================================
   RESPONSIVE TEMOIGNAGES - TABLETTES (768px - 991px)
===================================================== */

@media (max-width: 991px) {
    .testimonials-display-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .testimonial-image {
        height: 220px;
    }

    .testimonial-dog-name {
        font-size: 1.2rem;
    }
}


/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
======================================== */

@media (max-width: 768px) {
    .testimonials-display-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .testimonial-image {
        height: 260px;
    }

    .testimonial-dog-name {
        font-size: 1.1rem;
    }

    .testimonial-text {
        font-size: 0.8rem;
    }

    .testimonial-author {
        font-size: 0.75rem;
    }

    .testimonial-date {
        font-size: 0.75rem;
    }
}

/* ========================================
   RESPONSIVE - PETITS MOBILES (max-width: 480px)
======================================== */

@media (max-width: 480px) {
    .testimonials-display-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .testimonial-image {
        height: 240px;
    }

    .testimonial-dog-name {
        font-size: 1.1rem;
    }

    .testimonial-text {
        font-size: 0.8rem;
    }

    .testimonial-author {
        font-size: 0.75rem;
    }

    .testimonial-date {
        font-size: 0.75rem;
    }
}