/* css/index.css */

/* ==========================================================================
   1. RÉINITIALISATION ET STYLES GLOBAUX
   ========================================================================== */
body {
    background: #f4f6f8;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d3748;
    margin: 0;
    padding: 0;
}

/* Section Hero (Bannière de présentation) */
.hero-section {
    background: linear-gradient(rgba(26, 54, 93, 0.75), rgba(44, 82, 130, 0.85)), 
                url('../include/photos/home.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 38px;
    margin: 0 0 10px 0;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content .altitude {
    display: inline-block;
    background: #d69e2e;
    color: #1a1a1a;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ==========================================================================
   2. STRUCTURE DE LA PAGE D'ACCUEIL (DEUX COLONNES)
   ========================================================================== */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

@media (max-width: 950px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .sidebar-right {
        position: static !important;
    }
}

.left-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
    position: sticky;
    top: 90px;
}

.info-card, .prices-section, .sidebar-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.info-card h2, .prices-section h2, .sidebar-card h2 {
    color: #1a365d;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 3px solid #3182ce;
    padding-bottom: 6px;
    display: inline-block;
}

.info-card p, .prices-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
}

.geo-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-top: 25px; 
}

.geo-item { 
    background: #f8fafc; 
    padding: 15px; 
    border-radius: 8px; 
    border-left: 4px solid #3182ce; 
}

.geo-item h3 { 
    margin: 0 0 5px 0; 
    font-size: 14px; 
    color: #1a365d; 
    text-transform: uppercase; 
}

.price-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-top: 20px; 
}

@media (max-width: 600px) {
    .price-grid { grid-template-columns: 1fr; }
}

.price-box { 
    background: #f8fafc; 
    border-radius: 8px; 
    padding: 15px; 
    border: 1px solid #e2e8f0; 
}

.price-box.family { border-top: 4px solid #d69e2e; }
.price-box.public { border-top: 4px solid #4a5568; }

.price-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 6px 0; 
    font-size: 14px; 
    border-bottom: 1px dashed #e2e8f0; 
}

.price-row:last-child { border-bottom: none; }
.price-alert-box { 
    font-size: 13px; 
    color: #718096; 
    margin-top: 15px; 
    background: #fffaf0; 
    padding: 10px; 
    border-radius: 6px; 
    border: 1px solid #feebc8; 
}

.recherche-bloc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.recherche-bloc label {
    font-size: 11px;
    font-weight: bold;
    color: #4a5568;
    text-transform: uppercase;
}

.recherche-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

/* ==========================================================================
   3. COMPACTAGE DU COMITÉ EN LIGNE
   ========================================================================== */
.comite-membre {
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 12px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left !important;
}

.comite-membre[style*="#1a365d"], .comite-membre[style*="1a365d"] { border-left: 4px solid #1a365d; }
.comite-membre[style*="#b83280"], .comite-membre[style*="b83280"] { border-left: 4px solid #b83280; }
.comite-membre[style*="#dd6b20"], .comite-membre[style*="dd6b20"] { border-left: 4px solid #dd6b20; }
.comite-membre[style*="#718096"], .comite-membre[style*="718096"] { border-left: 4px solid #718096; }

.comite-avatar {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px !important;
    flex-shrink: 0;
}

.comite-infos-droite {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.comite-ligne-nom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.comite-membre h3 {
    margin: 0 !important;
    font-size: 15px !important;
    color: #1a365d;
    font-weight: bold;
}

.comite-badge {
    display: inline-block;
    font-size: 9px !important;
    font-weight: bold;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comite-meta-localite {
    margin: 0 !important;
    font-size: 11px !important;
    color: #718096;
    font-style: italic;
}

.comite-contacts-ligne {
    margin-top: 2px;
    font-size: 12px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comite-contacts-ligne a {
    color: #3182ce;
    text-decoration: none;
}

/* ==========================================================================
   4. SÉCURISATION DU PORTAIL DE RECHERCHE DÉDIÉ
   ========================================================================== */
.body-portail-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-centered {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.portail-conteneur {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
}

.portail-icone {
    font-size: 50px;
    margin-bottom: 15px;
}

.portail-conteneur h1 {
    font-size: 22px;
    color: #1a365d;
    margin: 0 0 10px 0;
    font-weight: bold;
    border-bottom: none;
}

.portail-conteneur p {
    font-size: 14px;
    color: #718096;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* ==========================================================================
   5. AMÉLIORATIONS UI "PREMIUM" POUR FORMULAIRES
   ========================================================================== */

/* Effet de transition fluide sur les inputs */
.recherche-input {
    transition: all 0.35s ease !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e0 !important;
}

/* Effet au focus (illumination et soulèvement) */
.recherche-input:focus {
    background-color: #ffffff !important;
    border-color: #3182ce !important;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15) !important;
    transform: translateY(-1px);
    outline: none;
}

/* Bouton avec dégradé et interaction dynamique */
.btn-save-classy {
    background: linear-gradient(135deg, #3182ce, #2b6cb0) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.2) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-save-classy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(49, 130, 206, 0.3) !important;
    filter: brightness(1.05);
}

.btn-save-classy:active {
    transform: translateY(0);
}

/* Animation d'apparition douce pour les cartes */
.portail-conteneur {
    animation: fadeInSlide 0.6s ease-out forwards;
}

@keyframes fadeInSlide {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 580px; /* Aligné sur la largeur de ton portail-conteneur */
    margin-left: auto;
    margin-right: auto;
}



