:root {
    /* Primary colors */
    --color-orange: #EA6506;
    --color-blue: #023d64;
    
}

body {
	--sb-track-color: var(--color-blue);
	--sb-thumb-color: var(--color-orange);
	--sb-size: 10px;
}

body::-webkit-scrollbar {
	width: var(--sb-size)
}

body::-webkit-scrollbar-track {
	background: var(--sb-track-color);
	border-radius: 0px;
}

body::-webkit-scrollbar-thumb {
	background: var(--sb-thumb-color);
	border-radius: 20px;
}

.custom-logo {
	height: 43px;
	width: auto;
}

#primary-menu-list .menu-item a,
#primary-menu-list .menu-item {
	color: #000;
	text-transform: capitalize !important;
	font-size: 18px;
}

.service img {
	height: 253px;
}

.service {
	width: calc(100% /3 - 2rem);
}

/* ============================================
   ANIMATIONS GLOBALES POUR .btn-link
   Style cohérent sur tout le site
   ============================================ */

/* Base du btn-link avec structure flexible */
.btn-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem; /* 16px par défaut */
    color: #579FCE; /* Bleu */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

/* Au hover : augmentation du gap */
.btn-link:hover {
    gap: 1.5rem; /* 24px */
}

/* Wrapper du texte avec underline animé */
.btn-link > span {
    position: relative;
    display: inline-block;
}

/* Underline gradient qui se déploie */
.btn-link > span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #579FCE 0%, #EA6506 100%);
    transition: width 0.4s ease;
}

.btn-link:hover > span::after {
    width: 100%;
}

/* Animation de la flèche SVG */
.btn-link svg {
    flex-shrink: 0;
    transform-origin: center;
    transition: transform 0.3s ease;
    will-change: transform;
}

.btn-link:hover svg {
    transform: translateX(5px) scale(1.1);
    animation: arrow-bounce 0.6s ease-in-out infinite;
}

/* Keyframe pour le bounce de la flèche */
@keyframes arrow-bounce {
    0%, 100% { 
        transform: translateX(5px) scale(1.1); 
    }
    50% { 
        transform: translateX(10px) scale(1.15); 
    }
}

/* Animation du path de la flèche (pulse subtil) */
.btn-link:hover svg path {
    animation: pulse-stroke 1.5s ease-in-out infinite;
}

@keyframes pulse-stroke {
    0%, 100% { 
        stroke-width: 2.5; 
    }
    50% { 
        stroke-width: 3; 
    }
}

/* ============================================
   VARIANTES DE COULEUR
   ============================================ */

/* Version orange */
.btn-link.btn-link--orange {
    color: #EA6506;
}

.btn-link.btn-link--orange > span::after {
    background: linear-gradient(90deg, #EA6506 0%, #579FCE 100%);
}

.btn-link.btn-link--orange svg path {
    stroke: #EA6506;
}

/* Version blanche (pour backgrounds sombres) */
.btn-link.btn-link--white {
    color: #ffffff;
}

.btn-link.btn-link--white > span::after {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
}

.btn-link.btn-link--white svg path {
    stroke: #ffffff;
}

/* Version gris */
.btn-link.btn-link--gris {
    color: #6B7280; /* text-gris */
}

.btn-link.btn-link--gris:hover {
    color: #579FCE;
}

.btn-link.btn-link--gris > span::after {
    background: linear-gradient(90deg, #6B7280 0%, #579FCE 100%);
}

/* ============================================
   VARIANTES DE TAILLE
   ============================================ */

/* Petit */
.btn-link.btn-link--sm {
    font-size: 0.75rem; /* text-xs */
    gap: 0.75rem;
}

.btn-link.btn-link--sm:hover {
    gap: 1rem;
}

.btn-link.btn-link--sm svg {
    width: 10px;
    height: 10px;
}

/* Large */
.btn-link.btn-link--lg {
    font-size: 1rem; /* text-base */
    gap: 1.25rem;
}

.btn-link.btn-link--lg:hover {
    gap: 1.75rem;
}

.btn-link.btn-link--lg svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   EFFET GLOW (Optionnel)
   ============================================ */

.btn-link.btn-link--glow {
    position: relative;
}

.btn-link.btn-link--glow::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle at center, currentColor 0%, transparent 70%);
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.btn-link.btn-link--glow:hover::before {
    opacity: 0.15;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Réduction des animations sur mobile pour perfs */
    .btn-link:hover svg {
        animation: none;
        transform: translateX(3px) scale(1.05);
    }
    
    .btn-link:hover {
        gap: 1.25rem; /* Moins agressif */
    }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

/* Focus visible pour navigation clavier */
.btn-link:focus-visible {
    outline: 2px solid #579FCE;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    .btn-link,
    .btn-link *,
    .btn-link::before,
    .btn-link::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn-link:hover svg {
        transform: none;
    }
}

/* État désactivé */
.btn-link:disabled,
.btn-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   OPTIMISATION GPU
   ============================================ */

.btn-link,
.btn-link svg,
.btn-link > span::after {
    will-change: transform, gap, width;
}

/* Reset du will-change après animation */
.btn-link:not(:hover) {
    will-change: auto;
}

/* ============================================
   BOUTON CTA - GRADIENT SLIDE
   Style cohérent avec le reste du site
   ============================================ */

.btn-cta {
    position: relative;
    /* display: inline-flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* padding: 0.875rem 2rem; */
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    /* background: #579FCE; */
    /* border-radius: 8px; */
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Gradient animé qui glisse de gauche à droite */
.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #579FCE 0%, #EA6506 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-cta:hover::before {
    opacity: 1;
}

/* Effet de brillance qui traverse */
.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
}

.btn-cta:hover::after {
    left: 100%;
}

/* Légère élévation au hover */
.btn-cta:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 10px 30px rgba(87, 159, 206, 0.4); */
}

