* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

:root {
    --blue-night: #011F4B;
    --blue-light: #E6F0FF;
    --gold: #CBA135;
}

/* HERO */
.hero {
    background: var(--blue-night);
    color: var(--blue-light);
    text-align: center;
    padding: 80px 20px 60px;
}

.logo {
    font-size: 90px;
    letter-spacing: 4px;
}

.baseline {
    font-size: 22px;
    line-height: 1.4;
}

.baseline span {
    color: var(--gold);
}

/* CASSURE */
.hero-break {
    background: #f5f7fa;
    text-align: center;
    padding: 80px 20px;
}

.hero-break h2 {
    font-size: 32px;
    color: #011F4B;
    margin-bottom: 20px;
}

.hero-break p {
    font-size: 20px;
    color: #333;
    max-width: 800px;
    margin: auto;
}

/* ===================== */
/* NAVIGATION PRINCIPALE */
/* ===================== */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 30px 20px;
    background-color: #f4f7fb; /* bleu clair structurant */
    border-bottom: 1px solid #e0e6ef;
}

.nav-links {
    display: flex;
    gap: 60px;
    align-items: center;
}

.nav-cta {
    background: var(--gold);
    color: var(--blue-night);
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s ease;
}

.nav-cta:hover {
    background: #b9962e;
    transform: translateY(-2px);
}

.main-nav a {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--blue-night);
    transition: color 0.3s ease;
}

/* Soulignement élégant */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation glissante */
.main-nav a {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--blue-night);
    transition: 
        color 0.3s ease,
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover */
.main-nav a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.main-nav a:hover::after {
    width: 60%;
    transition-delay: 0.05s;
}

/* Lien actif */
.main-nav a.active {
    color: var(--gold);
}

.main-nav a.active::after {
    width: 60%;
}

/* INTRO */
.intro {
    padding: 60px 20px;
    text-align: center;
    max-width: 900px;
    margin: auto;
    line-height: 1.6;
}

/* BULLES */
.bubbles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.bubble {
    background: var(--blue-night);
    color: var(--blue-light);
    padding: 25px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    transition: 0.3s ease;
}

.bubble:hover {
    background: var(--gold);
    color: #011F4B;
}

/* CONTACT */
.contact {
    background: var(--blue-night);
    color: var(--blue-light);
    padding: 80px 20px;
}

.contact h3 {
    text-align: center;
}

.contact form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.form-legal {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
    line-height: 1.4;
}

.contact input,
.contact textarea,
.contact select {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.contact button {
    background: var(--gold);
    border: none;
    padding: 14px;
    font-weight: 600;
    cursor: pointer;
}

.contact-container {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
    margin: 40px auto 0;
    max-width: 1000px;
}

.contact-rdv {
    max-width: 320px;
    background: rgba(255,255,255,0.06);
    padding: 35px;
    border-radius: 18px;
    text-align: left;
}

.contact-rdv h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-rdv p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.form-warning::before{
  content: "⚠️ ";
}

.form-warning{
  display: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff4d4f;                 /* rouge lisible */
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.4;
  margin-top: 6px;
}

.form-field-invalid{
  outline: none;
  border: 1px solid #ff4d4f;
  box-shadow: 0 0 0 3px rgba(255,77,79,0.25);
  background: rgba(255,77,79,0.05);
}

button[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ===================== */
/* Sélecteur horaire (Contact) */
/* ===================== */

.time-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px){
    .time-row{
        grid-template-columns: 1fr;
    }
}

/* FOOTER */
footer {
    background: #000;
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Page Nos Expertises*/
/* HERO COMPACT */
.hero-small {
    padding: 50px 20px;
}

.logo-small {
    font-size: 60px;
}

/* GRID EXPERTISES */
.expertises-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.expertise-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.expertise-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #011F4B;
}

.expertise-card p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.expertise-link {
    display: inline-block;
    margin-top: 15px;
    color: #CBA135;
    font-weight: 600;
    text-decoration: none;
}

.expertise-link:hover {
    text-decoration: underline;
}

/* Page Immobilier*/
.hero-small {
    padding: 50px 20px;
}

.logo-small {
    font-size: 60px;
}

.content-block {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.content-block h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #011F4B;
}

.content-block p,
.content-block ul {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.content-block ul {
    margin: 20px 0 20px 20px;
}

.content-block.alt {
    background: #f5f7fa;
    padding: 80px 20px;
}

/* CTA FINAL */
.expertises-cta {
    background: var(--blue-night);
    color: var(--blue-light);
    text-align: center;
    padding: 90px 20px;
}

.expertises-cta h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.expertises-cta p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--gold);
    color: #011F4B;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    transition: 0.3s ease;
}

