/* =================================
   Variables & Reset
================================= */
:root {
    --primary-color: #1a5490;
    --primary-dark: #123a65;
    --primary-light: #2670c4;
    --secondary-color: #f7941d;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-white: #fff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* =================================
   Container
================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =================================
   Top Bar
================================= */
.top-bar {
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 2rem;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    opacity: 0.9;
    transition: var(--transition);
}

.top-link:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.language-selector select {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.language-selector select:hover {
    border-color: var(--secondary-color);
}

/* =================================
   Header
================================= */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}
.logo img {
  height: 60px;      
  width: auto;        
  display: block;
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: flex; 
    align-items: center;
    gap: 0.25rem;
}

.dropdown-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: var(--transition);
  color: var(--text-dark);
}

.dropdown-caret:hover {
  background: var(--bg-light);
}

.dropdown-caret[aria-expanded="true"] svg {
  transform: rotate(180deg);
  transition: var(--transition);
}


.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    max-height: 260px;
    overflow-y: auto;
    margin-top: 0.5rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.burger-menu[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger-menu[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =================================
   Buttons
================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-text {
    color: var(--primary-color);
    padding: 0.5rem;
}

.btn-text:hover {
    color: var(--primary-dark);
}

/* =================================
   Hero Section
================================= */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    background-image:
        linear-gradient(rgba(26, 84, 144, 0.85), rgba(18, 58, 101, 0.85)),
        url('https://images.pexels.com/photos/1267338/pexels-photo-1267338.jpeg?auto=compress&cs=tinysrgb&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    text-align: center;
    padding: 4rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-suffix {
    display: inline;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   Sections
================================= */
.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.section-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* =================================
   About Section
================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    height: 400px;
}

.presence-block {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.presence-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* =================================
   President Message
================================= */
.president-message {
    max-width: 900px;
    margin: 0 auto;
}

.president-key-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.key-point svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.key-point span {
    font-weight: 500;
    color: var(--text-dark);
}

.president-extended {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-bottom: 1rem;
}

.president-extended.expanded {
    max-height: 1000px;
}

.president-extended .section-text.signature {
    font-style: italic;
    text-align: right;
    margin-top: 2rem;
    color: var(--text-dark);
    font-weight: 500;
}

#read-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#read-more-btn svg {
    transition: var(--transition);
}

#read-more-btn.expanded svg {
    transform: rotate(180deg);
}

/* =================================
   Competences Section
================================= */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.competence-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.competence-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.competence-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

.competence-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.competence-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =================================
   Secteurs Section
================================= */
.secteurs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.secteur-card {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.secteur-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.secteur-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secteur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
    color: var(--text-white);
    padding: 1.5rem;
    transform: translateY(60%);
    transition: var(--transition);
}

.secteur-card:hover .secteur-overlay {
    transform: translateY(0);
}

.secteur-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.secteur-text {
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
}

.secteur-card:hover .secteur-text {
    opacity: 1;
}

/* =================================
   Implantations Section
================================= */
.implantation-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 3rem 0 2rem;
    text-align: center;
}

.implantations-grid {
    display: grid;
    gap: 2rem;
}

.implantations-grid.main-offices {
    grid-template-columns: repeat(3, 1fr);
}

.implantations-grid.regional-offices {
    grid-template-columns: repeat(3, 1fr);
}

.implantation-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.implantation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.implantation-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

.implantation-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.implantation-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.implantation-country {
    color: var(--text-light);
    font-size: 0.95rem;
}

.implantation-card.mini {
    padding: 1.5rem;
}

.implantation-card.mini .implantation-name {
    font-size: 1.1rem;
}


.hidden-office {
    display: none;
}

.hidden-office.visible {
    display: block;
}

/* =================================
   Contact Section
================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-box,
.contact-form-box {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-map {
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

.file-info {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.success-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-top: 1rem;
}

.success-message.show {
    display: flex;
}

.success-message svg {
    flex-shrink: 0;
}

/* =================================
   Footer
================================= */
.footer {
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-white);
    opacity: 0.85;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.75;
}

/* =================================
   Responsive Design
================================= */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .competences-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .secteurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .implantations-grid.main-offices,
    .implantations-grid.regional-offices {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .top-bar {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        transform: translateX(-100%);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        padding: 1rem 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
    }

    .dropdown-menu.show {
        max-height: 500px;
    }

    .dropdown-item {
        padding-left: 2rem;
    }

    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .competences-grid {
        grid-template-columns: 1fr;
    }

    .secteurs-grid {
        grid-template-columns: 1fr;
    }

    .implantations-grid.main-offices,
    .implantations-grid.regional-offices {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .dropdown {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

.presence-block {
    background-image: url('photos/map.jpg'); 
    background-size: cover;      
    background-position: center; 
    background-repeat: no-repeat;
    padding: 60px 20px;          
    color: white;                
    border-radius: 12px;         
}
.presence-block::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); 
    z-index: 0;
    border-radius: 12px;
}
.presence-block .presence-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.presence-content h3,
.presence-content p,
.presence-content a {
    color: white;
}


.nav-menu .dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}


.nav-menu .dropdown-toggle:focus {
    outline: none;
}


.nav-menu .dropdown-toggle svg {
    margin-left: 4px;
}


.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}


.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-top: 0.5rem;
    min-width: 180px;
    z-index: 100;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    display: block;
    color: #333;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}


.about-grid {
  text-align: justify;
}

.president-extended {
  text-align: justify;
}

.president-extended ul {
  margin-left: 40px;
  list-style-type: disc; 
}

.president-extended li {
  margin-bottom: 6px;
  line-height: 1.6;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}


@media (max-width: 768px) {

  .contact-grid {
    display: block;              
  }

  .contact-info-box,
  .contact-form-box {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2rem 0;          
  }

 
  .contact-info-box *,
  .contact-form-box * {
    max-width: 100%;
  }
}