/* Focus visible pour accessibilité */
.btn-cta:focus-visible {
    outline: 3px solid #579FCE;
    outline-offset: 4px;
}



/* ============================================
   SECTION HISTORIQUE - TIMELINE
   ============================================ */

/* ========== TIMELINE STRUCTURE ========== */
.timeline-wrapper {
    position: relative;
}

.timeline-line {
    background: linear-gradient(
        180deg,
        #579FCE 0%,
        #023D64 50%,
        #EA6506 100%
    );
    box-shadow: 0 0 20px rgba(87, 159, 206, 0.3);
}

/* ========== TIMELINE ITEMS ========== */
.timeline-item {
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* ========== BULLET POINTS ========== */
.timeline-bullet {
    animation: pulse-bullet 2s infinite;
}

@keyframes pulse-bullet {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(234, 101, 6, 0.7);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 0 10px rgba(234, 101, 6, 0);
    }
}

/* ========== IMAGE EFFECTS ========== */
.timeline-image .image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
}

.timeline-image .image-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #579FCE, #EA6506);
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.timeline-image .image-wrapper:hover::before {
    opacity: 1;
}

/* ========== DATE BADGE ========== */
.timeline-date span {
    position: relative;
    overflow: hidden;
}

.timeline-date span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.7s ease;
}

.timeline-item:hover .timeline-date span::before {
    left: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1023px) {
    .timeline-item .grid {
        display: flex;
        flex-direction: column;
    }
    
    .timeline-content {
        text-align: left !important;
    }
    
    .timeline-content .content-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .timeline-bullet {
        display: none;
    }
}

/* ========== PARALLAX EFFECT (optionnel) ========== */
@media (min-width: 1024px) {
    .timeline-item:nth-child(even) .timeline-image {
        animation: float-right 6s ease-in-out infinite;
    }
    
    .timeline-item:nth-child(odd) .timeline-image {
        animation: float-left 6s ease-in-out infinite;
    }
}

@keyframes float-right {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

@keyframes float-left {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
    }
}

/* ============================================
   SECTION CONTACT
   ============================================ */

/* ========== CARDS COORDONNÉES ========== */
.contact-card {
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #579FCE, #EA6506);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 0;
}

.contact-card .icon-wrapper {
    transition: all 0.3s ease;
}

.contact-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #579FCE, #EA6506);
}

.contact-card:hover .icon-wrapper svg {
    color: white;
}

/* ========== FORMULAIRE CF7 ========== */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Grid Layout */
.cf7-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .cf7-grid {
        grid-template-columns: 1fr;
    }
}

.cf7-col-6,
.cf7-full {
    width: 100%;
}

