:root {
    --background-color: #000000;
    --text-color: #C51603;
    --box: #FCF4C5;
    --box-shadow: #721E20;
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'berlin';
    src: url('view/font/BRLNSR.TTF') format('truetype');
  }

body {
    font-family: 'berlin', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container, .container-tarif {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER & NAVIGATION ========== */
/* .header {
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-evenly;
    z-index: 1000;
    height: 120px;
    margin-top: 1%;
    margin-bottom: 1%;
} */

.img-header {
    z-index: 0;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text.about-btn {
    cursor: pointer;
    width: 130px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-text.about-btn:hover {
    transform: scale(1.1);
}

/* Navigation Desktop */
  
@keyframes apparition_text {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
}

.navbar {
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-evenly;
    z-index: 1000;
    height: 120px;
    margin-top: 1%;
    margin-bottom: 1%;
    box-sizing: border-box;
}

.nav-links {
    display: none;
}

.nav-links.mobile-menu {
    background-color: var(--background-color);
    position: absolute;
    width: 100%;
    top: 120px;
    display: flex;
    justify-content: end;
}

.nav-links.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: end;
    list-style: none;
    margin-right: 20px;
    animation: 1s ease apparition_text;
}

.nav-links ul li {
    font-size: 1.2em;
    margin-top: 10px;
}

.nav-desktop {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0px;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

.nav-link {
    display: flex;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-size: 120%;
    font-weight: 600;
    height: 100%;
}

.nav-image {
    width: 6rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: baseline;
}

.nav-image-connexion {
    width: 6rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: baseline;
    padding-top: 70%;
}

.nav-image:hover {
    transform: scale(1.1);
}

.nav-image-connexion:hover {
    transform: scale(1.1);
}

.nav-link:hover {
    color: var(--text-color);
}

/* Menu Mobile */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--box);
    transition: all 0.3s;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

.menu-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
}

/* ========== HERO SECTIONS ========== */
.hero, .hero1, .hero2 {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 10% 0;
}

/* Hero Accueil */
.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hero-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, var(--box) 25%, transparent 25%),
        linear-gradient(-45deg, var(--box) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--box) 75%),
        linear-gradient(-45deg, transparent 75%, var(--box) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Hero Tarifs */
.hero1 .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 5%;
    padding-top: 5%;
    font-weight: bold;
    text-align: center;
}

.hero1 .hero-title {
    color: black;
}

.hero2 .hero-title {
    color: white;
}

.paragraphe {
    color: white;
    font-weight: 300;
    padding: 5% 20% 5% 20%;
}

/* Hero Concept */
.hero2 .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}

/* ========== ACCUEIL - CARTES SECTION ========== */
/* .interactive-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 60vh;
}

.title h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.title strong {
    color: var(--box);
}

.cards-container {
    position: relative;
    width: 400px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    position: absolute;
    width: 50%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-normale {
    background: linear-gradient(135deg, #6b6b6b 0%, #4a4a4a 50%, #5a5a5a 100%);
    transform: rotate(-15deg);
    left: -4px;
    z-index: 1;
}

.card-premium {
    background: linear-gradient(135deg, #c9c9c9 0%, #a8a8a8 50%, #b8b8b8 100%);
    transform: rotate(15deg);
    right: -4px;
    z-index: 2;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.card:hover {
    transform: scale(1.05) rotate(-15deg);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.card-premium:hover {
    transform: scale(1.05) rotate(15deg);
} */

/* ========== PRODUCTS SECTION ========== */
.products-section {
    padding: 60px 0;
    background-color: var(--background-color);
    text-align: center;
}

.products-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    gap: 3%;
}

.cta-h2 {
    color: white;
    font-size: xx-large;
    text-align: center;
    padding-top: 10%;
}

.product-item {
    background-color: var(--box);
    color: black;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 480px;
    min-width: 100px;
    box-sizing: border-box;
    flex-direction: row;
    min-height: 15%;
    padding: 20px;
    gap: 20px;
    border-radius: 20px;
}

/* ========== PRICING SECTION ========== */
.pricing-section {
    padding: 5% 0;
    background-color: var(--background-color);
}

.pricing-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 8%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(197, 22, 3, 0.3);
}

.reserve-btn {
    background: white;
    color: var(--box);
    border: none;   
    padding: 4% 8%;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.reserve-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.reserve-btn:hover::before {
    width: 300px;
    height: 300px;
}

.reserve-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 22, 3, 0.4);
}

/* ========== CONCEPT SECTION ========== */
.concept-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.timeline-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.timeline-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--box-shadow), var(--text-color), var(--box-shadow));
    transform: translateX(-50%);
}

.timeline-item {
    margin: 40px 0;
    position: relative;
}

.timeline-content {
    background-color: var(--box-shadow);
    border-radius: 15px;
    padding: 25px;
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 55%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--text-color);
    border: 3px solid var(--box);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content p {
    color: white;
    font-size: 22px;
    line-height: 1.5;
}

/* ========== INFOS SECTION ========== */
.schedule-box {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    width: 100%;
    height: auto;
}

.info-section {
    position: relative;
}

.h1-info, .h3-info {
    position: relative;
    z-index: 1;
    top: 30%;
}

.info-section {
    position: relative;
}

.h1-info {
    z-index: 1;
    position: relative;
    font-size: 4rem;
    text-align: center;
}

.h3-info {
    z-index: 1;
    position: relative;
    font-size: 2rem;
    text-align: center;
}

