/*
Theme Name: Ekiproxi
Theme URI: https://ekiproxi.fr
Author: Ekiproxi
Author URI: https://ekiproxi.fr
Description: Thème personnalisé pour Ekiproxi - Services d'aide à domicile et d'accompagnement de proximité
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ekiproxi
*/

/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #0D4A9B;
    --secondary-color: #083A7A;
    --accent-color: #F2B632;
    --text-dark: #5F6368;
    --text-light: #5F6368;
    --background-light: #F4EFE7;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ===== HEADER ===== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.site-logo span {
    color: var(--accent-color);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-services {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-service-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-service-item::before {
    content: "✔";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 148, 29, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 2rem;
}

.section-light {
    background-color: var(--background-light);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1rem auto;
}

/* ===== SERVICES CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    margin-top: 1rem;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===== WHY CHOOSE US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-item {
    text-align: center;
    padding: 1.5rem;
}

.why-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.why-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== PRICING ===== */
.pricing-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-highlight {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: bold;
    margin: 2rem 0;
}

.pricing-note {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* ===== ZONE D'INTERVENTION ===== */
.zone-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.zone-highlight {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-value {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: bold;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero-section {
        padding: 3rem 1rem;
    }
    
    .hero-logo {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .testimonials-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== STYLES POUR LES PAGES DE CONTENU ===== */
.page-content-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.page-content-wrapper h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.page-content-wrapper h2:first-of-type {
    margin-top: 0;
}

.page-content-wrapper h3 {
    color: var(--primary-color);
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    padding-left: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.page-content-wrapper h4 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.page-content-wrapper p {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.page-content-wrapper ul,
.page-content-wrapper ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.page-content-wrapper ul {
    list-style-type: none;
}

.page-content-wrapper ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.page-content-wrapper ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.page-content-wrapper ol {
    list-style-type: decimal;
}

.page-content-wrapper ol li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

.page-content-wrapper strong {
    color: var(--primary-color);
    font-weight: 600;
}

.page-content-wrapper a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content-wrapper a:hover {
    color: var(--accent-color);
}

.page-content-wrapper hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 2px solid var(--accent-color);
    opacity: 0.3;
}

.page-content-wrapper blockquote {
    background: #fff3e0;
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
    font-style: italic;
}

/* ===== FORMULAIRE DE CONTACT ===== */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* Espacement entre les champs */
.wpcf7 p {
    margin-bottom: 1.5rem;
}

/* Labels */
.wpcf7 label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Tous les champs input, select, textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    box-sizing: border-box;
}

/* Focus sur les champs */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #083A7A;
    box-shadow: 0 0 0 3px rgba(74, 159, 216, 0.1);
}

/* Textarea spécifique */
.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

/* Select */
.wpcf7 select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 1.2rem auto;
    padding-right: 2.5rem;
}

/* Case à cocher RGPD */
.wpcf7 .wpcf7-acceptance {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.wpcf7 .wpcf7-list-item {
    margin: 0;
}

.wpcf7 .wpcf7-list-item-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.5;
}

.wpcf7 input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.wpcf7 .wpcf7-acceptance a {
    color: #083A7A;
    text-decoration: underline;
}

/* Bouton submit */
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    background-color: #F2B632;
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 148, 29, 0.4);
}

/* Messages d'erreur de validation */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Champs invalides */
.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* Messages de réponse (succès/erreur) */
.wpcf7-response-output {
    margin: 1.5rem 0 0 0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 2px solid;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Spinner de chargement */
.wpcf7 .ajax-loader {
    display: inline-block;
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .wpcf7 input[type="submit"] {
        font-size: 1rem;
    }
}
/* ===== LOGO ===== */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

.site-logo a {
    display: flex;
    align-items: center;
}

/* ===== LOGO MOBILE ===== */
@media (max-width: 768px) {
    .logo-img {
        height: 36px;
    }

    .site-logo .custom-logo {
        height: 36px;
        width: auto;
    }

    .site-header {
        padding: 8px 16px;
    }

    .header-container {
        padding: 6px 0;
    }
}

@media (max-width: 768px) {
    .custom-logo-link img,
    .custom-logo-link {
        height: 36px !important;
        width: auto !important;
        max-height: 36px !important;
    }

    .site-logo figure,
    .site-logo .wp-custom-logo {
        margin: 0;
        padding: 0;
        line-height: 1;
    }
}

/* ===== ACCESSIBILITÉ & LISIBILITÉ ===== */

/* Taille minimale des boutons (44px = standard Apple/WCAG) */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Police de base suffisamment grande pour les personnes âgées */
body {
    font-size: 1rem; /* 16px minimum */
    line-height: 1.7;
}

/* Listes de services lisibles */
.service-list li,
.footer-section ul li,
.footer-section p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* Liens du footer — desktop : espacement normal */
.footer-section ul li a {
    font-size: 1rem;
    padding: 2px 0;
    display: inline-block;
    line-height: 1.6;
}

/* Texte du footer pas trop petit */
.footer-bottom p {
    font-size: 0.9rem;
}

/* ===== ACCESSIBILITÉ MOBILE ===== */
@media (max-width: 768px) {

    /* Boutons bien dimensionnés sur mobile */
    .btn {
        min-height: 48px;
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    /* Liens de navigation espacés */
    .main-navigation ul li a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
    }

    /* Numéro de téléphone dans le header */
    .header-phone a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        font-size: 1rem;
    }

    /* Texte corps plus grand sur mobile pour lisibilité */
    body {
        font-size: 1.05rem;
    }

    /* Items de contact cliquables facilement */
    .contact-item a,
    .contact-value a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        font-size: 1.05rem;
    }

    /* Liens footer espacés pour les doigts */
    .footer-section ul li a {
        min-height: 48px;
        line-height: 48px;
        font-size: 1rem;
    }

    /* Texte des sections lisible */
    .section-title {
        font-size: 1.6rem;
    }

    .service-card p,
    .why-item p,
    .zone-content p {
        font-size: 1rem;
        line-height: 1.8;
    }
}
