/* ============================================
   RESSOURCES PRATIQUES - CSS
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.ressources-hero {
    background: linear-gradient(135deg, var(--vert-persil) 0%, #1a4a24 100%);
    min-height: 70vh;
    padding: 8rem 5% 5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ressources-hero .floating-sticker {
    position: absolute;
    opacity: 0.15;
}

.ressources-hero .sticker-1 {
    width: 120px;
    top: 15%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.ressources-hero .sticker-2 {
    width: 150px;
    bottom: 20%;
    left: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

.ressources-hero .sticker-3 {
    width: 80px;
    top: 60%;
    right: 20%;
    animation: float 7s ease-in-out infinite;
}

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

.hero-content-ressources {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content-ressources h1 {
    font-size: 2.8rem;
    color: var(--creme-fouettee);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-intro {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.hero-intro p {
    font-size: 1.1rem;
    color: rgba(255, 241, 220, 0.95);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hero-intro strong {
    color: var(--jaune-oeuf);
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.hero-list li {
    font-size: 1.15rem;
    color: var(--jaune-oeuf);
    font-weight: 600;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.hero-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--jaune-oeuf);
    border-radius: 50%;
}

.hero-tagline {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.2rem !important;
    color: var(--creme-fouettee) !important;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   PATTERN DIVIDERS
   ============================================ */
.pattern-divider-ressources {
    height: 80px;
    background-image: url('/assets/motifs/carreauxverts.png');
    background-size: 300px;
    background-repeat: repeat;
}

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

/* ============================================
   SECTION CARTE
   ============================================ */
.section-carte {
    padding: 5rem 5%;
    background: var(--creme-fouettee);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 4rem;
    align-items: center;
}

.section-content h2 {
    font-size: 2rem;
    color: var(--vert-persil);
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--noir-olive);
    margin-bottom: 1.5rem;
}

.section-intro a {
    color: var(--rouge-tomate);
    text-decoration: underline;
}

.carte-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.carte-list li {
    font-size: 1.05rem;
    color: var(--noir-olive);
    padding: 0.6rem 0;
    padding-left: 2rem;
    position: relative;
}

.carte-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--jaune-oeuf);
    border-radius: 3px;
    transform: translateY(-50%) rotate(45deg);
}

.zero-spam {
    font-size: 1.1rem;
    padding: 1.5rem;
    background: rgba(200, 62, 62, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--rouge-tomate);
    margin-top: 1.5rem;
}

.zero-spam strong {
    color: var(--rouge-tomate);
}

.section-visual {
    display: flex;
    justify-content: center;
}

.section-hand {
    width: 200px;
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   SECTION GUIDES
   ============================================ */
.section-guides {
    padding: 5rem 5%;
    background: var(--vert-persil);
}

.section-container-full {
    max-width: 1200px;
    margin: 0 auto;
}

.guides-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.guides-icon img {
    width: 60px;
    height: 60px;
}

.guides-header h2,
.section-guides h2 {
    font-size: 2rem;
    color: var(--creme-fouettee);
}

.guides-intro,
.section-guides p {
    font-size: 1.1rem;
    color: rgba(255, 241, 220, 0.9);
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 1rem;
}

.guides-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    max-width: 600px;
}

.guides-list li {
    font-size: 1rem;
    color: var(--creme-fouettee);
    padding-left: 1.5rem;
    position: relative;
}

.guides-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--jaune-oeuf);
    border-radius: 50%;
}

.guides-tagline {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: var(--jaune-oeuf) !important;
    margin: 2rem 0 !important;
}

/* Grille de guides */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.guide-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.guide-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--jaune-oeuf) 0%, #e6a800 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-lock-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--noir-olive);
}

.guide-lock-overlay svg {
    opacity: 0.7;
}

.guide-lock-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.guide-card-content {
    padding: 1.5rem;
}

.guide-card-content h3 {
    font-size: 1.1rem;
    color: var(--noir-olive);
    margin-bottom: 0.5rem;
}

.guide-card-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Guide en acces libre (lien) */
a.guide-card {
    text-decoration: none;
    display: block;
}

