/* ==========================================================================
   ASSOCIATION COEURS CANINS - FEUILLE DE STYLE PREMIUM, FUN & CHALEUREUSE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Quicksand:wght@400;600&display=swap');

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100000;
    background: #3d2b1f;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 8px 0;
    font-family: 'Fredoka', sans-serif;
    text-decoration: none;
    font-size: 1rem;
}
.skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

:root { --bg-body: #df0707; --border-color: #d0d0d0; --error: #dc3545; --error-light: #f8d7da; }

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

body {
    font-family: 'Quicksand', sans-serif;
    background: #fff8f5;
    color: #3d2b1f;
    overflow-x: hidden;
}

h1, h2, h3, .font-fredoka {
    font-family: 'Fredoka', sans-serif;
}

/* ─── TOP LOGO HEADER ─── */
.top-logo {
    background: var(--bg-body);
    padding: 2.5rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.top-logo::before {
    content: "🐾";
    position: absolute;
    font-size: 8rem;
    bottom: -2rem;
    left: -1rem;
    opacity: 0.06;
    transform: rotate(25deg);
}
.top-logo::after {
    content: "💖";
    position: absolute;
    font-size: 8rem;
    top: -2rem;
    right: -1rem;
    opacity: 0.05;
    transform: rotate(-15deg);
}
.top-logo img {
    max-width: 100%;
    height: auto;
    max-height: 340px;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    border: 5px solid rgba(255,255,255,0.9);
    transition: transform 0.4s;
}
.top-logo img:hover { transform: scale(1.02) rotate(0.5deg); }
.top-logo .rna-badge {
    display: inline-block;
    background: #ff6b8b;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    margin-top: 1.2rem;
    box-shadow: 0 4px 15px rgba(255,107,139,0.3);
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ─── FLOATING PAWS BACKGROUND ─── */
.bg-paws {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-paws span {
    position: absolute;
    font-size: 2rem;
    opacity: 0.08;
    animation: bgPawFloat 20s linear infinite;
}
@keyframes bgPawFloat {
    0% { transform: translateY(110vh) rotate(0deg) scale(0.6); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-10vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* ─── HERO ─── */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(180deg, #ffede8 0%, #fff8f5 40%, #fff8f5 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,107,139,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-dog {
    font-size: 6rem;
    line-height: 1;
    animation: dogBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 30px rgba(255,107,139,0.15));
    position: relative;
}
@keyframes dogBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
    color: #3d2b1f;
    line-height: 1.1;
}
.hero h1 span {
    background: linear-gradient(135deg, #ff6b8b, #ff8fab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    max-width: 600px;
    font-size: 1.05rem;
    color: #6b5847;
    line-height: 1.7;
}

.hero-paws {
    display: flex;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}
.hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}
.hero-actions .btn-primary,
.hero-actions .primary {
    background: #ff6b8b;
    color: #fff;
    box-shadow: 0 8px 25px rgba(255,107,139,0.35);
}
.hero-actions .btn-primary:hover,
.hero-actions .primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 35px rgba(255,107,139,0.5);
}
.hero-actions .btn-secondary,
.hero-actions .secondary {
    background: #fff;
    color: #3d2b1f;
    border: 2px solid #f0e0d6;
}
.hero-actions .btn-secondary:hover,
.hero-actions .secondary:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #ff6b8b;
    box-shadow: 0 8px 25px rgba(255,107,139,0.15);
}

/* ─── FLOATING DECORATIONS ─── */
.float-deco {
    position: absolute;
    pointer-events: none;
    font-size: 2rem;
    opacity: 0.2;
    animation: floatDeco 8s ease-in-out infinite;
}
@keyframes floatDeco {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

/* ─── NAV ─── */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #f0e0d6;
    padding: 0.6rem 1.5rem;
}
.nav-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}
.nav-bar .logo {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #3d2b1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-links a {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    color: #6b5847;
    transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    background: #ff6b8b;
    color: #fff;
}
.nav-links a.cta {
    background: #3d2b1f;
    color: #fff;
}
.nav-links a.cta:hover {
    background: #5a4030;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #3d2b1f;
}

