/*
Theme Name: DUO Consulting
Theme URI: https://duoconsulting.fr
Description: Thème personnalisé pour DUO Consulting - Design élégant et minimaliste
Version: 1.0
Author: DUO Consulting
Author URI: https://duoconsulting.fr
Text Domain: duo-consulting
*/

/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rouge: #c73030;
    --noir: #333333;
    --gris-fonce: #444444;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--noir);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    min-width: 320px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    color: var(--noir);
}

.highlight {
    color: var(--rouge);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: var(--blanc);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--rouge);
    border-radius: 50%;
    opacity: 0.3;
    top: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

.animated-circle {
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: #ff8c42;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1000;
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--noir);
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.7;
    font-weight: 300;
    color: var(--gris-fonce);
}

.cta-btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--rouge);
    color: var(--blanc);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 0, 0, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 0, 0, 0.5);
    background: #ff0000;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--blanc);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    gap: 50px;
}

.nav-logo,
.custom-logo-link {
    max-width: 60px;
    height: auto;
    display: inline-block;
}

.nav-logo img,
.custom-logo,
.custom-logo-link img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

.nav-links-center {
    display: flex;
    gap: 50px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-linkedin {
    margin-left: auto;
    color: var(--blanc);
    background: #0077b5;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-linkedin:hover {
    background: #005582;
    transform: scale(1.1);
}

/* Menu burger mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--noir);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: #2d2d2d;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mobile-menu-overlay.active::before {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-overlay.active ~ .scroll-to-top,
.mobile-menu-overlay.active ~ .scroll-to-bottom {
    display: none !important;
}

body:has(.mobile-menu-overlay.active) .scroll-to-top,
body:has(.mobile-menu-overlay.active) .scroll-to-bottom {
    display: none !important;
}

.mobile-menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 80px 30px 40px 30px;
    overflow-y: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:hover {
    color: #ff8c42;
    padding-left: 10px;
}

.nav-link {
    color: var(--noir);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--rouge);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--rouge);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 0px 50px 0px;
    background: var(--gris-clair);
    scroll-margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--blanc);
    padding: 24px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    min-height: 220px;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--rouge);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--noir);
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* ===== STATS SECTION ===== */
.stats-section {
    width: 100%;
    min-height: 140px;
    background: var(--gris-clair);
    display: flex;  
    align-items: center;
    justify-content: center;
    padding: 0px 0 50px 0;
}

.stats-section .stats-bar-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 0 20px;
}

.stats-rect {
    padding: 20px 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 200px;
    margin: 0 8px;
}

.stats-rect .stats-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -2px;
}

.stats-rect .stats-label {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: left;
    line-height: 1.4;
    color: var(--noir);
}

.stats-rect.stats-orange .stats-number, 
.stats-rect.stats-orange .stats-label {
    color: #ff8800;
}

.stats-rect.stats-purple .stats-number, 
.stats-rect.stats-purple .stats-label {
    color: #a85ca8;
}

.stats-rect.stats-blue .stats-number, 
.stats-rect.stats-blue .stats-label {
    color: #1566d6;
}

.separator-wrapper {
    background: var(--gris-clair);
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.red-separator {
    width: 90%;
    max-width: 1200px;
    height: 0;
    border-top: 1px solid var(--rouge);
    margin: 0;
}

.gray-spacer {
    background: linear-gradient(to bottom, var(--gris-clair) 0%, var(--blanc) 100%);
    height: 60px;
    width: 100%;
}

/* ===== VALEURS SECTION ===== */
.valeurs-section {
    padding: 80px 0px 150px 0px;
    background: var(--blanc);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 10px;
}

.valeurs-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 300px;
    background: var(--blanc);
    bottom: -300px;
    left: 0;
    z-index: -1;
}

.valeurs-circle {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: #9b59b6;
    border-radius: 50%;
    opacity: 0.25;
    top: 35%;
    right: -100px;
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* ===== VALEURS SPLIT VIEW ===== */
.valeurs-split {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.valeurs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.valeur-nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: var(--gris-clair);
    border-radius: 12px;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.valeur-nav-item:hover {
    background: var(--blanc);
    border-left-color: var(--rouge);
    transform: translateX(5px);
}

.valeur-nav-item.active {
    background: var(--blanc);
    border-left-color: var(--rouge);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.valeur-nav-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--rouge);
    opacity: 0.3;
    min-width: 50px;
}

.valeur-nav-item.active .valeur-nav-number {
    opacity: 1;
}

.valeur-nav-item h3 {
    flex: 1;
    font-size: 1.3rem;
    color: var(--noir);
    margin: 0;
}

.valeur-nav-item i {
    color: var(--rouge);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.valeur-nav-item.active i,
.valeur-nav-item:hover i {
    opacity: 1;
}

.valeurs-content {
    position: relative;
}

.valeur-detail {
    display: none;
    padding: 50px 40px;
    background: var(--gris-clair);
    border-radius: 15px;
    border-left: 5px solid var(--rouge);
    position: relative;
    animation: fadeIn 0.5s ease;
}

.valeur-detail.active {
    display: block;
}

.valeur-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--rouge);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    right: 30px;
}

