﻿/* =========================================================
   ACCUEIL PHILOSOPHIE
   ========================================================= */
.philo-accueil {
    min-height: 100dvh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px;
    font-family: 'Segoe UI', sans-serif;
    /*background: linear-gradient( 180deg, #f5f3ee 0%, #ffffff 100% );*/
}


/* ---------------------------------------------------------
   TITRE
   --------------------------------------------------------- */

.philo-accueil-header {
    text-align: center;
    max-width: 850px;
    margin-bottom: 55px;
}

    .philo-accueil-header h1 {
        margin: 0;
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        font-weight: 600;
        color: #333;
    }

.philo-accueil-sous-titre {
    margin: 14px 0 0;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-style: italic;
    color: #666;
}


/* ---------------------------------------------------------
   PORTES D'EXPLORATION
   --------------------------------------------------------- */

.philo-portes {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 30px;
}


/* ---------------------------------------------------------
   UNE PORTE
   --------------------------------------------------------- */

.philo-porte {
    min-height: 250px;
    border: none;
    border-radius: 28px;
    padding: 7px;
    display:grid; /*flex;*/
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    cursor: pointer;
    color: #222;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

    .philo-porte:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
        filter: brightness(1.04);
    }

    .philo-porte:focus-visible {
        outline: 3px solid #333;
        outline-offset: 4px;
    }

    .philo-porte:active {
        transform: translateY(-1px);
    }

.porte-image {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0.2rem 0.1rem 0.7rem;
}
/* ---------------------------------------------------------
   TEXTE DES PORTES
   --------------------------------------------------------- */
.porte-titre {
    display: block;
    margin: 1.2rem 1rem 0.7rem;
    font-size: 1.45rem;
    font-weight: 600;
    color: #183763;
}

.porte-description {
    display: block;
    margin: 0 1.2rem 0.2rem;
    line-height: 1.50;
    flex-grow: 1;
    font-size: 1.05rem;
}

.porte-bouton {
    margin: 0.5rem 1rem 1.5rem;
   /* border-radius: 20px;*/
}

/*.porte-titre {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 650;
    margin-bottom: 18px;
}

.porte-description {
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 500px;
}

.porte-action {
    margin-top: 28px;
    font-size: 1rem;
    font-weight: 600;
}
*/

/* ---------------------------------------------------------
   COULEURS DES DEUX EXPLORATIONS
   --------------------------------------------------------- */

.porte-bac {
    background: linear-gradient( 135deg, #ddd9ff, #bcb5f2 );
}

.porte-complexe {
    background: linear-gradient( 135deg, #d8d98b, #a9aa55 );
}


/* ---------------------------------------------------------
   PETITS ÉCRANS
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .philo-accueil {
        padding: 40px 16px 30px;
    }

    .philo-accueil-header {
        margin-bottom: 35px;
    }

    .philo-portes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .philo-porte {
        min-height: 210px;
        padding: 26px;
        border-radius: 22px;
    }
}


/* ---------------------------------------------------------
   TRÈS PETITS ÉCRANS
   --------------------------------------------------------- */

@media (max-width: 400px) {

    .philo-accueil {
        padding: 30px 12px;
    }

    .philo-porte {
        min-height: 190px;
        padding: 22px;
    }

    .porte-titre {
        font-size: 1.4rem;
    }

    .porte-description {
        font-size: 0.98rem;
    }
}

