
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Now Text", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

main {
    width: 100%;
    margin: 0 auto;
}

.container {
    width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER STYLES */
.header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 1.5);
}

.featured-products .container,
.newsletter .container,
.sneaker-table-container,
.contact-page main {
    width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-full-width, .footer-full-width {
    width: 100%;
}

.header-content, .footer-content {
    width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 50px;
}

@keyframes flip {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.logo-container {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    perspective: 1000px;
}

.logo-img {
    width: auto;
    height: 65px;
    max-height: 100%;
    display: block;
    animation: flip 4s infinite linear;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

.logo-container:hover {
    transform: translateY(-50%) scale(1.15);
}

.logo-img {
    width: auto;
    height: 65px;
    max-height: 100%;
    display: block;
    transition: all 0.3s ease;
}

.header .navbar {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.header .navbar ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header .navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header .navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ff4500;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header .navbar ul li a:hover,
.header .navbar ul li a.active {
    color: #ff4500;
}

.header .navbar ul li a:hover::after,
.header .navbar ul li a.active::after {
    width: 100%;
}


/* HERO STYLES */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/baniere.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgb(255, 255, 255);
    z-index: 2;
    width: 1080px;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #00000080;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px #00000080;
}

.hero-content .btn-primary {
    font-size: 1.2rem;
    padding: 15px 30px;
}

.featured-products {
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.featured-products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ff4500;
}

/* CAROUSEL STYLES */
.carousel {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.carousel-item {
    margin: 0 15px;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.carousel-item h3 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
}

.carousel-item p {
    font-size: 1rem;
    color: #ff4500;
}

/* NEWSLETTER STYLES */
.newsletter {
    background-color: #333;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter .btn-primary {
    font-size: 1.2rem;
    padding: 15px 30px;
}

/* FOOTER STYLES */
.footer {
    background-color: #333;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer .footer-links a {
    text-decoration: underline;
}

.footer-links a:hover {
    color: #ff4500;
}

.footer-links li a[href="credits.php"] {
    color: white;
    text-decoration: underline;
}

.footer-links li a[href="credits.php"]:hover {
    color: #ff4500;
}

.text-center {
    text-align: center;
}

.btn-primary {
    background-color: #ff4500;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #cc3700;
}

.btn-secondary {
    background-color: #555;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #444;
}

.credits-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.credits-container h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.credits-section {
    margin-bottom: 2rem;
}

.credits-section h2 {
    color: #ff4500;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.credits-list {
    list-style-type: none;
    padding-left: 0;
}

.credits-list li {
    margin-bottom: 0.5rem;
}

.credits-list a {
    color: #ff4500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits-list a:hover {
    color: #cc3700;
    text-decoration: underline;
}


/* DATATABLE */
main h1 {
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    color: #333;
}

.sneaker-table-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.sneaker-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.sneaker-table thead tr {
    background-color: #333;
    color: white;
}

.sneaker-table th,
.sneaker-table td {
    padding: 1rem;
    text-align: left;
}

.sneaker-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sneaker-table th:hover,
.sneaker-table th.sorting_asc,
.sneaker-table th.sorting_desc {
    background-color: #ff4500;
}

.sneaker-table tbody tr {
    background-color: #fff;
    transition: all 0.3s ease;
}

.sneaker-table tbody tr:hover {
    box-shadow: 0 0 0 2px #ff4500;
}

.sneaker-table td:first-child,
.sneaker-table th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.sneaker-table td:last-child,
.sneaker-table th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.sneaker-brand {
    font-weight: bold;
    color: #ff4500;
}

.sneaker-price {
    font-weight: bold;
    color: #28a745;
}

.sneaker-features {
    font-style: italic;
    color: #6c757d;
}

.dataTables_wrapper {
    margin-top: 20px;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 20px;
}

.dataTables_length label,
.dataTables_filter label {
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.dataTables_length select,
.dataTables_filter input {
    border: 2px solid #ff4500;
    border-radius: 5px;
    padding: 8px 30px 8px 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
    outline: 2px solid #ff4500;
    outline-offset: 2px;
    border-color:  #ff4500;
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.1);
}


.dataTables_length select:hover,
.dataTables_length select:focus,
.dataTables_filter input:hover,
.dataTables_filter input:focus {
    border-color: #ff4500;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.1);
}

.dataTables_paginate {
    margin-top: 20px;
    text-align: center;
}

.dataTables_paginate .paginate_button,
.custom-button {
    background-color: #ff4500;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin: 0 3px;
}

.dataTables_paginate .paginate_button:hover,
.dataTables_paginate .paginate_button.current,
.custom-button:hover {
    background-color: #aa2d00;
    transform: translateY(-2px);
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dataTables_wrapper .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dataTables_wrapper .dt-buttons {
    margin-bottom: 10px;
}

/* CONTACT STYLES */
.contact-page main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-page h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.en-tete {
    display: flex;
    gap: 1rem;
}

.en-tete .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    height: 120px;
    resize: vertical;
}

/* Styles pour les boutons radio */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.radio-group input[type="radio"]:checked + label {
    background-color: #ff4500;
    color: white;
    border-color: #ff4500;
}

.btn-primary {
    background-color: #ff4500;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: block;
    width: fit-content;
    margin: 0 auto;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #aa2d00;
}

label span {
    color: #ff4500;
    font-weight: bold;
}

input:focus,
textarea:focus {
    border-color: #ff4500;
    outline: none;
}

.captcha-image {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.message-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message-container h1 {
    color: #333333;
    font-size: 24px;
    margin-bottom: 20px;
}

.message-container p {
    color: #666666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* PARTENAIRES PAGE STYLES */
.partenaires-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.partenaires-page h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.partenaires-page h2 {
    color: #ff4500;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #ff4500;
    padding-bottom: 0.5rem;
}

.groupe-presentation {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.membres-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.membre {
    width: calc(33.333% - 2rem);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.membre:hover {
    transform: translateY(-5px);
}

.membre img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.membre-info {
    padding: 1rem;
    text-align: center;
}

.membre h3 {
    margin-bottom: 1rem;
    color: #333;
}

.documents-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    color: #fff;
    background-color: #ff4500;
}

.btn-secondary {
    color: #ff4500;
    background-color: #fff;
    border: 2px solid #ff4500;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #aa2d00;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #ff4500;
}

/* Formulaire d'upload */
.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto 2rem auto;
}

.upload-form label {
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.upload-file {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.upload-button {
    background-color: #ff4500;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.upload-button:hover {
    background-color: #aa2d00;
}

/* Messages d'erreur et de succès */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gallery {
    column-count: 3;
    column-gap: 1em;
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .image-item {
    break-inside: avoid;
    margin-bottom: 1em;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
  }
  
  .image-item:hover {
    transform: translateY(-5px);
  }
  
  .image-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .image-item form {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .image-item:hover form {
    opacity: 1;
  }
  
  .delete-button {
    background-color: #ff4500;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .delete-button:hover {
    background-color: #aa2d00;
  }
  
  /*LOADING*/
  #loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    text-align: center;
}

.sneaker-icon {
    font-size: 100px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.loader p {
    color: #ff4500;
    font-size: 1.2rem;
    display: inline-block;
}

.dots::after {
    display: inline-block;
    animation: ellipsis 1.25s infinite;
    content: ".";
    width: 1em;
    text-align: left;
}

@keyframes ellipsis {
    0% {
        content: ".";
    }
    33% {
        content: "..";
    }
    66% {
        content: "...";
    }
}

