/*
Theme Name: La Timone – Location étudiante
Theme URI: https://locationlatimone.fr
Author: Location La Timone
Description: Thème WordPress sur mesure pour la location de logements étudiants haut de gamme près de la Faculté de Médecine de Marseille (Rue Sainte-Cécile). Pages : accueil, logements, quartier & commodités (carte), vendre votre bien, contact.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: latimone
*/

/* ——————————————————————————————————————————————
   TOKENS
   —————————————————————————————————————————————— */
:root {
	--navy:      #0F2B3C;   /* mer profonde */
	--navy-2:    #16405A;
	--azur:      #1E6FA8;   /* méditerranée */
	--azur-soft: #E3EEF6;
	--ocre:      #D9A441;   /* ocre de Provence */
	--ocre-soft: #F8EDD3;
	--mineral:   #F5F6F4;   /* blanc minéral */
	--paper:     #FFFFFF;
	--ink:       #1B1F23;
	--ink-2:     #4A5560;
	--line:      #D9DEE2;

	--display: 'Fraunces', Georgia, serif;
	--body:    'Manrope', system-ui, -apple-system, sans-serif;

	--w:      1160px;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(15, 43, 60, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--mineral);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azur); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.wrap { width: min(var(--w), calc(100% - 2.5rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ——————————————————————————————————————————————
   TYPOGRAPHIE
   —————————————————————————————————————————————— */
h1, h2, h3, .display {
	font-family: var(--display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--navy);
	margin: 0 0 .5em;
	font-variation-settings: "opsz" 144, "SOFT" 40;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.eyebrow {
	display: inline-block;
	font-size: .8rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--azur);
	margin-bottom: .8rem;
}
em.accent { font-style: italic; color: var(--azur); font-variation-settings: "opsz" 144, "SOFT" 100; }

/* ——————————————————————————————————————————————
   BOUTONS
   —————————————————————————————————————————————— */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .9rem 1.5rem;
	border-radius: 999px;
	font-weight: 700; font-size: .98rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ocre { background: var(--ocre); color: var(--navy); }
.btn-ocre:hover { background: #E4B45A; color: var(--navy); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }

/* ——————————————————————————————————————————————
   HEADER
   —————————————————————————————————————————————— */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(245,246,244,.88);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; }
.brand-mark svg { width: 40px; height: 40px; display: block; }
.custom-logo { max-height: 44px; width: auto; }
.brand-name { font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--body); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: .2rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--azur); }
.main-nav .nav-cta a { padding: .6rem 1.1rem; background: var(--navy); color: #fff; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
/* Sous-menu */
.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a::after { content: ''; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-left: .45rem; vertical-align: 3px; }
.main-nav .sub-menu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: -0.8rem; min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none; flex-direction: column; gap: 0; z-index: 60; }
.main-nav .sub-menu a { display: block; padding: .55rem .8rem; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.main-nav .sub-menu a:hover { background: var(--azur-soft); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
@media (max-width: 860px) {
	.main-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 .4rem 1rem; min-width: 0; }
	.main-nav .sub-menu a { padding: .45rem 0; font-size: .92rem; color: var(--ink-2); }
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
	.main-nav a { display: block; padding: .7rem 0; }
	.main-nav .nav-cta a { text-align: center; margin-top: .5rem; }
}

/* ——————————————————————————————————————————————
   SECTIONS
   —————————————————————————————————————————————— */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.2rem, 4vw, 3.5rem) 0; }
.section-navy { background: var(--navy); color: #E8EEF2; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lead { color: #C7D3DC; }
.section-navy .eyebrow { color: var(--ocre); }
.section-paper { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ——————————————————————————————————————————————
   HERO
   —————————————————————————————————————————————— */
.hero { background: var(--paper); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { margin-bottom: 1.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-proof { display: flex; gap: 2rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-proof div { min-width: 120px; }
.hero-proof strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--navy); line-height: 1; }
.hero-proof span { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Signature : schéma de la rue */
.street { position: relative; }
.street svg { width: 100%; height: auto; }
.street-caption { font-size: .85rem; color: var(--ink-2); margin-top: .8rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.street-caption i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: .35rem; }
.street-caption .k-bien i { background: var(--ocre); }
.street-caption .k-prepa i { background: var(--azur); border-radius: 3px; }
.street-caption .k-fac i { background: var(--navy); border-radius: 3px; }
.street .pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: 0; transform: scale(2.2); } }

/* ——————————————————————————————————————————————
   CARTES / LISTES
   —————————————————————————————————————————————— */
.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.6rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--azur-soft); color: var(--azur); display: grid; place-items: center; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .25rem; }

