/*
Theme Name: Franck Carayon — Toulouse
Author: Création sur mesure
Description: Thème immobilier personnel vert anis et blanc. Nécessite le plugin Franck Carayon — Immobilier & Prospects.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: franck-carayon
*/

/* 1. Variables et styles généraux */
:root {
  --anis: #a8d827;
  --ink: #20291e;
  --muted: #646c62;
  --paper: #fff;
  --soft: #f5f7f0;
  --line: #e5e9de;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #608500; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.13; }
h1 { font-size: clamp(2.7rem, 6.1vw, 5.1rem); margin: .5rem 0 1.1rem; }
h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); margin: 0 0 1.2rem; }
h3 { font-size: 1.3rem; margin: .8rem 0; }
.fc-container { max-width: 1190px; margin: auto; padding: 0 24px; }

/* 2. En-tête et navigation */
.fc-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
body.admin-bar .fc-header { top: 32px; }
.fc-header-inner {
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.fc-brand {
  font-size: 1.17rem;
  letter-spacing: .11em;
  font-weight: 850;
  line-height: 1.2;
}
.fc-brand small {
  display: block;
  font-size: .61rem;
  letter-spacing: .19em;
  font-weight: 650;
  color: var(--muted);
  padding-top: 6px;
}
.fc-brand-mark { color: #86af12; }
.fc-brand > span { gap: 4px; }
.fc-brand > span > span,
.fc-brand > span > small {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0;
  line-height: 1.2;
}
.fc-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: .88rem;
  font-weight: 650;
}
.fc-nav a { white-space: nowrap; }
/* Liste créée par le menu WordPress ; ne modifie pas les liens ni leur destination. */
.fc-nav .fc-menu-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fc-nav .fc-menu-items li { list-style: none; margin: 0; padding: 0; }
.fc-nav .fc-menu-items li a { display: inline-block; text-decoration: none; }
.fc-menu-toggle { display: none; background: none; border: 0; font-size: 1.7rem; }

/* 3. Boutons */
.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--anis);
  border: 0;
  padding: 16px 23px;
  color: #182308 !important;
  font: inherit;
  font-weight: 800;
  border-radius: 5px;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.fc-btn:hover { background: #b9e54b; transform: translateY(-2px); }
.fc-btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
}
.fc-btn-outline:hover { background: var(--soft); }

