/*
 Theme Name: Unis pour Saint-André - Blankslate Child
 Theme URI: https://exemple.com
 Description: Child theme Blankslate pour la campagne "Unis pour Saint-André"
 Author: Toi :)
 Template: blankslate
 Version: 1.0
*/

/* --- CHARTE GRAPHIQUE --- */
:root {
    --bleu-fonce: #3d5a7a;
    --bleu-moyen: #5b7fa8;
    --bleu-clair: #e8f0f7;
    --fond-gris: #f4f6f8;
    --fond-blanc: #ffffff;
    --texte-gris: #4a5568;
    --texte-sombre: #2d3748;
    --fb-blue: #1877F2;
}

/* On limite le style à la page d'accueil via .upsa-home pour éviter les conflits */
.upsa-home {
    background-color: #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--texte-gris);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.upsa-home img { max-width: 100%; height: auto; display: block; }
.upsa-home a { text-decoration: none; color: inherit; transition: 0.3s; }
.upsa-home strong { font-weight: 700; }

/* --- CONTENEUR PRINCIPAL --- */
.upsa-home .site-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    background-color: var(--fond-blanc);
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* --- HEADER --- */
.upsa-home .header {
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: var(--fond-blanc);
}

.upsa-home .logo-img { width: 120px; flex-shrink: 0; }

.upsa-home .header-titles { display: flex; flex-direction: column; justify-content: center; }

.upsa-home .header-titles h1 {
    font-size: 2rem;
    color: var(--bleu-fonce);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 5px;
}

.upsa-home .header-titles h2 {
    font-size: 1.1rem;
    color: var(--bleu-moyen);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- LAYOUT GRILLE --- */
.upsa-home .row-section { display: flex; align-items: stretch; }
.upsa-home .col-half { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* --- TYPOGRAPHIE SECTIONS --- */
.upsa-home h3.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    line-height: 1.3;
    position: relative;
}

.upsa-home p { margin-bottom: 1.1rem; text-align: justify; }

/* --- SECTION 1 : UNION (BLEU) --- */
.upsa-home .bg-blue {
    background-color: var(--bleu-moyen);
    color: #ffffff;
    padding: 50px;
    position: relative;
}
.upsa-home .bg-blue p { opacity: 0.95; font-size: 0.95rem; }
.upsa-home .bg-blue::before {
    content: ''; position: absolute; top: 35px; left: 50px; width: 40px; height: 3px; background-color: rgba(255,255,255,0.6);
}
.upsa-home .bg-blue h3 { margin-top: 10px; }

/* --- SECTION 2 : ENGAGEMENT --- */
.upsa-home .padding-std { padding: 50px; }
.upsa-home .title-deco-blue { color: var(--bleu-fonce); position: relative; }
.upsa-home .title-deco-blue::before {
    content: ''; position: absolute; top: -20px; left: 0; width: 40px; height: 3px; background-color: var(--bleu-moyen);
}
.upsa-home .quote {
    font-family: Georgia, serif; font-style: italic; color: var(--bleu-fonce); font-weight: 600;
    margin-top: 10px; border-left: 3px solid var(--bleu-moyen); padding-left: 15px;
}
.upsa-home .photo-block img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upsa-home .trio-container { padding: 20px 20px 20px 0; }
.upsa-home .trio-img { border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* --- SECTION 3 : LA LETTRE --- */
.upsa-home .letter-section { background-color: var(--fond-gris); padding: 70px 20px; }
.upsa-home .letter-content { max-width: 800px; margin: 0 auto; }
.upsa-home .letter-title { text-align: center; color: var(--bleu-fonce); font-size: 1.4rem; font-weight: 800; margin-bottom: 35px; }
.upsa-home .letter-text p { font-size: 1.05rem; color: #333; line-height: 1.7; }
.upsa-home .highlight { color: var(--bleu-fonce); font-weight: 700; }

/* --- SECTION 4 : OBJECTIFS --- */
.upsa-home .objectives-wrapper { background: var(--fond-blanc); padding: 60px 50px; }
.upsa-home .objectives-list { list-style: none; margin: 25px 0; padding-left: 0; }
.upsa-home .objectives-list li { position: relative; padding-left: 25px; margin-bottom: 12px; font-size: 1.05rem; color: var(--texte-gris); }
.upsa-home .objectives-list li::before {
    content: '•'; color: var(--bleu-moyen); font-size: 2rem; line-height: 1rem; position: absolute; left: 0; top: 5px;
}
.upsa-home .conclusion { margin-top: 25px; font-weight: 500; color: var(--texte-sombre); }

/* --- CTA FACEBOOK --- */
.upsa-home .cta-section {
    background-color: var(--bleu-fonce);
    color: white;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.upsa-home .cta-section h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.upsa-home .cta-section p {
    opacity: 0.9;
    text-align: center;
    margin-bottom: 25px;
    max-width: 600px;
}

.upsa-home .btn-fb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--fb-blue);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.upsa-home .btn-fb:hover {
    transform: translateY(-2px);
    background-color: #166fe5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* --- FOOTER --- */
.upsa-home .footer-bottom {
    background-color: #2c3e50;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .upsa-home .site-wrapper { width: 100%; box-shadow: none; margin: 0; }
    .upsa-home .header { flex-direction: column; text-align: center; padding: 30px 20px; }
    .upsa-home .header-titles h1 { font-size: 1.7rem; }
    .upsa-home .row-section { flex-direction: column; }
    .upsa-home .bg-blue, 
    .upsa-home .padding-std, 
    .upsa-home .letter-section, 
    .upsa-home .objectives-wrapper, 
    .upsa-home .cta-section { padding: 40px 25px; }
    .upsa-home .trio-container { padding: 0 25px 40px 25px; }

    .upsa-home .row-section.union-section .col-image { order: 1; }
    .upsa-home .row-section.union-section .col-text { order: 2; }
    .upsa-home .row-section.engagement-section .col-text { order: 1; padding-bottom: 10px; }
    .upsa-home .row-section.engagement-section .col-image { order: 2; }
    .upsa-home .row-section.objectives-row .col-text { order: 1; }
    .upsa-home .row-section.objectives-row .col-image { order: 2; padding-top: 0; }

    .upsa-home .bg-blue::before { left: 25px; }
    .upsa-home .title-deco-blue::before { top: -15px; }
}

/* Fix margins blankslate */
body{margin:0!important;padding:0!important;background:#eaeaea;}
.upsa-home .site-wrapper{margin-top:0!important;margin-bottom:0!important;}
