/**
 * FNAIM Région Sud — Charte graphique FNAIM 2024
 * À inclure APRÈS main.css dans toutes les pages HTML
 * Ne pas modifier main.css directement
 *
 * Forme "carafe" FNAIM : coin haut-gauche coupé + coin bas-droit coupé
 * clip-path: polygon(0 3%, 1% 1%, 3% 0, 90% 0, 97% 0, 100% 7%, 100% 97%, 99% 99%, 97% 100%, 10% 100%, 3% 100%, 0 93%)
 */

/* ============================================================
   PALETTE FNAIM 2024
   Jaune principal : #F5C800
   6 complémentaires : orange, beige, corail, bleu, vert, rouge
   ============================================================ */
:root {
  --fnaim-yellow:  #F5C800;
  --fnaim-orange:  #E8855A;
  --fnaim-beige:   #C8A882;
  --fnaim-coral:   #D4696A;
  --fnaim-blue:    #7BAFD4;
  --fnaim-green:   #7EC8A0;

  /* Surcharge variables globales */
  --accent-color:      #F5C800;
  --accent-dark:       #D4A900;
  --background-color:  #ffffff;
  --surface-color:     #F9F9F7;
  --default-color:     #222222;
  --heading-color:     #111111;
  --contrast-color:    #000000;

  /* Navigation */
  --nav-color:                    #333333;
  --nav-hover-color:              #F5C800;
  --nav-mobile-background-color:  #111111;
  --nav-dropdown-background-color:#111111;
  --nav-dropdown-color:           rgba(255,255,255,0.85);
  --nav-dropdown-hover-color:     #F5C800;

  /* Forme carafe FNAIM — coin haut-gauche + coin bas-droit coupés */
  --fnaim-shape:         polygon(0 3%, 1% 1%, 3% 0, 90% 0, 97% 0, 100% 7%, 100% 97%, 99% 99%, 97% 100%, 10% 100%, 3% 100%, 0 93%);
  --fnaim-shape-sm:      polygon(0 4%, 1% 1%, 4% 0, 88% 0, 96% 0, 100% 10%, 100% 96%, 99% 99%, 96% 100%, 12% 100%, 4% 100%, 0 90%);
  --fnaim-shape-outline: polygon(0 3%, 1% 1%, 3% 0, 90% 0, 97% 0, 100% 7%, 100% 97%, 99% 99%, 97% 100%, 10% 100%, 3% 100%, 0 93%);
}

/* ============================================================
   TYPOGRAPHIE — Bold, impact, esprit FNAIM
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.02em;
}

body {
  color: #222222;
  background-color: #ffffff;
}

a {
  color: #111111;
  transition: color 0.2s;
}

a:hover {
  color: #F5C800;
}

/* ============================================================
   HEADER — Fond blanc, bordure jaune bas au scroll
   ============================================================ */
.header {
  background-color: #ffffff;
  box-shadow: 0 1px 0 #eeeeee;
}

.header .header-container {
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 8px 24px;
}

.scrolled .header {
  box-shadow: 0 2px 0 #F5C800;
}

.header .logo img {
  max-height: 40px;
}

/* Nav liens */
.navmenu a,
.navmenu a:focus {
  color: #333333;
  font-weight: 600;
  font-size: 14px;
}

.navmenu li:hover > a,
.navmenu .active,
.navmenu .active:focus {
  color: #F5C800;
}

.navmenu .dropdown ul {
  background: #111111;
  border-radius: 0;
  border-top: 2px solid #F5C800;
}

.navmenu .dropdown ul a {
  color: rgba(255,255,255,0.8);
}

.navmenu .dropdown ul a:hover {
  color: #F5C800;
}

/* ============================================================
   BOUTONS — Forme carafe FNAIM + palette 6 couleurs
   ============================================================ */

/* Bouton primaire — noir */
.btn-primary,
.btn-getstarted,
.service-btn {
  background-color: #111111 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 12px 28px !important;
  border-radius: 0 !important;
  clip-path: var(--fnaim-shape-sm) !important;
  transition: background 0.2s, color 0.2s !important;
}

.btn-primary:hover,
.btn-getstarted:hover,
.service-btn:hover {
  background-color: #F5C800 !important;
  color: #000000 !important;
}

