/* ============================================================
   style.css — Feuille de style principale Denthia
   Palette : Bleu médical #1A73A7 | Blanc #FFFFFF | Gris #6B7B8D
   Police  : Montserrat (Google Fonts)
============================================================ */

/* ---- Variables CSS ---------------------------------------- */
:root {
    --blue:        #1A73A7;
    --blue-dark:   #145d87;
    --blue-light:  #e8f4fb;
    --white:       #ffffff;
    --gray:        #6B7B8D;
    --gray-light:  #f4f7fa;
    --gray-border: #dde3ea;
    --text:        #1c2b3a;
    --radius:      12px;
    --shadow:      0 4px 24px rgba(26, 115, 167, 0.10);
    --transition:  0.25s ease;
    --font:        'Montserrat', sans-serif;
}

/* ---- Reset minimal ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ---- Container centré ------------------------------------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   BOUTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: var(--blue);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--blue-dark);
}

.btn--outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn--outline:hover {
    background: var(--blue);
    color: var(--white);
}

.btn--whatsapp {
    background: #25D366;
    color: var(--white);
}
.btn--whatsapp:hover { background: #1ebe5a; }

.btn--lg  { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn--sm  { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-border);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.navbar__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.navbar__logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.5px;
}
.navbar__logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Menu */
.navbar__menu {
    display: flex;
    gap: 2rem;
}
.navbar__menu a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.navbar__menu a:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* Langue */
.navbar__lang {
    display: flex;
    gap: 0.4rem;
}
.navbar__lang a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition);
}
.navbar__lang a:hover,
.navbar__lang a.active {
    background: var(--blue);
    color: var(--white);
}

/* Burger (mobile) */
.navbar__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.navbar__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   SECTIONS — base commune
============================================================ */
.section {
    padding: 6rem 0;
}
.section:nth-child(even) {
    background: var(--gray-light);
}

.section__header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section__header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.section__header p {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   HERO
============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0d4f78 0%, #1A73A7 50%, #4fa8d1 100%);
    padding-top: 70px; /* hauteur navbar */
    overflow: hidden;
}

/* Motif décoratif en arrière-plan */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.hero__overlay { display: none; } /* réservé si on ajoute une photo de fond */

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ============================================================
   SERVICES
============================================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(26,115,167,0.15);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    color: var(--blue);
}
.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}
.service-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================================
   ÉQUIPE
============================================================ */
.team__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow);
    min-width: 220px;
    max-width: 280px;
}

.team-card__photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}
.team-card__avatar svg {
    width: 60px;
    height: 60px;
}

.team-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.team-card p {
    font-size: 0.88rem;
    color: var(--gray);
}

/* ============================================================
   CONTACT
============================================================ */
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__form-wrap h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.contact__form-wrap > p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.contact__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Infos contact */
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.info-block h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue);
    margin-bottom: 0.5rem;
}
.info-block p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}
.info-block a {
    color: var(--blue);
    transition: color var(--transition);
}
.info-block a:hover { color: var(--blue-dark); }

.contact__map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-border);
}

/* ============================================================
   PAGE SUCCÈS
============================================================ */
.success {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.success__inner {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.success__icon {
    color: #25a244;
    margin-bottom: 1.5rem;
}

.success__inner h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.success__inner p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    background: #0d2236;
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}
.footer__brand p {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer__links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
    text-align: center;
    padding: 1.25rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE — Mobile
============================================================ */
@media (max-width: 900px) {
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .navbar__menu {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        border-bottom: 1px solid var(--gray-border);
        box-shadow: var(--shadow);
        display: none;
        gap: 1.25rem;
    }
    .navbar__menu.open { display: flex; }
    .navbar__burger    { display: flex; }

    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .section { padding: 4rem 0; }
    .section__header h2 { font-size: 1.6rem; }

    .contact__actions { flex-direction: column; }
    .btn { justify-content: center; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 1rem; }
}
