/* =========================================================================
   Page Contact - Soleil Immobilier
   Tout est préfixé .sc- et confiné dans .soleil-contact : aucun style ne
   fuit vers le reste du site.
   ========================================================================= */

body.page-template-soleil-contact {
    overflow-x: hidden;
    overflow-x: clip;
}

/* Le thème intercale deux conteneurs vides entre l'en-tête et le contenu :
   ils laissaient une bande blanche d'environ 5 px au-dessus du hero. */
body.page-template-soleil-contact .header_media,
body.page-template-soleil-contact .pre_search_wrapper {
    display: none;
}

body.page-template-soleil-contact .container.content_wrapper {
    padding-top: 0;
    margin-top: 0;
}

.soleil-contact {
    --sc-or: #ffcc00;
    --sc-or-fonce: #e0b400;
    --sc-noir: #101114;
    --sc-noir-doux: #1b1d22;
    --sc-texte: #14161a;
    --sc-texte-doux: #5d6470;
    --sc-bord: #e6e8ee;
    --sc-fond: #ffffff;
    --sc-fond-doux: #f6f7f9;
    --sc-vert: #17a04a;

    --sc-r-s: 12px;
    --sc-r-m: 18px;
    --sc-r-l: 26px;

    --sc-ombre: 0 1px 2px rgba(16, 20, 30, .04), 0 14px 34px -14px rgba(16, 20, 30, .16);
    --sc-ombre-forte: 0 2px 4px rgba(16, 20, 30, .05), 0 28px 60px -22px rgba(16, 20, 30, .28);

    --sc-titre: "Metropolis", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sc-texte-police: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    color: var(--sc-texte);
    font-family: var(--sc-texte-police);
    font-size: 16px;
    line-height: 1.65;
}

/* Le thème enferme le contenu dans un .container : on en sort proprement. */
/* Le calcul par marges négatives dépend de la largeur du parent, que le thème
   fait varier (.container > .row > .col). On s'ancre donc sur la fenêtre. */
.sc-bleed {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
}

.sc-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.soleil-contact h1,
.soleil-contact h2,
.soleil-contact h3 {
    font-family: var(--sc-titre);
    color: inherit;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0;
}

.soleil-contact p { margin: 0; }

.sc-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sc-or);
}

/* ---------------------------------------------------------------- HERO -- */

.sc-hero {
    position: relative;
    background: #000;
    color: #fff;
    padding: 124px 0 112px;
    isolation: isolate;
}

/* Le noir de l'en-tête se prolonge, puis se réchauffe vers le bas. */
.sc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 70% at 50% 118%, rgba(255, 204, 0, .20), transparent 62%),
        linear-gradient(180deg, #000 0%, #000 38%, #0b0b0c 100%);
    pointer-events: none;
    z-index: -1;
}

.sc-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}

.sc-hero h1 {
    font-size: clamp(34px, 3.4vw, 44px);
    font-weight: 800;
    margin: 18px 0 20px;
}

.sc-hero h1 em {
    font-style: normal;
    color: var(--sc-or);
}

.soleil-contact .sc-lede {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    max-width: 26em;
}

.sc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-family: var(--sc-titre);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.01em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.sc-btn:hover,
.sc-btn:focus-visible { transform: translateY(-2px); text-decoration: none; }

.sc-btn--or {
    background: var(--sc-or);
    color: var(--sc-noir);
}

