/* ============================================================
   BARGHACH PICTURES — Casting & recrutement
   ------------------------------------------------------------
   Feuille propre à la page Casting (chargée après style.css).
   Noir et blanc, Garamond, filets fins. Les photos ne sont
   jamais assombries ni déplacées au survol : seul le texte bouge,
   et seulement à l'apparition.
   ============================================================ */

.rc {
    --rc-noir: #0b0b0b;
    --rc-noir-2: #141414;
    --rc-ivoire: #f3f0ea;
    --rc-blanc: #ffffff;
    --rc-gris: #8c8a86;
    --rc-gris-clair: #bdbab4;
    --rc-filet-sombre: rgba(255, 255, 255, 0.14);
    --rc-filet-clair: rgba(17, 17, 17, 0.14);
    --rc-largeur: 1240px;
}

.rc-cadre {
    width: 100%;
    padding: 0 64px;
}

/* ---------- Repères communs ---------- */

.rc-repere {
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rc-gris);
    margin-bottom: 28px;
}
.rc-repere span { margin: 0 0.4em; }

.rc-titre {
    font-weight: normal;
    font-size: clamp(2.4rem, 4.2vw, 3.7rem);
    line-height: 1.06;
    letter-spacing: -0.005em;
}
.rc-titre em,
.rc-intro-titre em { font-style: italic; }

.rc-chapo {
    margin-top: 26px;
    max-width: 560px;
    font-size: 1.22rem;
    line-height: 1.6;
}

.rc-entete { margin-bottom: 72px; }

/* ---------- Photos ---------- */

.rc-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #f0efed;
}
.rc-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Légende posée sur l'image : l'ombre est sur le texte, jamais sur la photo. */
.rc-photo figcaption {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 0, 0, 0.6);
}
.rc-photo figcaption em { text-transform: none; letter-spacing: 0.04em; font-size: 0.95rem; }

/* Les photos apparaissent en fondu, sans glisser. */
.peut-apparaitre .rc-photo.reveal { transform: none; transition: opacity 1.4s ease; }

/* ============================================================
   BANDEAU
   ============================================================ */
.rc-hero-lien {
    position: relative;
    z-index: 1;
    margin-top: 44px;
    padding: 14px 34px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
    font-size: 0.82rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
    transition: background-color 0.35s ease, color 0.35s ease, text-shadow 0.35s ease;
}
.rc-hero-lien:hover {
    background: #ffffff;
    color: var(--rc-noir);
    text-shadow: none;
}

/* Tout est sur fond blanc : un filet sépare les blocs. */
.rc-intro + section,
.rc > section + section:not(.rc-intro) { border-top: 1px solid var(--rc-filet-clair); }

/* ============================================================
   01 · L'INVITATION
   ============================================================ */
.rc-intro {
    background: var(--rc-blanc);
    color: var(--color-text);
    padding: 100px 0 110px;
}

.rc-intro-grille {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 80px;
    align-items: stretch;
}

.rc-intro-texte { align-self: center; }
.rc-intro-titre {
    font-weight: normal;
    font-size: clamp(2rem, 2.6vw, 3.2rem);
    line-height: 1.14;
    margin-bottom: 48px;
}
.rc-intro-titre em {
    display: block;
}

.rc-intro-para {
    font-size: 1.18rem;
    line-height: 1.75;
    color: #4a4a4a;
}
.rc-intro-para + .rc-intro-para { margin-top: 24px; }
/* Chaque phrase repart en début de ligne ; une phrase longue
   continue normalement sur la ligne suivante. */
.rc-phrase { display: block; }

.rc-intro-poles {
    margin-top: 52px;
    padding-top: 26px;
    border-top: 1px solid var(--rc-filet-clair);
    font-size: 0.82rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text);
    display: inline-block;
    padding-right: 48px;
}
.rc-intro-poles span { color: var(--rc-gris); margin: 0 0.5em; }

.rc-intro-photos {
    position: relative;
    min-height: 560px;
}
.rc-photo--clap {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
}
.rc-photo--direction {
    position: absolute;
    left: 0;
    bottom: 64px;
    width: 58%;
    aspect-ratio: 3 / 2;
    outline: 10px solid var(--rc-blanc);
}

/* ============================================================
   02 · LES MÉTIERS
   ============================================================ */
