/* ============================================================
   CHARTE GRAPHIQUE DIZOLO
   ============================================================ */
:root {
  --dark:       #282B2D;
  --white:      #ffffff;
  --light-bg:   #f7f7f5;
  --text-light: #ffffff;
  --grey-text:  #6f6f6f;
  --accent:     #c9aa71;
  --font-serif: 'Playfair Display', serif;
  --font-lob:   'Lobster', cursive;
  --font-sans:  'Open Sans', sans-serif;
}
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { background-color: var(--dark); font-family: var(--font-serif); margin: 0; }


/* ============================================================
   HEADER — 30vh
   ============================================================ */
.header {
  height: 30vh; min-height: 140px;
  background-color: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.header .container {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.header img { max-height: 46px; max-width: 130px; margin-top: 6em; }
.header nav { padding-top: 1.5em; padding-bottom: 5em;}
.header nav a {
  font-family: var(--font-serif); font-size: 1rem;
  font-style: italic; color: var(--grey-text);
  text-decoration: none; padding: .3rem 1rem;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.header nav a:hover { color: #111; border-bottom-color: #111; }


/* ============================================================
   FLÈCHES — cercle, toujours visible
   ============================================================ */
.scroll-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 1.6rem 0;
  background-color: var(--dark);
  text-decoration: none;
}
.scroll-arrow--light { background-color: var(--light-bg); }
.scroll-arrow--light .arrow-circle {
  background-color: var(--dark);
  box-shadow: 0 0 0 4px rgba(40,43,45,.15), 0 0 20px rgba(40,43,45,.3);
}
.scroll-arrow--light .arrow-circle svg { stroke: var(--text-light); }
.scroll-arrow--light .arrow-circle {
  background-color: var(--dark);
  box-shadow: 0 0 0 4px rgba(40,43,45,.15), 0 0 20px rgba(40,43,45,.3);
}
.scroll-arrow--light .arrow-circle svg { stroke: var(--text-light); }

.arrow-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255,255,255,.7), 0 0 40px rgba(201,255,113,.3);
  animation: bounce 2.2s ease-in-out infinite;
  transition: transform .2s;
}


.scroll-arrow:hover .arrow-circle { transform: scale(1.12); }
.arrow-circle svg {
  width: 28px; height: 28px;
  stroke: var(--light-bg);
  fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.arrow-circle-dark svg {
  width: 28px; height: 28px;
  stroke: var(--dark);
  fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.arrow-circle-dark {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,.7), 0 0 40px rgba(10,20,113,.3);
  animation: bounce 2.2s ease-in-out infinite;
  transition: transform .2s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}


/* ============================================================
   FILETS HR
   ============================================================ */
.section-hr {
  border: none;
  border-top: 1px solid white;
}
.section-hr--centered { margin: .8rem auto 1.4rem; }


/* ============================================================
   PRÉSENTATION — 70vh
   ============================================================ */
#presentation {
  min-height: 70vh;
  background-color: var(--dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  display: flex; flex-direction: column;
  padding-left: clamp(1.5rem, 12vw, 18rem);
  padding-right: clamp(1.5rem, 12vw, 18rem);
  padding-top: 3rem;
}
#presentation .container {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 3rem; padding-bottom: 2rem;
  text-align: justify;
}
#presentation h3 {
  text-align: center;
  font-family: var(--font-serif);
  letter-spacing: .5em;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 3rem;
}
#presentation p  {
  font-family: var(--font-sans);
  font-size: .97rem;
  font-weight: 300;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 1.4rem;
}
#presentation p:last-of-type { margin-bottom: 0; }
@media (min-width: 992px) { #presentation p { font-size: 1.05rem; } }

.pres-icons {
  display: flex; justify-content: center; gap: 2.5rem;
  margin-top: 2rem; opacity: .15;
}
.pres-icons svg {
  width: 28px; height: 28px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}


/* ============================================================
   SECTEURS D'INTERVENTION — 100vh, fond clair, cartes sombres
   ============================================================ */
#secteurs {
  min-height: 100vh;
  background-color: var(--light-bg);
  display: flex; flex-direction: column;
}
#secteurs .container {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 3rem; padding-bottom: 2rem;
}
.titre-section { text-align: center; margin-bottom: 0; }
.titre-section h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.8rem; margin-bottom: 0; color: #1a1a1a;
}