.sc-btn--or:hover,
.sc-btn--or:focus-visible { background: #ffd633; color: var(--sc-noir); }

.sc-btn--or small {
    font-weight: 600;
    font-size: 12px;
    opacity: .62;
}

.sc-btn--ghost {
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

.sc-btn--ghost:hover,
.sc-btn--ghost:focus-visible {
    border-color: var(--sc-or);
    color: var(--sc-or);
}

.sc-btn--sombre {
    background: var(--sc-noir);
    color: #fff;
}

.sc-btn--sombre:hover,
.sc-btn--sombre:focus-visible { background: var(--sc-noir-doux); color: #fff; }

.sc-statut {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 0;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
}

.sc-pastille {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sc-vert);
    box-shadow: 0 0 0 4px rgba(23, 160, 74, .22);
}

.sc-statut--clair {
    background: #f1f8f3;
    border-color: #cfe8d8;
    color: #0f6b31;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 14px 7px 11px;
    margin: -4px 0 34px;
}

.sc-statut--clair[data-ouvert="0"] {
    background: var(--sc-fond-doux);
    border-color: var(--sc-bord);
    color: var(--sc-texte-doux);
}

.sc-statut[data-ouvert="0"] .sc-pastille {
    background: #b9bec8;
    box-shadow: 0 0 0 4px rgba(185, 190, 200, .18);
}

.sc-hero__media {
    margin: 0;
    position: relative;
}

.sc-hero__media img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: var(--sc-r-l);
    box-shadow: var(--sc-ombre-forte);
}

/* Liseré doré décalé derrière la photo. */
.sc-hero__media::after {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 2px solid rgba(255, 204, 0, .38);
    border-radius: var(--sc-r-l);
    z-index: -1;
}

/* Bande blanche : sans elle, le fond gris du thème apparaît de part et
   d'autre du conteneur et la page semble faite de rustines. */
.sc-bande { background: var(--sc-fond); }

/* -------------------------------------------------------- ACCÈS DIRECTS -- */

.sc-acces {
    position: relative;
    z-index: 2;
    padding: 72px 0 8px;
}

.sc-section, .sc-acces, .sc-form-zone { position: relative; }

.sc-bande { padding-bottom: 84px; }

.sc-acces__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sc-carte {
    background: var(--sc-fond);
    border: 1px solid var(--sc-bord);
    border-radius: var(--sc-r-m);
    padding: 28px;
    box-shadow: var(--sc-ombre);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.sc-carte:hover,
a.sc-carte:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--sc-ombre-forte);
    border-color: rgba(255, 204, 0, .55);
    text-decoration: none;
    color: inherit;
}

.sc-carte__icone {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff8dd;
    color: #8a6d00;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.sc-carte__icone svg { width: 20px; height: 20px; }

.sc-carte__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sc-texte-doux);
}

.sc-carte__valeur {
    font-family: var(--sc-titre);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    word-break: break-word;
}

.sc-carte__note {
    font-size: 16px;
    color: var(--sc-texte-doux);
}

/* ------------------------------------------------------------ SERVICES -- */

.sc-section { padding: 92px 0 76px; }
.sc-section--doux { background: var(--sc-fond-doux); }

.sc-section__tete {
    max-width: 46em;
    margin-bottom: 40px;
}

.sc-section__tete .sc-eyebrow { color: var(--sc-or-fonce); }

.sc-section h2 {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 800;
    margin: 14px 0 14px;
}

.sc-section__tete p {
    color: var(--sc-texte-doux);
    font-size: 17px;
}

.sc-services {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.sc-service {
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
    background: var(--sc-fond);
    border: 1px solid var(--sc-bord);
    border-radius: var(--sc-r-m);
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 168px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.sc-service:hover,
.sc-service:focus-visible {
    transform: translateY(-4px);
    border-color: var(--sc-noir);
    box-shadow: var(--sc-ombre-forte);
}

.sc-service__num {
    font-family: var(--sc-titre);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--sc-or-fonce);
}

.sc-service__titre {
    font-family: var(--sc-titre);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.sc-service__texte {
    font-size: 16px;
    color: var(--sc-texte-doux);
    line-height: 1.5;
}

.sc-service__fleche {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--sc-texte);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sc-service:hover .sc-service__fleche { color: var(--sc-or-fonce); }

/* ----------------------------------------------------------- FORMULAIRE -- */

.sc-form-zone { padding: 96px 0; }

.sc-form-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 48px;
    align-items: start;
}

.sc-form-carte {
    background: var(--sc-fond);
    border: 1px solid var(--sc-bord);
    border-radius: var(--sc-r-l);
    padding: 40px;
    box-shadow: var(--sc-ombre);
}

.sc-form-carte h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; }
.sc-form-carte > p { color: var(--sc-texte-doux); font-size: 16px; margin-top: 10px; }

.sc-aside {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-bloc {
    border: 1px solid var(--sc-bord);
    border-radius: var(--sc-r-m);
    padding: 26px;
    background: var(--sc-fond);
}

.sc-bloc--sombre {
    background: var(--sc-noir);
    color: #fff;
    border-color: var(--sc-noir);
}

.sc-bloc h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
}

.sc-horaires {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.sc-horaires li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--sc-bord);
}

.sc-horaires li:last-child { border-bottom: 0; }
.sc-horaires li.est-aujourdhui { font-weight: 700; }

