/*
Theme Name: SAS Informatique
Theme URI: https://www.sasinformatique.com
Author: SAS Informatique
Author URI: https://www.sasinformatique.com
Description: Thème one-page moderne et responsive pour SAS Informatique - Votre partenaire technologique
Version: 1.0.0
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: sas-informatique
Tags: one-page, business, responsive, modern, technology
*/

/* ========================================
   VARIABLES CSS - CHARTE GRAPHIQUE
   ======================================== */
:root {
    --primary-red: #E10600;
    --pure-white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --text-gray: #666666;
    --border-gray: #E0E0E0;
    
    /* Typographie */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Espacements */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    line-height: var(--line-height-base);
    background-color: var(--pure-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    opacity: 0.85;
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 30px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--pure-white);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background: var(--pure-white);
    color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.3);
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border-color: var(--pure-white);
}

.btn-secondary:hover {
    background: var(--pure-white);
    color: var(--primary-red);
    opacity: 1;
}

.btn-outline {
    background: var(--pure-white);
    color: var(--dark-gray);
    border-color: var(--pure-white);
}

.btn-outline:hover {
    background: transparent;
    color: var(--pure-white);
    border-color: var(--pure-white);
    opacity: 1;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
}

.site-logo:hover {
    opacity: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-red);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

/* ========================================
   SECTION HERO
   ======================================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c50500 100%);
    color: var(--pure-white);
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content .tagline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--dark-gray);
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--pure-white);
}

/* ========================================
   SECTION À PROPOS
   ======================================== */
#about {
    background: var(--pure-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-highlight {
    background: var(--light-gray);
    padding: 20px;
    border-left: 4px solid var(--primary-red);
    margin: 30px 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SECTION SERVICES
   ======================================== */
#services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--pure-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-top: 15px;
}

.service-card ul li {
    padding: 8px 0;
    color: var(--text-gray);
}

.service-card ul li:before {
    content: "✓";
    color: var(--primary-red);
    font-weight: bold;
    margin-right: 10px;
}

/* ========================================
   SECTION VALEURS
   ======================================== */
#values {
    background: var(--pure-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 20px;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-red);
    transition: var(--transition-smooth);
}

.value-item:hover .value-icon {
    background: var(--primary-red);
    color: var(--pure-white);
    transform: scale(1.1);
}

.value-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* ========================================
   SECTION CONTACT
   ======================================== */
#contact {
    background: var(--pure-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item-content p {
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--dark-gray);
    transform: translateY(-3px);
    opacity: 1;
}

/* Formulaire de contact */
.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--dark-gray);
    color: var(--pure-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--pure-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-red);
    opacity: 1;
}

.footer-links i {
    margin-right: 10px;
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--primary-red);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--pure-white);
        transition: var(--transition-smooth);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .tagline {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}