.valeur-detail h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--noir);
    position: relative;
    z-index: 2;
}

.valeur-detail p {
    color: #666;
    line-height: 1.9;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* ===== EXPERIENCES FLIP CARDS ===== */
.experiences-section {
    padding-bottom: 100px;
    padding-top: 100px;
    background: var(--blanc);
}

.experiences-wrapper {
    position: relative;
    background: #2a2a2a;
    scroll-margin-top: 95px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin: 0 auto 0 auto;
    max-width: 1400px;
    width: 100%;
    padding: 120px 0 120px 0;
}

.experiences-section .section-title {
    color: var(--blanc);
    margin-bottom: 0;
    margin-top: 0;
}

.parcours-pro-title {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--blanc);
    margin: 0;
    padding: 0;
}

/* ===== CAROUSEL 3D ===== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 900px;
    margin-top: -55px;
}

.carousel-wrapper {
    padding: 20px 0;
    min-height: 400px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-cards-grid {
    position: relative;
    width: 900px;
    margin: 0 auto;
    margin-top: 30px;
    transform-style: preserve-3d;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(199, 48, 48, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 5px 0;
}

.carousel-btn:hover {
    background: rgba(199, 48, 48, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -160px;
}

.carousel-btn.next {
    right: -160px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    margin-top: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: var(--rouge);
    width: 35px;
    border-radius: 6px;
}

.flip-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 340px;
    margin-left: -125px;
    margin-top: -160px;
    transition: all 0.8s ease;
    perspective: 900px;
    --carousel-x: 0px;
    --carousel-z: 0px;
    --carousel-scale: 1;
    transform: translateX(var(--carousel-x)) translateZ(var(--carousel-z)) scale(var(--carousel-scale));
}

.flip-card.can-flip {
    cursor: pointer;
}

.flip-card:not(.can-flip) {
    cursor: default;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg) !important;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.flip-card-front {
    background: linear-gradient(135deg, #3d3d3d 0%, #4a4a4a 100%);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.flip-card.can-flip .flip-card-front {
    border-color: var(--rouge);
    box-shadow: 0 6px 20px rgba(199, 48, 48, 0.4);
}

.flip-card.can-flip:hover .flip-card-front {
    background: linear-gradient(135deg, #505050 0%, #5d5d5d 100%);
}

.flip-card-front .card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    margin-top: 40px;
}

.flip-card-front h3 {
    font-size: 1.1rem;
    color: var(--blanc);
    margin: 0;
    width: 100%;
}

.flip-card-back {
    background: #c73030;
    color: var(--blanc);
    transform: rotateY(180deg);
    overflow: hidden;
    border: 2px solid #c73030;
}

.flip-card-back h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    margin-top: 0;
    color: var(--blanc);
    width: 100%;
}

.flip-card-back p {
    text-align: left;
    line-height: 1.6;
    font-size: 0.75rem;
    width: 100%;
    margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0px;
    background: var(--gris-clair);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 10px;
}

.contact-circle {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    background: #3498db;
    border-radius: 50%;
    opacity: 0.2;
    top: 20%;
    transform: translateY(-50%);
    left: -150px;
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.contact-main-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-text-block {
    padding: 20px;
}

.contact-text-block h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--noir);
    font-weight: 700;
}

.contact-paragraph {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid var(--rouge);
}

.contact-paragraph p {
    color: #555;
    line-height: 1.9;
    margin: 0;
    font-size: 1.05rem;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(199, 48, 48, 0.05);
    border-radius: 10px;
    font-size: 1.1rem;
}

.contact-email .icon {
    font-size: 1.8rem;
}

.contact-email a {
    color: var(--rouge);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: #a52525;
}

.contact-form-wrapper {
    background: var(--blanc);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.contact-form textarea {
    resize: none;
}

.form-row-inline input {
    margin-bottom: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--rouge);
}

.submit-btn,
.wpcf7-submit {
    width: 100%;
    padding: 18px;
    background: var(--rouge);
    color: var(--blanc);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Styles CF7 pour garder le même design */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form-control {
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--rouge);
}

.wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.wpcf7-textarea {
    resize: none;
    min-height: 180px;
    max-height: 180px;
}

.wpcf7-spinner {
    display: none;
}

.wpcf7-response-output {
    margin: 20px 0 0 0;
    padding: 15px;
    border-radius: 8px;
}

.contact-form .wpcf7 form {
    display: contents;
}

/* Layout pour les champs en ligne CF7 */
.wpcf7-form .form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.wpcf7-form .form-row-inline > * {
    width: 100%;
}

.wpcf7-form .form-row-inline .wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}

.wpcf7-form .form-row-inline .wpcf7-form-control {
    margin-bottom: 0;
    width: 100%;
}

.wpcf7-form .form-field-full {
    width: 100%;
    margin-bottom: 15px;
}

/* Force le wrapper CF7 à ne pas casser la grid */
.wpcf7-form p {
    margin: 0;
}

.contact-form .wpcf7-form p br {
    display: none;
}

.submit-btn:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 0, 0, 0.3);
}

/* ===== LOGOS CAROUSEL ===== */
.logos-section {
    padding: 0;
    background: var(--gris-clair);
    overflow: hidden;
}

.logos-carousel {
    width: 1100px;
    max-width: 100vw;
    height: 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 auto;
}

.logos-track {
    display: flex;
    gap: 60px;
    width: max-content;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.77,0,0.18,1);
}

.logo-item {
    flex-shrink: 0;
    width: 320px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.03) contrast(1.01);
}

/* ===== PAGES LEGALES ===== */

/* Cacher le hero sur les pages de template */
.page-template-page-mentions-legales .hero,
.page-template-page-politique-confidentialite .hero {
    display: none !important;
}

.legal-page {
    padding: 40px 0 80px 0;
    background: var(--blanc);
    min-height: 70vh;
}

.back-to-home {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #c73030 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

.back-to-home:hover {
    gap: 12px;
    color: #8B0000 !important;
    text-decoration: none !important;
}

.back-to-home i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-to-home:hover i {
    transform: translateX(-3px);
}

.legal-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-page .page-title {
    font-size: 42px;
    margin-bottom: 40px;
    text-align: center;
}

.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--rouge);
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--noir);
}

.legal-content p {
    margin-bottom: 15px;
    color: #555;
}

.legal-content ul {
    margin: 15px 0 15px 30px;
}

.legal-content ul li {
    margin-bottom: 10px;
    color: #555;
}

.legal-content a {
    color: var(--rouge);
    text-decoration: underline;
}

.legal-content a:hover {
    color: #8B0000;
}

.legal-content .intro-text {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 35px;
    margin-top: 0;
    color: var(--noir);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.main-footer {
    background: transparent;
    padding: 60px 0 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 0 40px;
    text-align: center;
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--noir);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--rouge);
}

.footer {
    background: var(--noir);
    color: var(--blanc);
    text-align: center;
    padding: 40px 20px;
}

.footer-legal-link {
    color: var(--blanc);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--rouge);
}

