/* ====== Style général ====== */
:root {
  --primary: #004b6b;
  --primary-light: #0a6f98;
  --bg: #f4f5f7;
  --text: #1f2933;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
}


/* Base (desktop) */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;

  background-image: url("images/fond.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed; /* OK desktop, pose problème sur iOS */
}

/* iOS & mobiles : on repasse en scroll */
@media (max-width: 768px), (pointer: coarse) {
  body {
    background-attachment: scroll;
  }
}

/* Petit plus pour couvrir tout l’écran sur mobile */
html, body { min-height: 100svh; }

/* Le contenu principal occupe l’espace restant */
main { flex: 1; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}



/* Superposition sombre transparente */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* 0.45 = luminosité réduite de ~45% */
  z-index: -1;
}



/* ====== Header / Nav ====== */
.site-header {
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  color: #6b7280;
}

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

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: 0.15s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(0,75,107,0.11);
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  border-radius: 9999px;
  padding: 0.45rem 1rem;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ====== Layout ====== */
.container {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.hero {
  background-color: rgba(255, 255, 255, 0.70);
  /*background: linear-gradient(135deg, white 0%, #e8f3f8 100%);*/
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-text {
  flex: 1 1 260px;
}

.hero-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 .4rem;
  color: #002a3d;
}

.hero-sub {
  color: #51606f;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0,75,107,0.1);
  color: #003349;
  border-radius: 9999px;
  padding: 0.25rem .65rem;
  font-size: .7rem;
  margin-bottom: 0.7rem;
}

.btn {
  display: inline-flex;
  background: var(--primary);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background: rgba(0,75,107,0.1);
  color: var(--primary);
  margin-left: .5rem;
  color:white;
}

.btn-secondary:hover {
	text-decoration: underline;
  text-decoration-color: #9693F6;
color:#9693F6;  
  
}
.btn:hover {
	text-decoration: underline;
  text-decoration-color: #9693F6;
color:#9693F6;  
  
}

/* ====== Cards & sections ====== */
.section-title {
  font-size: 1.1rem;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.card {
  background: transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

/* ====== Formulaire ====== */

.page-contact .container { max-width: 1280px; }  /* ajuste 1100 → 1280 */
.form-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: .3rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: .55rem .6rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: .95rem;
  transition: 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,75,107,0.15);
}

.alert {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: .6rem .8rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.success {
  background: #dcfce7;
  border-left: 4px solid #22c55e;
  padding: .6rem .8rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* ====== Live ====== */
.live-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #000;
}

.live-wrapper iframe,
.live-wrapper video {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
}
/* Uniformiser tous les champs de saisie */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  transition: 0.15s ease;
  font-family: inherit;
  background-color: #fff;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,75,107,0.15);
}

input[type="text"]:invalid,
input[type="email"]:invalid,
input[type="tel"]:invalid,
textarea:invalid {
  border-color: #ef4444;
}

input[type="text"]:valid,
input[type="email"]:valid,
input[type="tel"]:valid,
textarea:valid {
  border-color: #22c55e;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}




.footer-logo {
  position: absolute;
  right: 0;
  top: 90%;
  transform: translateY(-90%);
  height: 80px;
}

/* ====== Footer ====== */
.site-footer {
  text-align: center;
  padding: 1.1rem;
  color: #ffffff;
  text-decoration: none; /* optionnel */
  font-size: .8rem;
}

/* --- Footer plus lisible --- */
.site-footer {

  font-size: 0.9rem;

}
.site-footer a:hover {
  color: #e5e7eb; /* blanc légèrement grisé au survol */
}
.site-footer a {
  color: #ffffff; /* blanc légèrement grisé au survol */
}
/* Footer collé en bas, garde tes styles et ajoute juste ceci */
.site-footer { margin-top: auto; }

/* ====== Responsive ====== */
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    right: 1rem;
    top: 3.4rem;
    background: white;
    padding: .5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    min-width: 180px;
  }
  .nav-links.show {
    display: flex;
  }
  .burger {
    display: block;
  }
  .hero {
    flex-direction: column;
  }
}

.nav-links i {
  margin-right: 6px;
  color: var(--primary);
}
.nav-cta i {
  color: white;
}

small {
  font-size: 0.8rem;
  display: block;
  margin-top: 3px;
}
input:invalid, textarea:invalid {
  border-color: #ef4444;
}
input:valid, textarea:valid {
  border-color: #22c55e;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card, .hero {
  background-color: rgba(255, 255, 255, 0.88); /* léger fond blanc translucide */
  backdrop-filter: blur(6px);
}


