/* ============================================
   LOCAL.CSS - Pages locales Antibes & Évry
   ============================================ */

/* ============================================
   PATTERN DIVIDERS (même système que les autres pages)
   ============================================ */
.pattern-divider-local {
    height: 40px;
    background-image: url('/assets/motifs/carreauxverts.png');
    background-repeat: repeat-x;
    background-size: auto 40px;
}

.pattern-divider-local.pattern-red {
    background-image: url('/assets/motifs/carreauxrouges.png');
}

.pattern-divider-local.pattern-rose {
    background-image: url('/assets/motifs/Carreaux roses.png');
}

/* ============================================
   HERO LOCAL
   ============================================ */
.local-hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--creme-fouettee) 0%, #FFF5E6 50%, var(--jaune-oeuf) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 5% 5rem;
}

.local-hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.local-hero-decoration .floating-sticker {
    position: absolute;
    animation: float-local 4s ease-in-out infinite;
}

.local-hero-decoration .sticker-1 {
    width: 110px;
    top: 18%;
    right: 6%;
    animation-delay: 0s;
}

.local-hero-decoration .sticker-2 {
    width: 75px;
    bottom: 12%;
    left: 4%;
    animation-delay: 1.5s;
}

@keyframes float-local {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.local-hero-content {
    max-width: 950px;
    z-index: 2;
    position: relative;
}

.local-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--noir-olive);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.local-hero-content .hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--vert-persil);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.local-hero-content .hero-intro {
    font-size: 1.05rem;
    color: var(--noir-olive);
    line-height: 1.75;
    margin-bottom: 1rem;
    max-width: 680px;
}

/* ============================================
   TICKET COMMANDE DU JOUR
   (inspiré du ticket addition dans composer-menu)
   ============================================ */
.commande-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 500px;
}

.commande-sticker {
    width: 110px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
    animation: float-local 3.5s ease-in-out infinite;
}

.commande-ticket {
    background: #FFFEF8;
    border-radius: 4px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.05),
        0 8px 16px rgba(0,0,0,0.1),
        0 16px 32px rgba(0,0,0,0.05);
    position: relative;
    transform: rotate(1deg);
    flex: 1;
}

.commande-torn-top {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg,
        transparent 0%, transparent 4px,
        #FFFEF8 4px, #FFFEF8 8px,
        transparent 8px, transparent 12px,
        #FFFEF8 12px, #FFFEF8 18px,
        transparent 18px, transparent 20px
    );
    background-size: 20px 100%;
}

.commande-torn-bottom {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg,
        #FFFEF8 0%, #FFFEF8 6px,
        transparent 6px, transparent 10px,
        #FFFEF8 10px, #FFFEF8 16px,
        transparent 16px, transparent 18px,
        #FFFEF8 18px, #FFFEF8 20px
    );
    background-size: 20px 100%;
}

.commande-ticket-header {
    background: var(--vert-persil);
    padding: 1rem 1.5rem;
    text-align: center;
}

.commande-ticket-header .ticket-logo {
    width: 40px;
    height: auto;
    margin-bottom: 0.4rem;
    filter: brightness(0) invert(1);
}

.commande-ticket-title {
    color: var(--creme-fouettee);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.commande-ticket-subtitle {
    color: rgba(255, 241, 220, 0.75);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.commande-ticket-body {
    padding: 1.2rem 1.5rem;
}

.commande-separator {
    border: none;
    border-top: 1px dashed rgba(43, 93, 52, 0.25);
    margin: 0.8rem 0;
}

.commande-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--noir-olive);
}

.commande-item-name {
    font-weight: 500;
}

.commande-item-check {
    width: 22px;
    height: 22px;
    background: var(--vert-persil);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   SECTION 2 - PROBLÈMES (bg blanc)
   ============================================ */
.local-section-white {
    padding: 5rem 5%;
    background: white;
}

.local-section-white h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--noir-olive);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.local-section-white p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--noir-olive);
    margin-bottom: 1rem;
    max-width: 800px;
}

.local-problems-card {
    background: var(--creme-fouettee);
    border-left: 5px solid var(--rose-bonbon);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    max-width: 650px;
}

.local-problems-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.local-problems-card ul li {
    font-size: 1.05rem;
    color: var(--noir-olive);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.local-problems-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--rose-bonbon);
    font-weight: 900;
    font-size: 1.2rem;
}

/* ============================================
   SECTION 3 - PRESTATIONS À LA CARTE (bg vert)
   ============================================ */