/* 4. Accueil : bloc principal et chiffres clés */
.fc-eyebrow {
  font-size: .75rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 850;
  color: #709411;
}
.fc-hero { background: #f6f8f2; overflow: hidden; }
.fc-hero-grid {
  display: grid;
  grid-template-columns: 1.07fr .93fr;
  min-height: 640px;
}
.fc-hero-copy { padding: 92px 55px 90px 0; align-self: center; }
.fc-lead { font-size: 1.15rem; max-width: 540px; color: #56604f; }
.fc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 29px; }
.fc-proof {
  margin-top: 42px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.fc-proof > div {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid #e5e8df;
}
.fc-proof > div:first-child { padding-left: 0; }
.fc-proof > div:last-child { border-right: none; padding-right: 0; }
.fc-proof strong {
  display: block;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.045em;
  margin-bottom: 7px;
}
.fc-proof span { font-size: 12px; line-height: 1.5; color: #646c62; }
.fc-hero-visual {
  min-height: 600px;
  background: linear-gradient(145deg, #dce6c8, #99b57f);
  position: relative;
  overflow: hidden;
}
.fc-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.fc-hero-note {
  position: absolute;
  left: 26px;
  bottom: 30px;
  width: min(300px, calc(100% - 52px));
  background: rgba(255, 255, 255, .96);
  border-left: 4px solid #a8b827;
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
}
.fc-hero-note strong { font-size: 1.3rem; display: block; }
.fc-hero-note span { color: var(--muted); font-size: .88rem; }
.fc-visual-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  height: 100%;
  min-height: 580px;
  padding: 30px;
  background: radial-gradient(circle at 75% 25%, #c8e2a3, transparent 35%), linear-gradient(135deg, #c9dcae, #749558);
  color: #203319;
  font-size: 1.15rem;
  font-weight: 700;
}

/* 5. Sections, services et expertise */
.fc-section { padding: 102px 0; }
.fc-section-soft { background: var(--soft); }
.fc-section-head { max-width: 680px; margin-bottom: 43px; }
.fc-section-head p { color: var(--muted); font-size: 1.07rem; }
.fc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fc-advantage {
  background: #fff;
  border: 1px solid #e8ebdf;
  border-radius: 12px;
  padding: 30px;
  min-height: 210px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fc-advantage:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .09);
}
.fc-advantage .num {
  color: #91a51f;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
}
.fc-advantage h3 { font-weight: 750; margin-bottom: 12px; }
.fc-advantage p { margin-bottom: 0; color: var(--muted); }
#expertise { background: #f5f8ed; }
#expertise .fc-advantage {
  background: #fff;
  border: 1px solid #e2e8d5;
  border-top: 4px solid #a8d827;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(32, 41, 30, .08);
}
#expertise .fc-advantage h3 { font-size: 20px; margin: 16px 0 10px; }
#expertise .fc-advantage p { color: #51594d; line-height: 1.6; }
.fc-dark { background: #1f2d20; color: #fff; }
.fc-dark p { color: #cbd7c7; }
.fc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* 6. Formulaire d'estimation */
.fc-estimation-card {
  background: white;
  color: var(--ink);
  padding: 36px;
  border-radius: 6px;
  box-shadow: 0 18px 54px #0002;
}
.fc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.fc-form label { display: block; font-weight: 650; font-size: .85rem; }
.fc-form input:not([type=checkbox]),
.fc-form select,
.fc-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: .94rem;
  border: 1px solid #d9dfd4;
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  margin-top: 6px;
  min-width: 0;
}
.fc-form input:focus,
.fc-form select:focus,
.fc-form textarea:focus { outline: 2px solid var(--anis); outline-offset: 1px; }
.fc-form .fc-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 400;
  margin: 19px 0;
}
.fc-consent input { margin-top: 4px; }
.fc-consent a { text-decoration: underline; }
.fc-honey { position: absolute; left: -99999px; visibility: hidden; }
.fc-form .fc-btn { width: 100%; }
.fc-notice { background: #e6f6bb; padding: 12px; margin-bottom: 15px; border-radius: 4px; }
.fc-estimation-card input:not([type="checkbox"]),
.fc-estimation-card select,
.fc-estimation-card textarea {
  background: #fff;
  border: 1px solid #d6dccf;
  border-radius: 8px;
  padding: 12px 14px;
  max-width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fc-estimation-card input:focus,
.fc-estimation-card select:focus,
.fc-estimation-card textarea:focus {
  outline: none;
  border-color: #a8b827;
  box-shadow: 0 0 0 3px rgba(168, 184, 39, .15);
}
.fc-estimation-card button[type="submit"],
.fc-estimation-card input[type="submit"] {
  background-color: #a8d500 !important;
  color: #182015 !important;
  font-weight: 800;
  opacity: 1 !important;
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fc-estimation-card button[type="submit"]:hover,
.fc-estimation-card input[type="submit"]:hover {
  background-color: #98c200 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

/* 7. Annonces, quartiers et actualités */
.fc-property { background: #fff; border: 1px solid var(--line); display: block; overflow: hidden; }
.fc-property img, .fc-photo-placeholder { width: 100%; height: 235px; object-fit: cover; }
.fc-photo-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e5eadb, #cadca5);
  color: #687c50;
  font-size: .9rem;
}
.fc-property-body { padding: 22px; }
.fc-property-body h3 { margin: 8px 0; }
.fc-property-body p { color: var(--muted); font-size: .87rem; }
.fc-property-body strong { font-size: 1.15rem; }
.fc-pill {
  background: #eaf6d0;
  padding: 5px 9px;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.fc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fc-neighborhoods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fc-neighborhoods a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  font-weight: 750;
  transition: background .2s;
}
.fc-neighborhoods a:hover { background: #eaf6d0; }
.fc-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fc-blog-item { padding: 28px; border: 1px solid var(--line); }
.fc-blog-item p { color: var(--muted); }

/* 8. Pied de page, pages internes et appels à l'action */
.fc-footer { background: #19251b; color: #fff; padding: 20px 0 12px; }
.fc-footer a { color: #fff; }
.fc-footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: center; }
.fc-footer p, .fc-footer small { color: #b7c4b5; }
.fc-footer p { margin: 5px 0; font-size: 13px; line-height: 1.4; }
/* Le footer.php contient encore un style intégré pour les réseaux sociaux. */
.fc-footer .fc-social-links { margin-top: 8px !important; }
.fc-footer-bottom {
  border-top: 1px solid #3d4b3e;
  margin-top: 12px;
  padding-top: 10px;
  padding-bottom: 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.fc-page-head { padding: 76px 0; background: var(--soft); }
.fc-content { padding: 70px 0; max-width: 870px; margin: auto; }
.fc-content p { font-size: 1.07rem; }
.fc-archive-grid { padding: 65px 0; }
.fc-photo-single { width: 100%; max-height: 500px; object-fit: cover; }
.fc-kicker-bar { height: 7px; background: var(--anis); }
.fc-cta-strip { background: var(--anis); padding: 45px 0; }
.fc-cta-strip .fc-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fc-cta-strip h2 { font-size: 1.7rem; margin: 0; }
.fc-cta-strip .fc-btn { background: #22311e; color: #fff !important; }
.fc-no-content { padding: 25px; background: #f7f9f2; color: #65735e; border: 1px dashed #aebd9c; }

/* Harmonisation des titres des pages intérieures */

body:not(.home) main h1 {
    font-size: clamp(26px, 3vw, 38px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px;
    max-width: none;
}

body:not(.home) .fc-page-head {
    padding-top: 30px !important;
    padding-bottom: 20px !important;
}
/* 9. Ajustements ordinateur déjà validés visuellement */
@media (min-width: 900px) {
  .fc-hero-actions { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; }
  .fc-hero-actions .fc-btn { width: auto; white-space: nowrap; }
  .fc-hero-copy { transform: translateY(-95px) !important; }
  .fc-hero .fc-proof { margin-top: 24px; }
}
/* 10. Tablettes */
@media (max-width: 980px) {
  .fc-nav { gap: 14px; }
  .fc-nav a { font-size: .77rem; }
  .fc-hero-grid { min-height: 540px; }
  .fc-hero-copy { padding-right: 20px; }
  .fc-split { gap: 30px; }
  .fc-neighborhoods { grid-template-columns: repeat(3, 1fr); }
}

/* 11. Mobile : menu et mise en page */
@media (max-width: 767px) {
  .fc-header-inner { height: auto; min-height: 110px; padding-top: 12px; padding-bottom: 12px; position: relative; }
  .fc-header .fc-brand { line-height: 1.2; }
  .fc-header .fc-nav { top: 100%; }
  #estimation, #quartiers, #biens { scroll-margin-top: 110px; }
  .fc-hero-note {
    left: 50%;
    right: auto;
    width: calc(100% - 24px);
    max-width: none;
    transform: translateX(-50%);
    bottom: 12px;
    padding: 12px 14px;
  }
  .fc-hero-note strong { font-size: 16px; line-height: 1.3; }
  .fc-hero-note p { font-size: 13px; line-height: 1.4; margin: 6px 0 0; }
}
@media (max-width: 760px) {
  body.admin-bar .fc-header { top: 46px; }
  .fc-menu-toggle { display: block; }
  .fc-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 15px 20px #0001;
  }
  .fc-nav.open { display: flex; }
  /* La liste du menu WordPress suit le panneau mobile sans retour à la ligne horizontal. */
  .fc-nav .fc-menu-items { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
  .fc-hero-grid, .fc-split { grid-template-columns: 1fr; }
  .fc-hero-copy { padding: 67px 0 50px; }
  .fc-hero-visual { min-height: 340px; }
  .fc-visual-placeholder { min-height: 340px; }
  .fc-hero-note { bottom: 12px; }
  .fc-section { padding: 65px 0; }
  .fc-grid-3, .fc-cards, .fc-blog-grid { grid-template-columns: 1fr 1fr; }
  .fc-neighborhoods { grid-template-columns: 1fr 1fr; }
  .fc-form-grid { grid-template-columns: 1fr; }
  .fc-cta-strip .fc-container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .fc-proof > div { padding: 0 10px; }
  .fc-proof strong { font-size: 19px; }
  .fc-proof span { font-size: 10px; }
}
@media (max-width: 540px) {
  .fc-grid-3, .fc-cards, .fc-blog-grid, .fc-neighborhoods { grid-template-columns: 1fr; }
  .fc-hero-actions .fc-btn { width: 100%; }
  .fc-estimation-card { padding: 22px; }
}
/* Compatibilité avec les anciennes sections : à supprimer après vérification des liens et archives. */
@media (min-width: 769px) {
  #biens > .fc-container,
  #conseils > .fc-container { transform: translateY(-50px); }
  #biens { scroll-margin-top: -60px; }
  #expertise { scroll-margin-top: -30px; }
  #estimation .fc-split > div:first-child { transform: translateY(-110px); }
}
@media (max-width: 768px) {
  .fc-footer-grid { grid-template-columns: 1fr; gap: 15px; }
}

/* Formulaire acquéreur uniquement */
#fluentform_3 input:not([type="submit"]),
#fluentform_3 select,
#fluentform_3 textarea {
    border: 1px solid #91b83e;
    border-radius: 6px;
}

#fluentform_3 input:focus,
#fluentform_3 select:focus,
#fluentform_3 textarea:focus {
    border-color: #6c9625;
    outline: none;
    box-shadow: 0 0 0 2px rgba(145,184,62,0.15);
}
/* Séparateurs discrets du menu principal */

@media (min-width: 1024px) {
    .fc-header .fc-menu-items > li + li {
        position: relative;
    }

    .fc-header .fc-menu-items > li + li::before {
        content: "";
        position: absolute;
        left: -5px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 15px;
        background: rgba(100, 110, 120, 0.40);
        pointer-events: none;
    }
}
/* Uniformisation des titres secondaires des quartiers */

body.single-fc_quartier h2,
body.single-fc_quartier h3,
body.single-fc_quartier h4,
body.single-quartier h2,
body.single-quartier h3,
body.single-quartier h4 {
    font-size: 26px !important;
    line-height: 1.3 !important;
}

/* Version smartphone */

@media (max-width: 768px) {
    body.single-fc_quartier h2,
    body.single-fc_quartier h3,
    body.single-fc_quartier h4,
    body.single-quartier h2,
    body.single-quartier h3,
    body.single-quartier h4 {
        font-size: 22px !important;
    }
}