/* --- Sections du contenu (plus transparentes) --- */
.card,
.hero {
  background-color: rgba(255, 255, 255, 0.50); /* 0.75 = plus transparent */
  backdrop-filter: blur(8px); /* effet “verre dépoli” léger */
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


/* ====== Section 5 piliers ====== */
.pillars-section {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  /*background: url("images/amo-piliers-hero.webp") center/cover no-repeat;*/
  margin: 1.5rem auto;
}

/* overlay sombre pour lisibilité du texte */
.pillars-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0.45));
}

/* contenu */
.pillars-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}

.pillars-kicker {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  letter-spacing: .02em;
}

.pillars-title {
  margin: .25rem 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #f6d469; /* doré doux proche de ta capture */
  line-height: 1.15;
}

.pillars-divider {
  display: inline-block;
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
}

/* grille des piliers */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(1rem, 2.5vw, 2rem);
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}

.pillar-circle {
  width: clamp(120px, 12vw, 170px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px dotted rgba(255,255,255,0.9);
  /* halo doré semi-opaque pour rappeler la capture */
  background: radial-gradient(60% 60% at 50% 50%, rgba(246,212,105,0.25), rgba(0,0,0,0.15));
  backdrop-filter: blur(2px);
}

.pillar-name {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.pillar-sub {
  color: #f6d469;
  font-size: .95rem;
}

/* responsive */
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .pillars-grid { grid-template-columns: 1fr; }
}
/* Activer l'icon font Flaticon */
[class^="flaticon-"], [class*=" flaticon-"] {
  font-family: "Flaticon" !important;
  font-style: normal;
  font-weight: normal;
  speak: never;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  color: #fff; /* couleur des icônes */
}

/* 1) Centrer précisément le contenu du cercle */
.pillar-circle {
  display: grid;            /* plus robuste que flex avec les icon-fonts */
  place-items: center;      /* centre H + V */
}

/* 2) Normaliser l'icône et son ::before (FA/Flaticon) */
.pillar-circle i,
.pillar-circle i::before {
  display: inline-block;
  line-height: 1;           /* élimine l'effet "baseline" qui décale */
  vertical-align: middle;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #fff;
  margin: 0;
  padding: 0;
}

/* 3) (Optionnel) micro-correction si une icône particulière paraît 1–2 px décalée */
/* .pillar-circle i { transform: translateY(-1px); } */
/* ======== FIX MOBILE PILLARS ======== */

/* Tablettes & petits écrans */
@media (max-width: 820px) {
  .pillars-content {
    padding: 1.5rem 1rem;
  }
  .pillars-divider { width: 90px; }
  .pillars-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
  }
  .pillar-circle {
    width: 120px;
    border-width: 2px;
  }
  .pillar-circle i,
  .pillar-circle i::before {
    font-size: 2.4rem;
    line-height: 1 !important;
  }
}

/* Téléphones (layout 2 colonnes stable) */
@media (max-width: 640px) {
  .pillars-content {
    padding: 1.25rem 0.9rem;
  }
  .pillars-title {
    font-size: clamp(1.35rem, 6vw, 1.6rem);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)); /* 2 colonnes = plus stable */
    gap: 0.9rem;
  }
  .pillar-circle {
    display: grid;          /* re-affirm centering */
    place-items: center;
    width: 108px;           /* réduit un peu */
    aspect-ratio: 1 / 1;
    border-width: 1.8px;    /* plus fin sur mobile */
    background: radial-gradient(60% 60% at 50% 50%, rgba(246,212,105,0.22), rgba(0,0,0,0.12));
    backdrop-filter: none;   /* gain perf mobile */
  }
  .pillar-circle i,
  .pillar-circle i::before {
    display: inline-block;
    font-size: 2.1rem;      /* taille icône adaptée */
    line-height: 1 !important;
    vertical-align: middle;
    margin: 0;
  }
  .pillar-name {
    font-size: 0.95rem;
  }
  .pillar-sub {
    font-size: 0.85rem;
  }

  /* overlay un peu moins sombre sur mobile pour la lisibilité */
  .pillars-section::before {
    background: linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.35));
  }
}

/* Très petits téléphones (≤360px) : on passe en 1 colonne si nécessaire */
@media (max-width: 360px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .pillar-circle {
    width: 100px;
  }
  .pillar-circle i,
  .pillar-circle i::before {
    font-size: 1.9rem;
  }
}
/* ====== HOTFIX MOBILE PILLARS ====== */

/* Base : on s'assure que tout peut rétrécir sans overflow */
.pillars-grid, .pillar { min-width: 0; }
.pillar-name, .pillar-sub { text-align: center; word-break: keep-all; }