/* ===== SCROLL BUTTONS ===== */
.scroll-to-top,
.scroll-to-bottom {
    position: fixed;
    right: 20px;
    width: 35px;
    height: 35px;
    background: var(--rouge);
    color: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(199, 48, 48, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top {
    bottom: 55px;
}

.scroll-to-bottom {
    bottom: 10px;
}

.scroll-to-top:hover {
    background: #a52525;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(199, 48, 48, 0.5);
}

.scroll-to-bottom:hover {
    background: #a52525;
    transform: translateY(5px);
    box-shadow: 0 6px 20px rgba(199, 48, 48, 0.5);
}

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 60px 20px;
        min-height: 60vh;
    }
    
    /* Réduire les cercles animés sur mobile */
    .hero::before {
        width: 350px;
        height: 350px;
        top: -125px;
        right: -125px;
    }
    
    .animated-circle,
    .contact-circle,
    .valeurs-circle {
        width: 350px !important;
        height: 350px !important;
        bottom: -125px !important;
        left: -125px !important;
    }
    
    /* Forcer le z-index des éléments de contenu */
    .hero-content,
    .hero h1,
    .hero .tagline,
    .cta-btn {
        position: relative;
        z-index: 10 !important;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    .cta-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    /* Navigation Mobile */
    .main-nav {
        padding: 15px 10px;
        min-height: auto;
    }
    
    .nav-container {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        align-items: center;
        gap: 15px;
        padding: 0;
    }
    
    /* Burger à gauche */
    .mobile-menu-toggle {
        display: block;
        order: 1;
        justify-self: start;
        margin: 0;
    }
    
    /* Logo DUO au centre */
    .nav-logo {
        order: 2;
        justify-self: center;
        margin: 0;
    }
    
    .nav-logo img {
        max-width: 60px !important;
        height: auto;
    }
    
    .nav-links-center {
        display: none;
    }
    
    /* LinkedIn à droite */
    .nav-linkedin {
        order: 3;
        justify-self: end;
        margin: 0;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Sections générales */
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    /* Stats */
    .stats-bar-content {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .stats-rect {
        width: 80% !important;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Valeurs section mobile */
    .valeurs-section {
        padding: 80px 15px 150px 15px;
    }
    
    /* Valeurs - Afficher directement les cartes sur mobile */
    .valeurs-split {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .valeurs-list {
        display: none;
    }
    
    .valeurs-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .valeur-detail {
        display: block !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        background: white;
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        cursor: default;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .valeur-detail:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .valeur-number {
        font-size: 1.9rem;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .valeur-detail h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
        width: 100%;
        max-width: 100%;
    }
    
    .valeur-detail p {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
        width: 100%;
        max-width: 100%;
    }
    
    /* Expériences - Carrousel fonctionnel sur mobile */
    .experiences-section {
        padding: 0;
        overflow: hidden;
    }
    
    .experiences-wrapper {
        background: #2d2d2d;
        border-radius: 0;
        padding: 50px 0 80px 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        position: relative;
        min-height: 650px;
        overflow-x: hidden;
    }
    
    .parcours-pro-title {
        padding: 0 20px;
        margin-bottom: 50px;
        margin-top: 0;
        color: white;
    }
    
    .carousel-container {
        padding: 0;
        position: relative;
        min-height: 570px;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }
    
    .carousel-wrapper {
        overflow: hidden;
        width: 100%;
        flex: 1;
    }
    
    .flip-cards-grid {
        display: flex;
        flex-direction: row;
        gap: 20px;
        transition: transform 0.3s ease;
        width: auto;
        height: 100%;
    }
    
    .flip-card {
        min-width: 100%;
        flex-shrink: 0;
        height: 400px;
    }
    
    .flip-card-front,
    .flip-card-back {
        border-radius: 15px;
    }
    
    .flip-card-back {
        padding: 35px 20px 45px 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .flip-card-back h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        flex-shrink: 0;
    }
    
    .flip-card-back p {
        font-size: 0.75rem;
        line-height: 1.5;
        flex: 1;
        overflow-y: auto;
    }
    
    .carousel-btn {
        display: flex !important;
        width: 35px;
        height: 35px;
        font-size: 1rem;
        touch-action: manipulation;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        z-index: 10;
    }
    
    .carousel-btn.prev {
        left: 10px;
        z-index: 100;
    }
    
    .carousel-btn.next {
        right: 10px;
        z-index: 100;
    }
    
    .carousel-dots {
        margin-top: 50px;
        padding-bottom: 0;
    }
    
    /* Contact */
    .contact-main-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-text-block h3 {
        font-size: 1.8rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .form-row-inline {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .wpcf7-form .form-row-inline {
        grid-template-columns: 1fr !important;
    }
    
    .wpcf7-textarea {
        min-height: 150px !important;
        max-height: 150px !important;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-column {
        padding: 20px 0;
    }
    
    /* Logos carousel - Centré et 3 logos visibles */
    .logos-section {
        padding: 40px 0;
    }
    
    .logos-carousel {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .logos-track {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 40px;
    }
    
    .logo-item {
        flex: 0 0 auto;
        width: 90px;
        min-width: 90px;
        padding: 0;
    }
    
    .logo-item img {
        max-width: 90px;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }
    
    /* Legal pages */
    .legal-page {
        padding: 30px 0 60px 0;
    }
    
    .legal-page header {
        display: block;
        position: relative;
    }
    
    .legal-page .page-title {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    /* Scroll buttons - Taille réduite et rapprochés */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 75px;
        right: 20px;
    }
    
    .scroll-to-bottom {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 20px;
        right: 20px;
    }
}
