/* Variables CSS personnalisées */
@import url('https://fonts.googleapis.com/css?family=Oswald');

:root {
    /* Couleurs principales */
    --color1: #ea8a2f;
    --color2: #000000;
    --color1-rgb: 234, 138, 47;
    --color1-25: #fae2cb;
    --color1-50: #f5c597;
    --color1-75: #efa763;
    --color1-125: #b06823;
    --color1-150: #754518;
    
    /* Polices */
    --font1: Oswald, sans-serif;
    --font2: Arial, sans-serif;
    
    /* Couleur accent UI */
    --ui-color-accent: #4EBDF5;
    --ui-color-accent-75: rgba(78, 189, 245, 0.7);
    --ui-color-accent-50: rgba(78, 189, 245, 0.5);
    --ui-color-accent-25: rgba(78, 189, 245, 0.25);
    --ui-color-accent-light: rgba(78, 189, 245, 0.1);
}

/* Reset et base */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font2), sans-serif;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0;
}

.img-small {
	max-width: 400px;
	height: auto;
}

/* Typographie */
h1, h2, h3 {
    font-family: var(--font1), sans-serif;
    font-weight: 700;
    color: var(--color2);
}

h4, h5, h6 {
    font-family: var(--font1), sans-serif;
    font-weight: 700;
    color: var(--color2);
}

/* Liens */
a {
    color: var(--color1);
    text-decoration: none;
}

a:hover {
    color: var(--color1-125);
}

/* Boutons */
.btn-primary {
    background-color: var(--color1);
    border-color: var(--color1);
    font-family: var(--font1), sans-serif;
}

.btn-outline-primary {
    color: var(--color1);
    border-color: var(--color1);
    font-family: var(--font1), sans-serif;
}

.btn-outline-primary:hover {
    background-color: var(--color1);
    border-color: var(--color1);
}

.img-shadow {
	box-shadow: 2px 2px 10px #0000004d;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 120px;
    height: 120px;
    animation: rotate 1.5s linear infinite;
}

.spinner .path {
    stroke: var(--color1);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
        stroke: var(--color1);
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
        stroke: var(--color2);
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
        stroke: var(--color1);
    }
}

/* Header */
#headerMenu {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-top: 10px solid var(--color2);
    box-shadow: 0 0.4375rem 1.8125rem 0 rgba(0, 0, 0, 0.09);
}

#headerMenu .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logoHolder {
    white-space: nowrap;
}

.logoHolder h2 {
    font-size: 24px;
    color: var(--color2);
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0;
    padding: 0;
}

.logoHolder img {
    max-height: 40px;
    min-height: 40px;
    height: 40px;
}

/* Navigation */
.menuHolder {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menuHolder li {
    display: inline-block;
    position: relative;
}

.menuHolder li a {
    font-size: 17px;
    color: var(--color1);
    padding: 5px 0;
    margin-left: 15px;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    transition: 0.2s all;
    font-family: var(--font1), sans-serif;
    font-weight: 400;
    text-decoration: none;
}

.menuHolder li.active a,
.menuHolder li a:hover {
    color: var(--color2);
    border-bottom-color: var(--color2);
}

.menuHolder li.accent1 a {
    color: var(--color1-25);
    background: var(--color1);
    padding: 15px;
    margin-left: 30px;
    border-radius: 3px;
    border: none;
}

.menuHolder li.accent1 a:hover {
    color: white;
    background: var(--color1-125);
}

/* Menu déroulant */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--color2);
    border: none;
    margin: 0;
    text-transform: none;
}

.dropdown-menu li a:hover {
    background: var(--color1-25);
    color: var(--color1);
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color1);
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    text-align: center;
}

.hero-title h2 {
    color: white;
    font-size: 2.5rem;
    margin: 0;
}

/* Sections */
section {
    padding: 60px 0;
}

.separator {
    background: var(--color1);
    width: 100px;
    height: 4px;
    margin-bottom: 20px;
}

/* Section domaines */
.icon-holder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color1);
    color: white;
    border-radius: 50%;
    font-size: 24px;
}

/* Footer */
.footer-section {
    background: var(--color2);
    color: rgba(255, 255, 255, 0.7);
}

.footer-line-1 {
    padding: 40px 0;
}

.footer-line-2 {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-logo {
    max-height: 60px;
}

.footer-company {
    color: rgba(255, 255, 255, 0.7);
}

.footer-company strong {
    color: white;
}

.footer-section h5 {
    color: white;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color1);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    z-index: 1000;
}

.scroll-to-top.active {
    display: flex;
}

.scroll-to-top:hover {
    background: var(--color1-125);
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        width: 100%;
    }
    
    .menuHolder {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
    }
    
    .menuHolder.active {
        display: flex !important;
    }
    
    .menuHolder li {
        display: block;
        width: 100%;
    }
    
    .menuHolder li a {
        margin: 5px 0;
        padding: 10px;
        display: block;
    }
    
    .menuHolder li.accent1 a {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: var(--color1-25);
        margin-left: 20px;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    #headerMenu .container {
        flex-direction: column;
    }
    
    .logoHolder {
        margin-bottom: 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero-title h2 {
        font-size: 1.8rem;
    }
}

.ticker-section {
    background: linear-gradient(135deg, var(--color1-25) 0%, var(--color1-50) 100%);
    border-bottom: 3px solid var(--color1);
    overflow: hidden;
    height: 40px;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 100%;
}

.ticker-label {
    background-color: var(--color2);
    color: white;
    padding: 0 20px;
    font-weight: bold;
    font-size: 13px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: var(--font1), sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-left: 20px;
}

.ticker-content ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: scroll-ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content li {
    display: inline-flex;
    align-items: center;
    padding: 0 60px;
    white-space: nowrap;
    font-size: 14px;
    color: var(--color2);
    font-weight: 500;
    font-family: var(--font2), sans-serif;
}

.ticker-content li strong {
    color: var(--color1-125);
    margin-right: 8px;
}

/* Animation du défilement */
@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause au survol */
.ticker-content:hover ul {
    animation-play-state: paused;
}

/* Icônes dans le ticker */
.ticker-icon {
    display: inline-block;
    margin-right: 5px;
    font-size: 16px;
}

/* Responsive mobile */
@media (max-width: 767px) {
    .ticker-section {
        height: 35px;
    }

    .ticker-label {
        padding: 0 12px;
        font-size: 11px;
    }

    .ticker-content {
        padding-left: 10px;
    }

    .ticker-content li {
        font-size: 12px;
        padding: 0 40px;
    }

    .ticker-content ul {
        animation-duration: 25s;
    }
}

@media (max-width: 480px) {
    .ticker-section {
        height: 32px;
    }

    .ticker-label {
        padding: 0 10px;
        font-size: 10px;
    }

    .ticker-content li {
        font-size: 11px;
        padding: 0 30px;
    }
}