/* ============================================
   CANI GARDE - Styles Personnalisés
   ============================================ */

:root {
    --warm-50: #fdf8f3;
    --warm-100: #f5ebe0;
    --warm-200: #e6d5c3;
    --warm-300: #d4b896;
    --warm-400: #c4a57a;
    --warm-500: #b8956a;
    --warm-600: #a07a52;
    --forest-500: #2d5a47;
    --forest-600: #244a3a;
    --forest-700: #1b3a2d;
}

* {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(27, 58, 45, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .nav-logo,
#navbar.scrolled .nav-link {
    color: white;
}

.hero-section {
    position: relative;
}

.hero-overlay {
    background:  linear-gradient(
        135deg,
        rgba(116, 45, 20, 0.1) 0%,
                                 rgba(170, 59, 31, 0.2) 50%,
                                 rgba(212, 111, 78, 0.1) 100%
    );
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 6rem;
        opacity: 1;
    }
}

@keyframes scrollIndicator {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(8px);
    }
}

@keyframes pulseSoft {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(196, 165, 122, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(196, 165, 122, 0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-expand {
    animation: expand 0.8s ease-out 0.5s forwards;
    width: 0;
    opacity: 0;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.9s forwards;
    opacity: 0;
}

.animate-scroll-indicator {
    animation: scrollIndicator 2s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulseSoft 2s ease-in-out infinite;
}

.tarifs-section {
    position: relative;
}

.pattern-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4b896' fill-opacity='0.3'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tarifs-table-container {
    animation: floatIn 0.6s ease-out;
}

.tarifs-table-container table {
    border-collapse: collapse;
}

.tarifs-table-container tbody tr {
    transition: all 0.3s ease;
}

.tarifs-table-container tbody tr:hover {
    transform: scale(1.01);
}

#floating-card {
    animation: floatIn 0.8s ease-out 1s forwards;
    opacity: 0;
}

.floating-card-inner {
    position: relative;
    overflow: hidden;
}

.floating-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.floating-card-inner:hover::before {
    left: 100%;
}

#contact {
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--warm-400), var(--warm-500), var(--warm-400));
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    /* Transformation du tableau en cartes sur mobile */
    .tarifs-table-container {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .tarifs-table-container table,
    .tarifs-table-container thead,
    .tarifs-table-container tbody,
    .tarifs-table-container th,
    .tarifs-table-container td,
    .tarifs-table-container tr {
        display: block;
    }

    .tarifs-table-container thead {
        display: none;
    }

    .tarifs-table-container tbody tr {
        background: white;
        border-radius: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        border: none;
    }

    .tarifs-table-container tbody tr:hover {
        transform: none;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    }

    .tarifs-table-container td {
        padding: 0;
        text-align: left !important;
        border: none;
    }

    .tarifs-table-container td:first-child {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--warm-200);
    }

    .tarifs-table-container td:first-child > div {
        flex-direction: row;
        align-items: flex-start;
    }

    .tarifs-table-container td:first-child p:first-child {
        font-size: 1.1rem;
    }

    .tarifs-table-container td:first-child p:last-child {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .tarifs-table-container td:nth-child(2) {
        margin-bottom: 0.75rem;
    }

    .tarifs-table-container td:nth-child(2)::before {
        content: 'Durée : ';
        font-weight: 600;
        color: var(--warm-900);
    }

    .tarifs-table-container td:last-child {
        background: var(--warm-50);
        padding: 1rem;
        border-radius: 0.75rem;
        margin-top: 0.5rem;
    }

    .tarifs-table-container td:last-child::before {
        content: 'Tarif';
        display: block;
        font-weight: 600;
        color: var(--warm-900);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
    }

    #floating-card {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-card-inner {
        padding: 0.875rem 1rem;
        border-radius: 1rem;
    }

    .floating-card-inner > div:first-child {
        width: 2.5rem;
        height: 2.5rem;
    }

    .floating-card-inner svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    #contact .grid > div {
        padding: 1rem 0;
    }

    .tarifs-section > div {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .tarifs-section h2 {
        font-size: 1.75rem;
    }

    .tarifs-table-container tbody tr {
        padding: 1.25rem;
    }

    .tarifs-table-container td:first-child > div {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tarifs-table-container td:first-child span {
        font-size: 2rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--warm-400);
    outline-offset: 3px;
}

::selection {
    background: var(--warm-400);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--warm-100);
}

::-webkit-scrollbar-thumb {
    background: var(--warm-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--warm-500);
}

@media print {
    #floating-card,
    #navbar {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem;
    }

    .hero-overlay {
        background: white;
    }

    .hero-section h1 {
        color: var(--forest-700);
    }
}





@font-face {
    font-family: secuela;
    font-weight: bold;
    src: url('./Secuela-Bold.ttf');
}

.title-text-custom {
    font-family: secuela;
    font-size: 10rem;
    color: #870111;
}

.subtitle-text-custom {
    font-size: 1.6rem;
    color: #132f23;
}


.custom-nav-text {
    font-size: 1.2rem;
}
