/* ===================================================
   UnBonGraphiste.com — Feuille de styles principale
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navigation --- */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f0f0f;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.nav-logo {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.nav-logo span { color: #8691a0; }

.nav-links {
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  color: #bbb;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: #8691a0; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Héros --- */
.hero {
  background: #0f0f0f;
  color: #fff;
  padding: 6rem 2rem 5rem;
  text-align: center;
}
.hero-eyebrow {
  font-size: .78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8691a0;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1.4rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { color: #8691a0; font-style: normal; }
.hero .hero-sub {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.btn-primary { background: #8691a0; color: #fff; border-color: #8691a0; }
.btn-primary:hover { background: #434649; border-color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: #0f0f0f; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
}
.btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,.4);
}
.btn-phone {
  background: #8691a0;
  color: #fff;
  border-color: #8691a0;
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
  border-radius: 50px;
}
.btn-phone:hover { background: #434649; border-color: #434649; transform: translateY(-2px); }

/* --- Statistiques --- */
.stats-bar {
  background: #0f0f0f;
  padding: 4rem 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.stat-item .stat-num {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 900;
  color: #8691a0;
  line-height: 1;
  display: block;
}
.stat-item .stat-label {
  font-size: .9rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: .5rem;
  display: block;
}

/* --- Sections générales --- */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8691a0;
  font-weight: 700;
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: #0f0f0f;
  margin-bottom: 1.4rem;
}
.section-text {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.85;
  max-width: 740px;
}
.section-text + .section-text { margin-top: 1rem; }

.bg-light { background: #F8F8F8; }

/* --- Tagline bande --- */
.tagline-band {
  background: #8691a0;
  color: #fff;
  padding: 4.5rem 2rem;
  text-align: center;
}
.tagline-band h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
}
.tagline-band p {
  font-size: 1.05rem;
  max-width: 820px;
  margin: 0 auto;
  opacity: .93;
  line-height: 1.85;
}

/* --- Image mise en valeur --- */
.feature-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  margin-top: 2rem;
}
.feature-img-wrap img { width: 100%; }

/* --- CTA centré --- */
.cta-center { text-align: center; }
.cta-center .section-text { margin: 0 auto 2rem; }

/* --- Formulaire --- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.span-2 { grid-column: 1 / -1; }
.form-group label {
  font-size: .8rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .85rem 1rem;
  border: 2px solid #e2e2e2;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #8691a0; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { margin-top: 2rem; text-align: center; }

/* --- Notice --- */
.form-notice {
  font-size: .88rem;
  color: #888;
  margin-top: .75rem;
  text-align: center;
  font-style: italic;
}

/* --- Galerie --- */
.gallery-chapter { margin-bottom: 4rem; }
.gallery-chapter-header { margin-bottom: 1.8rem; }
.gallery-chapter-header .chapter-tag {
  font-size: .72rem;
  color: #8691a0;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: .4rem;
}
.gallery-chapter-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #0f0f0f;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 7px;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.025);
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.gallery-grid.wide img { height: 300px; }

/* --- Lightbox --- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 92%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
  height: auto;
}
#lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}
#lightbox-close:hover { opacity: 1; }

/* --- Pied de page --- */
footer {
  background: #0f0f0f;
  color: #666;
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: .88rem;
}
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #25D366;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1rem;
  transition: opacity .2s;
}
.footer-wa:hover { opacity: .8; }
.footer-wa svg { width: 20px; height: 20px; fill: #25D366; flex-shrink: 0; }

/* --- Page Contact spécifique --- */
.contact-intro {
  background: #0f0f0f;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}
.contact-intro h2 { color: #fff; font-size: 1.9rem; margin-bottom: .8rem; }
.contact-intro p { color: #aaa; font-size: 1.05rem; max-width: 600px; margin: 0 auto 2rem; line-height: 1.8; }
.contact-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.calendly-section h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f0f0f;
  margin-bottom: .5rem;
}
.calendly-section p { color: #666; margin-bottom: 1.5rem; font-size: 1rem; }

/* --- Page Recrutement --- */
.cv-block {
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
}
.cv-block h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #8691a0;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cv-block p { color: #444; font-size: 1rem; line-height: 1.8; }

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #0f0f0f;
  color: #8691a0;
  padding: .6rem 1.4rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 700;
  margin-top: 1.5rem;
}

/* --- FAQ Accordéon --- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 2px solid #f0f0f0; }
.faq-item:first-child { border-top: 2px solid #f0f0f0; }
.faq-item summary {
  padding: 1.4rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f0f0f;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: #8691a0;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] > summary { color: #8691a0; }
.faq-item[open] > summary::after { content: '\2212'; }
.faq-answer {
  padding: 0 0 1.5rem;
  color: #444;
  font-size: 1rem;
  line-height: 1.85;
  max-width: 700px;
}
.faq-answer strong { color: #0f0f0f; }
.faq-answer a { color: #8691a0; text-decoration: underline; }

/* --- Mentions légales prose --- */
.legal-section { margin-bottom: 3.5rem; }
.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #8691a0;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}
.legal-section p { color: #444; font-size: 1rem; line-height: 1.85; margin-bottom: .8rem; }
.legal-section ul { list-style: disc; padding-left: 1.5rem; color: #444; font-size: 1rem; line-height: 1.85; }
.legal-section ul li { margin-bottom: .4rem; }

/* --- Footer lien mentions légales --- */
.footer-legal {
  display: block;
  color: #555;
  font-size: .8rem;
  margin-top: .6rem;
  text-decoration: underline;
  transition: color .2s;
}
.footer-legal:hover { color: #8691a0; }

/* --- Divider --- */
.divider {
  border: none;
  border-top: 2px solid #f0f0f0;
  margin: 3.5rem 0;
}

/* --- Page intro box --- */
.page-intro {
  background: #F8F8F8;
  border-left: 4px solid #8691a0;
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 3rem;
}
.page-intro p { font-size: 1.05rem; color: #444; line-height: 1.8; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: relative;
  margin-left: 1.2rem;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: .32rem;
  background: transparent;
  border: 1px solid #333;
  color: #999;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .6px;
  padding: .3rem .65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: inherit;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.lang-btn:hover,
.lang-switcher.open .lang-btn {
  border-color: #8691a0;
  color: #fff;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  padding: .4rem 0;
  min-width: 148px;
  z-index: 9999;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  list-style: none;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-dropdown li a {
  display: block;
  padding: .44rem .9rem;
  color: #bbb;
  font-size: .82rem;
  white-space: nowrap;
  transition: background .15s, color .15s;
  text-decoration: none;
  line-height: 1.4;
}
.lang-dropdown li a:hover { background: #252525; color: #fff; }
.lang-dropdown li a.lang-active { color: #8691a0; font-weight: 700; }

/* ===== RTL — Arabic uniquement =====
   Avec dir="rtl", direction:rtl est hérité par tous les enfants.
   Dans un conteneur flex + direction:rtl, flex-direction:row coule
   naturellement de droite à gauche — PAS besoin de row-reverse.
   row-reverse annulerait le RTL et remettrait en ordre LTR.
   ===================================================== */

/* Navigation : direction:rtl suffit — logo à droite, liens au centre, hamburger à gauche */
[dir="rtl"] nav { direction: rtl; }
[dir="rtl"] .lang-switcher { margin-left: 0; margin-right: 1.2rem; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

/* Base */
[dir="rtl"] body { direction: rtl; text-align: right; }

/* Sections hero & bandes */
[dir="rtl"] .hero { direction: rtl; }
[dir="rtl"] .hero-btns { flex-direction: row-reverse; }
[dir="rtl"] .tagline-band { direction: rtl; }
[dir="rtl"] .contact-intro { direction: rtl; }
[dir="rtl"] .contact-intro p { text-align: right; }

/* Encadré intro page */
[dir="rtl"] .page-intro { border-left: none; border-right: 4px solid #8691a0; border-radius: 8px 0 0 8px; }
[dir="rtl"] .page-intro p { text-align: right; direction: rtl; }

/* Étiquettes et titres de section */
[dir="rtl"] .section-label { text-align: right; display: block; }
[dir="rtl"] .section-title { text-align: right; }
[dir="rtl"] .section-text { text-align: right; }

/* Services */
[dir="rtl"] .service-card { text-align: right; direction: rtl; }

/* Blocs CV / recrutement */
[dir="rtl"] .cv-block { text-align: right; direction: rtl; }
[dir="rtl"] .cv-block p { text-align: right; direction: rtl; }
[dir="rtl"] .cv-block h3 { text-align: right; }
[dir="rtl"] .badge-ai { direction: rtl; }

/* FAQ */
[dir="rtl"] .faq-item summary { flex-direction: row-reverse; }
[dir="rtl"] .faq-item p { text-align: right; direction: rtl; }
[dir="rtl"] .faq-answer { text-align: right; direction: rtl; }

/* Mentions légales */
[dir="rtl"] .legal-section p { text-align: right; }
[dir="rtl"] .legal-section ul { padding-left: 0; padding-right: 1.5rem; text-align: right; }
[dir="rtl"] .legal-section li { text-align: right; }

/* Galerie */
[dir="rtl"] .gallery-chapter-header { text-align: right; direction: rtl; }
[dir="rtl"] .gallery-chapter-header h2 { text-align: right; }

/* Formulaire */
[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea { text-align: right; direction: rtl; }

/* Calendly */
[dir="rtl"] .calendly-section h2 { text-align: right; }
[dir="rtl"] .calendly-section p { text-align: right; }

/* Pied de page */
[dir="rtl"] footer { direction: rtl; }
[dir="rtl"] .footer-wa { flex-direction: row-reverse; }

/* Mobile — menu déroulant RTL */
@media (max-width: 768px) {
  [dir="rtl"] .nav-links { text-align: right; direction: rtl; }
  [dir="rtl"] .nav-links a { text-align: right; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #0f0f0f;
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid #222;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: .95rem; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: 1; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .gallery-grid img { height: 180px; }

  .hero { padding: 4rem 1.5rem; }
  section { padding: 3.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
