/* Pages À propos et Contact (inc/pages.php) : mêmes jetons que l'accueil (home.css), mises en page propres */

/* Bandeau des pages intérieures : aplat marine, pas de grande photo plein écran comme l'accueil */
.ch-phero {
    position: relative;
    background: var(--m);
    color: #fff;
    padding-block: clamp(56px, 8vw, 104px);
    overflow: hidden;
    isolation: isolate;
}
.ch-phero::after {
    /* route ambrée en filigrane, rappel du logo */
    content: "";
    position: absolute;
    inset: auto -10% -40% 35%;
    height: 70%;
    border-top: 2px solid color-mix(in srgb, var(--a) 55%, transparent);
    border-radius: 50% 50% 0 0;
    z-index: -1;
}
.ch-phero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); line-height: 1.05; max-width: 14ch; }
.ch-phero-lead { margin-top: 20px !important; max-width: 560px; font-size: 1.12rem; color: color-mix(in srgb, #fff 82%, transparent); }
.ch-kicker-light { color: #fff; }
.ch-phero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ch-phero-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.ch-phero-photo img { width: 100%; height: 100%; object-fit: cover; }
.ch-phero-compact h1 { max-width: none; }

/* Le nom : photos superposées + texte */
.ch-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ch-story-photos { position: relative; min-height: clamp(380px, 42vw, 540px); }
.ch-story-photos figure { position: absolute; margin: 0; border-radius: var(--r); overflow: hidden; }
.ch-story-photos img { width: 100%; height: 100%; object-fit: cover; }
.ch-story-a { inset: 0 28% 12% 0; }
.ch-story-b { inset: 46% 0 0 40%; border: 6px solid #fff; box-shadow: 0 24px 48px -24px rgba(22, 38, 74, 0.45); }
.ch-story-text p { color: var(--ink-2); margin-top: 18px !important; }
.ch-story-text h2 + p { margin-top: 22px !important; }
.ch-story-text .ch-link { margin-top: 28px; display: inline-block; }

/* Engagements : 4 colonnes numérotées */
.ch-values { background: var(--soft); }
.ch-values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ch-values-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px 26px; }
.ch-values-n { display: block; font: 600 0.9rem/1 var(--sans); letter-spacing: 0.12em; color: var(--m); padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid var(--a); width: fit-content; }
.ch-values-list h3 { font-size: 1.2rem; }
.ch-values-list p { margin-top: 12px !important; color: var(--ink-2); font-size: 0.97rem; }

/* Sur le terrain : rangée de 4 photos */
.ch-field-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ch-field-row figure { margin: 0; }
.ch-field-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.ch-field-row figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--ink-2); }

/* Contact : coordonnées + formulaire */
.ch-contact { padding-top: 0; }
.ch-contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: clamp(-64px, -5vw, -40px); position: relative; }
.ch-contact-info { display: grid; gap: 16px; }
.ch-contact-wa {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-radius: var(--r);
    background: var(--a);
    color: var(--m) !important;
    text-decoration: none;
    box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--a) 90%, transparent);
    transition: transform 0.4s var(--ease);
}
.ch-contact-wa:hover { transform: translateY(-3px); }
.ch-contact-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--m); color: #fff; }
.ch-contact-wa strong { display: block; font-size: 1.05rem; }
.ch-contact-wa em { font-style: normal; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em; }
.ch-contact-go { font-size: 1.4rem; transition: transform 0.4s var(--ease); }
.ch-contact-wa:hover .ch-contact-go { transform: translateX(4px); }
.ch-contact-list { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 24px; }
.ch-contact-list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ch-contact-list div:last-child { border-bottom: 0; }
.ch-contact-list dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.ch-contact-list dd { margin: 0; font-weight: 500; }
.ch-contact-list a { color: var(--m); text-decoration: underline; text-decoration-color: var(--a); text-underline-offset: 4px; }

.ch-cform { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 30px 60px -40px rgba(22, 38, 74, 0.35); display: grid; gap: 18px; }
.ch-cform h2 { font-size: 1.6rem; }
.ch-cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ch-cform label { display: grid; gap: 8px; }
.ch-cform label > span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.ch-cform input, .ch-cform select, .ch-cform textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--m);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ch-cform textarea { resize: vertical; min-height: 130px; }
.ch-cform input:focus, .ch-cform select:focus, .ch-cform textarea:focus { outline: none; border-color: var(--m); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 40%, transparent); }
.ch-cform-err { color: #B42318; font-size: 0.92rem; min-height: 1px; }
.ch-cform .ch-btn { width: 100%; justify-content: center; }
.ch-cform-note { font-size: 0.86rem; color: var(--ink-2); text-align: center; }

/* Contact : questions rapides */
.ch-cfaq { background: var(--soft); }
.ch-cfaq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ch-cfaq-grid div { background: #fff; border-radius: var(--r); padding: 28px; border: 1px solid var(--line); }
.ch-cfaq-grid h3 { font-size: 1.12rem; }
.ch-cfaq-grid p { margin-top: 12px !important; color: var(--ink-2); font-size: 0.95rem; }

@media (max-width: 1024px) {
    .ch-values-list { grid-template-columns: repeat(2, 1fr); }
    .ch-cfaq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .ch-phero-grid, .ch-story-grid, .ch-contact-grid { grid-template-columns: 1fr; }
    .ch-story-photos { min-height: 360px; }
    .ch-contact-grid { margin-top: -32px; }
}
@media (max-width: 767px) {
    .ch-values-list { grid-template-columns: 1fr; }
    .ch-field-row { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .ch-field-row figure { scroll-snap-align: start; }
    .ch-cform-row { grid-template-columns: 1fr; }
    .ch-contact-list div { grid-template-columns: 1fr; gap: 4px; }
}

/* FAQ : sommaire des thèmes à gauche, questions à droite */
.ch-faqp-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.ch-faqp-nav { position: sticky; top: 110px; display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--line); }
.ch-faqp-nav a { padding: 8px 0; color: var(--ink-2); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.ch-faqp-nav a:hover, .ch-faqp-nav a:focus-visible { color: var(--m); }
.ch-faqp-group { scroll-margin-top: 110px; }
.ch-faqp-group + .ch-faqp-group { margin-top: clamp(48px, 6vw, 72px); }
.ch-faqp-group h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 20px !important; }
@media (max-width: 900px) {
    .ch-faqp-grid { grid-template-columns: 1fr; }
    .ch-faqp-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; }
    .ch-faqp-nav a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }
}