.img-horaires {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 10%;
    margin: 0 auto;
    width: 80%;
    height: auto;
}

.location-section {
    position: relative;
    background-color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 5%;
    padding-bottom: 8%;
    z-index: -10;
}

.fond-carte {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.map-container iframe {
    z-index: 1;
    position: relative; 
}

.lieu-h2 {
    color: var(--text-color);
    padding-bottom: 1%;
    font-size: 3rem;
}

.location-card {
    width: 100%;
    max-width: 700px;
}

.map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 400px;
    filter: grayscale(100%);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.address-info {
    margin-top: 1rem;
    text-align: center;
    color: black;
}

.address-info strong {
    color: black;
}

/* ========== MESSAGES FLOTTANTS ========== */
.btn_message {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: red;
    position: fixed;
    right: 10px;
    bottom: 10px;
    transition: all 0.4s ease;
    z-index: 100;
}

.btn_message.ouvrir {
    width: 300px;
    height: 200px;
    border-radius: 10px;
}

.conteneur_message {
    display: none;
    padding-left: 15px;
    flex-direction: column;
}

.conteneur_message form textarea {
    width: 80%;
    height: 110px;
    border-radius: 10px;
    background-color: #FFF5C4;
}

#submitBtn {
    margin-left: 5px;
    cursor: pointer;
}

.btn_message.ouvrir .conteneur_message {
    display: flex;
}

#open {
    position: absolute;
    display: block;
    width: 45px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

#open.ouvert {
    display: none;
}

#close {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

#close.fermer {
    display: block;
}

/* ========== GESTION & ADMIN ========== */
#page_gestion, #page_user_messagerie, #page_afficher_message {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 100px;
}

#page_gestion h1, #page_user_messagerie h1 {
    text-align: center;
    color: #C51603;
}

#conteneur_commentaire, #conteneur_messagerie, #conteneur_messagerie_e, #conteneur_messagerie_r, #conteneur_afficher_message {
    background-color: #FFF5C4;
    padding: 30px;
}

#tableau_commentaire, #tableau_messagerie_e, #tableau_commentaire_e, #tableau_messagerie_r {
    background-color: #FFF5C4;
    border: 2px solid black;
    border-collapse: collapse;
}

#tableau_commentaire td, #tableau_messagerie_e td, #tableau_commentaire_e td, #tableau_messagerie_r td {
    border: 2px solid black;
    padding: 8px;
}

#tableau_commentaire td a, #tableau_messagerie td a, #tableau_commentaire_e td a, #tableau_messagerie_r td a {
    color: black;
}

.icon {
    width: 30px;
}

.btn_env {
    background-color: #FFF5C4;
    border-radius: 25px;
    padding: 15px;
    text-decoration: none;
    color: #C51603;
    font-weight: bold;
    font-size: x-large;
}

/* ========== FORMULAIRES ========== */
.inscription-connexion-h2 {
    text-align: center;
}

.submit-btn {
    background-color: var(--box-shadow);
    color: var(--box);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-size: 20px;
    height: 100%;
}

.conteneur_formulaire {
    width: 300px;
    margin: 50px auto;
    background-color: var(--box);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--box-shadow);
    color: var(--text-color);
}

.champ-formulaire {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    width: 100%;
    margin: 0.5rem 0;
    border: 1px solid white;
    border-radius: 5px;
    box-sizing: border-box;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--background-color);
    padding: 40px 0 20px;
    margin-bottom: 10%;
}

.footer-content {
    color: white;
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: rgb(255, 187, 0);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 200px;
}

.social-item {
    width: 100%;
    border-radius: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.7;
}

/* ========== ANIMATIONS & EFFECTS ========== */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========== ACCESSIBILITY ========== */
*:focus {
    outline: 2px solid var(--box);
    outline-offset: 2px;
}

.nav-link:focus,
.mobile-nav-link:focus,
.product-btn:focus {
    outline-color: #D2691E;
}

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

/* Tablet */
@media (min-width: 480px) {
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .container-tarif {
        padding: 0 8%;
    }
    
    .cards-container {
        width: 500px;
        height: 350px;
    }
    
    .card {
        width: 250px;
        height: 320px;
        font-size: 2rem;
    }
    
    .card-normale {
        left: -70px;
    }
    
    .card-premium {
        right: -70px;
    }
    
    .timeline-content {
        width: 40%;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 60%;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 60%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cards-container {
        width: 600px;
        height: 400px;
    }
    
    .card {
        width: 280px;
        height: 360px;
        font-size: 2.2rem;
    }
    
    .card-normale {
        left: -80px;
    }
    
    .card-premium {
        right: -80px;
    }
    
    .location-section {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .cards-container {
        width: 700px;
        height: 450px;
    }
    
    .card {
        width: 320px;
        height: 400px;
        font-size: 2.5rem;
    }
    
    .card-normale {
        left: -100px;
    }
    
    .card-premium {
        right: -100px;
    }
}

/* Mobile Timeline */
@media (max-width: 480px) {
    .timeline-line {
        left: 20px;
    }

    .nav-desktop {
        display: none;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-marker {
        left: 20px;
    }
}

/*Version ordinateur*/

@media screen and (min-width: 1000px) {
  
    .nav-links {
      display: flex;
      align-items: center;
    }
  
    .nav-links ul {
      display: flex;
      align-items: end;
      list-style: none;
    }
    
    .nav-links ul li {
      margin-right: 30px;
    }
    
    .navbar .menu-hamburger {
      display: none;
    }

    .menu-toggle {
        display: none;
    }
  }