/* style.css */
/* ===== DESIGN SYSTEM & VARIABLES ===== */
:root {
  --primary: #1a1c1e;         /* Anthracite très sombre – solidité */
  --accent: #f2994a;          /* Orange sécurité premium – action */
  --accent-hover: #e0893a;    /* Teinte survol */
  --white: #ffffff;
  --light-gray: #f4f5f7;      /* Gris béton clair */
  --text-light: #e0e0e0;
  --text-dark: #2c2c2c;
  --font: 'Montserrat', sans-serif;
  --transition: 0.3s ease-in-out;
  --border-radius: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --glass-bg: rgba(26, 28, 30, 0.75);
  --glass-blur: blur(12px);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* 16px par défaut */
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Conteneur centré */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 0.9em 2.2em;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  border-radius: 50px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 153, 74, 0.4);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ===== TITRES DE SECTION ===== */
.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  letter-spacing: 2px;
  color: var(--primary);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ===== ANIMATIONS D'APPARITION AU SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER (NAVIGATION) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
/* Effet glassmorphique au scroll */
.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--white);
}
.nav__logo .accent {
  color: var(--accent);
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav__link:hover {
  color: var(--accent);
}
.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  display: none; /* caché sur mobile */
}

/* Bouton burger */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.nav__burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}
/* Transformation en croix */
.nav.open .nav__burger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav.open .nav__burger span:nth-child(2) {
  opacity: 0;
}
.nav.open .nav__burger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu mobile plein écran */
@media (max-width: 991px) {
  .nav__list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
  }
  .nav__cta {
    display: none; /* rester caché */
  }
  .nav.open .nav__list {
    transform: translateY(0);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(135deg, #0f1113 0%, #1a1c1e 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(242,153,74,0.08), transparent 60%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  text-align: center;
  color: var(--white);
  z-index: 2;
}
.hero__title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.1;
  margin-bottom: 1rem;
  /* Les spans seront animés via JS/CSS */
}
.hero__title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Lorsque le titre reçoit la classe .revealed */
.hero__title.revealed .letter {
  opacity: 1;
  transform: translateY(0);
}
/* Retard inline ajouté par JS */

.hero__subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.8s forwards;
}
.hero__buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
/* Forcer les boutons à partir de translateY(20px) */
.hero__subtitle,
.hero__buttons {
  transform: translateY(20px);
}

/* ===== SECTION ABOUT / COMPTEURS ===== */
.about {
  padding: 6rem 0;
  background: var(--white);
  text-align: center;
}
.about__text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #555;
}

.counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== POURQUOI NOUS CHOISIR ===== */
.why-us {
  padding: 6rem 0;
  background: var(--white);
}
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.why-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  border: 2px solid transparent;
}
.why-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.why-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary);
}
.why-card__text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}
.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(242,153,74,0.15);
  border-color: var(--accent);
}

/* ===== SÉLECTEUR DE LANGUE ===== */
.language-selector {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.language-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.language-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(242,153,74,0.4);
}
.language-menu {
  position: absolute;
  bottom: 65px;
  right: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
  min-width: 150px;
}
.language-menu.active {
  display: flex;
}
.lang-option {
  padding: 0.8rem 1.2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s, color 0.3s;
  font-family: var(--font);
  font-weight: 600;
  color: var(--primary);
}
.lang-option:hover {
  background: var(--light-gray);
  color: var(--accent);
}
.lang-option.active {
  background: var(--accent);
  color: var(--white);
}
.counter {
  background: var(--light-gray);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  min-width: 180px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.counter:hover {
  transform: translateY(-5px);
}
.counter__number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.counter__suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  vertical-align: super;
}
.counter__label {
  font-size: 0.95rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* ===== SERVICES ===== */
.services {
  padding: 6rem 0;
  background: var(--light-gray);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  border: 2px solid transparent;
}
.service-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.service-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}
.service-card__text {
  color: #666;
  font-size: 0.95rem;
}
/* Effet hover : élévation + bordure lumineuse */
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(242,153,74,0.2);
  border-color: var(--accent);
}

