html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

#logo {
    width: 150px;
    height: auto;
    margin-bottom: 0;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#en-tete {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    background-color: rgb(0, 0, 0);
    width: 100%;
    left: 0;
}

#navbar {
    display: flex;
    gap: 20px;
}

#navbar a {
    position: relative; 
    text-decoration: none;
    color: #ffffff;
    padding: 6px 10px;
    font-size: 18px;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
}

#navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease-in-out;
}

#navbar a:hover::after {
    width: 100%;
}

#bvn{
    color: #ffffff;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    margin: 0;
    margin-bottom: 100px;
    padding: 32px 0 64px;
    background: linear-gradient(90deg, rgb(0, 151, 197), rgb(0, 106, 138));
    position: relative;
    z-index: 1;
    overflow: visible;
    width: 100%;
    left: 0;
}

#bvn::after{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
    width: 120vw;
    max-width: 2000px;
    height: 100px;
    background: linear-gradient(90deg, rgb(0, 151, 197), rgb(0, 106, 138));
    border-radius: 50%;
    z-index: 0;
}

#bvn .dot{
    position: absolute;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: rgb(12, 128, 163);
    opacity: 0.95;
    z-index: 2;
}

#bvn .d1, #srvc .d1, #pay-hero .d1, #con .d1 { top: 20px; left: 6%; }
#bvn .d2, #srvc .d2, #pay-hero .d2, #con .d2 { top: 14px; right: 8%; }
#bvn .d3, #srvc .d3, #pay-hero .d3, #con .d3 { bottom: 22px; left: 18%; }
#bvn .d4, #srvc .d4, #pay-hero .d4, #con .d4 { bottom: 14px; right: 24%; }

/* Section principale */
#Expliactions {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-shadow: rgba(0,0,0,0.4) 0px 10px 20px -10px;
}

/* Bloc "Qui sommes-nous" en pleine largeur */
#Expliactions .premier {
    margin-bottom: 30px;
}

/* Les 2 blocs du bas côte à côte */
.blocs-bas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Style de chaque bloc */
.Expliaction h2 {
    background: #0079a8;
    color: #ffffff;
    padding: 18px 20px;
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.Expliaction .content, .content, .Service .content, .method .content {
    background: #f1f1f1;
    color: #222;
    padding: 18px 20px;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
    border: 1px solid rgba(0,0,0,0.06);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 14px rgba(0, 0, 0, 0.05);
}

.Expliaction .content p {
    margin: 0 0 12px 0;
}

.Expliaction .content p:last-child {
    margin-bottom: 10px;
}

footer {
    margin-top : 40px;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Style du lien Politique de confidentialité dans le footer */
footer a.privacy-link {
    color: #0097c5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a.privacy-link:hover {
    color: #00b8e6;
    text-decoration: underline;
}

/* POPUP POLITIQUE DE CONFIDENTIALITÉ */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    z-index: 9999;
}

.popup-header {
    background: linear-gradient(90deg, rgb(0, 151, 197), rgb(0, 106, 138));
    color: #fff;
    padding: 24px 60px 24px 24px;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.popup-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
    color: #222;
}

.popup-section {
    margin-bottom: 30px;
}

.popup-section h3 {
    background: #0079a8;
    color: #fff;
    padding: 12px 16px;
    margin: 0 0 12px 0;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
}

.popup-section p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-size: 15px;
}

.popup-section p:last-child {
    margin-bottom: 0;
}

.popup-section strong {
    color: #0079a8;
}

.popup-section a {
    color: #0079a8;
    text-decoration: none;
    font-weight: 600;
}

.popup-section a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tweaks for homepage hero to prevent overflow and dot overlap */
@media (max-width: 900px) {
	#bvn {
		padding: 18px 8px 84px;
		font-size: 18px;
		z-index: 1;
		overflow-wrap: break-word;
		word-break: break-word;
	}

	#bvn h1, #bvn h2 {
		font-size: clamp(1.6rem, 5.2vw, 2.2rem);
		line-height: 1.06;
		margin: 0 4px 8px;
	}

	#bvn p {
		font-size: clamp(0.98rem, 3.6vw, 1.05rem);
		margin: 0 6px 10px;
		overflow-wrap: break-word;
	}

	#bvn::after {
		bottom: -28px;
		height: 70px;
		width: 140vw;
	}

	#bvn .dot {
		width: 28px;
		height: 28px;
		pointer-events: none;
		opacity: 0.9;
	}
	#bvn .d3, #bvn .d4 { display: none; }
}

@media (max-width: 600px) {
	html, body { font-size: 13px; }

	#bvn {
		padding: 14px 6px 64px;
		font-size: 16px;
	}

	#bvn h1, #bvn h2 {
		font-size: clamp(1.3rem, 6.8vw, 1.8rem);
	}

	#bvn p { font-size: clamp(0.92rem, 4.2vw, 1rem); }

	#bvn::after {
		bottom: -20px;
		height: 52px;
		width: 160vw;
	}

	#bvn .dot { width: 20px; height: 20px; }
	#bvn .d1 { display: inline-block; }
	#bvn .d2, #bvn .d3, #bvn .d4 { display: none; }
}