.local-section-vert {
    padding: 5rem 5%;
    background: var(--vert-persil);
    position: relative;
    overflow: hidden;
}

.local-section-vert::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 180px;
    opacity: 0.05;
}

.local-section-vert h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--creme-fouettee);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1;
}

.local-section-vert > .local-container > p {
    font-size: 1.05rem;
    color: rgba(255, 241, 220, 0.9);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 750px;
    position: relative;
    z-index: 1;
}

.prestations-local-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
    margin: 2rem 0 2.5rem;
    position: relative;
    z-index: 1;
}

.prestation-local-card {
    background: rgba(255, 241, 220, 0.12);
    border: 1px solid rgba(255, 241, 220, 0.25);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    padding-top: 1.8rem;
    color: var(--creme-fouettee);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
}

/* Sticker qui tient la card */
.prestation-magnet {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
    width: 44px;
    height: 44px;
    z-index: 10;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
    transition: transform 0.3s ease;
    pointer-events: none;
}

.prestation-magnet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prestation-local-card:nth-child(2n) .prestation-magnet { transform: translateX(-50%) rotate(6deg); }
.prestation-local-card:nth-child(3n) .prestation-magnet { transform: translateX(-50%) rotate(-4deg); }
.prestation-local-card:nth-child(4n) .prestation-magnet { transform: translateX(-50%) rotate(10deg); }
.prestation-local-card:nth-child(5n) .prestation-magnet { transform: translateX(-50%) rotate(-12deg); }
.prestation-local-card:nth-child(6n) .prestation-magnet { transform: translateX(-50%) rotate(4deg); }

.prestation-local-card:hover .prestation-magnet { transform: translateX(-50%) rotate(0deg) scale(1.15); }

.prestation-local-card:hover {
    background: rgba(255, 241, 220, 0.2);
    transform: translateY(-2px);
}

.prestation-local-card::before {
    content: '→';
    color: var(--jaune-oeuf);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.local-section-vert .btn {
    position: relative;
    z-index: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.local-section-vert .btn:hover {
    background: var(--rouge-tomate) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ============================================
   SECTION 4 - CRÈME (pour section "sans jargon" / professions)
   ============================================ */
.local-section-creme {
    padding: 5rem 5%;
    background: var(--creme-fouettee);
}

.local-section-creme h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--noir-olive);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.local-section-creme p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--noir-olive);
    margin-bottom: 1rem;
    max-width: 800px;
}

.local-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.local-pill {
    background: white;
    border: 2px solid var(--vert-persil);
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vert-persil);
}

/* ============================================
   SECTION 5 - AVANTAGES (bg blanc)
   ============================================ */
.local-section-avantages {
    padding: 5rem 5%;
    background: white;
}

.local-section-avantages h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--noir-olive);
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.avantage-card {
    background: var(--creme-fouettee);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    border-top: 4px solid var(--jaune-oeuf);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--noir-olive);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.4;
}

.avantage-card-icon {
    width: 32px;
    height: 32px;
    background: var(--jaune-oeuf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================
   SECTION 6 - CTA FINAL (bg vert)
   ============================================ */
.local-cta-section {
    padding: 5rem 5%;
    background: var(--vert-persil);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.local-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/motifs/carreauxverts.png');
    background-size: auto 100px;
    opacity: 0.06;
}

.local-cta-section .local-container {
    position: relative;
    z-index: 1;
}

.local-cta-section h2 {
    color: var(--creme-fouettee);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.local-cta-section p {
    color: rgba(255, 241, 220, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================
   SECTION 7 - FAQ (bg crème)
   ============================================ */
.local-faq-section {
    padding: 5rem 5%;
    background: var(--creme-fouettee);
}

.local-faq-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--noir-olive);
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.faq-local-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-local-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-left: 4px solid var(--vert-persil);
}

.faq-local-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vert-persil);
    margin-bottom: 0.6rem;
    font-family: 'Montserrat', sans-serif;
}

.faq-local-item p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--noir-olive);
    margin: 0;
}

/* ============================================
   CONTAINER GÉNÉRAL
   ============================================ */
.local-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .local-hero {
        padding: 7rem 5% 4rem;
        min-height: auto;
    }

    .commande-wrapper {
        flex-direction: column;
        align-items: center;
        max-width: 320px;
    }

    .commande-sticker {
        width: 80px;
        align-self: flex-end;
        margin-bottom: -1rem;
        transform: rotate(10deg);
    }

    .commande-ticket {
        transform: none;
    }

    .prestations-local-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 480px) {
    .prestations-local-grid {
        grid-template-columns: 1fr;
    }
}