/* ─── SECTIONS ─── */
.section-wrap {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
.section-wrap:first-of-type {
    padding-top: 2rem;
}
.section-wrap h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: #3d2b1f;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-wrap .sub {
    color: #8a7a6a;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}
.section-divider {
    text-align: center;
    font-size: 1.8rem;
    opacity: 0.15;
    margin: -0.5rem 0;
    letter-spacing: 1rem;
}

/* ─── CARDS ─── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card-cute {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    border: 1px solid #f0e0d6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.card-cute::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b8b, #ffd166, #ff6b8b);
    opacity: 0;
    transition: opacity 0.3s;
}
.card-cute:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255,107,139,0.12);
    border-color: #ffd6d6;
}
.card-cute:hover::before { opacity: 1; }
.card-cute .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    transition: transform 0.4s;
}
.card-cute:hover .icon { transform: scale(1.2) rotate(-8deg); }
.card-cute h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #3d2b1f;
}
.card-cute p {
    font-size: 0.9rem;
    color: #6b5847;
    line-height: 1.6;
}

/* ─── RESA BANNER ─── */
.resa-banner {
    background: linear-gradient(135deg, #3d2b1f, #5a4030);
    border-radius: 28px;
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(61,43,31,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.resa-banner::before {
    content: '🐾🐾🐾';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 6rem;
    opacity: 0.04;
    transform: rotate(-15deg);
    pointer-events: none;
}
.resa-banner::after {
    content: '🐾🐾🐾';
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 6rem;
    opacity: 0.04;
    transform: rotate(15deg);
    pointer-events: none;
}
.resa-banner h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 0.8rem;
    text-align: center;
}
.resa-banner p {
    max-width: 600px;
    margin: 0 auto 1.8rem;
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}
.btn-resa,
.resa-banner .btn-resa {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #ff6b8b;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 25px rgba(255,107,139,0.4);
    position: relative;
    z-index: 2;
}
.btn-resa:hover,
.resa-banner .btn-resa:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 35px rgba(255,107,139,0.55);
    color: #fff;
}
.btn-resa .paw,
.resa-banner .btn-resa .paw {
    display: inline-block;
    animation: pawSpin 2s ease-in-out infinite;
}
@keyframes pawSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(-20deg) scale(1.2); }
    60% { transform: rotate(15deg) scale(0.9); }
}

/* ─── PANCARTES ─── */
.pancarte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 3rem 2.5rem;
    padding: 2rem 0.5rem 0;
    align-items: start;
}
.pancarte {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: pancarteEnter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               sway 4s ease-in-out infinite;
    animation-delay: 0s, calc(var(--i, 0) * 0.3s + 0.8s);
    cursor: pointer;
    transition: filter 0.3s;
}
.pancarte:nth-child(1) { --i: 0; }
.pancarte:nth-child(2) { --i: 1; }
.pancarte:nth-child(3) { --i: 2; }
.pancarte:nth-child(4) { --i: 3; }
.pancarte:nth-child(5) { --i: 4; }
.pancarte:nth-child(6) { --i: 5; }
.pancarte:hover { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); z-index: 10; }

@keyframes pancarteEnter {
    0% { opacity: 0; transform: rotate(-20deg) scale(0.8); }
    50% { opacity: 1; transform: rotate(4deg) scale(1.02); }
    75% { transform: rotate(-2deg); }
    100% { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes sway {
    0%, 100% { transform: rotate(-1.2deg); }
    50% { transform: rotate(1.2deg); }
}

.pancarte-ropes {
    width: 100%;
    height: 24px;
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0 20%;
    z-index: 2;
}
.pancarte-ropes::before,
.pancarte-ropes::after {
    content: '';
    position: absolute;
    top: 0;
    width: 3px;
    height: 24px;
    background: linear-gradient(to bottom, #b8956a, #8a6a4a);
    border-radius: 2px;
    animation: ropeSway 4s ease-in-out infinite;
}
.pancarte-ropes::before { left: 18%; transform-origin: top left; }
.pancarte-ropes::after { right: 18%; transform-origin: top right; }
@keyframes ropeSway {
    0%, 100% { transform: rotate(-1.5deg); }
    50% { transform: rotate(1.5deg); }
}
.pancarte-nail {
    position: absolute;
    width: 10px; height: 10px;
    background: radial-gradient(circle at 35% 35%, #e8d5a3, #a0855a);
    border-radius: 50%;
    top: -4px;
    z-index: 3;
}
.pancarte-nail.l { left: calc(18% - 5px); }
.pancarte-nail.r { right: calc(18% - 5px); }

.pancarte-board {
    background: #ffe9d4;
    border-radius: 16px;
    padding: 1.6rem 1.4rem 1.4rem;
    border: 4px solid #d4a97a;
    width: 100%;
    text-align: center;
    color: #3d2b1f;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}
.pancarte-board::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a97a, #f5deb3, #d4a97a);
    pointer-events: none;
}
.pancarte-board .date {
    display: inline-block;
    background: #d4a97a;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.7rem;
}
.pancarte-board .title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #3d2b1f;
    margin-bottom: 0.7rem;
    line-height: 1.3;
}
.pancarte-board .loc {
    font-size: 0.88rem;
    font-weight: 600;
    color: #6b5847;
    background: rgba(212,169,122,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    display: inline-block;
}
.pancarte:hover .pancarte-board {
    border-color: #c4905e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.pancarte-empty .pancarte-board {
    background: #e3f0e3;
    border-color: #8ab88a;
}
.pancarte-empty .pancarte-board .date {
    background: #8ab88a;
}

/* ─── EVENT DETAIL MODAL (wooden theme) ─── */
.event-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.event-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.event-modal-box {
    background: linear-gradient(145deg, #6b4730, #5a3e2b);
    border: 4px solid #3a2010;
    border-radius: 20px;
    padding: 2.2rem;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    color: #fff8f0;
    text-align: center;
    background-image:
        repeating-linear-gradient(92deg, transparent 0, transparent 3px, rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px),
        linear-gradient(145deg, #6b4730, #5a3e2b);
    overflow: hidden;
}
.event-modal-overlay.active .event-modal-box {
    transform: scale(1) translateY(0);
}
.event-modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}
.event-modal-emoji { font-size: 3.5rem; margin-bottom: 0.5rem; }
.event-modal-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    color: #fff8f0;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    position: relative;
}
.event-modal-sep {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4a97a, transparent);
    margin: 0.8rem auto;
    border-radius: 2px;
}
.event-modal-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #d4a97a;
    margin-bottom: 0.4rem;
}
.event-modal-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff8f0;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(212,169,122,0.3);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    transition: all 0.25s ease;
    font-weight: 500;
}
.event-modal-map-link:hover {
    background: rgba(255,255,255,0.2);
    border-color: #d4a97a;
    color: #ffffff;
    transform: scale(1.05);
}
.event-modal-desc {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f5deb3;
    border: 1px solid rgba(255,255,255,0.06);
}
.event-modal-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #f5deb3;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    padding: 0.6rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.event-modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: scale(1.05);
}

