/*
Theme Name: RC Informatique
Theme URI: https://rc-informatique.be
Author: RC Informatique
Author URI: https://rc-informatique.be
Description: Thème WordPress professionnel pour RC Informatique - Solutions informatiques
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rc-informatique
*/

/* ========================================
   COULEURS PRIMAIRES - ORANGE #ff7900
   ======================================== */

.bg-primary {
    background-color: #ff7900 !important;
}

.bg-primary\/10 {
    background-color: rgba(255, 121, 0, 0.1) !important;
}

.bg-primary\/90 {
    background-color: rgba(255, 121, 0, 0.9) !important;
}

.hover\:bg-primary\/90:hover {
    background-color: rgba(255, 121, 0, 0.9) !important;
}

.hover\:bg-primary\/10:hover {
    background-color: rgba(255, 121, 0, 0.1) !important;
}

.group:hover .group-hover\:bg-primary\/10 {
    background-color: rgba(255, 121, 0, 0.1) !important;
}

.text-primary {
    color: #ff7900 !important;
}

.hover\:text-primary:hover {
    color: #ff7900 !important;
}

.border-primary {
    border-color: #ff7900 !important;
}

.bg-secondary {
    background-color: #ffb74d !important;
}

.text-secondary {
    color: #ffb74d !important;
}

.bg-green-600 {
    background-color: #16a34a !important;
}

.hover\:bg-green-700:hover {
    background-color: #15803d !important;
}

/* ========================================
   STYLES DE BASE
   ======================================== */

body {
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

* {
    -webkit-touch-callout: none;
}

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

/* Menu mobile */
.mobile-menu {
    width: 80% !important;
    max-width: 280px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Hero section - Desktop par défaut */
.hero-section {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.95) 60%, rgba(255, 255, 255, 0.8) 100%), url('https://readdy.ai/api/search-image?query=Professional%20IT%20services%20office%20with%20modern%20computers%2C%20servers%20and%20networking%20equipment.%20Clean%2C%20bright%20workspace%20with%20blue%20accents.%20Professional%20environment%20with%20tech%20professionals%20working.%20High-quality%20professional%20photo%20with%20soft%20lighting%20and%20clear%20details.&width=1920&height=1080&seq=1&orientation=landscape');
    background-size: cover;
    background-position: center right;
    min-height: auto;
}

/* Service cards */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(255, 121, 0, 0.15), 0 10px 10px -5px rgba(255, 121, 0, 0.08);
}

/* Form inputs */
input:focus, textarea:focus {
    outline: none;
    border-color: #ff7900;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Rounded button */
.\!rounded-button {
    border-radius: 8px !important;
}

/* Line clamp pour description produit */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Aspect ratio pour images produits */
.aspect-video {
    aspect-ratio: 16 / 10;
}

/* ========================================
   BOUTONS APPEL BOUTIQUE
   ======================================== */

.btn-call-mobile {
    display: inline-flex !important;
}
.btn-call-desktop {
    display: none !important;
}

@media (min-width: 768px) {
    .btn-call-mobile {
        display: none !important;
    }
    .btn-call-desktop {
        display: flex !important;
    }
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* =====================
   MOBILE (< 768px)
   ===================== */
@media (max-width: 767px) {
    /* Header height sur mobile = logo 64px + padding ~16px = ~80px */
    /* On met un padding-top de 100px pour être sûr */
    
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 2rem !important;
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%), url('https://readdy.ai/api/search-image?query=Professional%20IT%20services%20office%20with%20modern%20computers%2C%20servers%20and%20networking%20equipment.%20Clean%2C%20bright%20workspace%20with%20blue%20accents.%20Professional%20environment%20with%20tech%20professionals%20working.%20High-quality%20professional%20photo%20with%20soft%20lighting%20and%20clear%20details.&width=1920&height=1080&seq=1&orientation=landscape');
    }
    
    /* Assurer que le h1 est bien visible */
    .hero-section h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        color: #111827 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-section p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        color: #374151 !important;
    }
    
    a, button {
        min-height: 44px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.125rem !important;
    }
    
    p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Sections plus compactes - sauf hero */
    section:not(.hero-section) {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Cards compactes */
    .service-card {
        padding: 1.25rem !important;
    }
    
    /* Contact cards sur 2 colonnes mobile */
    .grid.grid-cols-2 {
        gap: 0.75rem !important;
    }
    
    .grid.grid-cols-2 > div {
        padding: 1rem !important;
    }
    
    /* Google Maps section mobile */
    #quote .grid {
        grid-template-columns: 1fr !important;
    }
    
    #quote .h-64 {
        height: 200px !important;
    }
    
    /* Footer mobile */
    footer .grid {
        gap: 1.5rem !important;
    }
}

/* =====================
   TABLETTE (768px - 1024px)
   ===================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        max-width: 100%;
    }
    
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .grid.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .grid.md\:grid-cols-3 {
        gap: 1rem !important;
    }
    
    .grid.md\:grid-cols-3 > div {
        padding: 1.25rem !important;
    }
    
    #quote .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* =====================
   LAPTOP (1024px - 1366px)
   ===================== */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        max-width: 960px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-section {
        padding-top: 5rem !important;
        padding-bottom: 3rem !important;
    }
    
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .gap-8 {
        gap: 1.25rem !important;
    }
    
    .gap-10 {
        gap: 1.5rem !important;
    }
    
    .gap-6 {
        gap: 1rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .service-card {
        padding: 1.25rem !important;
    }
    
    .service-card h3 {
        font-size: 1rem !important;
    }
    
    .service-card p {
        font-size: 0.875rem !important;
    }
    
    .grid.md\:grid-cols-3 > div {
        padding: 1.25rem !important;
    }
}

/* =====================
   DESKTOP LARGE (> 1366px)
   ===================== */
@media (min-width: 1367px) {
    .container {
        max-width: 1200px;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */

.aspect-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animation hover désactivée sur tactile */
@media (hover: none) {
    .service-card:hover,
    .hover\:shadow-xl:hover,
    .hover\:-translate-y-1:hover {
        transform: none !important;
    }
}

/* Focus visible pour accessibilité */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff7900;
    outline-offset: 2px;
}

/* ========================================
   COOKIE BANNER
   ======================================== */

#cookie-banner {
    z-index: 9999 !important;
}

#cookie-modal {
    z-index: 10000 !important;
}
