:root {
  --header-h: 64px;
  --footer-h: 60px; /* ajuste si besoin */
}

/* Reset léger */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hauteur pleine page + layout en colonne pour le footer en bas */
html {
  height: 100%;
}

body {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #1f2933;
  background: #f7fafc;
  line-height: 1.6;
}

/* Le contenu principal prend la place dispo, le footer reste en bas */
main {
  flex: 1;
}

p {
  margin-bottom: 0.8rem;
}

/* Layouts de base */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #374151;
}

.nav a:hover {
  text-decoration: underline;
}

/* Bouton menu burger */
.nav-toggle {
  display: none; /* visible seulement sur mobile */
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

/* les 3 barres */
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  position: relative;
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* animation en croix quand ouvert */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Boutons */
.btn-primary,
.btn-ghost,
.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: #0f766e;
  color: #ffffff;
}

.btn-primary:hover {
  background: #115e57;
}

.btn-ghost {
  border-color: #cbd5f5;
  color: #1f2933;
  background: #ffffff;
}

.btn-ghost:hover {
  background: #e5e7eb;
}

.btn-small {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border-color: #0f766e;
  color: #0f766e;
  background: #ecfdf5;
}

.btn-small:hover {
  background: #d1fae5;
}

/* Hero – image de fond sous tout le contenu */
.hero {
  padding: 3rem 0 3.5rem;
}

.hero-full-bg {
  position: relative;
  background-image: url("../img/hero-bureau.jpg");
  background-size: cover;
  background-position: center 60%;
}

/* Voile clair pour garder un bon contraste texte */
.hero-overlay {
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
}

/* Spécial page d'accueil : on enlève le padding de .hero
   et on le remet sur l'overlay pour éviter la double hauteur */
.hero.hero-full-bg {
  padding: 0;
}

.hero.hero-full-bg .hero-overlay {
  padding: 3rem 0 3.5rem; /* comme avant sur .hero */
}

/* Bloc de contenu dans le hero */
.hero-content {
  max-width: 580px;
}

/* Titre AO Web Studio */
.hero-title {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

/* AO = script, comme dans le logo */
.hero-brand {
  font-family: "Brush Script MT", BrushScriptMT, cursive;
  font-size: clamp(2.8rem, 4vw, 3.2rem);
  letter-spacing: 0.03em;
  color: #0f766e;
}

/* Web Studio = Poppins semi-bold, comme dans le logo */
.hero-brand2 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 3.2vw, 2.6rem);
  color: #0f766e;
}

.hero h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.hero-text {
  color: #4b5563;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-panel {
  background: rgba(248, 250, 252, 0.94); /* blanc très léger, presque opaque */
  border-radius: 1.2rem;
  padding: 1.8rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  max-width: 640px;
}

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

.section-alt {
  background: #ffffff;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 700px;
  color: #4b5563;
  margin-bottom: 1rem;
}

/* Cartes services */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  border: 1px solid #e5e7eb;
}

.card h2 {
  margin-bottom: 0.2rem;
}

.card p {
  color: #4b5563;
  margin-bottom: 0.8rem;
}

.card ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: #4b5563;
}

/* Layout générique 2 colonnes si besoin */
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Contact */
.contact-form {
  max-width: 600px;
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 1px #0f766e22;
}

/* Footer */
.footer {
  border-top: 0.5px solid #e5e7eb;
  padding: 0.5rem 0;
  background: #ffffff;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: #6b7280;
}

/* En-tête de page simple (pages internes) */
.page-header {
  padding: 0.5rem 0 0.75rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header + .section {
  padding-top: 0.5rem;
}

/* Messages d’alerte (contact) */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* Photo portrait */
.about-photo {
  text-align: center;
}

.about-photo img {
  width: 230px;
  max-width: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

/* Mise en page 3 colonnes pour la page À propos */
.about-three-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
}

/* Bulle À propos (gauche) */
.about-card {
  background: #f1f5f9;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  border: 1px solid #e5e7eb;
}

.about-card p + p {
  margin-top: 0.75rem;
}

/* Bulle Ma manière de travailler (droite) */
.about-highlights {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.about-highlights h2 {
  margin-bottom: 0.75rem;
}

.about-highlights ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: #4b5563;
}

/* Responsif */
@media (max-width: 900px) {
  .cards,
  .two-cols,
  .about-three-cols {
    grid-template-columns: 1fr;
  }

  .topbar .container {
    justify-content: space-between;
  }

  .nav {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .about-photo {
    order: -1;
    margin-bottom: 1rem;
  }

  /* hero plus large sur tablette */
  .hero-overlay {
    padding: 2rem 0;
  }

  .hero-panel {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 3rem;
  }

  /* header */
  .topbar .container {
    justify-content: space-between;
  }

  .logo img {
    height: 70px;
  }

  /* bouton burger visible sur mobile */
  .nav-toggle {
    display: block;
  }

  /* menu mobile caché par défaut */
  .nav {
    position: absolute;
    top: 64px; /* hauteur de la topbar */
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.5rem 1rem;
  }

  .nav a {
    padding: 0.4rem 0;
    font-size: 0.98rem;
  }

  /* quand on ouvre le menu en JS, on ajoute .nav--open */
  .nav.nav--open {
    display: flex;
  }

  /* footer */
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  /* cards en colonne */
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Section Services avec image de fond + overlay */
.services-hero,
.contact-hero {
  position: relative;
  background-image: url("../img/hero-bureau.jpg");
  background-size: cover;
  background-position: center 55%;
}

/* Voile léger pour garder du contraste */
.services-hero-overlay,
.contact-hero-overlay {
  background: rgba(248, 250, 252, 0.55);
  padding: 2rem 0 3rem;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: flex;
  align-items: flex-start;
}

/* Spacing spécifique pour la page À propos */
.about-section {
  padding: 2rem 0 2.5rem; /* au lieu de 3.5rem 0 */
}

.footer a,
.footer a:visited {
  color: inherit;
  text-decoration: underline;
}

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

/* Bandeau cookies */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  padding: 0.8rem 0;
  font-size: 0.85rem;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-link {
  color: #e5e7eb;
  text-decoration: underline;
  font-size: 0.8rem;
}

.cookie-link:hover {
  text-decoration: none;
}

/* responsive */
@media (max-width: 700px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
