/* =========================================================================
   PAGE-CONTENT.CSS — Pages de contenu simple
   (mot du directeur, mentions légales, politique de confidentialité…)
   Le socle commun est dans style.css (chargé avant).
   ========================================================================= */

/* ---- Bandeau de titre ---- */
.pc-band {
    padding: 70px 0;
    background-color: var(--color-brand);
    color: #fff;
    text-align: center;
}
.pc-band__eyebrow {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
}
.pc-band__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---- Corps de page ---- */
.pc-section { padding: 70px 0; }
.pc-section .container { max-width: 1000px; }

.pc-section p {
    color: var(--color-text);
    line-height: 1.85;
    margin: 0 0 1.25rem;
}
.pc-section strong { color: var(--color-heading); font-weight: var(--font-weight-title); }

/* ---- Mot du directeur ---- */
.pc-word__text > p:last-of-type { margin-bottom: 1.5rem; }

/* Variante avec photo : 2 colonnes */
.pc-word--with-photo {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}
.pc-word__photo { margin: 0; }
.pc-word__photo img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* Signature */
.pc-word__signature {
    margin: 1.75rem 0 1.5rem !important;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-header-border);
}
.pc-word__name {
    display: block;
    color: var(--color-heading);
    font-weight: var(--font-weight-title);
    font-size: 1.1rem;
}
.pc-word__role {
    display: block;
    color: var(--color-text);
    font-style: italic;
    font-size: 0.9rem;
}

