/*
Theme Name: Lalanne 2027
Theme URI: https://lalanne2027.com
Author: Equipe de campagne
Description: Thème WordPress sur-mesure pour la campagne présidentielle 2027, converti du site PHP original.
Version: 1.0.0
Text Domain: lalanne2027
*/

/*
 * STYLE CSS - LALANNE 2027
 * Thème : Jaune, Orange, Blanc, Solaire
 */

:root {
    /* Palette de couleurs solaires */
    --color-yellow-light: #fff9c4;
    --color-yellow-main: #ffeb3b;
    --color-yellow-dark: #fbc02d;
    --color-orange-light: #ffe0b2;
    --color-orange-main: #ff9800;
    --color-orange-dark: #f57c00;
    --color-red-accent: #e64a19;
    
    /* Couleurs de base */
    --color-white: #ffffff;
    --color-off-white: #fdfdfc;
    --color-gray-light: #f5f5f5;
    --color-gray-text: #424242;
    --color-dark: #212121;
    
    /* Typographie */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Effets */
    --shadow-soft: 0 4px 20px rgba(255, 152, 0, 0.15);
    --shadow-hover: 0 8px 30px rgba(255, 152, 0, 0.3);
    --transition: all 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray-text);
    background-color: var(--color-off-white);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--color-orange-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-red-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--color-gray-light); }

/* ============================================================
   COMPOSANTS : BOUTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-yellow-main), var(--color-orange-main));
    color: var(--color-dark);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-orange-main), var(--color-orange-dark));
    color: var(--color-white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-dark);
    color: var(--color-yellow-main);
}

.btn-secondary:hover {
    background-color: var(--color-gray-text);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-orange-main);
    color: var(--color-orange-dark);
}

.btn-outline:hover {
    background-color: var(--color-orange-main);
    color: var(--color-white);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.top-bar {
    background-color: var(--color-orange-dark);
    color: var(--color-white);
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.main-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-sun {
    font-size: 2.5rem;
    color: var(--color-orange-main);
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--color-dark);
    line-height: 1;
    letter-spacing: 2px;
}

.logo-year {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-orange-main);
    letter-spacing: 4px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-list a {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    position: relative;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--color-orange-main);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-orange-main);
    transition: var(--transition);
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* ============================================================
   SECTION HERO (ACCUEIL)
   ============================================================ */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 249, 196, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 235, 59, 0.5);
}

.sun-icon-large {
    font-size: 4rem;
    color: var(--color-orange-main);
    margin-bottom: -10px;
    animation: spin 20s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title span {
    color: var(--color-orange-main);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-orange-dark);
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.hero-lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--color-gray-text);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   SECTIONS GÉNÉRALES
   ============================================================ */
.section-title {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.title-separator {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-yellow-main), var(--color-orange-main));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ============================================================
   SECTION DUO (CANDIDAT / SOUTIEN)
   ============================================================ */
.duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.duo-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(255, 152, 0, 0.1);
}

.duo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.duo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.duo-card:hover .duo-image {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-orange-main);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.badge-alt {
    background: var(--color-dark);
    color: var(--color-yellow-main);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.card-role {
    color: var(--color-orange-main);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card-content p:not(.card-role) {
    margin-bottom: 20px;
}

/* ============================================================
   SECTION PILIERS
   ============================================================ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--color-yellow-main);
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--color-orange-main);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-orange-main);
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ============================================================
   SECTION CTA
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-orange-main), var(--color-orange-dark));
    color: var(--color-white);
}

.cta-title {
    color: var(--color-white);
    font-size: 2.5rem;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 15px;
}

.cta-section .btn-secondary {
    background-color: var(--color-white);
    color: var(--color-orange-dark);
}

.cta-section .btn-secondary:hover {
    background-color: var(--color-yellow-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background-color: var(--color-dark);
    color: #ccc;
    position: relative;
    padding-top: 80px;
}

.footer-sun-decoration {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--color-yellow-main);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--color-orange-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-rays {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed var(--color-orange-main);
    animation: spin 30s linear infinite;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-orange-main);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-sun-footer {
    font-size: 3rem;
    color: var(--color-yellow-main);
}

.footer-logo strong {
    color: var(--color-white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: var(--color-yellow-main);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-btn {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 992px) {
    .duo-grid, .pillars-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-list {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        display: none;
    }
    .nav-list.show {
        display: flex;
    }
    .nav-list li {
        border-top: 1px solid var(--color-gray-light);
    }
    .nav-list a {
        display: block;
        padding: 15px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
    .hero-actions {
        flex-direction: column;
    }
}

/* ============================================================
   AJOUTS THÈME WORDPRESS — habillage Contact Form 7
   ============================================================ */
.wpcf7-form p { margin-bottom: 20px; }
.wpcf7-form label { display: block; margin-bottom: 5px; font-weight: 600; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}
.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 15px;
    background: var(--color-orange-main);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}
.wpcf7-form input[type="submit"]:hover { background: var(--color-orange-dark); }
.wpcf7-not-valid-tip { color: #c62828; font-size: 0.85rem; }
div.wpcf7-response-output { padding: 12px 15px; border-radius: 5px; margin-top: 15px; }
div.wpcf7-mail-sent-ok { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7 !important; }
div.wpcf7-validation-errors, div.wpcf7-acceptance-missing { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a !important; }
