/*** GENERAL ***/

body {
  margin: 0;
  margin-top: 0rem;
  font-family: Arial, sans-serif;
  background-color: #fff;
}

section[id] {
  scroll-margin-top: 100px;
}

html {
  scroll-behavior: smooth;
}




/***** ANIMATIONS AU SCROLL *****/

/* État initial des sections (invisibles) */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* État visible des sections */
section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variante pour un délai progressif sur les éléments internes */
section.visible > * {
  animation: fadeInUp 0.6s ease-out backwards;
}

section.visible > *:nth-child(1) { animation-delay: 0.1s; }
section.visible > *:nth-child(2) { animation-delay: 0.2s; }
section.visible > *:nth-child(3) { animation-delay: 0.3s; }
section.visible > *:nth-child(4) { animation-delay: 0.4s; }

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

/* Exception : la section hero doit être visible dès le chargement */
.hero {
  opacity: 1;
  transform: translateY(0);
}










/*** HEADER ***/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 20px 2rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Header au scroll - effet glassmorphism */
.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(221, 221, 221, 0.5);
}

/* Espacement pour compenser le header fixe */
body {
  padding-top: 90px;
}

/* Bouton burger - TOUJOURS VISIBLE */
.burger-menu {
  display: block;
  background: none;
  border: none;
  font-size: 28px;
  color: #002b5c;
  cursor: pointer;
  z-index: 1001;
  transition: opacity 0.3s ease;
}

/* Masquer le burger quand le menu est ouvert */
.burger-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Bouton fermer (caché par défaut) */
.close-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #002b5c;
  cursor: pointer;
}

/* NAVIGATION - Menu latéral sur toutes les tailles */
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: #f5f9fc;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 60px 30px 20px;
}

/* Menu ouvert */
.nav.active {
  right: 0;
  padding-top: 100px;
}

/* Afficher le bouton fermer quand le menu est ouvert */
.nav.active .close-menu {
  display: block;
}

.nav ul {
  font-size: 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: #002b5c;
  font-weight: bold;
  transition: color 0.3s ease;
  display: block;
  padding: 10px 0;
}

.nav a:hover {
  color: #00AEEF;
}

/* Overlay sombre derrière le menu */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

body.menu-open::before {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border: 4px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  font-size: 30px;
  font-weight: bold;
  color: #000;
}

.text .main-title {
  font-size: 38px;
  font-weight: bold;
}

.em {
  color: #007FAD;
}

.dev {
  color: #002b5c;
}

.main-title {
  font-size: 38px;
  font-weight: bold;
  margin: 0;
}

.sub-title {
  display: block;
  font-size: 14px;
  color: #000;
  margin-top: 2px;
  font-weight: bold;
}









/**** SECTION PRINCIPALE ****/

/*** HERO ***/
.hero {
  background: linear-gradient(135deg, #00AEEF, #002b5c); 
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 3rem;
}

.hero h3{
  margin-bottom: 2rem;
  color: #fff;
}

.hero span{
  font-size: 30px;
  margin-top: 1rem;
}

.hero p {
  font-size: 20px;
  margin: 18px 0;
  line-height: 1.5rem;
}

/* Boutons */
.hero-buttons {
  margin-top: 4rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 14px 26px;
  border-radius: 12px; 
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.08); /* léger zoom */
}

/* Boutons clairs */
.btn-light{
  background: #fff;
  color: #002b5c;
}

.btn-light:hover {
  background: #002b5c;
  color: #fff;
}

/* Bouton foncé */
.btn-dark {
  background: #002b5c;
  color: #fff;
}

.btn-dark:hover {
  background: #00AEEF;
}







/** Conteneur global **/
.container {
  max-width: 1024px;
  margin: 0 auto;   /* centre le contenu */
  padding: 0 20px;  /* petit espace sur les côtés */
}