.secteurs-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem; margin-top: 1.5rem;
}
.scard {
  background: var(--white);
  padding: 2.6rem 2.2rem 2.4rem;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: box-shadow .3s, transform .3s;
  text-align: center;
}
.scard:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,.11);
  transform: translateY(-3px);
}
.scard::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .4s ease;
}
.scard:hover::after { width: 100%; }
.scard-ico {
  display: block; width: 40px; height: 40px;
  stroke: #ccc; fill: none;
  stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  margin: 0 auto 1.4rem;
  transition: stroke .3s;
}
.scard:hover .scard-ico { stroke: var(--accent); }
.scard h3 {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  color: var(--dark); line-height: 1.3; margin-bottom: .9rem; margin-top: 0;
}
.scard p {
  font-family: var(--font-serif); font-size: .86rem;
  color: #888; line-height: 1.9; margin: 0;
  text-align: justify;
}
.scard--highlight { background: #faf9f7; }
.scard--highlight .scard-ico { stroke: rgba(201,170,113,.4); }


/* ============================================================
   SECTION SAVOIR-FAIRE + CAROUSEL — 100vh, fond sombre
   ============================================================ */
#caroussel-savoir {
  min-height: 100vh;
  background-color: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  margin-top: auto; /* Pousse la flèche en bas */
  width: 100%;
}

.split-band {
  display: flex;
  min-height: 350px;
  max-height: 60vh;
  width: 100%;
}

/* Colonne gauche — Savoir-faire flex:2 (~40%) */
.split-sf {
  flex: 2;
  background-color: var(--white);
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
}

/* Colonne droite — Carousel flex:3 (~60%) */
.split-carousel {
  flex: 3;
  background-color: var(--dark);
  position: relative; overflow: hidden;
}
.split-carousel .carousel,
.split-carousel .carousel-inner,
.split-carousel .carousel-item { height: 100%; }
.split-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; }

/* Titre savoir-faire italique */
.split-sf .titre-section h2 { font-style: italic; color: #1a1a1a; }
.split-sf .section-hr { border-top-color: var(--accent); opacity: .4; }

/* Onglets */
.sf-tabs-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  margin-bottom: 0;
}
.sf-tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  font-family: var(--font-sans); font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey-text); padding: .6rem .9rem;
  cursor: pointer; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.sf-tab-btn:hover { color: #1a1a1a; }
.sf-tab-btn.active { color: #1a1a1a; border-bottom-color: var(--dark); }

.sf-tab-panel { display: none; padding: 1rem 0 .5rem; min-height: 12rem; }
.sf-tab-panel.active { display: block; }
.sf-tab-panel p {
  font-family: var(--font-serif); font-size: .95rem; color: #444;
  line-height: 1.9; text-align: justify; font-style: italic; margin: 0;
}


#carouselDizolo {padding-bottom: 1em; padding-top:1em;}
/* Captions carousel */
#carouselDizolo .carousel-caption { position: absolute; bottom: auto; left: auto; right: auto; padding: 0;}
#carouselDizolo #guide-caption    { bottom: 15%; left: 50%; transform: translateX(-50%); text-align: center; width: 80%; }
#carouselDizolo #transformation   { left: 10%; bottom: 20%; width: 75%; text-align: right; }
#carouselDizolo #liberte          { left: 10%; top: 15%; width: 75%; text-align: left; }
#carouselDizolo #liberte h3       { padding-left: 1rem; }
#carouselDizolo #integree         { left: 10%; bottom: 20%; width: 75%; text-align: left; }
#carouselDizolo #integree h3      { padding-left: 1rem; }
#carouselDizolo #gouvernance      { left: 10%; bottom: 15%; width: 75%; text-align: left; }
#carouselDizolo #gouvernance h3   { padding-left: 1rem; }
#carouselDizolo .carousel-caption h2 {
  font-family: var(--font-lob); font-size: 2.2vw; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.7); margin-bottom: .2rem;
}
#carouselDizolo .carousel-caption h3 {
  font-family: var(--font-lob); font-size: 1.4vw;
  color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.6); margin: 0;
}
#carouselDizolo .carousel-indicators [data-bs-target] {
  width: .5rem; height: .5rem; border-radius: 50%; border: none;
  background-color: var(--grey-text); opacity: 1; margin: 0 .4rem;
}
#carouselDizolo .carousel-indicators .active {
  width: 1rem; height: 1rem; background-color: #fff; margin-top: -2px;
}
#carouselDizolo .carousel-control-prev,
#carouselDizolo .carousel-control-next { width: 12%; }

.carousel-indicators{
  display: none;
}

/* ============================================================
   CONTACT — fond sombre, hauteur généreuse
   ============================================================ */
#contact {
  background-color: var(--dark); padding: 7rem 1rem 6rem;
  color: var(--text-light); font-family: var(--font-serif);
  border-top: 1px solid rgba(255,255,255,.08);
}
#contact h5 {
  text-align: center;
  font-family: var(--font-serif);
  letter-spacing: .5em;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 3rem;
}