.rc-metiers {
    background: var(--rc-blanc);
    color: var(--color-text);
    padding: 150px 0 140px;
}
.rc-metiers .rc-entete {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 96px;
    align-items: end;
}
.rc-metiers .rc-repere { grid-column: 1 / -1; color: var(--color-muted); }
.rc-metiers .rc-chapo { margin-top: 0; color: #3a3a3a; }

.rc-grille-metiers {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Chaque carte a sa photo en fond. La photo n'est jamais assombrie
   (pas de voile) et ne bouge pas au survol : c'est l'ombre portée
   sous le texte blanc qui le rend lisible. */
.rc-metier {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    padding: 30px 34px 30px;
    overflow: hidden;
    isolation: isolate;
    background: #2a2a2a;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.35);
}
.rc-metier-fond {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
/* Léger voile, du bas vers le haut, demandé pour lire le texte :
   sombre sous le titre, il s'efface avant le milieu de la photo. */
.rc-metier::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0) 58%);
    pointer-events: none;
}

.rc-metier-num {
    font-size: 0.8rem;
    letter-spacing: 0.24em;
}
.rc-metier-titre {
    margin-top: auto;
    font-weight: normal;
    font-size: 2rem;
    line-height: 1.12;
}
.rc-metier-liste {
    margin-top: 10px;
    font-size: 1.04rem;
    line-height: 1.5;
}

.rc-metier-cta {
    padding-top: 20px;
    align-self: flex-start;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: inherit;
    cursor: pointer;
}
.rc-metier-cta span {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.35s ease;
}
.rc-metier:hover .rc-metier-cta span { transform: translateX(6px); }
/* Toute la case est cliquable, pas seulement le mot « Postuler ». */
.rc-metier-cta::after {
    content: "";
    position: absolute;
    inset: 0;
}
.rc-metier-cta:focus-visible { outline: none; }
.rc-metier:focus-within { outline: 2px solid var(--rc-noir); outline-offset: 3px; }

.rc-metiers-note {
    margin-top: 44px;
    font-size: 1.15rem;
    font-style: italic;
    color: #3a3a3a;
}
.rc-metiers-note a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

/* ============================================================
   03 · SUR LE PLATEAU
   ============================================================ */
.rc-plateau {
    background: var(--rc-blanc);
    color: var(--color-text);
    padding: 140px 0 150px;
}
.rc-entete--ligne {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px 48px;
    margin-bottom: 56px;
}
.rc-entete--ligne .rc-repere { margin-bottom: 0; order: 2; }

.rc-mosaique {
    display: grid;
    grid-template-columns: 3fr 3fr 3fr 3fr;
    grid-template-rows: 300px 300px;
    gap: 14px;
}
.rc-m-camera  { grid-column: 1;     grid-row: 1 / 3; }
.rc-m-cadreur { grid-column: 2 / 4; grid-row: 1; }
.rc-m-plateau { grid-column: 4;     grid-row: 1 / 3; }
.rc-m-montage { grid-column: 2;     grid-row: 2; }
.rc-m-son     { grid-column: 3;     grid-row: 2; }
.rc-m-plateau img { object-position: center 60%; }

/* ============================================================
   04 · L'ESPRIT
   ============================================================ */
.rc-esprit {
    background: var(--rc-blanc);
    color: var(--color-text);
    padding: 150px 0;
}
.rc-esprit-grille {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 110px;
    align-items: start;
}
.rc-esprit-photo {
    position: sticky;
    top: calc(var(--header-height) + 40px);
    aspect-ratio: 4 / 5;
}
.rc-esprit .rc-repere { color: var(--color-muted); }

.rc-principes {
    list-style: none;
    margin-top: 56px;
}
.rc-principe {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    padding: 30px 0;
    border-top: 1px solid var(--rc-filet-clair);
}
.rc-principe:last-child { border-bottom: 1px solid var(--rc-filet-clair); }
.rc-principe-num {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-muted);
    padding-top: 4px;
}
.rc-principe h3 {
    font-weight: normal;
    font-size: 1.6rem;
    line-height: 1.2;
}
.rc-principe p {
    margin-top: 10px;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #4a4a4a;
    max-width: 560px;
}

/* --- Le formulaire --- */
.rc-form { display: flex; flex-direction: column; gap: 30px; }