/* Inputs & Textarea Styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #1f2937;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #579FCE;
    box-shadow: 0 0 0 3px rgba(87, 159, 206, 0.1);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9ca3af;
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Submit Button */
.cf7-submit {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.wpcf7-form .btn-submit {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #579FCE, #023D64);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(87, 159, 206, 0.3);
}

.wpcf7-form .btn-submit:hover {
    background: linear-gradient(135deg, #023D64, #EA6506);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(87, 159, 206, 0.4);
}

.wpcf7-form .btn-submit:active {
    transform: translateY(0);
}

/* Messages de validation */
.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #ef4444;
}

/* Message de succès */
.wpcf7-response-output {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.cf7-submit .is-focused {
	display: flex;
	flex-direction: row;
    justify-content: center;
}

/* Spinner de chargement */
.wpcf7-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(87, 159, 206, 0.3);
    border-top-color: #579FCE;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 1rem;
}

/* ========== CARTE INTERACTIVE ========== */
.map-wrapper {
    position: relative;
}

.map-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: 0.5rem;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.map-wrapper:hover::after {
    border-color: #EA6506;
}

/* ========== ACCESSIBILITY ========== */
.wpcf7-form input:focus-visible,
.wpcf7-form textarea:focus-visible,
.wpcf7-form .btn-submit:focus-visible {
    outline: 2px solid #EA6506;
    outline-offset: 2px;
}

/* ============================================
   FORMULAIRE DEMANDE DE DEVIS
   ============================================ */

/* ========== HEADER ========== */
.devis-form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.devis-form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #023D64;
    margin-bottom: 0.75rem;
}

.devis-form-header p {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* ========== SECTIONS ========== */
.form-section {
    margin-bottom: 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #023D64;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #579FCE;
    position: relative;
}

/* Icône décorative */
.form-section:nth-child(odd) .form-section-title {
    border-left-color: #579FCE;
}

.form-section:nth-child(even) .form-section-title {
    border-left-color: #EA6506;
}

/* ========== GRILLES RESPONSIVE ========== */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ========== INPUTS GÉNÉRAUX ========== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #1f2937;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1.5;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* États Focus */
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #579FCE;
    box-shadow: 0 0 0 4px rgba(87, 159, 206, 0.15);
    background: #fafbff;
}

/* États Hover */
.wpcf7-form input:hover:not(:focus),
.wpcf7-form select:hover:not(:focus),
.wpcf7-form textarea:hover:not(:focus) {
    border-color: #cbd5e1;
}

/* ========== SELECT CUSTOM ========== */
.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23579FCE' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
    cursor: pointer;
}

.wpcf7-form select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23EA6506' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ========== TEXTAREA ========== */
.wpcf7-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-section textarea {
    margin-bottom: 0;
}

/* ========== ZONE UPLOAD ========== */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #579FCE;
    background: #f0f7fc;
}

