/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700&display=swap');

:root{
   --main-color:#0056b3;
   --red:#e74c3c;
   --orange:#f39c12;
   --light-color:#888;
   --light-bg:#eee;
   --black:#2c3e50;
   --white:#fff;
   --border:.1rem solid rgba(0,0,0,.2);
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
}

header {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 0px;
    position: sticky;
    top: 50px;
    z-index: 1000;
    margin: 20px;
	border-style: solid;
    border-width: 0px 0px 2px 0px;
    border-color: var(--light-bg);
	
}

nav img {
    height: 160px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
	font-size: 1.25rem;
}

nav ul li a:hover {
    background-color: var(--main-color);
    color: #ffffff;
    text-decoration: underline;
}

main {
    margin: 20px;
	padding-top: 40px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.5rem;
    margin: 0 0 1.5rem;
}

h2, h3 {
    font-weight: 700;
    margin: 0 0 1.5rem;
}

h2 {
    font-size: 1.75rem;
    line-height: 2.25rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 2rem;
}

h4 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.75rem;
    margin: 0 0 1.5rem;
}

h5 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.75rem;
    margin: 0 0 1.5rem;
}

h6 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5rem;
    margin: 0 0 1.5rem;
}

p {
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 0 0 1.5rem;
}


.container {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            padding: 20px;
        }
        .card {
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            width: 300px;
            text-align: center;
            padding: 20px;
            transition: transform 0.3s;
            text-decoration: none;
            color: inherit;
        }
        .card:hover {
            transform: translateY(-10px);
			text-decoration: none;
        }
        .card i {
            font-size: 4rem;
            color: var(--main-color);
            margin-bottom: 20px;
        }
        .card h3 {
            font-size: 1.5rem;
            margin: 0;
        }
        .card p {
            font-size: 1rem;
            color: #666;
        }

.photo-container {
            width: 100%; /* Prend toute la largeur du main */
            overflow: hidden;
        }
        .photo-container img {
            width: 100%;
            height: 300px; /* Ajuste automatiquement la hauteur */
            object-fit: cover; /* Empêche l'étirement de l'image */
			    border-radius: 15px;
        }


main h1, h2, h3 {
	text-align: center;
}

.mot-dga{
	padding: 5em;
	background-color: var(--light-bg);
	border-radius: 15px;
}


/* Styles par défaut pour les liens de navigation et le bouton hamburger */
.nav-links {
    display: flex;
    gap: 20px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Styles pour les écrans de taille moyenne */
@media (max-width: 1300px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 50%;
        top: 50%;
        transform: translateY(-50%);
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: sticky; /* Assurez-vous que la position est toujours sticky */
        top: 50px;
        z-index: 1000; /* Assurez-vous que le z-index est suffisamment élevé */
    }

    nav ul {
        width: 100%;
    }

    nav ul li a {
        padding: 5px 10px;
    }
}

@media (max-width: 450px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: sticky; /* Assurez-vous que la position est toujours sticky */
        top: 50px;
        z-index: 1000; /* Assurez-vous que le z-index est suffisamment élevé */
    }

    a:first-child {
        width: 100%;
    }

    .logo-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .hamburger {
        position: absolute;
        right: 20px;
        top: 80px !important;
	}

    #phone-status-widget {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
        order: 2;
    }

    #phone-status-widget a {
        width: auto;
    }

    .nav-links {
        display: none;
    }
}








/* Styles pour le menu plein écran */
.nav-links.fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 4000;
}

.nav-links.fullscreen li {
    margin: 20px 0;
}

.close-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    z-index: 4001; /* Assurez-vous que c'est au-dessus du menu */
}

.nav-links.active ~ .close-menu {
    display: block;
}
/* Afficher le bouton "Fermer" lorsque le menu est actif */
.nav-links.active ~ .close-menu {
    display: block;
	z-index: 4001;
}

.hidden {
    display: none;
}





main a {
    color: var(--main-color);
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

main a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--main-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.2s ease;
}

main a:hover {
    text-decoration: none;
}