a.guide-card.free .guide-card-image {
    background: linear-gradient(135deg, var(--vert-persil) 0%, #1a4a24 100%);
}

.guide-free-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--creme-fouettee);
}

.guide-free-overlay svg {
    opacity: 0.9;
    stroke: var(--creme-fouettee);
    transition: transform 0.3s ease;
}

a.guide-card:hover .guide-free-overlay svg {
    transform: translateY(5px);
}

.guide-free-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--creme-fouettee);
}

/* ============================================
   SECTION CHECKLISTS
   ============================================ */
.section-checklists {
    padding: 5rem 5%;
    background: var(--jaune-oeuf);
}

.checklists-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.checklists-icon img {
    width: 60px;
    height: 60px;
}

.checklists-header h2,
.section-checklists h2 {
    font-size: 2rem;
    color: var(--noir-olive);
}

.checklists-intro,
.section-checklists p {
    font-size: 1.1rem;
    color: var(--noir-olive);
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 1rem;
}

.checklists-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.checklists-list li {
    font-size: 1rem;
    color: var(--noir-olive);
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.checklists-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--vert-persil);
    border-radius: 4px;
}

.checklists-description {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: var(--vert-persil) !important;
}

/* Grille de checklists */
.checklists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Style checklist papier */
.checklist-card {
    background: linear-gradient(180deg, #fffef8 0%, #faf8f0 100%);
    border-radius: 4px;
    padding: 0;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Effet papier dechire en haut */
.checklist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: var(--vert-persil);
    border-bottom: 3px dashed rgba(255, 255, 255, 0.4);
}

/* Trous de perforation */
.checklist-card::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    box-shadow:
        248px 0 0 rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 255, 255, 0.3);
}

.checklist-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 15px 35px rgba(0, 0, 0, 0.18);
}

.checklist-card.locked {
    opacity: 0.95;
}

.checklist-card.locked::before {
    background: var(--rose-bonbon);
}

/* Icone cachee pour le nouveau design */
.checklist-card-icon {
    display: none;
}

/* Contenu de la card */
.checklist-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--noir-olive);
    margin: 0;
    padding: 50px 1.5rem 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Case a cocher avant le titre */
.checklist-card h3::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 55px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--vert-persil);
    border-radius: 3px;
    background: white;
}

.checklist-card.free h3::before {
    background: var(--vert-persil);
    box-shadow: inset 0 0 0 2px white;
}

.checklist-card.free h3::after {
    content: '';
    position: absolute;
    left: 1.7rem;
    top: 57px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checklist-card h3 {
    padding-left: 3rem;
}

.checklist-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 1rem 1.5rem;
    position: relative;
    background: repeating-linear-gradient(
        transparent,
        transparent 23px,
        rgba(0, 0, 0, 0.04) 23px,
        rgba(0, 0, 0, 0.04) 24px
    );
    min-height: 70px;
}

/* Ligne rouge de marge */
.checklist-card p::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(200, 62, 62, 0.3);
}

.checklist-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 1.5rem 1.5rem;
    border-radius: 4px;
    position: relative;
}

.checklist-badge.free {
    background: var(--vert-persil);
    color: white;
}

.checklist-badge.email {
    background: rgba(255, 200, 87, 0.2);
    color: var(--noir-olive);
    border: 1px dashed var(--jaune-oeuf);
}

/* Checklist en acces libre (lien) */
a.checklist-card {
    text-decoration: none;
    display: block;
}

a.checklist-card.free::before {
    background: var(--vert-persil);
}

a.checklist-card:hover {
    transform: translateY(-5px) rotate(-1deg);
}

/* Effet de telechargement sur hover */
a.checklist-card.free .checklist-badge::after {
    content: ' ↓';
    font-size: 0.9rem;
}

/* ============================================
   SECTION LEXIQUE
   ============================================ */
.section-lexique {
    padding: 5rem 5%;
    background: var(--creme-fouettee);
}

.section-lexique .section-container {
    align-items: flex-start;
}

.lexique-content {
    padding-right: 2rem;
}