/* Bouton jaune */
.btn-fnaim-yellow {
  background: #F5C800;
  color: #000000;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 28px;
  clip-path: var(--fnaim-shape-sm);
  border: none;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-fnaim-yellow:hover { background: #D4A900; color: #000; }

/* Bouton outline jaune */
.btn-fnaim-outline {
  background: transparent;
  color: #F5C800;
  border: 2px solid #F5C800;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 26px;
  clip-path: var(--fnaim-shape-sm);
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-fnaim-outline:hover { background: #F5C800; color: #000; }

/* Bouton orange */
.btn-fnaim-orange { background: #E8855A; color: #fff; clip-path: var(--fnaim-shape-sm); padding: 10px 22px; font-weight:800; font-size:12px; letter-spacing:1px; text-transform:uppercase; border:none; display:inline-block; text-decoration:none; }
.btn-fnaim-orange:hover { background: #c96a40; color: #fff; }

/* Bouton bleu */
.btn-fnaim-blue { background: #7BAFD4; color: #fff; clip-path: var(--fnaim-shape-sm); padding: 10px 22px; font-weight:800; font-size:12px; letter-spacing:1px; text-transform:uppercase; border:none; display:inline-block; text-decoration:none; }
.btn-fnaim-blue:hover { background: #5490b8; color: #fff; }

/* Bouton vert */
.btn-fnaim-green { background: #7EC8A0; color: #000; clip-path: var(--fnaim-shape-sm); padding: 10px 22px; font-weight:800; font-size:12px; letter-spacing:1px; text-transform:uppercase; border:none; display:inline-block; text-decoration:none; }
.btn-fnaim-green:hover { background: #5aaa80; color: #000; }

/* Bouton corail */
.btn-fnaim-coral { background: #D4696A; color: #fff; clip-path: var(--fnaim-shape-sm); padding: 10px 22px; font-weight:800; font-size:12px; letter-spacing:1px; text-transform:uppercase; border:none; display:inline-block; text-decoration:none; }
.btn-fnaim-coral:hover { background: #b04a4b; color: #fff; }

/* Bouton beige */
.btn-fnaim-beige { background: #C8A882; color: #000; clip-path: var(--fnaim-shape-sm); padding: 10px 22px; font-weight:800; font-size:12px; letter-spacing:1px; text-transform:uppercase; border:none; display:inline-block; text-decoration:none; }
.btn-fnaim-beige:hover { background: #a8885f; color: #000; }

/* ============================================================
   FORMES CARAFE — Classe utilitaire réutilisable
   ============================================================ */

/* Contenant plein (rempli) */
.fnaim-shape {
  clip-path: var(--fnaim-shape);
  border-radius: 0 !important;
}

/* Contenant petit */
.fnaim-shape-sm {
  clip-path: var(--fnaim-shape-sm);
  border-radius: 0 !important;
}

/* Cadre outline via SVG border simulée */
.fnaim-frame {
  position: relative;
  border-radius: 0;
  clip-path: var(--fnaim-shape);
}

.fnaim-frame::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: #ffffff;
  clip-path: var(--fnaim-shape);
  z-index: 1;
}

/* ============================================================
   HERO — Fond blanc, titre massif, forme carafe décorative
   ============================================================ */
.hero {
  background: #ffffff;
}

.hero::after {
  display: none;
}

.hero .agency-name h5 {
  color: #E8855A;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 11px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero .agency-name h5::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #E8855A;
  flex-shrink: 0;
}

.hero .main-heading h1 {
  font-weight: 900;
  letter-spacing: -3px;
  color: #111111;
  line-height: 0.9;
}

.hero .main-heading h1:last-child {
  color: #F5C800;
}

.hero .divider {
  background: #F5C800;
  height: 3px;
  width: 80px;
  opacity: 1;
}

.hero .description p {
  color: #555555;
  font-size: 14px;
  line-height: 1.8;
}

.hero .cta-button .btn {
  background: #111111 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 14px 30px !important;
  border-radius: 0 !important;
  clip-path: var(--fnaim-shape-sm) !important;
}

.hero .cta-button .btn:hover {
  background: #F5C800 !important;
  color: #000000 !important;
}



/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title h2 {
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2::after {
  height: 2px;
  width: 60px;
  display: inline-block;
  content: '';
  margin: 0 0 0 4px;
}

/* Rotation des 6 couleurs complémentaires FNAIM sur les petits titres de section */
.section:nth-of-type(1) .section-title h2 { color: #E8855A; }
.section:nth-of-type(1) .section-title h2::after { background: #E8855A; }

.section:nth-of-type(2) .section-title h2 { color: #7BAFD4; }
.section:nth-of-type(2) .section-title h2::after { background: #7BAFD4; }

.section:nth-of-type(3) .section-title h2 { color: #7EC8A0; }
.section:nth-of-type(3) .section-title h2::after { background: #7EC8A0; }

.section:nth-of-type(4) .section-title h2 { color: #D4696A; }
.section:nth-of-type(4) .section-title h2::after { background: #D4696A; }

.section:nth-of-type(5) .section-title h2 { color: #C8A882; }
.section:nth-of-type(5) .section-title h2::after { background: #C8A882; }

.section:nth-of-type(6) .section-title h2 { color: #F5C800; }
.section:nth-of-type(6) .section-title h2::after { background: #F5C800; }

/* Fallback pour les sections au-delà de 6 */
.section:nth-of-type(7) .section-title h2 { color: #E8855A; }
.section:nth-of-type(7) .section-title h2::after { background: #E8855A; }

.section:nth-of-type(8) .section-title h2 { color: #7BAFD4; }
.section:nth-of-type(8) .section-title h2::after { background: #7BAFD4; }

/* Aussi pour les sections avec classe .section (Bootstrap) */
.section:nth-child(1) .section-title h2 { color: #E8855A; }
.section:nth-child(2) .section-title h2 { color: #7BAFD4; }
.section:nth-child(3) .section-title h2 { color: #7EC8A0; }
.section:nth-child(4) .section-title h2 { color: #D4696A; }
.section:nth-child(5) .section-title h2 { color: #C8A882; }
.section:nth-child(6) .section-title h2 { color: #F5C800; }

.section-title div {
  color: #111111;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.5px;
}

.section-title .description-title {
  color: #F5C800;
}

/* ============================================================
   CARDS DE SERVICES — Forme carafe + bordure couleur
   ============================================================ */
.service-card {
  background: #ffffff;
  border: 1.5px solid #eeeeee;
  border-radius: 0;
  clip-path: var(--fnaim-shape);
  transition: border-color 0.3s, transform 0.3s;
  padding: 28px 24px 36px;
}

.service-card:hover {
  border-color: #F5C800;
  transform: translateY(-4px);
}

.service-card .service-icon {
  width: 40px;
  height: 40px;
  background: rgba(245,200,0,0.12);
  clip-path: var(--fnaim-shape-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card .service-icon i {
  color: #F5C800;
  font-size: 18px;
}

.service-card h3 {
  font-size: 14px;
  font-weight: 900;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.service-card h3 a {
  color: #111111;
  text-decoration: none;
}

.service-card h3 a span {
  color: #888888;
  font-size: 10px;
  font-weight: 600;
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.service-card .card-action {
  background: #F5C800;
  color: #000000;
  clip-path: var(--fnaim-shape-sm);
  border-radius: 0;
  width: 32px;
  height: 32px;
}

.service-card .card-action:hover {
  background: #111111;
  color: #F5C800;
}

/* ============================================================
   PAGE TITLE — Bande de couleur sous le H1
   ============================================================ */
.page-title {
  background-color: #111111;
}

.page-title h1 {
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -1px;
}

.page-title h1::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #F5C800;
  margin: 14px auto 0;
}

/* ============================================================
   SECTIONS ALTERNÉES — Fond légèrement teinté
   ============================================================ */
.light-background {
  --background-color: #F9F9F7;
  --surface-color: #f0f0ed;
}

section,
.section {
  background-color: #ffffff;
}

.light-background,
section.light-background {
  background-color: #F9F9F7;
}

/* ============================================================
   ABOUT — Image en forme carafe
   ============================================================ */
.about .about-image {
  clip-path: var(--fnaim-shape);
  border-radius: 0;
  overflow: hidden;
}

.about .about-image .experience-badge {
  background: #F5C800;
  color: #000000;
  clip-path: var(--fnaim-shape-sm);
  border-radius: 0;
}

/* ============================================================
   ACTION CARD SIDEBAR — Carafe jaune/noir
   ============================================================ */
.action-card {
  background: #F5C800;
  color: #000000;
  clip-path: var(--fnaim-shape);
  border-radius: 0;
  padding: 28px 24px 36px;
}

.action-card h3 {
  color: #000000;
  font-weight: 900;
  font-size: 16px;
}

.action-card p {
  color: #333333;
  font-size: 13px;
  line-height: 1.6;
}

.action-card .btn-primary {
  background: #111111 !important;
  color: #F5C800 !important;
  clip-path: var(--fnaim-shape-sm) !important;
}

.action-card .btn-primary:hover {
  background: #ffffff !important;
  color: #000000 !important;
}

/* ============================================================
   TESTIMONIALS — Fond carafe
   ============================================================ */
.testimonial-item {
  background: #F9F9F7;
  border-left: 3px solid #F5C800;
  border-radius: 0;
  padding: 24px;
}

.slider-prev,
.slider-next {
  background: #F5C800 !important;
  color: #000000 !important;
  border-radius: 0 !important;
  clip-path: var(--fnaim-shape-sm) !important;
  border: none !important;
}

.slider-prev:hover,
.slider-next:hover {
  background: #111111 !important;
  color: #F5C800 !important;
}

/* ============================================================
   FAQ — Bordure gauche jaune
   ============================================================ */
.faq-item.faq-active {
  border-left: 3px solid #F5C800;
  padding-left: 14px;
}

.faq-item.faq-active h3 {
  color: #F5C800;
}

/* ============================================================
   CONTACT — Boîte icône forme carafe
   ============================================================ */
.contact-info-box .icon-box {
  background: #F5C800;
  color: #000000;
  clip-path: var(--fnaim-shape-sm);
  border-radius: 0;
}

.contact-info-box .icon-box i {
  color: #000000;
}

/* ============================================================
   FOOTER — Fond noir, bordure jaune top
   ============================================================ */
.footer {
  background-color: #111111;
  border-top: 3px solid #F5C800;
  color: rgba(255,255,255,0.7);
}

.footer .footer-about .logo span,
.footer .sitename {
  color: #F5C800;
  font-weight: 900;
}

.footer h4 {
  color: #F5C800;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer .footer-links ul a {
  color: rgba(255,255,255,0.5);
}

.footer .footer-links ul a:hover {
  color: #F5C800;
}

.footer .footer-contact p {
  color: rgba(255,255,255,0.5);
}

.footer .social-links a {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  border-radius: 0;
  clip-path: var(--fnaim-shape-sm);
}

.footer .social-links a:hover {
  background: #F5C800;
  border-color: #F5C800;
  color: #000000;
}

.footer .copyright {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   SCROLL TOP — Forme carafe jaune
   ============================================================ */
.scroll-top {
  background: #F5C800;
  clip-path: var(--fnaim-shape-sm);
  border-radius: 0;
}

.scroll-top i {
  color: #000000;
}

.scroll-top:hover {
  background: #111111;
}

.scroll-top:hover i {
  color: #F5C800;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  background: #ffffff;
}

#preloader:before {
  border-color: #F5C800 transparent #F5C800 transparent;
}

/* ============================================================
   FORMULAIRES — Champs avec focus jaune
   ============================================================ */
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #F5C800 !important;
  box-shadow: 0 0 0 2px rgba(245,200,0,0.2) !important;
  outline: none !important;
}

/* Submit bouton formulaire contact */
.btn-submit {
  background: #111111 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  clip-path: var(--fnaim-shape-sm) !important;
  border-radius: 0 !important;
  padding: 14px 32px !important;
}

.btn-submit:hover {
  background: #F5C800 !important;
  color: #000000 !important;
}

/* ============================================================
   SERVICE DETAILS — Pages internes
   ============================================================ */
.service-sidebar .action-card {
  clip-path: var(--fnaim-shape);
}

.btn-primary.btn-lg,
.btn-primary {
  clip-path: var(--fnaim-shape-sm);
  border-radius: 0 !important;
}

/* Breadcrumb */
.page-title .breadcrumbs ol li + li::before {
  color: rgba(255,255,255,0.4);
}

.page-title .breadcrumbs a {
  color: #F5C800;
}