/*
Theme Name: FNTI Theme
Description: Thème professionnel pour la Fédération Nationale des Taxis Indépendants
Author: FNTI
Version: 1.0.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fnti
*/

/* Reset et variables CSS */
:root {
    --fnti-primary: #1a5490;
    --fnti-secondary: #2d7bc4;
    --fnti-accent: #ff6b35;
    --fnti-dark: #0d2d4f;
    --fnti-light: #f5f7fa;
    --fnti-text: #333333;
    --fnti-text-light: #666666;
    --fnti-white: #ffffff;
    --fnti-shadow: rgba(0, 0, 0, 0.1);
    --fnti-shadow-hover: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--fnti-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header et Navigation */
.site-header {
    background: var(--fnti-white);
    box-shadow: 0 2px 10px var(--fnti-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px var(--fnti-shadow-hover);
}

/* Skip link accessibilité */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--fnti-primary);
    color: var(--fnti-white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 20px;
    outline: 2px solid var(--fnti-accent);
    outline-offset: 2px;
}
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; }
.skip-link.screen-reader-text:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; padding: 12px 20px; }

/* Barre supérieure professionnelle */
.header-top-bar {
    background: var(--fnti-dark);
    color: var(--fnti-white);
    padding: 8px 20px;
    font-size: 14px;
}
.header-top-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.header-tagline {
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0.95;
}
.header-tagline sup {
    font-size: 0.7em;
    top: -0.4em;
}
.header-phone {
    color: var(--fnti-accent);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.header-phone:hover {
    color: var(--fnti-white);
    text-decoration: underline;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--fnti-primary);
    text-decoration: none;
}

.site-logo img,
.site-logo .custom-logo {
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-since {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fnti-text-light);
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0.8;
    transition: var(--transition);
}

.site-logo:hover .logo-since {
    opacity: 1;
    color: var(--fnti-primary);
}

.main-navigation {
    display: flex;
    align-items: center;
}

.menu-primary {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-primary li {
    position: relative;
}

.menu-primary a {
    color: var(--fnti-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    transition: var(--transition);
    position: relative;
}

.menu-primary a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fnti-primary);
    transition: var(--transition);
}

.menu-primary a:hover,
.menu-primary .current-menu-item a {
    color: var(--fnti-primary);
}

.menu-primary a:hover::after,
.menu-primary .current-menu-item a::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--fnti-primary);
}

/* Hero Section Moderne */
.hero-section-modern {
    background: linear-gradient(135deg, var(--fnti-primary) 0%, var(--fnti-secondary) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--fnti-white);
    padding: 150px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    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"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title-modern {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    color: var(--fnti-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle-modern {
    font-size: 22px;
    font-weight: 900;
    margin-top: 2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 1s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons-modern {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--fnti-white);
    opacity: 0.8;
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

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

.btn-hero-primary:hover {
    background: #e55a2a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--fnti-white);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Hero Section Ancien (pour compatibilité) */
.hero-section {
    background: linear-gradient(135deg, var(--fnti-primary) 0%, var(--fnti-secondary) 100%);
    color: var(--fnti-white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #e55a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

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

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

/* Sections */
.section {
    padding: 80px 20px;
}

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

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--fnti-primary);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--fnti-accent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--fnti-text-light);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--fnti-white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--fnti-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--fnti-shadow-hover);
}

.feature-icon {
    font-size: 48px;
    color: var(--fnti-primary);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--fnti-primary);
    margin-bottom: 15px;
}

.feature-description {
    color: var(--fnti-text-light);
    line-height: 1.8;
}

/* Stats Section */
.stats-section {
    background: var(--fnti-primary);
    color: var(--fnti-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--fnti-accent);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: var(--fnti-dark);
    color: var(--fnti-white);
    padding: 60px 20px 30px;
}

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

.footer-widget-logo .footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}
.footer-widget-logo .footer-logo-link:hover {
    padding-left: 0;
}
.footer-logo-img {
    max-width: 180px;
    height: auto;
    display: block;
    transition: var(--transition);
}
.footer-widget-logo .footer-logo-link:hover .footer-logo-img {
    opacity: 0.9;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--fnti-accent);
}

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

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

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--fnti-accent);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.footer-copyright {
    margin: 0;
    font-size: 14px;
}
.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}
.footer-legal a:hover {
    color: var(--fnti-accent);
}
.footer-legal-sep {
    opacity: 0.5;
}
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RÉGLAGES RESPONSIVE - Mobile & Tablette
   ============================================ */