/* Biens */
.property { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.property-num { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--ocre); font-weight: 600; min-width: 3.2rem; }
.property .addr { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.property .cp { color: var(--ink-2); font-size: .9rem; }
.property .walk { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .85rem; font-weight: 700; color: var(--azur); background: var(--azur-soft); padding: .25rem .7rem; border-radius: 999px; }
.property.is-highlight { border-color: var(--ocre); background: linear-gradient(180deg, #FFFDF8, #fff); }

/* Ciblage parents / propriétaires */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.split .panel { padding: 2.4rem; border-radius: var(--radius); }
.panel-parents { background: var(--azur-soft); }
.panel-owners { background: var(--ocre-soft); }
.panel ul { padding-left: 1.2rem; margin: 1rem 0 1.5rem; color: var(--ink-2); }
.panel li { margin-bottom: .4rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Timeline / processus (ordre réel : étapes de location) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { position: relative; padding-top: 1rem; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 2rem; color: var(--ocre); line-height: 1; display: block; margin-bottom: .5rem; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.5rem; color: var(--ocre); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: .8rem; color: var(--ink-2); }

/* ——————————————————————————————————————————————
   PAGE COMMODITÉS (carte)
   —————————————————————————————————————————————— */
.map-wrap { position: sticky; top: 92px; }
#quartier-map { width: 100%; height: min(72vh, 640px); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #E6EBEE; z-index: 1; }
.commodites-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .commodites-layout { grid-template-columns: 1fr; } .map-wrap { position: static; } #quartier-map { height: 60vh; } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .4rem .9rem; font-weight: 600; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); }
.filter-btn i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.filter-btn.is-active, .filter-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat { margin-bottom: 2.2rem; }
.cat-title { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin-bottom: 1rem; }
.cat-title i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.place { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: .8rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.place:hover, .place.is-active { border-color: var(--azur); box-shadow: var(--shadow); }
.place h4 { margin: 0 0 .35rem; font-size: 1.02rem; color: var(--navy); }
.place-note { font-size: .88rem; color: var(--azur); font-style: italic; margin-bottom: .4rem; }
.place dl { margin: 0; display: grid; grid-template-columns: 6.2rem 1fr; gap: .25rem .6rem; font-size: .9rem; }
.place dt { color: var(--ink-2); font-weight: 600; }
.place dd { margin: 0; }
.place dd a { word-break: break-all; }
.leaflet-popup-content { font-family: var(--body); font-size: .9rem; }
.leaflet-popup-content strong { color: var(--navy); }
.pin-bien { background: var(--ocre); border: 3px solid #fff; border-radius: 50%; width: 22px; height: 22px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pin-cat { border: 2px solid #fff; border-radius: 4px; width: 16px; height: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* ——————————————————————————————————————————————
   FORMULAIRE
   —————————————————————————————————————————————— */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form label { font-weight: 700; font-size: .92rem; color: var(--navy); display: block; margin-bottom: .3rem; }
.form input, .form select, .form textarea {
	width: 100%; font: inherit; padding: .8rem 1rem;
	border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--azur); outline: none; box-shadow: 0 0 0 3px var(--azur-soft); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; font-weight: 600; }
.notice-ok { background: #E3F5EC; color: #1C6B45; }
.notice-err { background: #FBE6E3; color: #8C2F26; }
.contact-side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.contact-side dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-weight: 700; }
.contact-side dd { margin: .2rem 0 1rem; font-size: 1.05rem; }

/* ——————————————————————————————————————————————
   CONTENU DE PAGE STANDARD
   —————————————————————————————————————————————— */
.entry-content { max-width: 72ch; }
.entry-content h2 { margin-top: 2.2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { margin-bottom: .6rem; }

/* ——————————————————————————————————————————————
   FOOTER
   —————————————————————————————————————————————— */
.site-footer { background: var(--navy); color: #C7D3DC; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer a { color: #E8EEF2; text-decoration: none; }
.site-footer a:hover { color: var(--ocre); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .82rem; color: #8FA3B2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ——————————————————————————————————————————————
   AVIS GOOGLE
   —————————————————————————————————————————————— */
.gbadge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--navy); font-weight: 700; font-size: .85rem; text-decoration: none; }
.gbadge:hover { border-color: var(--ocre); color: var(--navy); }
.gbadge-stars { display: inline-flex; gap: 1px; color: var(--ocre); }
.site-footer .gbadge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.gbtn svg { color: var(--ocre); margin-right: -2px; }
.gbtn svg + svg { margin-left: -6px; }
.greview-block { max-width: 62ch; margin-inline: auto; }
.greview-stars { display: inline-flex; gap: 4px; color: var(--ocre); margin-bottom: 1rem; }
.greview-stars svg { width: 28px; height: 28px; }
.greview-block p { color: #C7D3DC; }

/* ——————————————————————————————————————————————
   GALERIE & LIGHTBOX
   —————————————————————————————————————————————— */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-top: .9rem; }
.property .gallery { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.gallery-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; background: var(--azur-soft); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-thumb:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15,43,60,.94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; font-size: 2.2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: var(--ocre); color: var(--navy); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #C7D3DC; font-size: .85rem; font-weight: 600; }
@media (max-width: 600px) { .lightbox button { width: 42px; height: 42px; font-size: 1.7rem; } .lb-prev { left: .4rem; } .lb-next { right: .4rem; } }
.btn svg { width: 18px; height: 18px; }
