/* --- CHARTE GRAPHIQUE AFRICAMEDICALSERVICE --- */
:root {
    --primary-blue: #003366;
    --secondary-green: #66CCCC;
    --accent-gold: #FFCC00;
    --text-dark: #333333;
    --background-light: #F2F2F2;
    --background-white: #FFFFFF;

    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* --- RESET & STYLES GLOBAUX --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-white);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--primary-blue);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

section {
    padding: 5rem 0;
}

a {
    color: var(--secondary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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


/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: var(--background-white);
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--primary-blue);
}

/* --- SECTION HERO (Bannière) --- */
.hero {
    background-color: var(--background-light);
    text-align: center;
    padding: 6rem 0;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* --- SECTION SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: center;
}

.service-card {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: 8px;
    border-bottom: 4px solid var(--secondary-green);
}

.service-card img {
    height: 80px;
    margin-bottom: 1.5rem;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-blue);
    color: var(--background-light);
    padding: 3rem 0;
    text-align: center;
}

.main-footer a {
    color: var(--accent-gold);
}
.contact-section {
            padding: 60px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.contact-info, .contact-form-container {
    padding: 25px;
    border-radius: 8px;
}
.contact-info h3, .contact-form-container h3 {
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}
.contact-info p {
    line-height: 1.7;
    margin-bottom: 15px;
}
.contact-info address {
    font-style: normal;
}
.map-container {
    margin-top: 25px;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}
.map-container iframe {
            border: 0;
            width: 100%;
            height: 100%;
}
.form-group {
            margin-bottom: 20px;
}
.form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 700;
            font-family: 'Lato', sans-serif;
}
.form-group input,
.form-group textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
            font-family: 'Lato', sans-serif;
}
.form-group textarea {
            resize: vertical;
            min-height: 120px;
}

        /* Responsive */
        @media (max-width: 768px) {
.contact-grid {
                grid-template-columns: 1fr;
}
}
/* ======================================================= */
/* == Icône SVG pour les liens de navigation externes   == */
/* ======================================================= */

.main-nav a[href*="https://"] {
  position: relative;
  padding-right: 18px;
}

.main-nav a[href*="https://"]::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003366'%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}