/* ===== PORTFOLIO / RÉALISATIONS ===== */
.portfolio {
  padding: 6rem 0;
  background: var(--white);
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.project-card__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s;
}
.project-card:hover .project-card__img {
  transform: scale(1.1);
}
.project-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26,28,30,0.9));
  color: var(--white);
  padding: 1.5rem;
  transform: translateY(20%);
  transition: transform 0.4s;
}
.project-card:hover .project-card__info {
  transform: translateY(0);
}
.project-card__title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.project-card__cat {
  font-size: 0.9rem;
  opacity: 0.8;
}
.portfolio__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.catalogue {
  padding: 6rem 0;
  background: var(--light-gray);
}
.catalogue__note {
  margin-bottom: 2rem;
  color: #555;
  font-size: 1rem;
}
.catalogue-category {
  margin-top: 3rem;
}
.catalogue-category__title {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
}
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.catalogue-item {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.catalogue-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.catalogue-item__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s;
}
.catalogue-item:hover .catalogue-item__img {
  transform: scale(1.05);
}
.catalogue-item__meta {
  padding: 1.2rem 1rem 1.5rem;
}
.catalogue-item__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.catalogue-item__tag {
  color: #777;
  font-size: 0.9rem;
}

/* ===== ÉTUDE ARCHITECTURALE ===== */
.etude {
  padding: 6rem 0;
  background: var(--light-gray);
}
.etude__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.etude__image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.etude__content p {
  margin-bottom: 2rem;
  color: #555;
}

/* ===== CONTACT ===== */
.contact {
  padding: 6rem 0;
  background: var(--white);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact__form .form-group {
  margin-bottom: 1.5rem;
}
.contact__form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.9em 1em;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: var(--font);
  transition: border-color var(--transition);
  background: var(--light-gray);
}
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.contact__info {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
}
.contact__info h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}
.contact__socials {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.social-link:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ===== WEBMASTER PROFILE ===== */
.webmaster {
  padding: 6rem 0;
  background: var(--white);
}
.webmaster-profile {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}
.webmaster-photo {
  width: 100%;
  height: 340px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f5f7, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-weight: 700;
  box-shadow: var(--shadow);
  border: 2px dashed rgba(0,0,0,0.06);
  overflow: hidden;
}
.webmaster-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-text {
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #666;
}
.webmaster-meta .meta-date {
  color: #888;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.4rem;
}
.webmaster-name {
  font-size: 1.6rem;
  margin: 0.2rem 0 0.6rem 0;
  color: var(--primary);
}
.meta-role {
  display: inline-block;
  background: var(--light-gray);
  color: var(--primary);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-top: 0.4rem;
  font-weight: 700;
}
.webmaster-bio p {
  margin-bottom: 1rem;
  color: #444;
  line-height: 1.7;
}
.webmaster-bio a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 767px) {
  .webmaster-profile {
    grid-template-columns: 1fr;
  }
  .webmaster-photo {
    height: 260px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 4rem 0 1rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__col h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer__col ul li {
  margin-bottom: 0.5rem;
}
.footer__col a {
  transition: color var(--transition);
}
.footer__col a:hover {
  color: var(--accent);
}
.footer__copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== RESPONSIVE (Mobile-First déjà en place, ajustements desktop) ===== */
/* Tablette et + */
@media (min-width: 768px) {
  .nav__cta {
    display: inline-block; /* affiche le CTA dans la barre */
    padding: 0.7em 1.8em;
    font-size: 0.8rem;
  }
  .nav__burger {
    display: none; /* cache le burger */
  }
  /* Assure l'affichage horizontal de la liste */
  .nav__list {
    position: static;
    transform: none;
    flex-direction: row;
    height: auto;
    background: none;
    width: auto;
    gap: 2rem;
  }
}

/* Grand écran */
@media (min-width: 1200px) {
  .hero__title {
    letter-spacing: 0.3em;
  }
}

/* Ajustement mobile pour la grille étude */
@media (max-width: 767px) {
  .etude__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .hero__buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .counters {
    flex-direction: column;
    align-items: center;
  }
  .language-selector {
    bottom: 20px;
    right: 20px;
  }
  .language-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}