.upload-icon {
    margin: 0 auto 1rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.upload-icon svg {
    color: #579FCE;
}

.upload-text {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.upload-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

.wpcf7-form input[type="file"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: none;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    margin: 1rem 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.wpcf7-form input[type="file"]:hover {
    box-shadow: 0 4px 12px rgba(87, 159, 206, 0.3);
}

.wpcf7-form input[type="file"]::file-selector-button {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #579FCE, #023D64);
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #EA6506, #023D64);
    transform: translateY(-2px);
}

/* ========== BOUTON SUBMIT ========== */
.wpcf7-form input[type="submit"] {
    width: auto;
    min-width: 280px;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #579FCE 0%, #023D64 100%);
    color: white;
    border: none;
    border-radius: 0.625rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(87, 159, 206, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin: 0 auto 0;
    position: relative;
    overflow: hidden;
}

/* Effet de brillance au hover */
.wpcf7-form input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.wpcf7-form input[type="submit"]:hover::before {
    left: 100%;
}

.wpcf7-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #EA6506 0%, #023D64 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(234, 101, 6, 0.45);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(234, 101, 6, 0.3);
}

/* ========== VALIDATION ERREURS ========== */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.wpcf7-not-valid-tip::before {
    content: '⚠';
    font-size: 1rem;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #dc2626;
    background: #fef2f2;
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ========== MESSAGES DE RÉPONSE ========== */
.wpcf7-response-output {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.9375rem;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpcf7-mail-sent-ok {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #10b981;
    color: #065f46;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #ef4444;
    color: #991b1b;
}

/* ========== SPINNER DE CHARGEMENT ========== */
.wpcf7-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(87, 159, 206, 0.2);
    border-top-color: #579FCE;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 1.5rem auto;
    display: none;
}

.form-progress-bar {
	display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .form-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .devis-form-header h3 {
        font-size: 1.75rem;
    }
    
    .form-section-title {
        font-size: 1.125rem;
    }
    
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wpcf7-form input[type="submit"] {
        width: 100%;
        min-width: unset;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
        h2.pas-br br {
        display: none !important;
    }
}

/* ========== ACCESSIBILITÉ ========== */
.wpcf7-form input:focus-visible,
.wpcf7-form select:focus-visible,
.wpcf7-form textarea:focus-visible,
.wpcf7-form input[type="submit"]:focus-visible {
    outline: 3px solid #EA6506;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .wpcf7-form *,
    .wpcf7-form *::before,
    .wpcf7-form *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   SECTION NEWSLETTER
   ============================================ */

/* ========== CONTAINER FORMULAIRE ========== */
.newsletter-form-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.newsletter-form-wrapper .wpcf7-form {
    margin: 0;
}

.newsletter-form-container {
    width: 100%;
}

/* ========== GROUPE INPUT + BOUTON ========== */
.newsletter-input-group {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 60px;
    padding: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-input-group:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
}

.newsletter-input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3),
                0 25px 60px rgba(0, 0, 0, 0.35);
}

/* ========== INPUT EMAIL ========== */
.newsletter-input-group .wpcf7-form-control-wrap {
    flex: 1;
    min-width: 0;
}

.newsletter-input-group input[type="email"] {
    width: 100%;
    padding: 1.125rem 1.75rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1f2937;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
    border-radius: 60px 0 0 60px;
}

.newsletter-input-group input[type="email"]::placeholder {
    color: #9ca3af;
    font-size: 0.9375rem;
}

.newsletter-input-group input[type="email"]:focus {
    background: #f9fafb;
}

/* ========== BOUTON SUBMIT ========== */
.newsletter-input-group input[type="submit"] {
    flex-shrink: 0;
    padding: 1.125rem 2.5rem;
    background: linear-gradient(135deg, #EA6506 0%, #c44d00 100%);
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(234, 101, 6, 0.4);
}

/* Effet brillant au survol */
.newsletter-input-group input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.newsletter-input-group input[type="submit"]:hover::before {
    left: 100%;
}

.newsletter-input-group input[type="submit"]:hover {
    background: linear-gradient(135deg, #579FCE 0%, #023D64 100%);
    transform: translateX(4px);
    box-shadow: 0 12px 28px rgba(87, 159, 206, 0.5);
}

.newsletter-input-group input[type="submit"]:active {
    transform: translateX(2px);
}

/* ========== MESSAGES DE VALIDATION ========== */
.newsletter-form-wrapper .wpcf7-not-valid-tip {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1.5rem;
    background: white;
    color: #dc2626;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
    z-index: 10;
}

.newsletter-form-wrapper .wpcf7-not-valid-tip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 2rem;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
}

.newsletter-input-group:has(.wpcf7-not-valid) {
    animation: shakeError 0.5s;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3),
                0 20px 50px rgba(0, 0, 0, 0.25);
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-12px); }
    75% { transform: translateX(12px); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MESSAGE DE SUCCÈS ========== */
.newsletter-form-wrapper .wpcf7-response-output {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.9375rem;
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.newsletter-form-wrapper .wpcf7-mail-sent-ok {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #10b981;
    color: #065f46;
}

.newsletter-form-wrapper .wpcf7-validation-errors,
.newsletter-form-wrapper .wpcf7-mail-sent-ng {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #ef4444;
    color: #991b1b;
}

/* ========== SPINNER DE CHARGEMENT ========== */
.newsletter-form-wrapper .wpcf7-spinner {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(234, 101, 6, 0.2);
    border-top-color: #EA6506;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .newsletter-input-group {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .newsletter-input-group input[type="email"] {
        border-radius: 0.75rem;
        padding: 1rem 1.25rem;
    }
    
    .newsletter-input-group input[type="submit"] {
        width: 100%;
        border-radius: 0.75rem;
        padding: 1rem 2rem;
    }
    
    .newsletter-form-wrapper .wpcf7-not-valid-tip {
        position: static;
        margin-top: 0.5rem;
    }
    
    .newsletter-form-wrapper .wpcf7-not-valid-tip::before {
        display: none;
    }
}

/* ========== ACCESSIBILITÉ ========== */
.newsletter-input-group input[type="email"]:focus-visible,
.newsletter-input-group input[type="submit"]:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .newsletter-input-group,
    .newsletter-input-group input,
    .newsletter-form-wrapper .wpcf7-response-output {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ========== MODE SOMBRE (Auto-détection) ========== 
@media (prefers-color-scheme: dark) {
    .newsletter-input-group {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }
    
    .newsletter-input-group input[type="email"] {
        color: white;
    }
    
    .newsletter-input-group input[type="email"]::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
}
 */

@media (prefers-reduced-motion: reduce) {
    .contact-card,
    .btn-submit,
    .map-wrapper iframe {
        transition: none !important;
    }
}


/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    .timeline-bullet,
    .timeline-image img,
    .timeline-item:nth-child(even) .timeline-image,
    .timeline-item:nth-child(odd) .timeline-image {
        animation: none !important;
    }
    
    .timeline-image .image-wrapper img {
        transform: none !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .timeline-line,
    .timeline-bullet {
        display: none;
    }
    
    .timeline-item {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* ============================================
   TOP BAR - MENU SUPÉRIEUR AMÉLIORÉ
   ============================================ */

/* ========== BASE STYLES ========== */
.menu-top {
    background-color: #F9FAFB;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Sticky avec effet blur au scroll (optionnel) */
body.scrolled .menu-top {
    background-color: rgba(249, 250, 251, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ========== BARRE DE RECHERCHE ========== */
.search-wrapper {
    position: relative;
    z-index: 10;
}

.search-input {
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expansion au focus */
.search-input:focus {
    width: 16rem; /* w-64 */
    box-shadow: 0 4px 6px -1px rgba(2, 61, 100, 0.1), 
                0 2px 4px -1px rgba(2, 61, 100, 0.06);
}

/* Placeholder animation */
.search-input::placeholder {
    transition: opacity 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0;
}

/* ========== BOUTON RECHERCHE ========== */
.search-submit {
    border-radius: 0.375rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.search-submit:hover {
    background-color: rgba(2, 61, 100, 0.05);
}

/* ========== BOUTON CLEAR ========== */
.search-clear {
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
}

.search-clear:hover {
    background-color: rgba(234, 101, 6, 0.1);
}

/* ========== AUTOCOMPLETE RESULTS ========== */
.search-results {
    z-index: 100;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results.active {
    display: block;
}

/* Style des résultats */
.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E5E7EB;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: rgba(2, 61, 100, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* ========== ICÔNES RÉSEAUX SOCIAUX ========== */
.social-link {
    position: relative;
    overflow: hidden;
}

/* Effet ondulation au clic */
.social-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(2, 61, 100, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.social-link:active::after {
    transform: scale(1);
}

/* ========== SÉPARATEURS ========== */
.menu-top .w-px {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #D1D5DB 50%, 
        transparent 100%
    );
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1280px) {
    .search-input {
        width: 10rem;
    }
    
    .search-input:focus {
        width: 14rem;
    }
}

@media (max-width: 1023px) {
    .menu-top {
        display: none;
    }
}

/* ========== ACCESSIBILITÉ ========== */
.search-input:focus-visible,
.search-submit:focus-visible,
.social-link:focus-visible {
    outline: 2px solid #EA6506;
    outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.search-wrapper:hover .search-submit svg {
    animation: pulse-subtle 2s ease infinite;
}

/* ========== LOADING STATE ========== */
.search-form.loading .search-submit svg {
    animation: spin 1s linear infinite;
}

/* ============================================
   HEADER STICKY OPTIMISÉ
   ============================================ */

/* ========== STRUCTURE DE BASE ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease,
                background-color 0.3s ease;
    will-change: transform;
}

/* Menu Top Bar */
.menu-top {
    transition: all 0.3s ease;
    transform-origin: top;
}

/* Menu Principal */
.main-navigation {
    transition: all 0.3s ease;
}

/* ========== ÉTAT INITIAL (TOP DE PAGE) ========== */
body:not(.scrolled) .site-header {
    background-color: transparent;
    box-shadow: none;
}

body:not(.scrolled) .menu-top {
    opacity: 1;
    transform: translateY(0);
    height: 44px;
}

body:not(.scrolled) .main-navigation {
    background-color: white;
}

/* ========== ÉTAT SCROLLÉ ========== */
body.scrolled .site-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Masquer le menu top au scroll */
body.scrolled .menu-top {
    opacity: 0;
    transform: translateY(-100%);
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Menu principal devient plus compact */
body.scrolled .main-navigation {
    background-color: transparent;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

body.scrolled .main-navigation .logo img {
    height: 50px; /* Logo plus petit au scroll */
}

/* ========== ÉTAT CACHÉ (SCROLL DOWN) ========== */
body.scroll-down .site-header {
    transform: translateY(-100%);
}

/* ========== ÉTAT VISIBLE (SCROLL UP) ========== */
body.scroll-up .site-header {
    transform: translateY(0);
}

body.scrolled {
    padding-top: 80px; /* Hauteur réduite quand menu-top caché */
}

/* ========== MEGA MENU AJUSTEMENT ========== */
.mega-panels {
    position: fixed;
    top: 130px; /* Sous le header complet */
    transition: top 0.3s ease;
}

body.scrolled .mega-panels {
    top: 80px; /* Ajusté quand menu-top caché */
}

body.scroll-down .mega-panels {
    top: 0; /* Quand header caché */
}

/* ========== OVERLAY MEGA MENU ========== */
.menu-overlay {
    position: fixed;
    top: 130px;
    transition: top 0.3s ease, opacity 0.3s ease;
}

body.scrolled .menu-overlay {
    top: 80px;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

/* ========== STRUCTURE ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #EA6506 0%, #FF8A3D 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(234, 101, 6, 0.3),
                0 0 0 0 rgba(234, 101, 6, 0.4);
    
    /* États de visibilité */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== ÉTAT VISIBLE ========== */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ========== HOVER EFFECT ========== */
.back-to-top:hover {
    background: linear-gradient(135deg, #023D64 0%, #0B5A8A 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(2, 61, 100, 0.4),
                0 0 0 8px rgba(2, 61, 100, 0.1);
}

/* ========== ACTIVE (CLICK) ========== */
.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

/* ========== ICÔNE FLÈCHE ========== */
.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
    animation: bounce-arrow 1s ease infinite;
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* ========== CERCLE DE PROGRESSION (OPTIONNEL) ========== */
.back-to-top::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #EA6506;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top.loading::before {
    opacity: 1;
    animation: rotate-progress 1s linear infinite;
}

@keyframes rotate-progress {
    to {
        transform: rotate(360deg);
    }
}

/* ========== BADGE COMPTEUR (SI SCROLL PROFOND) ========== */
/* .back-to-top::after {
    content: attr(data-scroll-percent);
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #023D64;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
} */

.back-to-top.show-percent::after {
    opacity: 1;
    transform: scale(1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1023px) {
    body.scrolled {
        padding-top: 70px;
    }
    
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 640px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ========== ACCESSIBILITÉ ========== */
.back-to-top:focus-visible {
    outline: 3px solid #EA6506;
    outline-offset: 4px;
}

/* Mode réduit mouvement */
@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top svg {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}

/* ========== VARIANT AVEC TEXTE (OPTIONNEL) ========== */
.back-to-top.with-label {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 2rem;
    gap: 0.5rem;
}

.back-to-top.with-label span {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ========== POSITION ALTERNATIVE (GAUCHE) ========== */
.back-to-top.left {
    right: auto;
    left: 2rem;
}

/* ========== STYLE MINIMAL (ALTERNATIVE) ========== */
.back-to-top.minimal {
    background: white;
    color: #023D64;
    border: 2px solid #E5E7EB;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.minimal:hover {
    background: #023D64;
    color: white;
    border-color: #023D64;
}




@media screen and (min-width: 320px) {
	.container {
		width: 100% !important;
		padding: 0 25px;
	}

    .service {
        width: calc(100%);
    }

    article img, article .teaser {
        width: 100%;
        border: none;
    }

    .primary-menu {
        display: flex;
        flex-direction: column;
        align-items: start !important;
        justify-content: center;
        gap: 2rem;
        list-style: none;
        margin: 0;
        padding: 30px 12px !important;
    }
}

@media screen and (min-width: 768px) {
	.container {
		width: 99% !important;
		margin: 0 auto;
		padding: 0 20px;
	}

	html {
		font-size: 14px;
	}
}

@media screen and (min-width: 1024px) {
	.container {
		width: 1024px !important;
		margin: 0 auto;
		padding: 0 20px;
	}

    .service {
        width: calc(100% /3 - 2rem);
    }

    .primary-menu {
        flex-direction: row;
        align-items: center !important;
        padding: 0 !important;
    }
}

@media screen and (min-width: 1280px) {
	.container {
		width: 1280px !important;
		margin: 0 auto;
		padding: 0 20px;
	}

	html{
		font-size: 15px;
	}
}

@media screen and (min-width: 1600px) {
	.container {
		width: 1440px !important;
		margin: 0 auto;
		padding: 0 20px;
	}
	
	html {
		font-size: 16px;
	}
}