/* ≤ 992px : tablette */
@media (max-width: 992px) {
  .pillars-content { padding: 1.4rem 1rem; }
  .pillars-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
  }
  .pillar-circle { width: 120px; border-width: 2px; }
  .pillar-circle i, .pillar-circle i::before { font-size: 2.3rem; line-height: 1 !important; }
}

/* ≤ 640px : téléphone (layout 2 colonnes solide) */
@media (max-width: 640px) {
  .pillars-section {
    border-radius: 14px;
    margin: 1rem auto;
    background: linear-gradient(135deg,#002a3d,#004b6b); /* fond propre sans image */
  }
  .pillars-section::before {
    background: linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.30)); /* overlay plus léger */
  }
  .pillars-content { padding: 1.1rem 0.9rem; }
  .pillars-title { font-size: clamp(1.25rem, 5.5vw, 1.55rem); margin-top: .2rem; }
  .pillars-divider { width: 80px; height: 3px; }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.85rem;
  }

  .pillar { gap: .45rem; }

  /* Centrage parfait + tailles adaptées */
  .pillar-circle {
    display: grid;
    place-items: center;
    width: 104px;
    aspect-ratio: 1 / 1;
    border: 1.8px dotted rgba(255,255,255,0.9);
    background: radial-gradient(60% 60% at 50% 50%, rgba(246,212,105,0.20), rgba(0,0,0,0.10));
    backdrop-filter: none; /* perfs mobile */
    transform: translateZ(0); /* évite le jitter */
  }
  .pillar-circle i,
  .pillar-circle i::before {
    display: inline-block;
    font-size: 1.95rem;
    line-height: 1 !important;
    vertical-align: middle;
    margin: 0; padding: 0;
    color: #fff;
  }

  .pillar-name { font-size: 0.95rem; }
  .pillar-sub  { font-size: 0.83rem; color: #f6d469; }
}

/* ≤ 360px : très petits écrans → 1 colonne, éléments compacts */
@media (max-width: 360px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .pillar-circle { width: 96px; }
  .pillar-circle i, .pillar-circle i::before { font-size: 1.8rem; }
}

.container--wide { max-width: 1280px; }              /* ou 1400px si tu veux */
.container--full { max-width: none; width: 100%; }   /* plein écran */


/* ====== Accès aux services (AMO) ====== */
.services-section {
  text-align: center;
  margin-top: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(1rem, 2.5vw, 2rem);
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

.service-icon {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  color: #d9b24c; /* doré doux */
}

.service-title {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: white;
  margin: 0;
}

/* Cartouche doré, avec inclinaison légère */
.service-blurb {
  width: 100%;
  transform: skewY(-3deg);
  background: #d9b24c; /* or */
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0; /* on gère le padding sur l'inner pour désincliner */
}

.service-blurb-inner {
  transform: skewY(3deg);
  color: #fff;
  text-align: left;
  padding: 1rem 1.1rem;
  font-size: .95rem;
  line-height: 1.5;
  /* clamp 3 lignes max (comme l’aperçu de ta capture) */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-icon { font-size: 2.4rem; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}
/* Corriger dégradé violet sur mobile dans la section piliers */
@media (max-width: 820px) {
  .pillars-section::before {
    background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0.55));
    backdrop-filter: none;
  }
}
.pillars-section::before {
  mix-blend-mode: normal !important;
}

:root {
    --amo-gold: #f1c232;
    --amo-black: #111111;
    --amo-white: #ffffff;
    --border-light: #e6e6e6;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--amo-white);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(10px);
    transition: background 0.4s, color 0.4s;
}

.bottom-nav a {
    font-family: sans-serif;
    text-decoration: none;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    transition: color 0.3s, transform 0.3s;
}

.bottom-nav a i {
    font-size: 22px;
    margin-bottom: 3px;
    transition: transform 0.3s, color 0.3s;
}

/* Bouton actif */
.bottom-nav a.active {
    color: var(--amo-gold);
    font-weight: 600;
}
.bottom-nav a.active i {
    transform: scale(1.25);
    color: var(--amo-gold);
}

/* Hover */
.bottom-nav a:hover {
    color: var(--amo-gold);
}
.bottom-nav a:hover i {
    transform: scale(1.2);
    color: var(--amo-gold);
}

/* Espace contenu */
body {
    padding-bottom: 90px;
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .bottom-nav {
        background: var(--amo-black);
        border-top: 1px solid #333;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
    }
    .bottom-nav a {
        color: #bbb;
    }
    .bottom-nav a.active {
        color: var(--amo-gold);
    }
}