.cta-button:hover {
    background: #b9962e;
}

/* CTA FINAL page Accueil*/
.final-cta {
    text-align: center;
    padding: 100px 20px;
    background: var(--blue-night);
    color: var(--blue-light);
}

.final-cta h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--blue-light);
}

.final-cta-text {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.final-cta-legal {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
    color: rgba(255,255,255,0.6);
}

/* ============================= */
/* MAILLAGE INTERNE STRATEGIQUE  */
/* ============================= */

.section-maillage {
    padding: 80px 20px;
    background-color: #f8f9fb;
    text-align: center;
}

.section-maillage h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.section-maillage p {
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.maillage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.maillage-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.maillage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.maillage-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.maillage-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.maillage-card.methode {
    background-color: #0f172a;
    color: white;
}

.maillage-card.methode p {
    color: #e2e8f0;
}

/* Page Notre methode */
.method-link {
    text-align: center;
    padding: 60px 20px 20px;
}

.method-link p {
    font-size: 18px;
    color: #444;
    margin-bottom: 15px;
}

.method-link-button {
    font-size: 18px;
    color: var(--blue-night);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
    transition: 0.3s ease;
}

.method-link-button:hover {
    color: var(--gold);
}

/* ===================== */
/* STICKY NAV INTELLIGENT */
/* ===================== */

.main-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ===================== */
/* Message formulaire */
/* ===================== */

.confirmation-message {
    display: none;
    margin-top: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
}

/* ===================== */
/* Tablette et mobile */
/* ===================== */

@media (max-width: 1024px) {
    .bubbles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================== */
/* NAV RESPONSIVE (TABLETTE & MOBILE) */
/* ===================== */
@media (max-width: 768px) {

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }

    .nav-links {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .main-nav a {
        font-size: 16px;
    }

    .nav-cta {
        margin-top: 10px;
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 16px;
    }

    /* RESPONSIVE CONTACT */
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-container {
        padding: 0 15px;
    }

    .contact-rdv {
        margin-top: 30px;
        text-align: center;
        }

    .logo {
        font-size: 60px;
    }

    .main-nav {
        flex-direction: column;
        gap: 20px;
    }

    .bubbles {
        grid-template-columns: 1fr;
    }

    /* Sticky nav – adaptation mobile */
    .main-nav.sticky {
        padding: 15px 20px;
    }

    .main-nav.sticky a {
        font-size: 16px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .nav-cta {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    } 

    .hero-break h2 {
        font-size: 26px;
    }

    .hero-break p {
        font-size: 18px;
    } 
}

/* ===================== */
/* VERSION IMPRESSION */
/* ===================== */

@media print {

    body {
        background: white !important;
        color: black !important;
    }

    .main-nav,
    .nav-cta,
    footer,
    .cta-button,
    .bubble {
        display: none !important;
    }

    .hero,
    .final-cta,
    .contact,
    .expertises-cta {
        background: white !important;
        color: black !important;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    section {
        padding: 30px 0 !important;
    }

    .hero-break {
        background: white !important;
    }

}

/* ===================== */
/* IMPRESSION Presentation TMT*/
/* ===================== */
body.pdf {
    font-family: Georgia, serif;
    color: #111;
}

.pdf-cover {
    text-align: center;
    padding: 120px 20px;
}

.pdf-cover h1 {
    font-size: 60px;
    letter-spacing: 6px;
}

.pdf-section {
    page-break-inside: avoid;
    padding: 60px 80px;
}

.pdf-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.pdf-contact {
    padding: 60px 80px;
}

/* ===================== */
/* PAGE HONORAIRES */
/* ===================== */

.honoraires-page {
    background: #f5f7fa;
    padding: 80px 20px;
}

.honoraires-document {
    max-width: 980px;
    margin: auto;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.honoraires-header {
    background: var(--blue-night);
    color: var(--blue-light);
    text-align: center;
    padding: 70px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.honoraires-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.honoraires-header p {
    font-size: 22px;
    margin-bottom: 15px;
}

.honoraires-header span {
    color: var(--gold);
    font-weight: 600;
}

.honoraires-section {
    padding: 55px 60px;
}

.honoraires-section h2,
.honoraires-columns h2,
.honoraires-conditions h2 {
    color: var(--blue-night);
    font-size: 28px;
    margin-bottom: 20px;
}

.honoraires-section p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 18px;
}

.honoraires-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 60px 55px;
}

.honoraires-card {
    background: #f5f7fa;
    border-radius: 16px;
    padding: 30px;
    border-top: 4px solid var(--gold);
}

.honoraires-card h3 {
    color: var(--blue-night);
    font-size: 22px;
    margin-bottom: 12px;
}

.honoraires-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.honoraires-quote {
    background: var(--blue-night);
    color: var(--blue-light);
    text-align: center;
    padding: 40px 20px;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
}

.honoraires-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    overflow: hidden;
    border-radius: 14px;
}

.honoraires-table th {
    background: var(--blue-night);
    color: var(--blue-light);
    padding: 18px;
    font-size: 18px;
    text-align: left;
}

.honoraires-table td {
    padding: 18px;
    border-bottom: 1px solid #e5e8ef;
    font-size: 17px;
    color: #333;
}

.honoraires-table tr:nth-child(even) td {
    background: #f8f9fb;
}

.honoraires-note {
    margin-top: 25px;
    padding: 20px;
    background: #fff8e6;
    border-left: 5px solid var(--gold);
    border-radius: 12px;
    color: #333;
    font-weight: 600;
}

.honoraires-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 55px 60px;
    background: #f5f7fa;
}

.honoraires-columns ul {
    margin-left: 20px;
}

.honoraires-columns li,
.honoraires-columns p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 10px;
}

.honoraires-conditions {
    background: var(--blue-night);
    color: var(--blue-light);
    padding: 55px 60px;
}

.honoraires-conditions h2 {
    color: var(--blue-light);
}

.honoraires-conditions p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.honoraires-footer {
    text-align: center;
    padding: 35px 20px;
    font-size: 15px;
    color: #555;
}

/* Impression A4 propre */
@media print {

    .honoraires-page {
        background: white;
        padding: 0;
    }

    .honoraires-document {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .honoraires-header {
        padding: 40px 30px;
    }

    .honoraires-section,
    .honoraires-columns,
    .honoraires-conditions {
        padding: 35px 40px;
    }

    .honoraires-grid {
        padding: 0 40px 35px;
    }
}

/* Responsive */
@media (max-width: 768px) {

    .honoraires-header h1 {
        font-size: 34px;
    }

    .honoraires-header p {
        font-size: 18px;
    }

    .honoraires-section,
    .honoraires-columns,
    .honoraires-conditions {
        padding: 40px 25px;
    }

    .honoraires-grid,
    .honoraires-columns {
        grid-template-columns: 1fr;
    }

    .honoraires-grid {
        padding: 0 25px 40px;
    }

    .honoraires-table th,
    .honoraires-table td {
        font-size: 15px;
        padding: 14px;
    }

    .honoraires-quote {
        font-size: 20px;
    }
}

/* ===================== */
/* BOUTON IMPRESSION PDF */
/* ===================== */

.print-button {
    display: inline-block;
    margin-bottom: 40px;
    background: var(--gold);
    color: var(--blue-night);
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.print-button:hover {
    background: #b9962e;
    transform: translateY(-2px);
}

/* ===================== */
/* IMPRESSION A4 */
/* ===================== */

@page {
    size: A4;
    margin: 15mm;
}

@media print {

    .main-nav,
    .nav-cta,
    footer,
    .print-button {
        display: none !important;
    }

    .honoraires-page {
        background: white !important;
        padding: 0 !important;
    }

    .honoraires-document {
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: 100% !important;
    }
}