.lexique-content h2 {
    font-size: 2rem;
    color: var(--vert-persil);
    margin-bottom: 1.5rem;
}

.lexique-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--noir-olive);
    margin-bottom: 1.5rem;
}

.lexique-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--noir-olive);
    margin-bottom: 1rem;
}

.lexique-tagline {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: var(--rouge-tomate) !important;
    margin: 2rem 0 !important;
}

.lexique-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lexique-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lexique-term {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--rouge-tomate);
}

.lexique-def {
    font-size: 0.95rem;
    color: var(--vert-persil);
}

/* ============================================
   SECTION POUR QUI
   ============================================ */
.section-pour-qui {
    padding: 5rem 5%;
    background: var(--noir-olive);
}

.section-pour-qui h2 {
    font-size: 2rem;
    color: var(--creme-fouettee);
    text-align: center;
    margin-bottom: 1.5rem;
}

.pour-qui-intro {
    font-size: 1.15rem;
    color: rgba(255, 241, 220, 0.9);
    text-align: center;
    margin-bottom: 2.5rem;
}

.pour-qui-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.pour-qui-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pour-qui-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.pour-qui-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.pour-qui-icon img {
    width: 100%;
    height: auto;
}

.pour-qui-card p {
    font-size: 1rem;
    color: var(--creme-fouettee);
    line-height: 1.6;
}

.pour-qui-conclusion {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.pour-qui-conclusion p {
    font-size: 1.1rem;
    color: rgba(255, 241, 220, 0.9);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.pour-qui-cta-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: var(--jaune-oeuf) !important;
    margin: 1.5rem 0 2rem !important;
}

/* ============================================
   EMAIL MODAL
   ============================================ */
.email-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-modal.active {
    opacity: 1;
    visibility: visible;
}

.email-modal-content {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.email-modal.active .email-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--noir-olive);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-sticker {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--vert-persil);
}

.email-modal-content > p {
    font-size: 1rem;
    color: var(--noir-olive);
    margin-bottom: 1.5rem;
}

.unlock-form {
    margin-bottom: 1.5rem;
}

.unlock-form .form-group {
    margin-bottom: 1rem;
}

.unlock-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.unlock-form input[type="email"]:focus {
    outline: none;
    border-color: var(--vert-persil);
}

.modal-disclaimer {
    font-size: 0.85rem !important;
    color: #888 !important;
    margin-bottom: 0 !important;
}

.modal-success {
    padding: 1rem 0;
}

.modal-success h3 {
    font-size: 1.5rem;
    color: var(--vert-persil);
    margin: 1rem 0;
}

.modal-success p {
    font-size: 1rem;
    color: var(--noir-olive);
    margin-bottom: 1.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pour-qui-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .ressources-hero {
        min-height: auto;
        padding: 6rem 5% 4rem;
    }

    .hero-content-ressources h1 {
        font-size: 2rem;
    }

    .section-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-visual {
        order: -1;
    }

    .section-hand {
        width: 150px;
    }

    .guides-list {
        grid-template-columns: 1fr;
    }

    .section-lexique .section-container {
        grid-template-columns: 1fr;
    }

    .lexique-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .lexique-visual {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lexique-card {
        flex: 1 1 calc(33% - 1rem);
    }
}

@media (max-width: 768px) {
    .pour-qui-grid {
        grid-template-columns: 1fr;
    }

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

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

    .checklist-card::after {
        box-shadow: calc(100% - 36px) 0 0 rgba(0, 0, 0, 0.15);
    }

    .lexique-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .hero-intro {
        padding: 1.5rem;
    }

    .hero-content-ressources h1 {
        font-size: 1.7rem;
    }

    .guides-header h2,
    .checklists-header h2,
    .section-carte h2,
    .section-lexique h2,
    .section-pour-qui h2 {
        font-size: 1.5rem;
    }

    .pattern-divider-ressources {
        height: 60px;
        background-size: 200px;
    }

    .email-modal-content {
        padding: 2rem 1.5rem;
    }

    .pour-qui-icon {
        width: 60px;
        height: 60px;
    }
}
