.hidden-section {
    opacity: 0;
    transform: translateY(50px);
    /* Léger décalage vers le bas */
    will-change: transform, opacity;
    /* Optimisation des performances */
}

.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease-out;
}

.fade-in.active {
    opacity: 1;
}

.slide-in {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.7s ease-out, opacity 0.7s ease-out;
}

.slide-in.active {
    transform: translateY(0);
    opacity: 1;
}

.smenu {
    z-index: 1000;
    /* Un nombre élevé pour être sûr qu'il passe devant */
    position: absolute;
    /* S'assurer que le menu est bien positionné */
}

nav {
    position: relative;
    z-index: 50;
    /* Plus bas que le menu déroulant */
}

.carousel {
    z-index: 10;
}

nav {
    transition: all 0.3s ease-in-out;
}

/* Ajoutez seulement ceci à votre CSS existant */
.list-item {
    position: relative;
    transition: all 0.5s ease;
    transform-origin: left center;
    list-style-position: inside;
    /* Préserve l'alignement des puces */
    display: list-item;
    /* Conserve le comportement normal des <li> */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* Transition plus dynamique */
}

.list-item.active {
    color: #db2525;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.199);
    animation: listItemActivation 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes listItemActivation {
    0% {
        transform: translateX(0);
        opacity: 0.8;
    }

    50% {
        transform: translateX(12px);
        opacity: 0.4;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation de la puce uniquement */
.list-item::marker {
    transition: all 0.4s ease;
}

.list-item.active::marker {
    color: #db2525;
    content: "⇒";
    /* Change le style de la puce */
    animation: markerPulse 0.6s infinite alternate;
}

@keyframes markerPulse {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

/* Animations subtiles */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-translate {
    transition: transform 0.2s ease;
}

.hover-translate:hover {
    transform: translateX(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.list-item:hover:not(.active) { /* S'applique seulement si l'élément n'est pas actif */
    transform: scale(1.05);
    color: #ff6b6b; /* Légère teinte rouge au survol */
    text-shadow: 0 2px 8px rgba(219, 37, 37, 0.3);
  }
  
  /* Version alternative avec décalage */
  .list-item:hover:not(.active) {
    transform: scale(1.03) translateX(5px);
    transition: all 0.3s ease-out;
  }

/* Dropdown stylisé */
.dropdown-menu {
    display: none;
    min-width: 280px;
    border-top: 3px solid #d91212;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Animation d'ouverture */
#devisModal {
    transition: opacity 0.3s ease;
}

#devisModal>div {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
}

#devisModal:not(.hidden)>div {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 15s linear infinite;
}

.nouveautes-section {
    background-color: rgba(219, 37, 37, 0.05);
    /* Rouge très léger */
    padding: 2rem 0;
}

/* Ajoutez ceci dans votre balise style */
section:last-of-type {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

/* Version mobile */
@media (max-width: 768px) {
    section:last-of-type {
        margin-bottom: 3rem;
    }
}

/* Dans la section <style> */
section {
    padding: 3rem 0;
    /* Réduit de 4rem à 3rem */
    margin-bottom: 2rem;
    /* Espacement réduit entre sections */
}

/* Version mobile */
@media (max-width: 768px) {
    section {
        padding: 2rem 0;
        margin-bottom: 1.5rem;
    }
}

/* Ajouter ces nouveaux styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #db2525;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #b51d1d;
    transform: translateY(-3px);
}

html {
    scroll-behavior: smooth;
}



@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

#modal-eval {
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

#modal-eval>div {
    max-height: 90vh;
    overflow-y: auto;
}

.star-rating {
    transition: color 0.2s ease;
    cursor: pointer;
}

/* Animation de la flèche */
.rotate-180 {
    transform: rotate(180deg);
}

/* Assurez-vous que le dropdown est au-dessus des autres éléments */
.dropdown {
    z-index: 50;
}

/* Style pour l'icône de flèche */
.icon {
    transition: transform 0.3s ease;
}


/* Animation de rebond au survol */
.animate-bounce-on-hover {
    transition: all 0.3s ease;
}

.animate-bounce-on-hover:hover {
    animation: bounce 0.5s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) scale(1.02);
    }

    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'MTNBrighterSans-Bold', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400&display=swap');

p,
li,
span,
a,
button {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
}

/* Ajouter cette animation */
@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hidden-section {
    animation: slideInFromBottom 0.8s ease-out forwards;
}

.cgu-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.cgu-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s;
}

.cgu-tab:hover {
    color: var(--dark);
}

.cgu-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.cgu-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.cgu-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.cgu-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.highlight-term {
    background: rgba(230, 57, 70, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

.definition-box {
    background: #f8f9fa;
    border-left: 3px solid var(--primary);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

.download-section {
    background: var(--light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
    transition: all 0.3s;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.download-btn svg {
    margin-right: 0.5rem;
}

.cookie-hero {
    background: url('../img/cookie-bg.jpg') center/cover no-repeat;
    padding: 5rem 0;
    text-align: center;
    color: white;
    position: relative;
}

.cookie-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 53, 87, 0.85);
}

.cookie-hero-content {
    position: relative;
    z-index: 2;
}

.cookie-manager {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

.cookie-category {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.cookie-essential {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #52c41a;
}

input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

input:disabled + .cookie-slider {
    background-color: #1890ff;
    cursor: not-allowed;
}

.cookie-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.cookie-table th, .cookie-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cookie-table th {
    background-color: #f5f5f5;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.cookie-btn-primary:hover {
    background: var(--primary-dark);
}

.cookie-btn-outline {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cookie-btn-outline:hover {
    background: #fff0f0;
}

.cookie-visual {
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
}

.cookie-visual img {
    max-width: 100%;
    height: auto;
}

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #457b9d;
    --dark: #1d3557;
    --light: #f1faee;
    --gray: #6c757d;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.legal-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.legal-header::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('../img/wave.svg') center/cover no-repeat;
    z-index: 10;
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary);
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .legal-header {
        padding: 3rem 0;
    }

    .legal-card {
        padding: 1.5rem;
    }
}

 /* Base styles from previous template */
 :root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #457b9d;
    --dark: #1d3557;
    --light: #f1faee;
    --gray: #6c757d;
}

.privacy-hero {
    background: url('../img/privacy-bg.jpg') center/cover no-repeat;
    padding: 6rem 0;
    position: relative;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 53, 87, 0.8);
}

.privacy-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-toc {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 3rem;
    position: sticky;
    top: 20px;
}

.privacy-toc h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.privacy-toc ul {
    list-style: none;
    padding: 0;
}

.privacy-toc li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.privacy-toc li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.privacy-toc a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.privacy-toc a:hover {
    color: var(--primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: var(--light);
    color: var(--dark);
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.consent-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.highlight-box {
    background: rgba(230, 57, 70, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}
.hidden-section, .fade-in, .slide-in {
    opacity: 1 !important;
    transform: none !important;
}

