/* Import des polices locales */
@font-face {
    font-family: 'Karbon';
    src: url('../fonts/Karbon-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Karbon';
    src: url('../fonts/Karbon-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Karbon';
    src: url('../fonts/Karbon-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BryantPro';
    src: url('../fonts/BryantPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BryantPro';
    src: url('../fonts/BryantPro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BryantPro';
    src: url('../fonts/BryantPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.BryantPro {
    font-family: 'BryantPro', sans-serif;
}

.Karbon {
    font-family: 'Karbon', sans-serif;
}

/* Variables CSS pour les couleurs */
:root {
    --primary: #ff4b00;
    --primary-dark: #d43f00;
    --secondary: #f8aa00;
    --accent: #71c5c5;
    --dark: #161f37;
    --light: #f2edeb;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --gray-dark: #374151;
}

/* Scroll fluide pour toute la page */
html {
    scroll-behavior: smooth;
}

/* Amélioration de l'accessibilité */
*:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Amélioration des contrastes - garder la couleur originale */
.text-orange {
    color: #ff4b00 !important;
}

/* Styles pour les boutons avec meilleur contraste */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ff4b00;
    transform: translateY(-1px);
}

.btn-primary:focus {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

/* Amélioration du responsive */
@media (max-width: 768px) {
    .text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .py-8 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Alpine.js carousel styles */
[x-cloak] { 
    display: none !important; 
}

.slide-transition {
    transition: transform 0.5s ease-in-out;
}

/* Amélioration du carrousel mobile */
@media (max-width: 768px) {
    .carousel-prev {
        left: 0.5rem !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(4px);
    }
    
    .carousel-next {
        right: 0.5rem !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(4px);
    }
    
    .carousel-prev,
    .carousel-next {
        width: 2.5rem !important;
        height: 2.5rem !important;
        z-index: 20;
    }
}

/* Amélioration des images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Amélioration de la navigation */
nav a:focus,
button:focus,
a:focus {
    outline: 3px solid var(--white);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Amélioration des liens sociaux */
.social-link:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Amélioration de la lisibilité sur mobile */
@media (max-width: 640px) {
    .text-lg {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    
    .space-y-8 > * + * {
        margin-top: 1.5rem;
    }
    
    .space-y-6 > * + * {
        margin-top: 1rem;
    }
    
    .space-y-4 > * + * {
        margin-top: 0.75rem;
    }
}

/* Amélioration des grilles responsive */
@media (max-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-5 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-10 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Amélioration des espacements sur mobile */
@media (max-width: 640px) {
    .gap-12 {
        gap: 2rem;
    }
    
    .gap-8 {
        gap: 1.5rem;
    }
    
    .gap-7 {
        gap: 1rem;
    }
    
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Amélioration de l'accessibilité des listes */
ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
}

/* Amélioration des contrastes pour les textes sur fond coloré */
.bg-\[\#ff4b00\] .text-white {
    color: var(--white) !important;
}

.bg-\[\#161f37\] .text-white {
    color: var(--white) !important;
}

/* Amélioration de la navigation clavier */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* ===== ANIMATIONS HOVER POUR LES BLOCS HERO ===== */

/* Animation au hover pour les blocs cliquables */
.hero-block {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.hero-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-block:hover img {
    transform: scale(1.05);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-block img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation du titre au hover */
.hero-block:hover .hero-title {
    background: linear-gradient(135deg, #f8aa00 0%, #ff4b00 100%);
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title {
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation d'overlay au hover */
.hero-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 75, 0, 0.1) 0%, rgba(248, 170, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.hero-block:hover::after {
    opacity: 1;
}

/* Animation du contenu au-dessus de l'overlay */
.hero-block > * {
    position: relative;
    z-index: 2;
}

/* Amélioration des animations pour les utilisateurs qui les préfèrent réduites */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slide-transition {
        transition: none;
    }
    
    .hero-block,
    .hero-block:hover,
    .hero-block img,
    .hero-block:hover img,
    .hero-title,
    .hero-block:hover .hero-title,
    .hero-block::after,
    .hero-block:hover::after {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ===== SVG BACKGROUND SECTION "UNE ENSEIGNE FORTE" ===== */

/* SVG en background statique */
.enseigne-forte-bg {
    position: relative;
    overflow: hidden;
}

.enseigne-forte-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgs/deco/ligne.svg');
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

/* Contenu au-dessus du SVG */
.enseigne-forte-content {
    position: relative;
    z-index: 2;
}

/* Responsive pour le SVG */
@media (max-width: 768px) {
    .enseigne-forte-bg::before {
        background-size: 80% auto;
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .enseigne-forte-bg::before {
        background-size: 70% auto;
        opacity: 0.15;
    }
}

/* ===== SVG BACKGROUND SECTION "UNE PUISSANCE LOGISTIQUE" ===== */

/* SVG en background statique */
.puissance-logistique-bg {
    position: relative;
    overflow: hidden;
}

.puissance-logistique-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgs/deco/ligne_2.svg');
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

/* Contenu au-dessus du SVG */
.puissance-logistique-content {
    position: relative;
    z-index: 2;
}

/* Responsive pour le SVG */
@media (max-width: 768px) {
    .puissance-logistique-bg::before {
        background-size: 80% auto;
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .puissance-logistique-bg::before {
        background-size: 70% auto;
        opacity: 0.15;
    }
}

/* ===== SVG BACKGROUND SECTION MASCOTTE ===== */

/* SVG en background statique */
.mascotte-bg {
    position: relative;
    overflow: hidden;
}

.mascotte-bg::before {
    content: '';
    position: absolute;
    top: -50px;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgs/deco/ligne.svg');
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

/* Contenu au-dessus du SVG */
.mascotte-content {
    position: relative;
    z-index: 2;
}

/* Responsive pour le SVG */
@media (max-width: 768px) {
    .mascotte-bg::before {
        background-size: 80% auto;
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .mascotte-bg::before {
        background-size: 70% auto;
        opacity: 0.15;
    }
}

/* ===== SVG BACKGROUND SECTION "5 RAISONS DE REJOINDRE" ===== */

/* SVG en background statique */
.raisons-rejoindre-bg {
    position: relative;
    overflow: hidden;
}

.raisons-rejoindre-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-image: url('../imgs/deco/ligne_3.svg');
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

/* Contenu au-dessus du SVG */
.raisons-rejoindre-content {
    position: relative;
    z-index: 2;
}

/* Responsive pour le SVG */
@media (max-width: 768px) {
    .raisons-rejoindre-bg::before {
        background-size: 80% auto;
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .raisons-rejoindre-bg::before {
        background-size: 70% auto;
        opacity: 0.15;
    }
}

