/* ============================================================
   Résidence Shamscarthage — Site vitrine
   ============================================================ */

:root {
    --teal:        #159b8a;
    --teal-dark:   #0f7a6c;
    --teal-light:  #e6f6f4;
    --gold:        #f39c12;
    --gold-dark:   #d4880a;
    --navy:        #0d1b2a;
    --navy-2:      #1a3a5c;
    --text:        #1e2a35;
    --text-sec:    #5b6b78;
    --border:      #e3e9ec;
    --bg-soft:     #f7f9fa;
    --white:       #ffffff;
    --shadow:      0 10px 30px rgba(13, 27, 42, 0.08);
    --radius:      16px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--teal); margin-bottom: 12px;
}
.section-title { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; margin-bottom: 14px; }
.section-desc { font-size: 15.5px; color: var(--text-sec); max-width: 640px; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 50px; font-size: 14.5px; font-weight: 700;
    border: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
    white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(21,155,138,.28); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(21,155,138,.35); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 20px rgba(243,156,18,.3); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 15px 32px; font-size: 15.5px; }

/* ---------- Topbar (infos) ---------- */
.topbar {
    background: var(--navy); color: rgba(255,255,255,.85); font-size: 12.5px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.topbar-item i { color: var(--gold); }
.topbar-social a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.1); margin-left: 6px; font-size: 12px; }
.topbar-social a:hover { background: var(--teal); }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 500;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-light); padding: 6px; flex-shrink: 0; }
.brand-name { font-size: 16.5px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--text-sec); letter-spacing: .3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text);
    transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--teal-light); color: var(--teal-dark); }
.nav-links a.active { color: var(--teal); background: var(--teal-light); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-tel { display: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--navy); cursor: pointer; }

@media (max-width: 900px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; }
    .nav-toggle { display: block; }
    .topbar .topbar-item:not(:first-child) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, #123a4e 100%);
    color: #fff; padding: 90px 0 110px;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(2px);
}
.hero::before { width: 480px; height: 480px; background: radial-gradient(circle, rgba(21,155,138,.35) 0%, transparent 70%); top: -160px; right: -120px; }
.hero::after { width: 380px; height: 380px; background: radial-gradient(circle, rgba(243,156,18,.22) 0%, transparent 70%); bottom: -180px; left: -100px; }

.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 7px 16px; border-radius: 50px; font-size: 12.5px; font-weight: 600; margin-bottom: 22px; }
.hero-badge i { color: var(--gold); }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 16.5px; color: rgba(255,255,255,.78); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat-num { font-size: 26px; font-weight: 800; color: var(--gold); }
.hero-stat-lbl { font-size: 12.5px; color: rgba(255,255,255,.7); }

.hero-visual {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px; padding: 34px; backdrop-filter: blur(6px);
}
.hero-visual-icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; margin-bottom: 18px; }
.hero-visual h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.hero-visual p { font-size: 13.5px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.hero-visual-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.hero-visual-list li:first-child { border-top: none; }
.hero-visual-list i { color: var(--gold); font-size: 15px; }

@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
}

/* ---------- Cartes valeurs / features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
    background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-sec); }

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-top { height: 8px; }
.service-body { padding: 28px 26px; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; color: #fff; }
.service-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-body p { font-size: 14px; color: var(--text-sec); margin-bottom: 16px; }
.service-body ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text); padding: 5px 0; }
.service-body ul li i { color: var(--teal); margin-top: 3px; }

@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--teal), var(--teal-dark));
    border-radius: 24px; padding: 48px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 25px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { font-size: 14.5px; color: rgba(255,255,255,.85); }

/* ---------- Tarifs ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 900px; margin: 0 auto; }
.price-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 34px; text-align: center; position: relative; }
.price-card.featured { border-color: var(--teal); box-shadow: 0 14px 34px rgba(21,155,138,.16); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 16px; border-radius: 50px; }
.price-card h3 { font-size: 15px; font-weight: 700; color: var(--text-sec); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.price-amount { font-size: 40px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.price-amount span { font-size: 15px; font-weight: 600; color: var(--text-sec); }
.price-note { font-size: 12.5px; color: var(--text-sec); margin-bottom: 24px; }
.price-list { text-align: left; margin-bottom: 28px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 7px 0; border-top: 1px solid var(--border); }
.price-list li:first-child { border-top: none; }
.price-list li i { color: var(--teal); margin-top: 2px; }

@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-note-box { background: var(--teal-light); border: 1.5px solid #b9e3dc; border-radius: 14px; padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; }
.pricing-note-box i { color: var(--teal); font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.pricing-note-box p { font-size: 13.5px; color: var(--text); }

/* ---------- Blog / Actualités ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-cover { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; }
.article-body { padding: 22px; }
.article-cat { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--teal); margin-bottom: 10px; }
.article-body h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.article-body p { font-size: 13.5px; color: var(--text-sec); margin-bottom: 14px; }
.article-meta { font-size: 12px; color: var(--text-sec); display: flex; align-items: center; gap: 6px; }

@media (max-width: 980px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }

.article-full { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 36px; margin-bottom: 24px; }
.article-full h2 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.article-full .article-meta { margin-bottom: 18px; }
.article-full p { font-size: 14.5px; color: var(--text); margin-bottom: 14px; }
.article-full h4 { font-size: 15.5px; color: var(--navy); margin: 18px 0 8px; }

/* ---------- Page header (bannière interne) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff; padding: 60px 0 70px; text-align: center;
}
.page-hero .eyebrow { color: var(--gold); justify-content: center; }
.page-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto; }
.breadcrumb { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px; }
.contact-info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-item i { width: 40px; height: 40px; background: rgba(255,255,255,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.contact-info-item div div:first-child { font-size: 11.5px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.contact-info-item div div:last-child { font-size: 14px; font-weight: 600; }
.contact-hours { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: rgba(255,255,255,.75); }

.contact-form-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.form-control {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 14px; font-family: inherit; color: var(--text); background: var(--bg-soft);
    transition: border-color .2s, background .2s;
}
.form-control:focus { outline: none; border-color: var(--teal); background: #fff; }
textarea.form-control { min-height: 120px; resize: vertical; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); margin-top: 24px; height: 280px; }

/* ---------- Alert ---------- */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 13.5px; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.alert-success { background: #eafaf1; color: #1a7a52; border: 1px solid #b9e6cd; }
.alert-danger { background: #fdedec; color: #c0392b; border: 1px solid #f5b7b1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand-name { font-size: 15.5px; font-weight: 800; color: #fff; }
.footer p.desc { font-size: 13px; line-height: 1.7; max-width: 280px; }
.footer h4 { color: #fff; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; font-size: 13.5px; }
.footer ul li a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--gold); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--teal); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.5); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Bouton flottant WhatsApp ---------- */
.whatsapp-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 600;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 30px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(37,211,102,.45);
    transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(37,211,102,.55); color: #fff; }
@media (max-width: 560px) { .whatsapp-float { width: 52px; height: 52px; font-size: 26px; right: 16px; bottom: 16px; } }