main a:hover:before {
    visibility: visible;
    transform: scaleX(1);
}





   /* === Loader === */
    #loader-wrapper {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: white;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.5s ease, visibility 0.5s;
    }

    .loader {
      position: relative;
      width: 100px;
      height: 50px;
    }

    .dot {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      position: absolute;
      top: 10px;
      animation-timing-function: ease-in-out;
    }

    .blue {
      background-color: #0056b3;
      left: 0;
      animation: moveLeft 1s infinite alternate;
    }

    .red {
      background-color: #e74c3c;
      right: 0;
      animation: moveRight 1s infinite alternate;
    }

    @keyframes moveLeft {
      0%   { transform: translateX(0); }
      100% { transform: translateX(40px); }
    }

    @keyframes moveRight {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-40px); }
    }

    .text {
      position: absolute;
      top: 70px;
      width: 100%;
      text-align: center;
      font-size: 1.1em;
      color: #0056b3;
      font-weight: bold;
    }

    /* Masquer le loader une fois chargé */
    #loader-wrapper.loaded {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
		 
		 
		 .logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center; /* centre horizontalement */
  margin-top: 40px; /* espace en haut si nécessaire */
}

		 .logo-container {
  width: 160px;
  height: 160px;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

/* Position du bloc de rectangles (26.6% du conteneur) */
.logo-bars {
  position: absolute;
  top: calc(160px * 0.266);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: calc(160px * 0.025); /* petit espace entre rectangles */
}

.bar {
  width: calc(160px * 0.202);
  height: calc(160px * 0.12);
}

.bar-blanche {
  width: calc(160px * 0.202 + 2px); /* +2px par rapport aux autres */
  background-color: white;
}


.bar-bleue   { background-color: #002497; }

.bar-rouge   { background-color: #ec2839; }

/* Variante noire (à activer via JS) */
.variant-black .bar {
  background-color: black !important;
}
		 
		 .variant-black .bar-blanche {
  background-color: white !important;
}

.logo-texte {
 position: absolute;
  top: calc(160px * (0.266 + 0.12 + 0.068));
  width: 100%;
  font-size: calc(160px * 0.102); /* ~10.2% au lieu de 8.9% */
  line-height: 1.1;
	color: black !important;
	font-family: 'Nunito';
}


	
.container-etab {
  display: flex;
  flex-wrap: wrap;
}

.col-65 {
  flex: 1;
  min-width: 0; /* ← plus safe en responsive */
  padding: 1rem;
  background-color: transparent;
}

.col-35 {
  width: 500px;
  max-width: 100%; /* ← empêche de dépasser l'écran */
  flex-shrink: 1; /* ← autorise le rétrécissement */
  padding: 1rem;
  background-color: var(--light-bg);
  border-radius: 15px;
}

@media (max-width: 1100px) {
  .container-etab {
    flex-direction: column;
  }

    .col-65 {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .col-35 {
  width: 100%;
  min-width: 0;
  margin-right: 20px;
  box-sizing: border-box;
}


}


.col-35 h3 {
  color: #fff;
  background-color: var(--main-color);
  margin: 10px;
  border-radius: 10px;
}


.bandeau {
    background-color: #ba3d9d;  /* normal : var(--main-color) */
    color: #fff;
    text-align: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1001;
	height: 50px;
}

.bandeau p {
    margin: 0;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}


.bandeau a {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.bandeau a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.2s ease;
}

.bandeau a:hover {
    text-decoration: none;
}

.bandeau a:hover:before {
    visibility: visible;
    transform: scaleX(1);
}


.etab h2{
	text-align: center;
    font-size: 2rem;
    margin: 50px 0 20px;
    color: var(--main-color);
    position: relative;
    font-weight: bold;
}

.etab h2:after{
	content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--main-color);
    margin: 5px auto 0;
	border-radius: 50px;
}


.bulle-etab{
	position: absolute;
    top: 12px;
    left: 12px;
    background: var(--main-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 5px;
    z-index: 10;
}


@media (max-width: 768px) {

	.mot-dga{
		padding: 2em;
}
}

/* Styles pour le formulaire de contact */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Nunito', sans-serif;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--black);
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: var(--border);
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    background-color: var(--main-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

form button:hover {
    background-color: #003d7a;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}

	
	
	.success-message {
    text-align: center;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 5px;
    margin: 20px auto;
    max-width: 600px;
    font-family: 'Nunito', sans-serif;
}

	
.error-message{
text-align: center;
    padding: 20px;
    background-color: #edd4d4;
    color: #a10e0e;
    border-radius: 5px;
    margin: 20px auto;
    max-width: 600px;
    font-family: 'Nunito', sans-serif;
}

	
	
