/* Page À propos : fond papier grainé (cf. theme.css), titres condensés et surlignage jaune repris de la home */
.about-container {
    width: 100%;
    padding-top: clamp(3rem, 7vw, 5.5rem);
    color: var(--perigord-black);
    text-align: center;
}

.about-container .page-title {
    font-size: var(--pe-page-title-size);
    color: var(--perigord-black);
    margin: 0 auto clamp(1rem, 3vw, 2rem);
    padding: 0 1rem;
}

.about-section {
    max-width: 80rem;
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
    text-align: left;
}

/* Titres de section (le titre « L'équipe » garde son propre style) */
.about-section h2:not(.staff-title) {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    color: var(--perigord-black);
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

/* Mots-clés : même surlignage jaune que la section Événements de la home */
.about-section p strong,
.interview-description strong {
    font-weight: 700;
    color: var(--perigord-black);
    background: linear-gradient(transparent 62%, var(--perigord-yellow) 62%);
    padding: 0 0.1em;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #3d3942;
    margin-bottom: 1.2rem;
}

.about-section p.lead {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.6;
    font-weight: 500;
    color: var(--perigord-black);
    margin-bottom: 1.75rem;
}

/* Parallaxe entre les sections */
.about-container .parallax-divider {
    height: clamp(220px, 45vw, 480px);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ---------- Présentation : logo à gauche (inchangé), texte à droite ---------- */
.presentation-section .section-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.presentation-photo {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    justify-self: center;
}

.presentation-photo img {
    display: block;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--perigord-yellow);
}

.presentation-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.presentation-photo:hover::before {
    left: 150%;
}

.presentation-section .section-text p {
    max-width: 62ch;
}

.presentation-section .section-text p:last-child {
    margin: 2rem 0 0;
    padding-left: 1.25rem;
    border-left: 4px solid var(--perigord-yellow);
}

/* ---------- Origine du nom : récit sur une feuille claire ---------- */
.origin-section .section-text {
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
}

.origin-text-block {
    position: relative;
    text-align: left;
    background-color: #fff;
    border-radius: 28px;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
    box-shadow: inset 0 0 0 1px rgba(5, 4, 7, 0.08), 0 30px 60px -40px rgba(5, 4, 7, 0.35);
}

.origin-text-block::before {
    content: '\201C';
    position: absolute;
    top: -0.35em;
    left: clamp(1rem, 4vw, 3rem);
    font-family: Georgia, serif;
    font-size: clamp(6rem, 12vw, 9rem);
    line-height: 1;
    color: var(--perigord-yellow);
}

.origin-text-block p {
    max-width: none;
}

.origin-text-block .highlight-text,
.origin-text-block .punchline {
    font-family: var(--pe-font);
    font-variation-settings: "wdth" 40, "opsz" 144;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: var(--perigord-black);
    text-align: center;
}

.origin-text-block .punchline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 2rem 0;
}

.origin-text-block .name-reveal {
    font-size: clamp(2.4rem, 7vw, 4.25rem);
    margin: 2.5rem 0;
}

.origin-text-block .name-reveal::after {
    content: '';
    display: block;
    width: 4rem;
    height: 0.3rem;
    margin: 1rem auto 0;
    background-color: var(--perigord-yellow);
}

.origin-text-block .final-reveal {
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    margin: 3rem 0 0;
    padding: 1.5rem 1rem;
    border-radius: 18px;
    background-color: var(--perigord-black);
    color: var(--perigord-yellow);
}

/* ---------- Événements : photo et texte en alternance, comme la home ---------- */
.about-container .events-section {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 9vw, 7rem);
}

.about-container .events-section h2 {
    margin-bottom: 0;
}

.event-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 5.5rem);
}

.event-content.reverse {
    grid-template-columns: 1.1fr 1fr;
}

.event-content.reverse .event-photo {
    order: 2;
}

.event-photo .polaroid-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4 / 3.2;
    box-shadow: 0 30px 60px -30px rgba(5, 4, 7, 0.45);
}

.event-photo .event-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.event-photo .polaroid-frame:hover .event-image {
    transform: scale(1.04);
}

.event-index {
    display: block;
    font-family: var(--pe-font);
    font-variation-settings: "wdth" 40, "opsz" 144;
    font-weight: 850;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 2px var(--perigord-black);
    opacity: 0.18;
    margin-bottom: 0.75rem;
}

.event-text h3 {
    font-family: var(--pe-font);
    font-variation-settings: "wdth" 40, "opsz" 144;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    color: var(--perigord-black);
    margin-bottom: 1.5rem;
}

.event-text p {
    max-width: 58ch;
}

/* ---------- Le Bureau : trois cartes ---------- */
.interview-section h2 {
    text-align: left;
}

.interview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
}

.interview-card {
    background-color: #fff;
    border-radius: 22px;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    box-shadow: inset 0 0 0 1px rgba(5, 4, 7, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.interview-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 2px var(--perigord-black), 0 24px 40px -28px rgba(5, 4, 7, 0.4);
}

.interview-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.interview-photo img {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--perigord-yellow);
}