/* ─── FOOTER ─── */
.footer-cute {
    background: #2c1f14;
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    position: relative;
    margin-top: 4rem;
}
.footer-cute::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    background: #ff6b8b;
    border-radius: 50% 50% 0 0;
}
.footer-cute .inner {
    max-width: 800px;
    margin: 0 auto;
}
.footer-cute .footer-logo {
    display: block;
    margin: -60px auto 1rem;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ff6b8b;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s;
}
.footer-cute .footer-logo:hover {
    transform: scale(1.1) rotate(360deg);
}
.footer-cute .social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    text-decoration: none;
    margin: 1rem 0 1.5rem;
    transition: all 0.3s;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
}
.footer-cute .social:hover {
    background: #1877F2;
    transform: translateY(-3px);
}
.footer-cute .info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.footer-cute .info a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-cute .copy {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, #3d2b1f, #5a4030);
    color: #fff;
    box-shadow: 0 8px 20px rgba(61,43,31,0.25);
}
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(61,43,31,0.35);
}
.btn-primary {
    background: #ff6b8b;
    box-shadow: 0 8px 20px rgba(255,107,139,0.35);
}
.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(255,107,139,0.5);
}
.btn-secondary {
    background: #fff;
    color: #3d2b1f;
    border: 2px solid #f0e0d6;
    box-shadow: none;
}
.btn-secondary:hover {
    border-color: #ff6b8b;
    box-shadow: 0 8px 25px rgba(255,107,139,0.15);
}

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #3d2b1f;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f0e0d6;
    background-color: #fff;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #3d2b1f;
    transition: all 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b8b;
    box-shadow: 0 0 0 4px rgba(255,107,139,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b5847;
    opacity: 0.5;
}

/* ─── SUCCESS & ERROR MESSAGES ─── */
.success, .error {
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    margin-bottom: 1.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.4s ease-out;
}
.success {
    background-color: #E8F8F0;
    color: #1e6d66;
    border-left: 6px solid #2ecc71;
}
.error {
    background-color: #FCECEB;
    color: #b54343;
    border-left: 6px solid #e74c3c;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── LISTS ─── */
.section-wrap ul {
    list-style: none;
    margin: 1.5rem 0;
}
.section-wrap ul li {
    padding: 1.2rem;
    background: #ffede8;
    margin-bottom: 0.8rem;
    border-radius: 12px;
    border-left: 5px solid #ff6b8b;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}
.section-wrap ul li:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* ==========================================================================
   CALENDAR / RESERVATION SYSTEM
   ========================================================================== */

.calendar-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    backdrop-filter: blur(12px);
    padding: 1.2rem 1.8rem;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.8);
}

.calendar-week-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    color: #3d2b1f;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