.sc-horaires span:first-child { color: var(--sc-texte-doux); }
.sc-horaires li.est-aujourdhui span:first-child { color: var(--sc-texte); }
.sc-horaires span:last-child { text-align: right; white-space: nowrap; }

.sc-etapes {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sc-etape;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sc-etapes li {
    counter-increment: sc-etape;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 14px;
    align-items: start;
    font-size: 16px;
    color: rgba(255, 255, 255, .74);
    line-height: 1.55;
}

.sc-etapes li > span { min-width: 0; }

.sc-etapes li::before {
    content: counter(sc-etape);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 204, 0, .16);
    color: var(--sc-or);
    display: grid;
    place-items: center;
    font-family: var(--sc-titre);
    font-weight: 800;
    font-size: 13px;
}

.sc-etapes strong {
    display: block;
    color: #fff;
    font-family: var(--sc-titre);
    font-weight: 700;
    margin-bottom: 2px;
}

/* --------------------------------------------------- HABILLAGE DU CF7 --- */

.scf { margin-top: 30px; }

/* Le thème cible `.wpcf7-form p` (marge 13 px, corps 13 px, interligne 22 px) :
   plus spécifique que nos classes, il écrasait le rythme du formulaire et
   collait chaque intitulé au champ précédent. */
.soleil-contact .wpcf7-form p.scf__champ {
    margin: 0 0 28px;
    font-size: inherit;
    line-height: 1.4;
}

.soleil-contact .wpcf7-form .scf__grille p.scf__champ { margin-bottom: 0; }

.soleil-contact .scf .scf__label {
    display: block;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Interligne neutralisé sur l'enveloppe CF7 : elle ajoutait un blanc
   fantôme entre l'intitulé et son champ. */
.soleil-contact .scf .wpcf7-form-control-wrap { line-height: 0; }

/* CF7 enveloppe chaque champ dans un <span> en ligne : sans cela, l'input
   ne prend pas toute la largeur de sa colonne. */
.soleil-contact .scf .wpcf7-form-control-wrap { display: block; margin: 0; }

/* Le thème pose une marge sur les champs de formulaire : elle décollait
   l'intitulé de son champ et brouillait la lecture des rangées. */
.soleil-contact .scf input,
.soleil-contact .scf select,
.soleil-contact .scf textarea { margin: 0; }

/* Les champs restaient des éléments « en ligne » : l'alignement sur la ligne
   de base ajoutait un blanc fantôme sous chaque intitulé. */
.soleil-contact .scf input[type="text"],
.soleil-contact .scf input[type="email"],
.soleil-contact .scf input[type="tel"],
.soleil-contact .scf select,
.soleil-contact .scf textarea { display: block; }
.soleil-contact .scf br { display: none; }

.scf__grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 28px;
}

.scf__champ { margin: 0 0 28px; display: block; }
.scf__grille .scf__champ { margin-bottom: 0; }

.scf__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    margin-bottom: 7px;
    color: var(--sc-texte);
}

.scf__label span { color: var(--sc-texte-doux); font-weight: 600; }

.soleil-contact .scf input[type="text"],
.soleil-contact .scf input[type="email"],
.soleil-contact .scf input[type="tel"],
.soleil-contact .scf select,
.soleil-contact .scf textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15.5px;
    color: var(--sc-texte);
    background: var(--sc-fond-doux);
    border: 1px solid var(--sc-bord);
    border-radius: var(--sc-r-s);
    padding: 14px 16px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.soleil-contact .scf textarea {
    min-height: 168px;
    resize: vertical;
}

.soleil-contact .scf select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235d6470' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    padding-right: 42px;
    cursor: pointer;
}

.soleil-contact .scf input:focus,
.soleil-contact .scf select:focus,
.soleil-contact .scf textarea:focus {
    outline: none;
    background: var(--sc-fond);
    border-color: var(--sc-noir);
    box-shadow: 0 0 0 4px rgba(16, 17, 20, .07);
}

.soleil-contact .scf .wpcf7-not-valid {
    border-color: #d13b3b;
    background: #fff6f6;
}

.soleil-contact .scf .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #d13b3b;
}

/* Consentement — on neutralise l'habillage que le thème pose sur les
   cases à cocher de CF7 (encadré gris parasite). */
.scf__consentement { margin: 22px 0 0; }