.rc-piege {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rc-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.rc-champ { display: flex; flex-direction: column; gap: 10px; }

.rc-etiquette {
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #5a5a5a;
}
.rc-etiquette b { font-weight: normal; color: var(--rc-gris); }

.rc-form input[type="text"],
.rc-form input[type="email"],
.rc-form input[type="tel"],
.rc-form input[type="url"],
.rc-form select,
.rc-form textarea {
    width: 100%;
    font: inherit;
    font-size: 1.12rem;
    color: var(--color-text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.28);
    border-radius: 0;
    padding: 8px 0 10px;
    transition: border-color 0.3s ease;
}
.rc-form textarea {
    resize: vertical;
    min-height: 130px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    padding: 14px 16px;
    line-height: 1.55;
}
.rc-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 28px;
    background-image: linear-gradient(45deg, transparent 50%, #111111 50%), linear-gradient(135deg, #111111 50%, transparent 50%);
    background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.rc-form select option { color: #111111; background: #ffffff; }
.rc-form ::placeholder { color: #9a9894; font-style: italic; }

.rc-form input:focus,
.rc-form select:focus,
.rc-form textarea:focus {
    outline: none;
    border-color: var(--rc-noir);
}
.rc-form [aria-invalid="true"] { border-color: #b3261e !important; }

/* Dépôt du CV */
.rc-fichier { position: relative; display: block; cursor: pointer; }
.rc-fichier input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.rc-fichier-zone {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border: 1px dashed rgba(17, 17, 17, 0.3);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.rc-fichier:hover .rc-fichier-zone,
.rc-fichier input:focus-visible + .rc-fichier-zone {
    border-color: var(--rc-noir);
    background: #fafafa;
}
.rc-fichier.rempli .rc-fichier-zone { border-style: solid; border-color: rgba(17, 17, 17, 0.6); }
.rc-fichier input[aria-invalid="true"] + .rc-fichier-zone { border-color: #b3261e; }
.rc-fichier-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    height: 42px;
    border: 1px solid rgba(17, 17, 17, 0.4);
    border-radius: 50%;
    font-size: 1.1rem;
}
.rc-fichier-titre { display: block; font-size: 1.08rem; color: var(--color-text); word-break: break-all; }
.rc-fichier-aide { display: block; margin-top: 2px; font-size: 0.92rem; color: var(--rc-gris); }

.rc-aide-ou {
    margin-top: -14px;
    font-size: 0.98rem;
    font-style: italic;
    color: var(--rc-gris);
}

/* Case d'accord */
.rc-accord {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #4a4a4a;
    cursor: pointer;
}
.rc-accord input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border: 1px solid rgba(17, 17, 17, 0.45);
    display: grid;
    place-content: center;
    cursor: pointer;
}
.rc-accord input::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--rc-noir);
    transform: scale(0);
    transition: transform 0.2s ease;
}
.rc-accord input:checked::before { transform: scale(1); }
.rc-accord input:focus-visible { outline: 1px solid var(--rc-noir); outline-offset: 3px; }
.rc-accord input[aria-invalid="true"] { border-color: #b3261e; }
.rc-accord a { color: var(--color-text); border-bottom: 1px solid currentColor; }

.rc-message { font-size: 1.02rem; line-height: 1.5; }
.rc-message:empty { display: none; }
.rc-message.err { color: #b3261e; }

.rc-envoyer {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 40px;
    background: var(--rc-noir);
    color: var(--rc-blanc);
    border: 1px solid var(--rc-noir);
    font: inherit;
    font-size: 0.84rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease;
}
.rc-envoyer:hover { background: transparent; color: var(--rc-noir); }
.rc-envoyer:disabled { opacity: 0.6; cursor: wait; }

/* ============================================================
   PANNEAU DE CANDIDATURE
   Une grande fenêtre blanche par-dessus la page : la photo du
   métier à gauche, les postes puis le formulaire à droite.
   ============================================================ */
html.rc-panneau-ouvert { overflow: hidden; }

.rc-panneau {
    width: min(1180px, calc(100vw - 80px));
    height: min(820px, calc(100vh - 80px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    background: #ffffff;
    color: var(--color-text, #111111);
    font-family: var(--font-main);
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.rc-panneau[open] {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    animation: rc-apparition 0.4s ease;
}
.rc-panneau::backdrop {
    background: rgba(10, 10, 10, 0.6);
    animation: rc-fondu 0.4s ease;
}
@keyframes rc-apparition { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rc-fondu { from { opacity: 0; } to { opacity: 1; } }

.rc-panneau-photo { position: relative; background: #2a2a2a; }
.rc-panneau-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-panneau-corps {
    overflow-y: auto;
    padding: 34px 56px 56px;
}

.rc-panneau-barre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 44px;
}
.rc-panneau-retour,
.rc-panneau-fermer {
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--color-text, #111111);
    cursor: pointer;
    padding: 6px 0;
}
.rc-panneau-fermer { margin-left: auto; display: none; } /* 17/11 : ordinateur sans croix */
.rc-panneau-fermer span { font-size: 1.3rem; vertical-align: -2px; margin-left: 6px; letter-spacing: 0; }
.rc-panneau-retour:hover,
.rc-panneau-fermer:hover { text-decoration: underline; text-underline-offset: 4px; }

.rc-panneau .rc-repere { color: var(--color-muted); margin-bottom: 18px; }
.rc-panneau-titre {
    font-weight: normal;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 14px;
}
.rc-panneau-chapo {
    font-size: 1.12rem;
    font-style: italic;
    color: #5a5a5a;
    margin-bottom: 30px;
}
.rc-etape[hidden] { display: none; }
#rc-etape-form { margin-top: 30px; }

/* La liste des postes */
.rc-postes { list-style: none; border-top: 1px solid var(--rc-filet-clair, rgba(17,17,17,.14)); }
.rc-poste {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    column-gap: 20px;
    padding: 22px 6px;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.14);
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.rc-poste:hover,
.rc-poste:focus-visible { background: #f6f5f3; outline: none; }
.rc-poste-nom { grid-column: 1; font-size: 1.5rem; line-height: 1.2; }
.rc-poste-desc { grid-column: 1; margin-top: 4px; font-size: 1.02rem; color: #5a5a5a; }
.rc-poste-fleche {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}
.rc-poste:hover .rc-poste-fleche { transform: translateX(6px); }
.rc-poste--autre .rc-poste-nom { font-style: italic; }

/* Merci */
.rc-merci { outline: none; }
.rc-merci-texte {
    margin: 10px 0 36px;
    font-size: 1.2rem;
    line-height: 1.65;
    color: #4a4a4a;
    max-width: 480px;
}

/* ============================================================
   ÉCRANS INTERMÉDIAIRES ET TÉLÉPHONE
   La priorité est au PC ; ici, on évite seulement que la page
   casse sur un écran étroit. Pas d'animation sur téléphone.
   ============================================================ */
@media (max-width: 1100px) {
    .rc-cadre { padding: 0 32px; }
    .rc-intro-grille,
    .rc-esprit-grille { gap: 64px; }
    .rc-grille-metiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .rc-cadre { padding: 0 20px; }
    .rc-intro, .rc-metiers, .rc-plateau, .rc-esprit { padding: 90px 0; }
    .rc-intro-grille,
    .rc-esprit-grille,
    .rc-metiers .rc-entete { grid-template-columns: 1fr; }
    .rc-metiers .rc-chapo { margin-top: 20px; }
    .rc-intro-photos { height: 520px; }
    .rc-esprit-photo { position: static; }
    .rc-esprit-photo { max-width: 420px; }
    .rc-grille-metiers { grid-template-columns: 1fr; }
    .rc-metier { min-height: 320px; }
    .rc-mosaique {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px 220px;
    }
    .rc-m-camera  { grid-column: 1; grid-row: 1 / 3; }
    .rc-m-plateau { grid-column: 2; grid-row: 1 / 3; }
    .rc-m-cadreur { grid-column: 1 / 3; grid-row: 3; }
    .rc-m-montage, .rc-m-son { display: none; }
    .rc-panneau[open] { grid-template-columns: 1fr; width: 100vw; height: 100vh; }
    .rc-panneau-fermer { display: inline-block !important; }
    .rc-panneau-photo { display: none; }
    .rc-panneau-corps { padding: 24px 20px 40px; }
    .rc-duo { grid-template-columns: 1fr; }
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
    .rc .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .rc-metier-cta span { transition: none; }
}