.calendar-scroll-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 20px;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f8faff, #f0f4ff);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
    margin-bottom: 1.5rem;
}
.calendar-scroll-container::-webkit-scrollbar { height: 14px; }
.calendar-scroll-container::-webkit-scrollbar-track { background: rgba(255,255,255,0.5); border-radius: 10px; }
.calendar-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b8b, #3d2b1f);
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.8);
}
.calendar-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff477e, #2c1f14);
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px 4px;
    min-width: 900px;
    text-align: center;
}
.calendar-table th, .calendar-table td { padding: 0; border: none; vertical-align: middle; }
.calendar-table th {
    background: linear-gradient(135deg, #3d2b1f, #5a4030);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(61,43,31,0.15);
    width: 12.5%;
    position: relative;
    overflow: hidden;
}
.calendar-table th::after {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { left: -50%; }
    100% { left: 150%; }
}
.calendar-table th:first-child {
    background: transparent;
    color: #3d2b1f;
    box-shadow: none;
    width: 8%;
    font-size: 1rem;
    font-weight: bold;
}
.calendar-table th:first-child::after { display: none; }

.calendar-hour-cell {
    font-family: 'Fredoka', sans-serif;
    font-weight: bold;
    color: #3d2b1f;
    font-size: 0.95rem;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
}

.calendar-slot {
    position: relative;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    user-select: none;
    height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.calendar-slot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.4), transparent 60%);
    pointer-events: none;
}
.calendar-slot.free {
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    color: #047857;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 6px rgba(16,185,129,0.08);
    animation: slotPulse 3s ease-in-out infinite;
}
@keyframes slotPulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(16,185,129,0.08); }
    50% { box-shadow: 0 2px 12px rgba(16,185,129,0.2); }
}
.calendar-slot.free:hover {
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
    border-color: #34d399;
    box-shadow: 0 8px 20px rgba(16,185,129,0.25);
}
.calendar-slot.free:active { transform: scale(0.95); }
.calendar-slot.free::before { content: "🐕"; font-size: 1.1rem; line-height: 1; margin-bottom: 1px; }
.calendar-slot.free span { display: block; font-size: 0.65rem; opacity: 0.8; }
.calendar-slot.free:hover::before { content: "🐾"; animation: bounce 0.4s ease; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.calendar-slot.occupied {
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    cursor: not-allowed;
    font-weight: 700;
}
.calendar-slot.occupied::before { content: "❌"; font-size: 1rem; }
.calendar-slot.occupied span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.calendar-slot.occupied.past {
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    color: #d1d5db;
    border: 1px solid #e5e7eb;
}
.calendar-slot.occupied.past::before { content: "⏳"; font-size: 0.9rem; }
.calendar-slot.past { opacity: 0.5; }
.calendar-slot.past::before { content: "⏳"; font-size: 0.9rem; opacity: 0.5; }
.calendar-slot.selected {
    background: linear-gradient(145deg, #ff6b8b, #ff477e) !important;
    color: white !important;
    border-color: #e03060 !important;
    box-shadow: 0 6px 20px rgba(255,107,139,0.4), 0 0 0 3px rgba(255,107,139,0.15);
    transform: translateY(-2px) scale(1.02);
    animation: selectedGlow 1.5s ease-in-out infinite alternate;
}
@keyframes selectedGlow {
    0% { box-shadow: 0 6px 20px rgba(255,107,139,0.4), 0 0 0 3px rgba(255,107,139,0.15); }
    100% { box-shadow: 0 6px 25px rgba(255,107,139,0.55), 0 0 0 5px rgba(255,107,139,0.1); }
}
.calendar-slot.selected::before { content: "✨"; font-size: 1.1rem; }
.calendar-slot.selected span { color: rgba(255,255,255,0.9); }

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem auto;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.5));
    backdrop-filter: blur(8px);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.6);
    width: fit-content;
}
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.legend-dot.free { background: linear-gradient(145deg, #ecfdf5, #a7f3d0); border: 1px solid #34d399; }
.legend-dot.occupied { background: linear-gradient(145deg, #fef2f2, #fca5a5); border: 1px solid #dc2626; }
.legend-dot.selected-dot { background: linear-gradient(145deg, #ff6b8b, #ff477e); border: 1px solid #e03060; }

/* ==========================================================================
   DUAL CALENDAR (Petits chiens / Grands chiens)
   ========================================================================== */
.dual-calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}
.dual-calendar-col {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0,0,0,0.06);
}
.dual-calendar-col:first-child {
    border: 2px solid #48BB78;
}
.dual-calendar-col:last-child {
    border: 2px solid #ED8936;
}

.dual-calendar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1rem 1rem;
    gap: 0.3rem;
    border-bottom: none;
    position: relative;
}
.dual-calendar-col:first-child .dual-calendar-header {
    background: linear-gradient(135deg, #48BB78, #38A169);
}
.dual-calendar-col:last-child .dual-calendar-header {
    background: linear-gradient(135deg, #ED8936, #DD6B20);
}
.dual-calendar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: rgba(255,255,255,0.25);
}
.dual-calendar-emoji {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.dual-calendar-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.dual-calendar-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.dual-calendar-col .calendar-scroll-container {
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
    padding: 0.8rem;
    background: #fff;
}

.dual-calendar-col .calendar-table {
    min-width: unset;
}
.dual-calendar-col .calendar-table th {
    font-size: 0.82rem;
    padding: 0.5rem 0.3rem;
}
.dual-calendar-col .calendar-table th:first-child {
    font-size: 0.85rem;
    background: transparent;
    color: #3d2b1f;
}
.dual-calendar-col .calendar-hour-cell {
    font-size: 0.88rem;
    height: 56px;
}

.dual-calendar-col .calendar-slot {
    height: 56px;
    font-size: 0.8rem;
    border-radius: 8px;
}
.dual-calendar-col .calendar-slot.free::before {
    content: "🐕";
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}
.dual-calendar-col:last-child .calendar-slot.free::before {
    content: "🦮";
}
.dual-calendar-col .calendar-slot.free span {
    display: block;
    font-size: 0.72rem;
}
.dual-calendar-col .calendar-slot.occupied::before {
    font-size: 0.9rem;
}
.dual-calendar-col .calendar-slot.occupied.past::before {
    font-size: 0.85rem;
}
.dual-calendar-col .calendar-slot.selected::before {
    font-size: 1rem;
}

/* Petits chiens — slots vert clair */
.dual-calendar-col:first-child .calendar-slot.free {
    background: linear-gradient(145deg, #f0fff4, #c6f6d5);
    border-color: #9ae6b4;
    color: #276749;
}
.dual-calendar-col:first-child .calendar-slot.free:hover {
    background: linear-gradient(145deg, #c6f6d5, #9ae6b4);
    border-color: #48BB78;
}

/* Grands chiens — slots orange clair */
.dual-calendar-col:last-child .calendar-slot.free {
    background: linear-gradient(145deg, #fffaf0, #feebc8);
    border-color: #fbd38d;
    color: #9c4221;
}
.dual-calendar-col:last-child .calendar-slot.free:hover {
    background: linear-gradient(145deg, #feebc8, #fbd38d);
    border-color: #ED8936;
}

@media (max-width: 900px) {
    .dual-calendar {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BOOKING MODAL - GLASSMORPHIC
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.7);
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.5) inset;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: #d4a89b; border-radius: 3px; }
.modal-box::-webkit-scrollbar-thumb:hover { background: #c48e7c; }
.modal-box { scrollbar-width: thin; scrollbar-color: #d4a89b transparent; }

.modal-close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.6rem;
    background: rgba(0,0,0,0.03);
    border: none;
    cursor: pointer;
    color: #111;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-close-btn:hover {
    color: #e74c3c;
    background: rgba(231,76,60,0.1);
    transform: rotate(90deg);
}
.modal-title {
    font-family: 'Fredoka', sans-serif;
    color: #3d2b1f;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}
.modal-subtitle {
    color: #111;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, #ffede8, transparent);
    border-radius: 8px;
    display: inline-block;
}
.modal-section-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(226,232,240,0.6);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.modal-section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: #3d2b1f;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(226,232,240,0.6);
    padding-bottom: 0.4rem;
}
.modal-error-message {
    background: linear-gradient(135deg, #FCECEB, #fce4e4);
    color: #e74c3c;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid #e74c3c;
    display: none;
}
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-icon {
    position: absolute;
    left: 12px;
    font-size: 1.1rem;
    color: #111;
    pointer-events: none;
    z-index: 1;
}
.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 10px;
    border: 1.5px solid rgba(226,232,240,0.8);
    font-family: inherit;
    font-size: 0.95rem;
    color: #3d2b1f;
    background: white;
    transition: all 0.25s ease;
}
.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: #ff6b8b;
    box-shadow: 0 0 0 4px rgba(255,107,139,0.12);
    background: white;
}
.duration-warn {
    font-size: 0.8rem;
    color: #d35400;
    margin-top: 0.4rem;
    display: none;
    background: rgba(211,84,0,0.06);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.gallery-item {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    background-color: #f5f0eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0e0d6;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}
.pagination a, .pagination span {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
}
.pagination a {
    background-color: #ff6b8b;
    color: #fff;
    transition: opacity 0.2s;
}
.pagination a:hover { opacity: 0.9; }
.pagination span.disabled {
    background-color: #ddd;
    color: #888;
    cursor: not-allowed;
}

/* ==========================================================================
   WOUF TOGGLE & SPEECH BUBBLE
   ========================================================================== */
.wouf-toggle-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}
.wouf-toggle-btn {
    background-color: #3d2b1f;
    color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 3px solid #ff6b8b;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wouf-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #5a4030;
}
.wouf-toggle-btn.active {
    background-color: #ff6b8b;
    border-color: #3d2b1f;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.woof-speech-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #3d2b1f;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 0 20px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.1);
    z-index: 9999;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: popUpBubble 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.woof-speech-bubble::after {
    content: "";
    position: absolute;
    bottom: 0; right: -10px;
    width: 0; height: 0;
    border-left: 10px solid #3d2b1f;
    border-top: 10px solid transparent;
}
@keyframes popUpBubble {
    0% { transform: scale(0) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b8b, #3d2b1f);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(255,107,139,0.35);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255,107,139,0.5);
}
.back-to-top:active { transform: scale(0.9); }

/* ==========================================================================
   CONFETTI
   ========================================================================== */
.confetti-piece {
    position: fixed;
    width: 10px; height: 10px;
    z-index: 99999;
    pointer-events: none;
    animation: confettiFall 1.5s ease-out forwards;
}
@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translateY(400px) rotate(720deg) scale(0.3); }
}

/* ==========================================================================
   PAW PRINTS
   ========================================================================== */
.paw-print {
    position: fixed;
    pointer-events: none;
    font-size: 1.2rem;
    z-index: 99998;
    animation: pawFade 0.8s ease-out forwards;
    opacity: 0.3;
}
@keyframes pawFade {
    0% { opacity: 0.4; transform: scale(0.5) rotate(0deg); }
    100% { opacity: 0; transform: scale(1.2) rotate(20deg) translateY(-30px); }
}

/* ==========================================================================
   FLOATING PARTICLES
   ========================================================================== */
.floating-particle {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatParticle 15s linear infinite;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-20vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* ==========================================================================
   RIPPLE EFFECT
   ========================================================================== */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #fff8f5; }
::-webkit-scrollbar-thumb {
    background: #ff6b8b;
    border-radius: 50px;
    border: 2px solid #fff8f5;
}
::-webkit-scrollbar-thumb:hover { background: #ff477e; }

/* ==========================================================================
   ALERTES BANNER (moved from inline styles)
   ========================================================================== */
.alertes-banner-container {
    width: 100%;
    background: #fff5f5;
    border-bottom: 2px solid #ffcccc;
    overflow: hidden;
    position: relative;
}
.alertes-carousel {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}
.alerte-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.alerte-slide img {
    max-height: 120px;
    max-width: 220px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    cursor: pointer;
}
.alerte-texte {
    margin: 0;
    font-weight: bold;
    color: #d9534f;
    font-size: 1.4rem;
    text-align: center;
    max-width: 700px;
}
.alerte-single {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.alerte-single img {
    max-height: 120px;
    max-width: 220px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    cursor: pointer;
}
.alerte-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.alerte-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.alerte-modal-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   CHECKBOX CUSTOM (Réservation)
   ========================================================================== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #3d2b1f;
    padding: 0.5rem 0;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6b8b;
    cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================================================
   DONATEURS PAGE
   ========================================================================== */
.donateurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.donateur-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f0e0d6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    text-decoration: none;
    color: #3d2b1f;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.donateur-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b8b, #ffd166, #ff6b8b);
    opacity: 0;
    transition: opacity 0.3s;
}
.donateur-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255,107,139,0.12);
    border-color: #ffd6d6;
}
.donateur-card:hover::before { opacity: 1; }
.donateur-card img {
    max-height: 100px;
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    transition: transform 0.4s;
}
.donateur-card:hover img { transform: scale(1.08); }
.donateur-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b8b, #ffd166);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    font-family: 'Fredoka', sans-serif;
}
.donateur-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #3d2b1f;
}
.donateurs-empty {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 24px;
    border: 1px dashed #f0e0d6;
}
.donateurs-empty span { font-size: 3rem; display: block; margin-bottom: 1rem; }
.donateurs-empty p { color: #6b5847; font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 700px) {
    .nav-links { display: none; flex-direction: column; width: 100%; padding-top: 0.5rem; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .hero { padding: 3rem 1.5rem 4rem; min-height: auto; }
    .hero-dog { font-size: 5rem; }
    .section-wrap { padding: 2.5rem 1rem; }
    .pancarte-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .footer-cute .info { flex-direction: column; gap: 0.8rem; }
    .calendar-header-actions { flex-direction: column; align-items: stretch; }
    .calendar-week-title { order: -1; margin-bottom: 0.5rem; }
}
@media (max-width: 480px) {
    .pancarte-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
}


/* ==========================================================================
   NEWS — bouton de navigation animé + page des actualités
   ========================================================================== */

.nav-links a.news-link {
    position: relative;
    background: #ff6b8b;
    color: #fff;
    animation: newsGlow 2.6s ease-in-out infinite;
}
.nav-links a.news-link:hover {
    background: #ff5277;
}
.nav-links a.news-link.active {
    background: #e85d7c;
}
.nav-links a.news-link .news-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #df0707;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 0.1rem 0.34rem;
    border-radius: 8px;
    animation: newsBlink 1.7s ease-in-out infinite;
}
@keyframes newsGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 139, 0.55); }
    50%      { box-shadow: 0 0 0 9px rgba(255, 107, 139, 0); }
}
@keyframes newsBlink {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.16); opacity: 0.7; }
}

.news-featured {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.2rem);
    align-items: center;
    background: #fff;
    border: 1px solid #f0e0d6;
    border-radius: 24px;
    padding: clamp(1rem, 2.5vw, 1.8rem);
    box-shadow: 0 6px 22px rgba(61, 43, 31, 0.08);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.news-featured-media,
.news-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8f5;
    border-radius: 18px;
    overflow: hidden;
}
.news-featured-media img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}
.news-chip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #df0707;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}
.news-featured-body h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    margin: 0.2rem 0 0.8rem;
}
.news-date {
    font-size: 0.82rem;
    color: #8a7a6a;
    margin-bottom: 0.4rem;
}
.news-text {
    line-height: 1.65;
    color: #5a4030;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: clamp(1rem, 2.5vw, 1.8rem);
}
.news-card {
    background: #fff;
    border: 1px solid #f0e0d6;
    border-radius: 20px;
    padding: 0.9rem;
    box-shadow: 0 4px 16px rgba(61, 43, 31, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.news-card-media {
    min-height: 180px;
}
.news-card-media img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
}
.news-card-body h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.08rem;
    margin: 0.1rem 0 0.5rem;
}
.news-card-past {
    background: #fffaf7;
}
.news-no-img {
    font-size: 2.4rem;
    padding: 2rem 0;
}