.soleil-contact .scf__consentement .wpcf7-form-control-wrap,
.soleil-contact .scf__consentement .wpcf7-acceptance,
.soleil-contact .scf__consentement .wpcf7-list-item {
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.soleil-contact .scf__consentement .wpcf7-form-control-wrap,
.soleil-contact .scf__consentement .wpcf7-acceptance,
.soleil-contact .scf__consentement .wpcf7-list-item,
.soleil-contact .scf__consentement .wpcf7-list-item-label {
    display: block;
    width: auto;
    max-width: 100%;
}

.soleil-contact .scf__consentement .wpcf7-list-item { margin: 0; }

.soleil-contact .scf__consentement label {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 15px;
    line-height: 1.55;
    color: var(--sc-texte-doux);
    cursor: pointer;
}

.soleil-contact .scf__consentement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--sc-noir);
    cursor: pointer;
}

.soleil-contact .scf__consentement a { color: var(--sc-texte); text-decoration: underline; }

/* Bouton d'envoi */
.scf__envoi {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.soleil-contact .wpcf7-form .scf input[type="submit"],
.soleil-contact .scf input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--sc-titre);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--sc-noir);
    background-color: var(--sc-or) !important;
    background-image: none;
    color: var(--sc-noir) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 18px 38px !important;
    min-height: 56px;
    line-height: 1.1;
    text-transform: none;
    width: auto;
    opacity: 1 !important;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease;
}

.soleil-contact .scf input[type="submit"]:hover {
    background: #ffd633;
    transform: translateY(-2px);
}

.soleil-contact .scf input[type="submit"]:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.scf__reponse {
    font-size: 15px;
    color: var(--sc-texte-doux);
}

/* Le pot de miel : invisible pour l'humain, atteignable pour le robot. */
.scf__piege {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Messages CF7 */
.soleil-contact .wpcf7 form .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 15px 18px;
    border-radius: var(--sc-r-s);
    border-width: 1px;
    font-size: 14.5px;
}

.soleil-contact .wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--sc-vert);
    background: #f1faf3;
    color: #0f6b31;
}

.soleil-contact .wpcf7 form.invalid .wpcf7-response-output,
.soleil-contact .wpcf7 form.failed .wpcf7-response-output,
.soleil-contact .wpcf7 form.spam .wpcf7-response-output {
    border-color: #d13b3b;
    background: #fdf3f3;
    color: #a12626;
}

.soleil-contact .wpcf7-spinner { margin: 0 0 0 4px; }

/* ---------------------------------------------------------- PLAN D'ACCÈS - */

.sc-plan { background: var(--sc-noir); color: #fff; padding: 90px 0; }

.sc-plan__grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 48px;
    align-items: center;
}

.sc-plan h2 { font-size: clamp(25px, 2.4vw, 32px); font-weight: 800; }

.soleil-contact .sc-plan__adresse {
    font-size: 16px;
    color: rgba(255, 255, 255, .78);
    margin-top: 18px;
    line-height: 1.75;
}

.sc-plan__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.sc-carte-geo {
    position: relative;
    border-radius: var(--sc-r-l);
    overflow: hidden;
    background: #22252b;
    min-height: 400px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px;
}

.sc-carte-geo iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sc-carte-geo__invite p {
    color: rgba(255, 255, 255, .62);
    font-size: 16px;
    max-width: 30em;
    margin: 0 auto 20px;
}

/* ------------------------------------------------------------ RESPONSIVE - */

@media (max-width: 1024px) {
    .sc-hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .sc-hero { padding: 124px 0 92px; }
    .sc-hero__media::after { inset: 16px -16px -16px 16px; }
    .sc-hero__media img { height: 340px; }
    .sc-services { grid-template-columns: repeat(2, 1fr); }
    .sc-form-grid { grid-template-columns: 1fr; gap: 32px; }
    .sc-aside { position: static; }
    .sc-plan__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 780px) {
    .sc-acces__grid { grid-template-columns: 1fr; }
    .sc-acces { margin-top: -64px; }
    .sc-section, .sc-form-zone { padding: 64px 0; }
    .sc-form-carte { padding: 26px 22px; }
    .scf__grille { grid-template-columns: 1fr; gap: 18px; }
    .sc-hero__actions .sc-btn { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 560px) {
    .sc-services { grid-template-columns: 1fr; }
    .sc-service { min-height: 0; }
    .sc-wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .soleil-contact * { transition: none !important; }
}