/* Bouton d'appel à l'action */
.pc-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 13px 30px;
    background-color: var(--color-brand);
    color: #fff;
    border-radius: 30px;
    font-weight: var(--font-weight-nav);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    transition: background-color var(--transition);
}
.pc-cta:hover { background-color: #000; color: #fff; }

/* ---- Contenu long (mentions, confidentialité) ---- */
.pc-section h2 {
    margin: 2.5rem 0 1rem;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.pc-section h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.1rem;
}
.pc-section ul { margin: 0 0 1.25rem 1.25rem; }
.pc-section li { margin-bottom: 0.5rem; color: var(--color-text); line-height: 1.7; list-style: disc; }
.pc-section p a,
.pc-section li a { color: var(--color-brand); text-decoration: underline; }

@media (max-width: 800px) {
    .pc-band { padding: 50px 0; }
    .pc-section { padding: 50px 0; }
    .pc-word--with-photo {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pc-word__photo { max-width: 260px; margin: 0 auto; }
}

/* =========================================================================
   PAGES LÉGALES : fiche d'identité + tableaux
   ========================================================================= */

/* Fiche d'identité de l'éditeur */
.pc-idcard {
    margin: 1.5rem 0 2rem;
    padding: 1.75rem 2rem;
    background-color: #f7f7f7;
    border-left: 4px solid var(--color-brand);
}
.pc-idcard p { margin: 0 0 0.4rem; }
.pc-idcard__name {
    color: var(--color-heading);
    font-weight: var(--font-weight-title);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem !important;
}
.pc-idcard__director {
    margin-top: 1rem !important;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e2e2;
    color: var(--color-heading);
    font-weight: var(--font-weight-title);
}

/* Sous-titre de finalité */
.pc-sub {
    margin-bottom: 0.85rem !important;
    font-style: italic;
    font-size: 0.92rem;
}

/* Tableaux (défilables horizontalement sur petit écran) */
.pc-table-wrap {
    overflow-x: auto;
    margin: 0 0 2rem;
    -webkit-overflow-scrolling: touch;
}
.pc-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.pc-table th {
    padding: 0.85rem 1rem;
    background-color: var(--color-brand);
    color: #fff;
    text-align: left;
    font-weight: var(--font-weight-title);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}
.pc-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e8e8e8;
    color: var(--color-text);
    line-height: 1.6;
    vertical-align: top;
}
.pc-table tbody tr:nth-child(even) td { background-color: #fafafa; }

/* Tableau des traitements : colonne "Finalité" mise en avant */
.pc-table--processing { min-width: 900px; }
.pc-table__purpose { background-color: #f7f7f7; }
.pc-table__purpose-title {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-heading);
    font-weight: var(--font-weight-title);
    line-height: 1.4;
}
.pc-table__purpose-sub {
    display: block;
    font-style: italic;
    font-size: 0.82rem;
    line-height: 1.5;
}
.pc-table--processing tbody tr:nth-child(even) .pc-table__purpose { background-color: #f2f2f2; }

/* =========================================================================
   PAGE CONTACT : hero + formulaire
   ========================================================================= */

/* Hero (bandeau image, hauteur maîtrisée) */
.ct-hero {
    height: clamp(200px, 28vw, 360px);
    overflow: hidden;
    line-height: 0;
}
.ct-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Colonne unique, centrée */
.ct-narrow { max-width: 820px; }

/* ---- Formulaire ---- */
.ct-form__title { margin: 0 0 0.75rem !important; }
.ct-form__intro { margin-bottom: 2rem !important; }

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.ct-field { margin-bottom: 1.25rem; }
.ct-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--color-heading);
    font-weight: var(--font-weight-title);
    font-size: 0.88rem;
}
.ct-field input,
.ct-field textarea,
.ct-field select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dcdcdc;
    background-color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-heading);
    transition: border-color var(--transition);
}
.ct-field input:focus,
.ct-field textarea:focus,
.ct-field select:focus {
    outline: none;
    border-color: var(--color-brand);
}
.ct-field input[aria-invalid="true"],
.ct-field textarea[aria-invalid="true"],
.ct-field select[aria-invalid="true"] { border-color: #c0392b; }
.ct-field select { appearance: none; background-image: none; cursor: pointer; }
.ct-field textarea { resize: vertical; min-height: 150px; }

/* Champ captcha : plus étroit */
.ct-field--captcha input { max-width: 120px; }

/* Honeypot : invisible sans display:none (certains robots l'ignorent) */
.ct-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Marqueur "champ obligatoire" */
.ct-req {
    margin-left: 0.15rem;
    color: var(--color-brand);
    font-weight: var(--font-weight-title);
}

/* Mention RGPD sous le formulaire */
.ct-rgpd {
    margin: 1.75rem 0 1.5rem;
    padding: 1.25rem 1.4rem;
    background-color: #f7f7f7;
    border-left: 3px solid var(--color-brand);
}
.ct-rgpd p {
    margin: 0 0 0.6rem !important;
    font-size: 0.85rem !important;
    line-height: 1.65;
}
.ct-rgpd p:last-child { margin-bottom: 0 !important; }
.ct-rgpd__required { font-style: italic; }

.ct-required { font-size: 0.82rem; color: var(--color-text); margin-bottom: 1.25rem !important; }

.ct-error {
    display: block;
    margin-top: 0.35rem;
    color: #c0392b;
    font-size: 0.83rem;
}

.ct-submit {
    padding: 14px 34px;
    border: none;
    background-color: var(--color-brand);
    color: #fff;
    border-radius: 30px;
    font-family: inherit;
    font-weight: var(--font-weight-nav);
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    transition: background-color var(--transition);
}
.ct-submit:hover { background-color: #000; }

/* ---- Alertes ---- */
.ct-alert {
    margin-bottom: 2rem;
    padding: 1.1rem 1.35rem;
    border-left: 4px solid;
}
.ct-alert p { margin: 0 !important; }
.ct-alert strong { display: block; margin-bottom: 0.3rem; }
.ct-alert--success { background-color: #edf7f2; border-color: var(--svc-timeline-accent, #2fbfa4); }
.ct-alert--error   { background-color: #fdeeec; border-color: #c0392b; }

@media (max-width: 600px) {
    .ct-row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================================
   PAGE RÉALISATIONS (flux Instagram)
   ========================================================================= */
.rz-section .container { max-width: 1200px; }

.rz-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem !important;
    text-align: center;
}
.rz-demo {
    max-width: 700px;
    margin: 0 auto 2rem !important;
    padding: 0.85rem 1.2rem;
    background-color: #fff8e6;
    border-left: 3px solid #e0a800;
    font-size: 0.88rem !important;
    text-align: center;
}
.rz-empty { text-align: center; }

/* Grille de vignettes carrées */
.rz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.rz-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
}
.rz-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.rz-item:hover img { transform: scale(1.06); }

.rz-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.25rem;
    background-color: rgba(0, 0, 0, 0.72);
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.rz-item:hover .rz-overlay { opacity: 1; }
.rz-type { width: 28px; height: 28px; }
.rz-caption { font-size: 0.85rem; line-height: 1.45; }

.rz-cta { margin-top: 2.5rem; text-align: center; }

@media (max-width: 900px) {
    .rz-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .rz-grid { grid-template-columns: repeat(2, 1fr); }
    .rz-caption { display: none; }
}