.news-archive {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    background: #fff;
    border: 1px dashed #e2cfc2;
    border-radius: 20px;
    padding: 1rem clamp(1rem, 2.5vw, 1.6rem);
}
.news-archive > summary {
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: #6b5847;
    padding: 0.4rem 0;
}
.news-archive > summary:hover { color: #ff6b8b; }
.news-archive[open] > summary { margin-bottom: 1rem; }

.news-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #8a7a6a;
}
.news-empty span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .news-featured { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-links a.news-link,
    .nav-links a.news-link .news-badge { animation: none; }
}

/* ==========================================================================
   BESOINS — grille des besoins de l'association
   ========================================================================== */
.besoins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: clamp(1rem, 2.5vw, 1.8rem);
    margin-top: 2rem;
}
.besoin-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0e0d6;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(61, 43, 31, 0.06);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}
.besoin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 107, 139, 0.12);
}
.besoin-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 1.2rem;
    background: #fff8f5;
    border-bottom: 1px solid #f0e0d6;
    font-size: 3rem;
}
.besoin-img-wrapper img {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.besoin-content {
    padding: 1.2rem 1.4rem 1.6rem;
}
.besoin-content h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    color: #3d2b1f;
    margin-bottom: 0.5rem;
}
.besoin-content p {
    font-size: 0.95rem;
    color: #6b5847;
    line-height: 1.65;
}


