/* Local webfonts */
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pacifico-regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/roboto-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/roboto-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/roboto-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/roboto-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfairdisplay-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfairdisplay-400-italic.ttf') format('truetype');
}

:root {
    --primary: #E74C3C;
    --secondary: #2C3E50;
    --accent: #F39C12;
    --light: #ECF0F1;
    --dark: #1A1A1A;
}

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

body {
    overflow-x: hidden;
    background: #0A0A0A;
    color: var(--light);
    font-family: 'Roboto', sans-serif;
}

/* Désactive le scroll vertical sur la page de connexion admin */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

html {
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    border-radius: 5px;
}

.nav-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-glass {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    position: relative;
    color: #ECF0F1;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #E74C3C, #F39C12);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    background-image: url('images/exterieur_accueil_jour.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(50%);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-year {
    display: inline-block;
    font-family: 'Pacifico', cursive;
    font-size: 8rem;
    color: rgba(255, 215, 0, 0.1);
    -webkit-text-stroke: 3px #FFD700;
    letter-spacing: 0.1em;
    margin-bottom: -2rem;
    animation: goldShine 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
}

@keyframes goldShine {

    0%,
    100% {
        -webkit-text-stroke: 3px #FFD700;
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
    }

    50% {
        -webkit-text-stroke: 3px #FFF700;
        filter: drop-shadow(0 0 25px rgba(255, 247, 0, 0.8)) drop-shadow(0 0 50px rgba(255, 215, 0, 0.5));
    }
}

.hero-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: #ECF0F1;
    line-height: 1.1;
    margin-bottom: 1rem;
    padding-bottom: 10px;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: none;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow-x: clip;
}

.section-dark {
    background: #0A0A0A;
    color: #ECF0F1;
}

.section-light {
    background: linear-gradient(135deg, #1A1A1A, #2C3E50);
    color: #ECF0F1;
}

.section-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title span {
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: inherit;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(243, 156, 18, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.features-grid {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.feature-list li {
    position: relative;
    padding-left: 0;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #1A1A1A;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.2);
    filter: brightness(0.7);
}

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'prev figure next';
    align-items: center;
    gap: 12px;
}

.lightbox-figure {
    grid-area: figure;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-media {
    position: relative;
    display: inline-block;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.lightbox-figure figcaption {
    color: #ECF0F1;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.9;
}

.lightbox-figure figcaption .lb-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.lightbox-figure figcaption .lb-desc {
    opacity: 0.85;
    font-weight: 400;
    margin-top: 2px;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ECF0F1;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    z-index: 5;
    opacity: 0.75;
    transition: opacity .15s ease;
}

.lightbox-prev,
.lightbox-next {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 8;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: scale(1.06);
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev {
    grid-area: prev;
}

.lightbox-next {
    grid-area: next;
}

@media (max-width: 768px) {
    .lightbox-inner {
        grid-template-columns: 1fr;
        grid-template-areas: 'figure';
    }

    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

.calendar-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 12px;
}

.calendar-nav {
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease;
}

#currentMonth {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-nav:hover {
    transform: scale(1.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #ECF0F1;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-day:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

.calendar-day.reserved {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.3), rgba(243, 156, 18, 0.3));
    position: relative;
    cursor: not-allowed;
}

.calendar-day.today {
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    color: white;
    font-weight: 700;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(243, 156, 18, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-10px);
}

/* Animation téléphone qui sonne */
@keyframes phoneRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-10deg);
    }

    20% {
        transform: rotate(10deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

/* Animation email qui vole */
/* Animation email qui s'envoie */
@keyframes emailSend {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(5px) rotate(5deg);
    }

    50% {
        transform: translateX(10px) rotate(-5deg) scale(0.9);
    }

    75% {
        transform: translateX(5px) rotate(3deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Application des animations aux icônes */
.contact-card:hover .fa-phone {
    animation: phoneRing 1s ease-in-out infinite;
}

.contact-card:hover .fa-envelope {
    animation: emailSend 1s ease-in-out infinite;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonials-track {
    cursor: grab;
    touch-action: pan-y;
}

.testimonials-track.is-dragging {
    cursor: grabbing;
}

.testimonial-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

#testimonials-prev:hover,
#testimonials-next:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.t-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    cursor: pointer;
    z-index: 10;
    transition: filter 0.2s ease;
}

.t-nav.left {
    left: 10px;
}

.t-nav.right {
    right: 10px;
}

.t-nav:hover {
    filter: brightness(1.05);
}

@media (max-width: 640px) {
    .t-nav {
        width: 34px;
        height: 34px;
    }
}

.testimonials-container {
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
}

@media (min-width: 1024px) {
    .testimonials-container {
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    .testimonials-container {
        max-width: 1100px;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #0A0A0A, #1A1A1A);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .hero-year {
        font-size: 5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .testimonial-card {
        min-width: 280px !important;
    }

    #testimonials-prev,
    #testimonials-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .calendar-container {
        padding: 1.25rem;
    }

    #currentMonth {
        font-size: 1.125rem;
    }

    .calendar-nav {
        padding: 0.4rem 1rem;
        border-radius: 20px;
    }

    .calendar-grid {
        gap: 8px;
    }
}

@media (max-width: 420px) {
    #currentMonth {
        font-size: 1rem;
    }

    .calendar-grid {
        gap: 6px;
    }
}

.fab-admin {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10050;
}

.fab-admin-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    cursor: pointer;
    transition: transform .2s ease;
    font-family: 'Roboto', sans-serif;
}

.fab-admin-main:hover {
    transform: scale(1.05);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Body text justification for About and Testimonials sections */
#about p,
#testimonials p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Titres de cartes avec Playfair Display */
.feature-card h3,
.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Section "Les Petits Plus" - Titre principal */
#features h3 {
    font-family: 'Playfair Display', serif !important;
    color: #FFD700 !important;
    font-weight: 700;
}

/* Section "Les Petits Plus" - Sous-titres */
#features h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Section "Informations Pratiques" - Titre principal */
#contact h3 {
    font-family: 'Playfair Display', serif !important;
    color: #FFD700 !important;
    font-weight: 700;
}

/* Section "Informations Pratiques" - Sous-titres */
#contact h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Logo footer en Pacifico */
footer .footer-logo {
    font-family: 'Pacifico', cursive;
}

/* Galerie overlay - Titres en Playfair Display */
.gallery-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Galerie overlay - Descriptions en Roboto */
.gallery-overlay p {
    font-family: 'Roboto', sans-serif;
}

/* Feature cards - Listes en Roboto */
.feature-list li {
    font-family: 'Roboto', sans-serif;
}

/* Contact cards - Descriptions en Roboto */
.contact-card p {
    font-family: 'Roboto', sans-serif;
}

/* Boutons navigation testimonials */
.t-nav {
    font-family: 'Roboto', sans-serif;
}

/* Boutons mobile menu */
#mobile-menu-btn,
#close-menu {
    font-family: 'Roboto', sans-serif;
}

/* Lightbox - Police Roboto */
.lightbox-figure figcaption {
    font-family: 'Roboto', sans-serif;
}

/* Calendrier - Titre du mois et éléments */
#currentMonth {
    font-family: 'Roboto', sans-serif;
}

/* Menu mobile - Police Roboto */
.mobile-menu a {
    font-family: 'Roboto', sans-serif;
}

/* Calendrier avec Roboto */
.calendar-container,
.calendar-container * {
    font-family: 'Roboto', sans-serif;
}

/* Témoignages avec Roboto */
.testimonial-card,
.testimonial-card * {
    font-family: 'Roboto', sans-serif;
}
