* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, serif;
    background: #0b1f3a;
    color: white;
}

/* ================= NAVBAR ================= */

.navbar {
    width: 100%;
    background: #08172b;
    padding: 20px 0;
}

.navbar ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 10px 0;
    transition: 0.3s;
}

.navbar a:hover {
    color: #4da3ff;
}

/* effet underline */
.navbar a::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background: #4da3ff;
    margin: auto;
    transition: 0.3s;
}

.navbar a:hover::after {
    width: 60%;
}

.navbar ul li {
    position: relative;
}
.navbar ul li.dropdown {
    position: relative;
}

/* ================= MENU DROPDOWN ================= */

.navbar ul li.dropdown > .dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;

    left: 50%;
    transform: translateX(-50%);

    background: #08172b;
    min-width: 220px;

    list-style: none;
    margin: 0;
    padding: 0;

    z-index: 9999;

    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* affichage au survol */
.navbar ul li.dropdown:hover > .dropdown-menu {
    display: block !important;
}

/* ================= ITEMS ================= */

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

/* hover items */
.dropdown-menu li a:hover {
    background: #0b1f3a;
    color: #4da3ff;
}
/* ================= HERO IMAGE ================= */

.hero-image {
    height: 60vh;
    width: 100%;
    background-image: url("Jade\ Aquarelle.jpeg");
     background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0,0,0,0.5);
    padding: 30px 40px;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 48px;
}
h1 {
    margin-bottom: 20px;
}

.hero-overlay p {
    font-size: 18px;
}

/* ================= SECTIONS ================= */

.section {
    padding: 10px 30px;
    text-align: center;
}

.section h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.section p,
.section ul {
    max-width: 800px;
    margin: auto;
    line-height: 1.8;
    font-size: 18px;
}

.section ul {
    list-style: none;
}

.light {
    background: #132f52;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.infra-card {
    background: white;
    color: #08172b;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s;
    font-size: 16px;
}

.infra-card:hover {
    transform: translateY(-4px);
}


.procedure-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 700px;
    margin: 40px auto 0 auto;
}

.procedure-card {
    background: white;
    color: #08172b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.procedure-card:hover {
    transform: translateY(-4px);
}

.procedure-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

.procedure-text {
    font-size: 15px;
    line-height: 1.6;
}

.bureau-photo {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
}

/* ================= FOOTER ================= */

footer {
    margin-top: 80px;
    text-align: center;
    padding: 30px;
    background: #08172b;
}

/* ================= BOUTON URGENCE ================= */

.emergency-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.emergency-btn {
    background: #c00000;
    color: white;
    border: none;
    padding: 14px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.emergency-btn:hover {
    background: #ff1a1a;
    transform: scale(1.05);
}

/* ================= CTA BOUTON ================= */

.cta-button {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto; /* centré + espace au-dessus */
    padding: 14px 28px;
    background: #1e5eff; /* bleu pro */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.cta-button:hover {
    background: #3b7bff;
    transform: scale(1.05);
}


/* ================= EXPERTISES ================= */

.subtitle {
    max-width: 850px;
    margin: 20px auto 60px auto;
    line-height: 1.8;
    font-size: 18px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 320px);
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.expertise-card {
    background: white;
    color: #08172b;
    padding: 40px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.expertise-card:hover {
    transform: translateY(-5px);
}

.expertise-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.citation {
    margin-top: 80px;
    font-size: 24px;
    font-style: italic;
    color: white;
    text-align: center;
}

.citation-author {
    margin-top: 15px;
    font-size: 16px;
    font-style: normal;
    color: white;
    opacity: 0.8;
}


/* ================= FORMULAIRE CONTACT ================= */

.contact-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #C9A96E;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #C9A96E;
}

.required {
    color: white;
}

.btn-contact {
    background: #C9A96E;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s ease;
}

.btn-contact:hover {
    opacity: 0.9;
}

#popupSuccess {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);

    display: none; /* IMPORTANT */

    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#popupSuccess.active {
    display: flex;
}

.popup-content {
    background: white;
    color: #08172b; /* bleu foncé lisible */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

.popup-content button {
    background: #C9A96E;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* ================= HONORAIRES ================= */
.honoraires-card {
    background: white;
    color: #1E3A8A;

    max-width: 800px;
    margin: 10px auto;

    padding: 20px;

    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.section-end {
    padding-bottom: 40px;
}