/*** SECTION PRÉSENTATION ***/
.présentation {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.présentation h2 {
  font-size: 28px;
  margin-bottom: 30px; 
  color: #002b5c;
  text-align: center;
}

.présentation h3 {
  font-size: 24px;
  margin-top: 50px;
  margin-bottom: 25px;
  color: #00AEEF;
  text-align: center;
}

.présentation .titreweb{
  color: #002b5c;
}


/* Paragraphes d'introduction */
.présentation > div:first-of-type {
  text-align: center;
  margin-bottom: 40px;
}

.présentation > div:first-of-type p {
  font-size: 20px;
  line-height: 1.8;
  margin: 15px 0;
  color: #333;
}

.présentation > div:first-of-type span {
  font-weight: bold;
  color: #00AEEF;
}

/* Grid pour les points "Sans site" et "Avec site" */
.présentation > div:nth-of-type(2),
.présentation > div:nth-of-type(3) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.présentation > div:nth-of-type(2) > div,
.présentation > div:nth-of-type(3) > div {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet hover */
.présentation > div:nth-of-type(2) > div:hover,
.présentation > div:nth-of-type(3) > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,174,239,0.2);
}

/* Style spécifique pour la section "Sans site" (plus sombre) */
.présentation > div:nth-of-type(2) > div {
  /*background: #002b5c;*/
  color: #002b5c;
  border-left: 4px solid #00AEEF;
}

.présentation > div:nth-of-type(3) > div {
  border-left: 4px solid #002b5c;
}


/* Style pour les strong dans la dernière section */
.présentation > div:nth-of-type(3) strong {
  color: #002b5c;
}






/*** SECTION CONFIANCE ***/
.confiance {
  padding: 40px 20px;
  background: #002b5c; /* fond bleu foncé */
  color: #fff;
  border-radius: 15px;
}

.confiance h2 {
  font-size: 28px;
  margin-bottom: 50px;
  color: #fff;
  text-align: center;
}

/* Grid pour les cartes */
.confiance > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cartes individuelles */
.confiance > div > div {
  background: transparent;
  border: 1px solid #00AEEF; /* bordure fine bleu clair */
  border-radius: 15px;
  padding: 30px 25px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.confiance > div > div:hover {
  transform: translateY(-5px);
  border-color: #fff; /* bordure blanche au hover */
  box-shadow: 0 0 45px 4px rgb(255, 255, 255, 0.10);
}

.confiance h3 {
  font-size: 20px;
  color: #00AEEF;
  margin-bottom: 15px;
  font-weight: bold;
}

.confiance p {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  margin: 0;
}












/*** SECTION PRESTATIONS ***/
.prestations {
  padding: 60px 20px;
  text-align: center;
}

.prestations h2 {
  text-align: left;
  font-size: 28px;
  margin-bottom: 40px;
  color: #002b5c;
}

.prestations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.prestation-card {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: #002b5c 1px solid;
  display: flex;
  flex-direction: column;
}

/* Trait coloré en haut de la carte */
.prestation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #00AEEF, #002b5c);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.prestation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 45px 4px rgb(0, 174, 239, 0.10);
}

.prestation-card:hover::before {
  transform: scaleX(1);
}

.prestation-card h3 {
  font-size: 22px;
  color: #002b5c;
  margin-bottom: 10px;
}

/* Icône Font Awesome animée */
.card-icon {
  font-size: 48px;
  color: #00AEEF;
  margin: 15px 0;
  transition: transform 0.3s ease;
  display: inline-block;
}

.card-icon i {
  display: block;
}

.prestation-card:hover .card-icon {
  transform: scale(1.1) rotateY(360deg);
  transition: transform 0.6s ease;
}

.prestation-card .price {
  font-weight: bold;
  color: #002b5c;
  margin-bottom: 15px;
}

.prestation-card p {
  font-size: 16px;
  line-height: 1.5rem;
}

.prestation-card a {
  margin-top: auto;
  align-self: center;
  /*padding-top: 20px;*/
}


/* Boutons card */
.btn-card{
  background: rgba(0, 174, 239, 0.5);
  color: #002b5c;
  transition: all 0.3s ease;
}

.btn-card:hover {
  background: #002b5c;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 43, 92, 0.3);
}









/*** SECTION ACCOMPAGNEMENT ***/
.accompagnement {
  padding: 60px 20px;
  background: #fff;
}

.accompagnement h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #002b5c;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.accompagnement > p {
  font-size: 18px;
  text-align: center;
  color: #007FAD;
  font-weight: bold;
  margin-bottom: 50px;
}

