:root {
        --blue-light: #e1edf3;  
}
.phrase-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 30px;
}

.phrase-date {
    font-size: 1.6rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.phrase-date::after {
    content: 'Parole du jour';
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 25px;
    margin-bottom: 40px;
    text-transform: none;
    letter-spacing: 1px;
}

.phrase-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
    position: relative;
    overflow: hidden;
}

.phrase-card::before {
    content: "❝";
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 8rem;
    opacity: 0.2;
    line-height: 1;
}

.phrase-card::after {
    content: "❞";
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 8rem;
    opacity: 0.2;
    line-height: 1;
}

.phrase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.phrase-texte {
    font-size: 2.8rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.phrase-reference {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-tertiary);
    position: relative;
    z-index: 1;
}


/* ───────────────────────────────────────────────────────────
   Boutons Imprimer et Copier
   ─────────────────────────────────────────────────────────── */

.phrase-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ========== BOUTON IMPRIMER ========== */
.print-btn {
    width: 120px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blue-light);
    border: 0px solid rgb(213, 213, 213);
    border-radius: 10px;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    font-weight: 700;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.065);
    transition: all 0.3s;
}

.printer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 100%;
}

.printer-container {
    height: 50%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.printer-container svg {
    width: 100%;
    height: auto;
    transform: translateY(4px);
}

.printer-page-wrapper {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.printer-page {
    width: 70%;
    height: 10px;
    border: 1px solid black;
    background-color: white;
    transform: translateY(0px);
    transition: all 0.3s;
    transform-origin: top;
}

.print-btn:hover .printer-page {
    height: 16px;
    background-color: rgb(239, 239, 239);
}

.print-btn:hover {
    background-color: rgb(239, 239, 239);
}

/* ========== BOUTON COPIER ========== */
.copy-btn {
    background-color: #f2f7fa;
    width: 120px;
    height: 45px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition-duration: 700ms;
    position: relative;
}

.copy-btn .copy-text {
    color: #0e418f;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.5s;
}

.copy-btn .copy-copied {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #b5ccf3;
    opacity: 0;
    transform: translateY(100%) translateX(-50%);
    height: 14px;
    line-height: 13px;
    transition: all 0.5s;
}

.copy-btn:focus {
    background-color: #0e418f;
    width: 130px;
    height: 50px;
    transition-delay: 100ms;
    transition-duration: 500ms;
}

.copy-btn:focus .copy-text {
    color: #b5ccf3;
    transform: translateX(-50%) translateY(-150%);
    opacity: 0;
    transition-duration: 500ms;
}

.copy-btn:focus .copy-copied {
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    opacity: 1;
    transition-delay: 300ms;
    transition-duration: 500ms;
}

/* Animation de retour */
.copy-btn.copied {
    background-color: #0e418f;
    width: 130px;
    height: 50px;
}

.copy-btn.copied .copy-text {
    color: #b5ccf3;
    transform: translateX(-50%) translateY(-150%);
    opacity: 0;
}

.copy-btn.copied .copy-copied {
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    opacity: 1;
}


.section-divider {
    text-align: center;
    margin: 40px 0 20px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.section-divider::before {
    left: 0;
}

.section-divider::after {
    right: 0;
}

/* ───────────────────────────────────────────────────────────
   Boutons
   ─────────────────────────────────────────────────────────── */

.social-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.social-child {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: all 0.5s ease-in-out;
    border-radius: 50%;
    position: relative;
}

.social-child::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease-in-out;
    z-index: -1;
}

.social-child:hover {
    background-color: white;
    transform: perspective(180px) rotateX(60deg) translateY(2px);
    box-shadow: 0px 10px 20px rgba(1, 49, 182, 0.3);
}

.social-child:hover::before {
    background: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.social-button {
    border: none;
    background-color: transparent;
    font-size: 24px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.social-button:hover {
    transform: translate3d(0px, 0px, 15px) perspective(180px) rotateX(-35deg) translateY(2px);
}

.social-button svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.social-child:hover .social-button svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}


.social-child:nth-child(1):hover {
    /* Twitter */
    box-shadow: 0px 10px 20px rgba(30, 144, 255, 0.3);
}

.social-child:nth-child(2):hover {
    /* Instagram */
    box-shadow: 0px 10px 20px rgba(255, 0, 255, 0.3);
}

.social-child:nth-child(3):hover {
    /* WhatsApp */
    box-shadow: 0px 10px 20px rgba(37, 211, 102, 0.3);
}

.social-child:nth-child(4):hover {
    /* Facebook */
    box-shadow: 0px 10px 20px rgba(66, 103, 178, 0.3);
}


/* ───────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .phrase-container {
        padding: 15px;
        margin: 30px auto;
    }

    .phrase-card {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .phrase-date::after {
        font-size: 2.5rem;
    }

    .phrase-texte {
        font-size: 1.4rem;
    }

    .phrase-reference {
        font-size: 1rem;
    }

    .social-child {
        width: 50px;
        height: 50px;
    }

    .social-button svg {
        width: 24px;
        height: 24px;
    }

    /* Nouveaux boutons responsive */
    .print-btn {
        width: 110px;
        height: 40px;
        font-size: 14px;
        gap: 8px;
    }

    .copy-btn {
        width: 110px;
        height: 40px;
        font-size: 14px;
    }
    
    .copy-btn:focus {
        width: 120px;
        height: 45px;
    }

    .section-divider {
        font-size: 0.8rem;
        margin: 30px 0 15px;
    }

    .section-divider::before,
    .section-divider::after {
        width: 20%;
    }
}

@media (max-width: 480px) {
    .phrase-texte {
        font-size: 1.2rem;
    }

    .phrase-date {
        font-size: 1rem;
    }

    .phrase-date::after {
        font-size: 2rem;
    }

    .social-buttons-container {
        gap: 10px;
    }

    .social-child {
        width: 45px;
        height: 45px;
    }

    .social-button svg {
        width: 20px;
        height: 20px;
    }

    .phrase-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .print-btn,
    .copy-btn {
        width: 140px;
        height: 45px;
    }
    
    .copy-btn:focus {
        width: 150px;
        height: 50px;
    }
}

/* ───────────────────────────────────────────────────────────
   Impression
   ─────────────────────────────────────────────────────────── */

@media print {
    /* ── Masquer tout sauf la phrase ── */
    .phrase-actions,
    .social-buttons-container,
    .section-divider,
    header,
    footer,
    .access-fab,
    .cookie-consent,
    .hero-page {
        display: none !important;
    }

    @page {
        size: A4 portrait;
        margin: 2.5cm 2cm;
    }

    html, body {
        background: #f0f5f0 !important;
        color: #1a1a1a !important;
    }

    section {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }

    .phrase-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 24cm !important;
    }

    /* ── En-tête centré : icône + nom paroisse ── */
    .phrase-container::before { content: none !important; }
    .phrase-container::after  { content: none !important; }

    .print-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 0.5cm !important;
    }

    .print-church-icon {
        display: block !important;
        width: 1.2cm !important;
        height: 1.2cm !important;
        margin-bottom: 0.2cm !important;
        -webkit-filter: invert(35%) sepia(80%) saturate(500%) hue-rotate(195deg) brightness(90%) !important;
        filter: invert(35%) sepia(80%) saturate(500%) hue-rotate(195deg) brightness(90%) !important;
        opacity: 0.55 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-paroisse {
        font-family: 'Georgia', serif !important;
        font-size: 0.7rem !important;
        color: #2871b1 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        line-height: 1.8 !important;
        text-align: center !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* trait centré */
    .print-header::after {
        content: '' !important;
        display: block !important;
        width: 3cm !important;
        height: 2px !important;
        background: #2871b1 !important;
        margin-top: 0.5cm !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Date ── */
    .phrase-date {
        text-align: center !important;
        font-family: 'Georgia', serif !important;
        font-size: 0.65rem !important;
        color: #aaaaaa !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
        font-style: normal !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 0 1cm 0 !important;
    }

    .phrase-date::before { content: none !important; }
    .phrase-date::after  { content: none !important; }

    /* ── Carte centrale blanche ── */
    .phrase-card {
        background: #ffffff !important;
        border-radius: 16px !important;
        border: 1px solid rgba(40,113,177,0.12) !important;
        box-shadow: 0 4px 30px rgba(40,113,177,0.08) !important;
        padding: 1.2cm 1.4cm !important;
        margin: 0 !important;
        animation: none !important;
        page-break-inside: avoid;
        position: relative !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Grande guillemet décorative */
    .phrase-card::before {
        content: '❝' !important;
        position: absolute !important;
        top: 0.3cm !important;
        left: 0.4cm !important;
        font-family: 'Georgia', serif !important;
        font-size: 4rem !important;
        color: rgba(40,113,177,0.10) !important;
        line-height: 1 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .phrase-card::after { content: none !important; }

    /* ── Texte de la phrase ── */
    .phrase-texte {
        font-family: 'Georgia', 'Times New Roman', serif !important;
        font-size: 1.5rem !important;
        line-height: 1.9 !important;
        color: #1a2a3a !important;
        font-style: italic !important;
        font-weight: 300 !important;
        text-align: left !important;
        margin: 0 0 0.6cm 0 !important;
        padding: 0 !important;
    }

    /* ── Référence ── */
    .phrase-reference {
        display: flex !important;
        align-items: center !important;
        gap: 0.3cm !important;
        font-family: 'Georgia', serif !important;
        font-size: 0.65rem !important;
        color: #2871b1 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        font-style: normal !important;
        font-weight: 400 !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .phrase-reference::before {
        content: '' !important;
        display: inline-block !important;
        width: 20px !important;
        height: 1px !important;
        background: #2871b1 !important;
        flex-shrink: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Pied de page ── */
    body::after {
        content: 'notre-dame-auxiliatrice.re' !important;
        display: block !important;
        position: fixed !important;
        bottom: 1.5cm !important;
        left: 0 !important;
        right: 0 !important;
        text-align: center !important;
        font-family: 'Georgia', serif !important;
        font-size: 0.55rem !important;
        color: #cccccc !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Couleurs forcées ── */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* ───────────────────────────────────────────────────────────
   ANIMATIONS
   ─────────────────────────────────────────────────────────── */

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

.phrase-card {
    animation: fadeInUp 0.6s ease-out;
}

.social-child {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.social-child:nth-child(1) {
    animation-delay: 0.1s;
}

.social-child:nth-child(2) {
    animation-delay: 0.2s;
}

.social-child:nth-child(3) {
    animation-delay: 0.3s;
}

.social-child:nth-child(4) {
    animation-delay: 0.4s;
}

/* ───────────────────────────────────────────────────────────
   MODE SOMBRE
   ─────────────────────────────────────────────────────────── */

body.dark-mode .phrase-card {
    background: #2a2a2a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .phrase-texte {
    color: #e0e0e0;
}

body.dark-mode .phrase-reference,
body.dark-mode .phrase-date {
    color: #999;
}

body.dark-mode .section-divider {
    color: #999;
}

body.dark-mode .section-divider::before,
body.dark-mode .section-divider::after {
    background: linear-gradient(to right, transparent, #444, transparent);
}

body.dark-mode .social-child:hover {
    background-color: #444;
}

body.dark-mode .social-child:hover::before {
    background: #444;
}

/* Nouveaux boutons en mode sombre */
body.dark-mode .print-btn {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .print-btn:hover {
    background-color: #333;
}

body.dark-mode .printer-container svg path,
body.dark-mode .printer-container svg circle {
    stroke: #e0e0e0;
    fill: #e0e0e0;
}

body.dark-mode .printer-page {
    border-color: #e0e0e0;
    background-color: #2a2a2a;
}

body.dark-mode .print-btn:hover .printer-page {
    background-color: #333;
}

body.dark-mode .copy-btn {
    background-color: #2a2a2a;
    border: 1px solid #444;
}

body.dark-mode .copy-btn .copy-text {
    color: #5a8fd8;
}

body.dark-mode .copy-btn .copy-text svg path {
    fill: #5a8fd8;
}

body.dark-mode .copy-btn:focus,
body.dark-mode .copy-btn.copied {
    background-color: #5a8fd8;
}

body.dark-mode .copy-btn:focus .copy-text,
body.dark-mode .copy-btn.copied .copy-text {
    color: #1a3a5a;
}

body.dark-mode .copy-btn:focus .copy-copied,
body.dark-mode .copy-btn.copied .copy-copied {
    color: #1a3a5a;
}

/* ── Masquer l'en-tête d'impression sur écran ── */
.print-header { display: none; }