/* ==========================================================================
   NAV — pastilles calmes, bouton News très vivant
   ========================================================================== */

.nav-links a {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 0.55rem 1.05rem;
    color: #6b5847;
    border-radius: 30px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-links a:hover {
    background: rgba(255, 107, 139, 0.14);
    color: #c2456a;
    transform: translateY(-1px);
}
.nav-links a.active {
    background: #ff6b8b;
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 107, 139, 0.35);
}
.nav-links a:focus-visible {
    outline: 2px solid #3d2b1f;
    outline-offset: 3px;
}
.nav-links a.cta {
    background: #3d2b1f;
    color: #fff;
    box-shadow: 0 2px 8px rgba(61, 43, 31, 0.22);
}
.nav-links a.cta:hover {
    background: #5a4030;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 43, 31, 0.3);
}

.nav-links a.news-link {
    position: relative;
    padding-left: 1.15rem;
    padding-right: 1.45rem;
    color: #fff;
    background-image:
        linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.55) 50%, transparent 58%),
        linear-gradient(135deg, #ff6b8b 0%, #f4453f 55%, #df0707 100%);
    background-size: 250% 100%, 160% 160%;
    background-position: 150% 0, 0% 50%;
    background-repeat: no-repeat;
    box-shadow: 0 3px 12px rgba(223, 7, 7, 0.28);
    animation: newsShine 3.6s ease-in-out infinite, newsBreath 2.8s ease-in-out infinite;
}
.nav-links a.news-link:hover,
.nav-links a.news-link.active {
    color: #fff;
    background-color: transparent;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 7px 20px rgba(223, 7, 7, 0.38);
}
.nav-links a.news-link .news-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #fff;
    color: #df0707;
    border: 1.5px solid #df0707;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.08rem 0.34rem;
    border-radius: 9px;
    box-shadow: 0 2px 6px rgba(160, 0, 0, 0.28);
    animation: newsBounce 1.4s ease-in-out infinite;
}
@keyframes newsShine {
    0%        { background-position: 150% 0, 0% 50%; }
    45%, 100% { background-position: -60% 0, 100% 50%; }
}
@keyframes newsBreath {
    0%, 100% { box-shadow: 0 3px 12px rgba(223,7,7,0.28), 0 0 0 0 rgba(255,107,139,0.5); }
    50%      { box-shadow: 0 3px 12px rgba(223,7,7,0.28), 0 0 0 10px rgba(255,107,139,0); }
}
@keyframes newsBounce {
    0%, 100% { transform: scale(1) rotate(-4deg); }
    50%      { transform: scale(1.22) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
    .nav-links a.news-link,
    .nav-links a.news-link .news-badge { animation: none; }
    .nav-links a, .nav-links a:hover, .nav-links a.cta:hover,
    .nav-links a.news-link:hover, .nav-links a.news-link.active { transform: none; }
}


/* ==========================================================================
   NAV — pastelles pastel par lien, icône devant le texte
   ========================================================================== */

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid transparent;
}
.nav-links .nav-ico {
    font-size: 0.95rem;
    line-height: 1;
}
.nav-links a:nth-child(1) { background: #ffe4ec; color: #c2456a; border-color: #ffd0de; }
.nav-links a:nth-child(2) { background: #efe7ff; color: #6b4fa8; border-color: #e2d6f8; }
.nav-links a:nth-child(3) { background: #fff2d9; color: #a5701c; border-color: #ffe9c2; }
.nav-links a:nth-child(4) { background: #e3f6ea; color: #1f7a4d; border-color: #d3eede; }
.nav-links a:nth-child(5) { background: #e5f2ff; color: #1f5f9e; border-color: #d5e9fb; }
.nav-links a:nth-child(6) { background: #fde9df; color: #b0532a; border-color: #f7dccd; }
.nav-links a:nth-child(7) { background: #e6f7f7; color: #1f7a78; border-color: #d6ecec; }
.nav-links a:nth-child(8) { background: #ffeede; color: #a8601f; border-color: #fbe3cc; }

.nav-links a:nth-child(1):hover { background: #ffd6e2; }
.nav-links a:nth-child(2):hover { background: #e4d8fb; }
.nav-links a:nth-child(3):hover { background: #ffeac2; }
.nav-links a:nth-child(4):hover { background: #d3f0dd; }
.nav-links a:nth-child(5):hover { background: #d5e9fb; }
.nav-links a:nth-child(6):hover { background: #f9dccd; }
.nav-links a:nth-child(7):hover { background: #d6ecec; }
.nav-links a:nth-child(8):hover { background: #fbe3cc; }
.nav-links a:hover { box-shadow: 0 4px 12px rgba(61, 43, 31, 0.12); }

.nav-links a.active {
    background: #ff6b8b;
    color: #fff;
    border-color: #ff93ad;
    box-shadow: 0 3px 10px rgba(255, 107, 139, 0.35);
}

/* Le raccourci ci-dessus efface le dégradé de .news-link, et .news-link.active met un
   fond transparent : le texte blanc devient invisible. Fond plein, sans balayage. */
.nav-links a.news-link.active {
    background: #df0707;
    color: #fff;
    border-color: #ff93ad;
    box-shadow: 0 7px 20px rgba(223, 7, 7, 0.38);
    animation: newsBreath 2.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .nav-links a.news-link.active { animation: none; }
}


/* ==========================================================================
   NAV — liens sur une seule ligne, Réservation seule en dessous
   ========================================================================== */

.nav-links {
    flex-wrap: wrap;
    row-gap: 0.45rem;
    column-gap: 0.35rem;
}
.nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 0.32rem;
    padding: 0.42rem 0.8rem;
    font-size: 0.84rem;
}
.nav-links .nav-ico { font-size: 0.88rem; }
.nav-links a.cta {
    flex-basis: 100%;
    justify-content: center;
    padding: 0.5rem 1.6rem;
    font-size: 0.9rem;
}
@media (max-width: 700px) {
    .nav-links a { justify-content: flex-start; }
    .nav-links a.cta { justify-content: center; }
}


/* Logo sur sa rangée, les 9 pastilles alignées sur une seule ligne */
.nav-bar-inner {
    flex-direction: column;
    gap: 0.5rem;
}
.nav-bar .logo {
    justify-content: center;
    width: 100%;
}
.nav-links {
    width: 100%;
    justify-content: center;
}
@media (min-width: 701px) {
    .nav-links a {
        padding: 0.4rem 0.72rem;
        font-size: 0.82rem;
    }
    .nav-links { column-gap: 0.3rem; }
}


/* ==========================================================================
   NAV — une ligne de pastilles, Réservation centrée sous la ligne
   ========================================================================== */

/* Une seule ligne tant que la place suffit ; repli sur plusieurs lignes en dernier recours */
.nav-links { flex-wrap: wrap; }
.nav-links a { flex: 0 0 auto; }
.nav-cta-row {
    display: flex;
    justify-content: center;
    width: 100%;
}
.nav-cta-row a.cta {
    flex: 0 0 auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #3d2b1f;
    color: #fff;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    border-radius: 30px;
    padding: 0.5rem 1.7rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(61, 43, 31, 0.22);
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-cta-row a.cta:hover {
    background: #5a4030;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 43, 31, 0.3);
}
.nav-cta-row a.cta:focus-visible {
    outline: 2px solid #3d2b1f;
    outline-offset: 3px;
}
@media (max-width: 1024px) {
    .nav-links { column-gap: 0.22rem; }
    .nav-links a {
        padding: 0.36rem 0.58rem;
        font-size: 0.78rem;
    }
    .nav-links .nav-ico { font-size: 0.8rem; }
}
@media (max-width: 700px) {
    .nav-cta-row { display: none; }
    .nav-links.open + .nav-cta-row { display: flex; }
    .nav-links a {
        justify-content: flex-start;
        font-size: 0.84rem;
        padding: 0.45rem 0.8rem;
    }
}