/* Conteneur du processus */
.accompagnement > div {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Ligne verticale centrale */
.accompagnement > div::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 120px; /* Distance depuis le bas */
  width: 3px;
  background: linear-gradient(to bottom, #00AEEF, #002b5c);
}

/* Chaque étape */
.accompagnement > div > div {
  position: relative;
  padding-left: 90px;
  margin-bottom: 40px;
}

/* Numéro dans un cercle */
.accompagnement h3 {
  font-size: 22px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.accompagnement h3 span {
  position: absolute;
  left: 0;
  width: 60px;
  height: 60px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
  z-index: 1;
}

/* Dégradé de couleurs pour chaque numéro ET titre */
.accompagnement > div > div:nth-child(1) h3 {
  color: #00AEEF; /* Bleu le plus clair */
}

.accompagnement > div > div:nth-child(1) h3 span {
  background: #00AEEF;
}

.accompagnement > div > div:nth-child(2) h3 {
  color: #0099D6;
}

.accompagnement > div > div:nth-child(2) h3 span {
  background: #0099D6;
}

.accompagnement > div > div:nth-child(3) h3 {
  color: #0085BD;
}

.accompagnement > div > div:nth-child(3) h3 span {
  background: #0085BD;
}

.accompagnement > div > div:nth-child(4) h3 {
  color: #00629A;
}

.accompagnement > div > div:nth-child(4) h3 span {
  background: #00629A;
}

.accompagnement > div > div:nth-child(5) h3 {
  color: #002b5c; /* Bleu le plus foncé */
}

.accompagnement > div > div:nth-child(5) h3 span {
  background: #002b5c;
}

.accompagnement > div > div p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* Texte final "Simple - Efficace - Transparent" */
.accompagnement > div > span {
  display: block;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #002b5c;
  margin-top: 50px;
  letter-spacing: 2px;
}












/*** SECTION DERNIER PROJET ***/
.last-project {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2/3 projet - 1/3 avis */
  gap: 40px;
  padding: 60px 20px;
  align-items: start;
}

.last-project h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #002b5c;
}

/* Projet */
.project-card {
  background: #f9f9f9;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  padding: 20px;
}

.project-info h3 a{
  color: #007FAD;
  text-decoration: none;
}


/* Avis */
.review-card {
  background: #002b5c;
  color: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.review-card .content{
  font-style: italic;
}
 
.review-card .client {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  font-style: normal;
  text-align: right;
}

.stars {
  color: #00AEEF; /* bleu clair */
  font-size: 20px;
  margin-bottom: 15px;
}














/*** SECTION CONTACT ***/
.contact {
  padding: 60px 20px;
}

.contact h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #002b5c;
}

/* Grid pour formulaire et réseaux */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 1/3 - 2/3 */
  gap: 5rem;
  align-items: start;
}

/* Formulaire */
.form-container h3 {
  margin-bottom: 20px;
  color: #002b5c;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

textarea {
  height: 7rem;
}

.contact-form button {
  font-size: 1.1rem;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #002b5c;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.5s;
}

.contact-form button:hover {
  background-color: #00AEEF;
  color: #002b5c;
}


#closeModal{
  font-size: 1rem;
  padding: 5px;
  background-color: #002b5c;
  color: #fff;
  border: none;
  border-radius: 4px;
}




/* Réseaux sociaux */

.socials h3 {
  margin-bottom: 20px;
  color: #002b5c;
}

.social-icons {
  display: flex;
  flex-direction: column;
  border-top: 40px;
  gap: 40px;
}

.social-icons a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: #002b5c; /* bleu foncé */
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
  margin-left: 3.5rem;
}

.social-icons a:hover {
  transform: scale(1.05);
  color: #00AEEF; /* bleu clair au hover */
}

.social-icons i {
  font-size: 26px;
}






/*** Modale ***/
.modal {
  display: none; 
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}