#contact .section-hr {
  border-top-color: rgba(255,255,255,.15);
  max-width: 60px; margin: 0 auto 3.5rem;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem; max-width: 900px; margin: 0 auto 3rem;
}
.contact-col { text-align: center; }
.contact-col-label {
  font-family: var(--font-sans); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  margin-bottom: .6rem; display: block;
}
.contact-item {
  font-family: var(--font-sans); font-size: .95rem; color: var(--text-light);
  display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.contact-item svg {
  width: 16px; height: 16px; stroke: var(--accent); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.contact-item a { color: var(--text-light); text-decoration: none; transition: color .2s; }
.contact-item a:hover { color: var(--accent); }
.contact-geo {
  font-size: .75rem; color: rgba(255,255,255,.35); font-family: var(--font-sans);
  margin-top: .5rem; letter-spacing: .05em; display: block;
}
.contact-address {
  text-align: center; margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 2rem;
}
.contact-address span {
  font-family: var(--font-sans); font-size: .78rem;
  color: rgba(255,255,255,.3); letter-spacing: .05em; line-height: 1.8; display: block;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background-color: var(--light-bg); border-top: 1px solid #e0e0e0;
  padding: 1.5rem 1rem; text-align: center;
  font-family: var(--font-serif); font-size: .78rem; color: #aaa;
}
footer a { color: var(--grey-text); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--dark); }


/* ============================================================
   MODAL
   ============================================================ */
.modal-content { background-color: var(--light-bg); color: var(--dark); font-family: var(--font-serif); text-align: center; }
.modal-header { border-bottom: 1px solid rgba(0,0,0,.1); }
.modal-footer { border-top: 1px solid rgba(0,0,0,.1); }
.modal-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.1rem; letter-spacing: .08em; color: var(--dark); }
.modal-body .ml-label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-text); margin-top: 1.2rem; margin-bottom: .2rem; }
.modal-body p { font-family: var(--font-sans); font-size: .82rem; color: #444; line-height: 1.9; margin: 0; }

/* ============================================================
   ANIMATION FLASH — titre présentation
   ============================================================ */
@keyframes titleFlash {
  0%   { text-shadow: none;                                    transform: scale(1); }
  50%  { text-shadow: 0 0 8px #fff, 0 0 24px #fff, 0 0 48px rgba(255,255,255,.5); transform: scale(1.06); }
  100% { text-shadow: none;                                    transform: scale(1); }
}

#presentation h3.title-flash {
  animation: titleFlash 1.1s ease forwards;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablette (≤992px) --- */
@media (max-width: 992px) {
  /* Header */
  .header { height: auto; min-height: 120px; padding: 1.5rem 1rem 0; }
  .header img { margin-top: 1.5rem; }
  .header nav { padding-top: 1rem; padding-bottom: 2rem; }
  .header nav a { padding: .3rem .6rem; font-size: .9rem; }

  /* Présentation */
  #presentation {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
  }

  /* Savoir-faire : masquer le carousel, étirer la colonne SF */
  .split-carousel { display: none; }
  .split-sf { flex: 1; padding: 2.5rem 2rem; }
  .split-band { max-height: none; }

  /* Secteurs */
  .secteurs-cards { grid-template-columns: 1fr 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  /* Header */
  .header { padding: 1.2rem 1rem 0; }
  .header img { margin-top: 1rem; max-height: 38px; }
  .header nav {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .2rem; padding-top: .8rem; padding-bottom: 1.5rem;
  }
  .header nav a { font-size: .78rem; padding: .25rem .5rem; }

  /* Présentation */
  #presentation {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    padding-top: 2rem;
    min-height: auto;
  }
  #presentation .container { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  #presentation h3 { font-size: .85rem; letter-spacing: .3em; margin-bottom: 1.5rem; }
  #presentation p { font-size: .9rem; line-height: 1.8; }

  /* Savoir-faire */
  .split-sf { padding: 2rem 1.2rem; }
  .sf-tab-btn { font-size: .62rem; padding: .5rem .6rem; }
  .sf-tab-panel p { font-size: .88rem; line-height: 1.8; }

  /* Secteurs */
  .secteurs-cards { grid-template-columns: 1fr; gap: 1.2rem; }
  .scard { padding: 2rem 1.6rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  #contact { padding: 4rem 1rem 3.5rem; }
  #contact h5 { font-size: .85rem; letter-spacing: .3em; margin-bottom: 2rem; }

  /* Flèches */
  .scroll-arrow { padding: 1.2rem 0; }
  .arrow-circle, .arrow-circle-dark { width: 42px; height: 42px; }
}

/* --- Très petit mobile (≤480px) --- */
@media (max-width: 480px) {
  .header nav a { font-size: .72rem; padding: .2rem .4rem; }
  #presentation { padding-left: 1rem; padding-right: 1rem; }
  #presentation p { font-size: .85rem; }
  .scard { padding: 1.6rem 1.2rem; }
  .scard h3 { font-size: .95rem; }
  .scard p { font-size: .82rem; }
  .titre-section h2 { font-size: 1.4rem; }
  .contact-item { font-size: .85rem; }
}