/* --- TABLETTE (768px - 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .header-container {
        min-height: 70px;
        padding: 15px 20px;
    }
    .site-logo img,
    .site-logo .custom-logo {
        max-height: 160px;
    }
    .logo-since {
        font-size: 11px;
        margin-left: 10px;
        padding-left: 10px;
    }
    .menu-primary {
        gap: 20px;
    }
    .menu-primary a {
        font-size: 15px;
    }
    .hero-section-modern {
        padding: 120px 20px 80px;
        min-height: 75vh;
    }
    .hero-title-modern {
        font-size: 42px;
    }
    .hero-subtitle-modern {
        font-size: 20px;
    }
    .hero-section {
        padding: 100px 20px;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-subtitle {
        font-size: 20px;
    }
    .section {
        padding: 60px 20px;
    }
    .section-title {
        font-size: 32px;
    }
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 45px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-top: 40px;
    }
    .feature-card {
        padding: 30px 25px;
    }
    .feature-icon {
        font-size: 40px;
    }
    .feature-title {
        font-size: 20px;
    }
    .stats-grid {
        gap: 25px;
    }
    .stat-number {
        font-size: 40px;
    }
    .stat-label {
        font-size: 16px;
    }
    .site-footer {
        padding: 50px 20px 25px;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-bottom: 35px;
    }
}

/* --- MOBILE (480px - 768px) --- */
@media (max-width: 768px) {
    .header-top-bar {
        padding: 6px 15px;
        font-size: 12px;
    }
    .header-top-inner {
        justify-content: center;
        flex-direction: column;
    }
    .header-tagline {
        font-size: 0.95em;
        text-align: center;
    }
    .header-container {
        flex-wrap: wrap;
        min-height: auto;
        padding: 15px 15px;
        position: relative;
    }
    .site-logo img,
    .site-logo .custom-logo {
        max-height: 100px;
    }
    .logo-since {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--fnti-white);
        box-shadow: 0 5px 15px var(--fnti-shadow);
        display: none;
        flex-direction: column;
        padding: 15px;
    }
    .main-navigation.active {
        display: flex;
    }
    .menu-primary {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .menu-primary li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    .menu-primary a {
        display: block;
        padding: 15px 0;
    }
    .hero-section-modern {
        padding: 100px 15px 70px;
        min-height: 70vh;
    }
    .hero-title-modern {
        font-size: 36px;
    }
    .hero-subtitle-modern {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .hero-buttons-modern {
        gap: 15px;
    }
    .hero-section {
        padding: 80px 15px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .hero-buttons {
        gap: 15px;
    }
    .section {
        padding: 50px 15px;
    }
    .section-title {
        font-size: 28px;
        padding-bottom: 15px;
    }
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 35px;
    }
    .feature-card {
        padding: 30px 25px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-item {
        padding: 15px;
    }
    .stat-number {
        font-size: 36px;
    }
    .stat-label {
        font-size: 15px;
    }
    .site-footer {
        padding: 40px 15px 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
    .footer-widget h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* --- MOBILE PETIT (< 480px) --- */
@media (max-width: 480px) {
    .header-top-bar {
        padding: 8px 12px;
        font-size: 11px;
    }
    .header-phone {
        font-size: 14px;
    }
    .header-container {
        padding: 12px 12px;
    }
    .site-logo img,
    .site-logo .custom-logo {
        max-height: 80px;
    }
    .hero-section-modern {
        padding: 90px 12px 60px;
        min-height: 65vh;
    }
    .hero-title-modern {
        font-size: 28px;
    }
    .hero-subtitle-modern {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
    .hero-buttons-modern {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 15px;
    }
    .hero-section {
        padding: 70px 12px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .section {
        padding: 40px 12px;
    }
    .section-title {
        font-size: 24px;
    }
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .feature-card {
        padding: 25px 20px;
    }
    .feature-icon {
        font-size: 36px;
    }
    .feature-title {
        font-size: 19px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .stat-number {
        font-size: 32px;
    }
    .container {
        padding: 0 12px;
    }
}

/* --- TABLETTE / MOBILE : Tableaux et Formulaires --- */
@media (max-width: 768px) {
    table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table th,
    table td {
        padding: 12px 10px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    table th,
    table td {
        padding: 10px 8px;
        font-size: 13px;
        min-width: 80px;
    }
}