/*** FOOTER ***/
footer {
  background: linear-gradient(to right, #008ec5, #002f4b);
  border-top:1px solid #ddd;
  padding:20px;
  text-align:center;
  color: white;
}

footer a{
  color: white;
}

.footer-socials {
  margin-bottom: 1rem;
}

.footer-socials a {
  color: white;
  margin: 0 1.2rem;
  font-size: 2.5rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
  color: #002f4b;
  transform: scale(1.1);
}


.PortfolioLink{
  margin-bottom: 1.5rem;
}











/******** VERSION MOBILE ********/

/* VERSION MOBILE */
@media (max-width: 768px) {

  section[id] {
  scroll-margin-top: 50px;
  }


  .header {
    padding: 15px 1rem;
  }

  body {
    padding-top: 70px;
  }

  .nav {
    max-width: 300px;
    padding: 60px 20px 20px;
  }

  .nav ul {
    font-size: 1.3rem;
    gap: 20px;
  }

  /* Adapter la taille du logo */
  .main-title {
    font-size: 28px;
  }

  .sub-title {
    font-size: 12px;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
    border: 3px solid #000;
  }

  .icon {
    font-size: 24px;
  }

  .burger-menu {
    font-size: 24px;
  }

  .close-menu {
    font-size: 24px;
  }
}










/**** LAST PROJECT ***/
@media (max-width: 768px) {

    .last-project {
    grid-template-columns: 1fr; /* une seule colonne */
    gap: 20px; /* espace réduit */
  }

    .contact-grid {
    grid-template-columns: 1fr; /* une seule colonne */
    gap: 2rem;
  }

  .form-container {
    order: 1; /* formulaire en premier */
  }

  .socials {
    order: 2; /* réseaux en dessous */
    text-align: center;
  }

  .socials a{
    margin-left: 6rem;
  }

}




/* Responsive PRESENTATION*/
@media (max-width: 768px) {
  .présentation h2 {
    font-size: 28px;
  }
  
  .présentation h3 {
    font-size: 20px;
  }
  
  .présentation > div:first-of-type p {
    font-size: 18px;
  }
  
  .présentation > div:nth-of-type(2),
  .présentation > div:nth-of-type(3) {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}


/* Responsive CONFIANCE */
@media (max-width: 768px) {
  .confiance {
    padding: 40px 20px;
  }
  
  .confiance h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .confiance > div {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .confiance > div > div {
    padding: 25px 20px;
  }
  
  .confiance h3 {
    font-size: 18px;
  }
}


/* Responsive ACCOMPAGNEMENT */
@media (max-width: 790px) {

  /* Ligne verticale plus proche à gauche sur mobile */
  .accompagnement > div::before {
    /*left: 25px;*/
    bottom: 180px; /* Distance depuis le bas pour mobile */
  }
}

@media (max-width: 768px) {
  .accompagnement h2 {
    font-size: 28px;
  }

  .accompagnement > p {
    font-size: 18px;
  }

  /* Ligne verticale plus proche à gauche sur mobile */
  .accompagnement > div::before {
    left: 25px;
    bottom: 150px; /* Distance depuis le bas pour mobile */
  }

  .accompagnement > div > div {
    padding-left: 75px;
  }

  .accompagnement h3 {
    font-size: 18px;
  }

  .accompagnement h3 span {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .accompagnement > div > span {
    font-size: 18px;
    letter-spacing: 1px;
  }
}

@media (max-width: 640px) {

  /* Ligne verticale plus proche à gauche sur mobile */
  .accompagnement > div::before {
    left: 25px;
    bottom: 196px; /* Distance depuis le bas pour mobile */
  }
}

@media (max-width: 405px) {

  /* Ligne verticale plus proche à gauche sur mobile */
  .accompagnement > div::before {
    left: 25px;
    bottom: 260px; /* Distance depuis le bas pour mobile */
  }
}

@media (max-width: 395px) {

  /* Ligne verticale plus proche à gauche sur mobile */
  .accompagnement > div::before {
    left: 25px;
    bottom: 240px; /* Distance depuis le bas pour mobile */
  }
}

@media (max-width: 361px) {

  /* Ligne verticale plus proche à gauche sur mobile */
  .accompagnement > div::before {
    left: 25px;
    bottom: 280px; /* Distance depuis le bas pour mobile */
  }
}

@media (max-width: 345px) {

  /* Ligne verticale plus proche à gauche sur mobile */
  .accompagnement > div::before {
    left: 25px;
    bottom: 277px; /* Distance depuis le bas pour mobile */
  }
}