.interview-text h3 {
    display: inline-block;
    font-family: var(--pe-font);
    font-variation-settings: "wdth" 40, "opsz" 144;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--perigord-black);
    background-color: var(--perigord-yellow);
    padding: 0.45rem 0.8rem 0.4rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.interview-description p {
    font-size: 1rem;
    line-height: 1.75;
    color: #3d3942;
    margin-bottom: 1rem;
}

.interview-description p:last-child {
    margin-bottom: 0;
}

/* Staff Grid */
.staff-title {
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--perigord-black);
    margin-top: 5rem;
    margin-bottom: 3rem;
    margin-left: 3rem;
    font-weight: 800;
    display: inline-block;
    background: linear-gradient(transparent 65%, rgba(254, 222, 123, 0.4) 65%);
    background-size: 100% 100%;
    line-height: 1.3;
    padding: 0 0.3rem;
    border-radius: 4px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.staff-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.staff-member:hover {
    transform: translateY(-5px);
}

.staff-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid var(--perigord-yellow);
    transition: all 0.3s ease;
}

.staff-member:hover img {
    box-shadow: 0 8px 25px rgba(254, 222, 123, 0.4);
}

.staff-name {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--perigord-black);
}

.staff-member {
    cursor: grab;
    user-select: none;
}

.staff-member:active {
    cursor: grabbing;
}

.staff-member.dragging {
    opacity: 0.3;
}

.staff-member.drag-over {
    transform: scale(1.05);
}

.staff-member.drag-over img,
.staff-member.drag-over .photo-placeholder.small {
    border-color: var(--perigord-black);
    box-shadow: 0 8px 25px rgba(254, 222, 123, 0.6);
}

/* Ghost element pendant le drag */
.staff-member.drag-ghost {
    opacity: 1;
}

.staff-member.drag-ghost img,
.staff-member.drag-ghost .photo-placeholder.small {
    box-shadow: 0 8px 25px rgba(254, 222, 123, 0.5);
}

/* Staff Match Game */
.staff-title.game-active {
    color: var(--perigord-black);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.staff-timer {
    display: none;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--perigord-black);
    text-align: center;
    margin-bottom: 2rem;
    font-family: monospace;
}

.photo-slot {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.photo-slot img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid var(--perigord-yellow);
    cursor: grab;
    transition: all 0.3s ease;
}

.photo-slot img:hover {
    box-shadow: 0 8px 25px rgba(254, 222, 123, 0.4);
}

.photo-slot img:active {
    cursor: grabbing;
}

.photo-slot img.dragging {
    opacity: 0.4;
}

.photo-slot.drag-over {
    background-color: rgba(254, 222, 123, 0.3);
    border: 3px dashed var(--perigord-yellow);
}

.staff-member.matched .photo-slot {
    background-color: rgba(76, 175, 80, 0.15);
}

.staff-member.matched img,
.staff-member.matched .photo-placeholder.small {
    border-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.staff-member.matched .staff-name {
    color: #4CAF50;
}

.staff-member.mismatched .photo-slot {
    background-color: rgba(244, 67, 54, 0.1);
}

/* Photo placeholder small for staff grid */
.photo-placeholder.small {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid var(--perigord-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(254, 222, 123, 0.3) 0%, rgba(254, 222, 123, 0.5) 100%);
    color: var(--perigord-black);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.photo-placeholder.small.draggable-placeholder {
    cursor: grab;
}

.photo-placeholder.small.draggable-placeholder:active {
    cursor: grabbing;
}

.photo-placeholder.small.dragging {
    opacity: 0.4;
}

.photo-placeholder.small:hover {
    box-shadow: 0 8px 25px rgba(254, 222, 123, 0.4);
}

/* Car animation trigger - hidden clickable */
.car-trigger {
    cursor: text;
    user-select: text;
}

/* Car animation trigger - hidden clickable */
.car-trigger {
    cursor: text;
    user-select: text;
}

/* Une carte par ligne : la photo passe à gauche du texte */
@media (max-width: 1100px) {
    .interview-grid {
        grid-template-columns: 1fr;
        max-width: 54rem;
    }

    .interview-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .interview-content {
        flex-direction: column;
        gap: 1.25rem;
    }
}

@media (max-width: 860px) {
    .presentation-section .section-content,
    .event-content,
    .event-content.reverse {
        grid-template-columns: 1fr;
    }

    .event-content.reverse .event-photo {
        order: 0;
    }
}

@media (max-width: 768px) {
    .presentation-photo img {
        width: 200px;
        height: 200px;
    }

    .about-container .parallax-divider {
        background-attachment: scroll;
    }

    .staff-title {
        margin-left: 0;
        margin-top: 3rem;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .staff-member img,
    .photo-placeholder.small {
        width: 120px;
        height: 120px;
    }

    .staff-name {
        font-size: 1rem;
    }

    .photo-slot {
        width: 120px;
        height: 120px;
    }

    .photo-slot img,
    .photo-slot .photo-placeholder.small {
        width: 120px;
        height: 120px;
    }

    .staff-timer {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-photo .event-image,
    .interview-card {
        transition: none;
    }
}
