/*
   PENSION.CSS – Domaine Équestre du Rival - VERSION AMÉLIORÉE UX
   Styles spécifiques à la page pension.html
   (En plus de common.css)
   
   Police de caractère par défaut hérité de common.css : Arial sans-serif
   
   Couleurs du site:
   Couleurs Turquoise : #20B2AA;
   Couleur Bleu : #1E3A8A;
   Couleur sable : #F5F2E8;
*/

/* ==========================================================================
   NOUVEAU : SECTION COMPARAISON
   ========================================================================== */

.comparison-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #F5F2E8 0%, #E8F4F8 100%);
    border-bottom: 2px solid #20B2AA;
}

.comparison-toggle {
    text-align: center;
    margin-bottom: 30px;
}

.comparison-btn {
    background: linear-gradient(135deg, #20B2AA 0%, #1E3A8A 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.comparison-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.comparison-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
    animation: slideDown 0.5s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #1E3A8A 0%, #20B2AA 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1E3A8A;
    background: #f8f9fa;
}

.price-small {
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.9;
}

/* Couleurs spécifiques aux colonnes */
.liberty-col { border-top: 4px solid #4ADE80; }
.paradise-col { border-top: 4px solid #60A5FA; }
.basic-col { border-top: 4px solid #F59E0B; }
.cozy-col { border-top: 4px solid #EF4444; }

/* ==========================================================================
   AMÉLIORÉ : SECTION PENSION - PRIX PLUS VISIBLES
   ========================================================================== */

.formulas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.3rem;
}

.formula-card {
    background: #edfffe;
    border-radius: 13px;
    box-shadow: 0 4px 15px 0 rgba(180, 140, 50, 0.07);
    overflow: hidden;
    border: 1.5px solid #5984ff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.formula-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.15);
}

.formula-header {
    background: #d2f7f5;
    padding: 1.1rem 1.3rem 1rem 1.3rem;
    border-bottom: 1px solid #ffe7b8;
    color: #ba861a;
    font-size: 1.21rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* NOUVEAU : Prix mis en évidence */
.formula-price-highlight {
    font-size: 2.5rem !important; /* BEAUCOUP PLUS GRAND */
    color: #1E3A8A !important; /* COULEUR CONTRASTÉE */
    font-weight: bold;
    margin-top: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid #20B2AA;
}

.formula-price-highlight span {
    font-size: 1.2rem;
    color: #666;
    font-weight: normal;
}

.formula-content {
    padding: 1.2rem 1.3rem 0.5rem 1.3rem; /* Réduit le padding bottom */
    flex: 1;
}

/* NOUVEAU : Description courte */
.formula-description-short {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

/* NOUVEAU : Détails masqués par défaut */
.formula-details {
    margin-top: 15px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* NOUVEAU : Bouton "En savoir plus" */
.see-more-btn {
    background: transparent;
    border: 2px solid #20B2AA;
    color: #20B2AA;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 0;
    width: 100%;
}

.see-more-btn:hover {
    background: #20B2AA;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.3);
}

.formula-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.1rem;
}

.formula-features li {
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 0.43em;
}

.formula-features li:before {
    content: "✔";
    color: #baa528;
    position: absolute;
    left: 0;
    top: 0.08em;
}

.formula-subtitle {
    font-size: 1.01rem;
    color: #8d6a19;
}

.formula-ideal {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F7FA 100%);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #20B2AA;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-top: 15px;
}

/* ==========================================================================
   NOUVEAU : BOUTONS CTA (CALL-TO-ACTION)
   ========================================================================== */

.formula-cta {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto; /* Pousse vers le bas */
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Couleurs spécifiques par formule */
.liberty-btn {
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    color: white;
}

.liberty-btn:hover {
    background: linear-gradient(135deg, #22C55E, #16A34A);
}

.paradise-btn {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    color: white;
}

.paradise-btn:hover {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.basic-btn {
    background: linear-gradient(135deg, #F59E0B, #EAB308);
    color: white;
}

.basic-btn:hover {
    background: linear-gradient(135deg, #EAB308, #CA8A04);
}

.cozy-btn {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.cozy-btn:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
}

/* ==========================================================================
   SECTION DEMI-PENSION - CONSERVÉE ET AMÉLIORÉE
   ========================================================================== */

.half-pension {
    padding: 80px 0;
    background: white;
    position: relative;
    z-index: 2;
}

.half-pension-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    margin-top: 50px;
    margin-bottom: 40px;
}

.half-pension-text h3 {
    color: #1E3A8A;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.half-pension-text p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.half-pension-text .formula-card {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.half-pension-text .formula-content {
    flex: 1;
}

.half-pension-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

.half-pension-cta {
    background: linear-gradient(135deg, #1E3A8A 0%, #20B2AA 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin: 40px auto 0 auto;
    max-width: 500px;
}

.half-pension-cta p {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cta-button {
    background: white;
    color: #1E3A8A;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #F5F2E8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   SECTION PRESTATIONS SUPPLÉMENTAIRES - TABLEAU RÉCAPITULATIF
   ========================================================================== */

/*
 * Tableau professionnel pour l'affichage des prestations supplémentaires
 * organisées par formule de pension avec mise en évidence des prestations
 * obligatoires en rouge et système d'avertissement intégré.
 * 
 * Fonctionnalités :
 * - Tableau responsive avec scroll horizontal sur mobile
 * - En-têtes avec dégradé bleu/turquoise cohérent avec la charte
 * - Prestations obligatoires surlignées en rouge avec bordure gauche
 * - Boîte d'avertissement avec fond jaune et bordure orange
 * - Prix alignés à droite pour faciliter la lecture
 * - Headers de catégories avec fond turquoise clair
 */

.table-container {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.prestations-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
    margin: 20px 0;
}

/* En-têtes du tableau avec dégradé cohérent avec la charte du site */
.prestations-table th {
    background: linear-gradient(135deg, #1E3A8A 0%, #20B2AA 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Cellules standard du tableau */
.prestations-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #555;
}

/* Alternance de couleurs pour faciliter la lecture */
.prestations-table tr:nth-child(even):not(.category-header):not(.obligatory) {
    background: #f8fafc;
}

/* Headers de catégories (Liberty, Paradise, Boxes) */
.category-header {
    background: #e8f4f8 !important;
    font-weight: 600;
    color: #1E3A8A !important;
    text-align: center;
}

.category-header td {
    font-size: 1.05rem;
    padding: 15px;
    border-bottom: 2px solid #20B2AA;
    font-weight: 700;
}

/* Cellules de prix alignées à droite */
.price-cell {
    font-weight: 600;
    color: #20B2AA;
    text-align: right;
    font-size: 1.05rem;
}

/* ==========================================================================
   PRESTATIONS OBLIGATOIRES - MISE EN ÉVIDENCE EN ROUGE
   ========================================================================== */

/*
 * Styles spécifiques pour les prestations obligatoires
 * (sortie quotidienne et abris nettoyé) selon les règles du domaine
 */

.obligatory {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    font-weight: 600;
}

.obligatory td {
    color: #dc2626;
    border-left: 4px solid #ef4444;
    font-weight: 600;
}

.obligatory .price-cell {
    color: #dc2626;
    font-weight: 700;
}

/* ==========================================================================
   BOÎTE D'AVERTISSEMENT - INFORMATIONS IMPORTANTES
   ========================================================================== */

/*
 * Avertissement sur les prestations obligatoires et les conditions
 * de facturation. Design avec fond jaune et bordure orange pour
 * attirer l'attention sans être trop agressif visuellement.
 */

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.warning-box h4 {
    color: #92400e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.warning-box p {
    color: #78350f;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SECTION TITLES
   ========================================================================== */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1E3A8A;
    font-weight: 700;
}

.page-intro {
    padding: 80px 0 60px 0;
    background: linear-gradient(135deg, #F5F2E8 0%, #E8F4F8 100%);
    position: relative;
    z-index: 2;
}

.page-intro h1 {
    color: #1E3A8A;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN - ADAPTATION MOBILE (AMÉLIORÉ)
   ========================================================================== */

@media (max-width: 1200px) {
    /* Formules de pension sur tablette */
    .formulas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Prestations supplémentaires */
    .services-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Tableau comparatif */
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    /* Formules de pension sur mobile */
    .formulas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Prix responsive */
    .formula-price-highlight {
        font-size: 2rem !important;
        padding: 6px 12px;
    }
    
    /* Prestations supplémentaires */
    .services-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-block {
        min-height: auto;
        padding: 20px;
    }
    
    .service-block h3 {
        min-height: auto;
        font-size: 1.2rem;
    }
    
    .service-block p {
        font-size: 1rem;
    }
    
    /* Demi-pension responsive */
    .half-pension-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .half-pension-text .formula-card,
    .half-pension-image img {
        min-height: auto;
        height: auto;
    }
    
    .half-pension-cta {
        margin: 30px auto 0 auto;
        max-width: 100%;
        padding: 20px;
    }
    
    /* Tableau comparatif mobile */
    .comparison-table {
        font-size: 0.8rem;
        overflow-x: auto;
    }
    
    .comparison-table table {
        min-width: 600px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 5px;
    }
    
    .comparison-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* CTA buttons responsive */
    .cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 2rem;
    }
    
    .page-intro h1 {
        font-size: 2rem;
    }
    /* Tableau prestations supplémentaires responsive */
    .prestations-table {
        font-size: 0.9rem;
    }
    
    .prestations-table th,
    .prestations-table td {
        padding: 10px 8px;
    }
    
    .category-header td {
        font-size: 1rem;
        padding: 12px 8px;
    }
    
    .price-cell {
        font-size: 1rem;
    }
    
    .warning-box {
        padding: 15px;
        margin: 20px 0;
    }
    
    .warning-box h4 {
        font-size: 1rem;
    }
    
    .warning-box p {
        font-size: 0.9rem;    }
}
    