/*
Theme Name: FéNiX Gutenberg
Theme URI: https://fenix-online.fr
Author: Nicolas Feschotte
Author URI: https://fenix-online.fr
Description: ThÃ¨me WordPress avec blocs Gutenberg administrables pour FÃ©NiX - Conseils et solutions informatiques pour TPE & PME
Version: 1.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fenix
*/

/* =====================================================
   VARIABLES CSS
   ===================================================== */
:root {
    --fenix-gold: #EBBB09;
    --fenix-dark-gray: #2E2A30;
    --fenix-light-gray: #F8F9FA;
    --fenix-white: #FFFFFF;
    --fenix-text-primary: #2E2A30;
    --fenix-text-secondary: #6C757D;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--fenix-text-primary);
    line-height: 1.7;
    background: var(--fenix-white);
}

.site-content {
    overflow-x: hidden;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    background: var(--fenix-white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.custom-logo {
    height: 80px; /* AugmentÃ© de 30% (60px â†’ 80px) */
    width: auto;
}

.custom-logo-link {
    display: block;
}

.header-cta {
    background: var(--fenix-gold);
    color: var(--fenix-dark-gray);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 187, 9, 0.3);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 187, 9, 0.4);
    color: var(--fenix-dark-gray);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--fenix-light-gray);
}

/* Hero Section */
.hero {
    padding: 6rem 0 7rem !important;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--fenix-dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.375rem;
    color: var(--fenix-text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero .intro-text {
    font-size: 1.125rem;
    color: var(--fenix-text-primary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* =====================================================
   BLOCS GUTENBERG PERSONNALISÃ‰S
   ===================================================== */

/* Section title */
.section-title {
    font-size: 2.25rem !important;
    font-weight: 700;
    color: var(--fenix-dark-gray);
    margin-bottom: 3rem;
    text-align: center;
}

/* Checklist style */
.checklist-item {
    font-size: 1.125rem;
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    color: var(--fenix-text-primary);
    list-style: none;
}

.checklist-item:before {
    content: "»";
    position: absolute;
    left: 0;
    color: var(--fenix-gold);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Cards - Services, DiffÃ©renciateurs, RÃ©fÃ©rences */
.wp-block-group.card {
    background: var(--fenix-white);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.wp-block-group.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wp-block-group.card-with-border {
    border-left: 4px solid var(--fenix-gold);
}

/* Service icon */
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
}

/* Step numbers */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--fenix-gold);
    color: var(--fenix-dark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

/* =====================================================
   BOUTONS
   ===================================================== */
.wp-block-button__link {
    background: var(--fenix-gold) !important;
    color: var(--fenix-dark-gray) !important;
    padding: 1.125rem 3rem !important;
    border-radius: 50px !important;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(235, 187, 9, 0.3);
    text-decoration: none;
}

.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(235, 187, 9, 0.4);
}

/* =====================================================
   GRILLES
   ===================================================== */
.wp-block-columns.services-grid,
.wp-block-columns.references-grid,
.wp-block-columns.diff-grid {
    gap: 2.5rem;
    margin-top: 3rem;
}

/* =====================================================
   SECTION RÃ‰FÃ‰RENCES - AmÃ©lioration avec logos
   ===================================================== */
.ref-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Style pour les logos dans les rÃ©fÃ©rences */
.ref-card img {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.ref-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fenix-dark-gray);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.ref-meta {
    font-size: 0.9rem;
    color: var(--fenix-text-secondary);
    margin-bottom: 1rem;
}

.ref-description {
    font-size: 1rem;
    color: var(--fenix-text-primary);
    line-height: 1.6;
}

.ref-conclusion {
    text-align: center;
    font-size: 1.125rem;
    color: var(--fenix-text-secondary);
    margin-top: 2.5rem;
    font-style: italic;
}

/* AmÃ©liorer les cartes avec bordure */
.card-with-border {
    border-left: 4px solid var(--fenix-gold);
    padding-left: 2rem;
}

/* =====================================================
   SECTION CONTACT
   ===================================================== */
.contact-section {
    text-align: center;
    padding: 5rem 0 !important;
    background: linear-gradient(135deg, var(--fenix-dark-gray) 0%, #4a4550 100%);
    color: var(--fenix-white);
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--fenix-white) !important;
}

.contact-section p {
    color: var(--fenix-white);
    opacity: 0.95;
}

.contact-section .wp-block-button__link {
    margin: 2rem 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--fenix-dark-gray);
    color: var(--fenix-white);
    padding: 2rem 0;
    text-align: center;
}

.site-footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.site-footer a {
    color: var(--fenix-gold);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* =====================================================
   UTILITAIRES
   ===================================================== */
.text-gold {
    color: var(--fenix-gold) !important;
}

.bg-gold {
    background-color: var(--fenix-gold) !important;
}

.text-center {
    text-align: center !important;
}

.mb-small {
    margin-bottom: 1rem !important;
}

.mb-medium {
    margin-bottom: 2rem !important;
}

.mb-large {
    margin-bottom: 3rem !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.125rem;
    }
    
    .hero .intro-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .header-content {
        padding: 0 1.5rem;
    }
    
    .header-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .custom-logo {
        height: 65px; /* AugmentÃ© proportionnellement */
    }
    
    .wp-block-group.card {
        padding: 1.5rem;
    }
    
    .wp-block-columns {
        gap: 1.5rem !important;
    }
    
    /* FIX MARGES MOBILE - Ã‰viter le contenu collÃ© aux bords */
    .wp-block-group.alignfull > .wp-block-group,
    .wp-block-group.alignfull .wp-block-group.alignwide {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Assurer des marges pour tous les contenus */
    .hero,
    .section,
    .contact-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Marges pour les textes et titres */
    .wp-block-heading,
    .wp-block-paragraph,
    .wp-block-list,
    .wp-block-buttons {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* RÃ©fÃ©rences - Logos plus petits sur mobile */
    .ref-card img {
        max-width: 150px;
        max-height: 60px;
    }
    
    /* Cartes rÃ©fÃ©rences - Padding rÃ©duit sur mobile */
    .card-with-border {
        padding-left: 1.25rem;
    }
    
    .ref-name {
        font-size: 1.125rem;
    }
    
    .ref-meta {
        font-size: 0.85rem;
    }
}

/* =====================================================
   ALIGNEMENTS GUTENBERG
   ===================================================== */
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* =====================================================
   STYLES ADDITIONNELS POUR L'Ã‰DITEUR
   ===================================================== */
.editor-styles-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
