/* =============================================================
   CSS pour les pages statiques - IDEE&CO
   Contact, Mentions légales, Politique de confidentialité, 
   Présentation, Nos réalisations
   ============================================================= */

:root {
  --ink: #111;
  --muted: #666;
  --b: #eee;
  --cuivre: #da532c;
  --cuivre1: #e4a976;
  --cuivre2: #da532c;
}

/* Layout principal */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 44px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.95rem;
  margin: 10px 0 12px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--cuivre);
  text-decoration: underline;
}

/* Titres */
h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 0.2em 0 0.4em;
}

h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 1.1em 0 0.5em;
}

h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 1em 0 0.45em;
}

/* Paragraphes et listes */
p {
  line-height: 1.65;
  color: #222;
  margin: 0.4em 0;
}

ul {
  margin: 0.3em 0 0.8em 1.2em;
}

/* Ligne de séparation */
.hr {
  height: 1px;
  background: var(--b);
  margin: 28px 0;
}

/* ===== FORMULAIRE DE CONTACT ===== */

form {
  display: grid;
  gap: 14px;
  max-width: 600px;
}

label {
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Bouton Envoyer : dégradé cuivre + effets */
button[type="submit"] {
  background: linear-gradient(180deg, var(--cuivre1), var(--cuivre2));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button[type="submit"]:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(218, 83, 44, 0.35);
  transform: translateY(-1px);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Onde cuivre au clic */
button[type="submit"]:active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(218, 83, 44, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseCopper 0.5s ease-out;
}

@keyframes pulseCopper {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }

  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

/* Reflet métallique au survol (sheen) */
button[type="submit"]::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -40%;
  width: 40%;
  height: 160%;
  transform: skewX(-20deg) translateX(-120%);
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%);
  opacity: 0.45;
  pointer-events: none;
}

button[type="submit"]:hover::before {
  animation: sheenSlide 0.8s ease;
}

@keyframes sheenSlide {
  0% {
    transform: skewX(-20deg) translateX(-120%);
  }

  100% {
    transform: skewX(-20deg) translateX(320%);
  }
}

/* Message de confirmation/erreur */
.form-message {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Alignement horizontal des cases à cocher */
.inline-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inline-check:hover {
  border-color: var(--cuivre);
  box-shadow: 0 0 0 3px rgba(218, 83, 44, 0.1);
}

.inline-check label {
  flex: 1;
  margin: 0;
  font-weight: 500;
}

.inline-check a {
  color: var(--cuivre);
  text-decoration: none;
}

.inline-check a:hover {
  text-decoration: underline;
}

.inline-check input[type="checkbox"] {
  width: auto;
  margin-left: 8px;
  accent-color: var(--cuivre);
}

/* Honeypot anti-spam (champ caché) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===== CARTE GOOGLE MAPS ===== */

#map {
  width: 100%;
  max-width: 1000px;
  height: 400px;
  margin: 24px auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

figcaption.mapcap,
.map-section figcaption {
  text-align: center;
  font-style: italic;
  color: #333;
  max-width: 1000px;
  margin: 8px auto 0;
  line-height: 1.6;
}

.small-note {
  font-size: 0.9rem;
  color: #555;
}

/* ===== GALERIE NOS RÉALISATIONS ===== */

#galerie-carousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

#img-gauche,
#img-droite {
  width: 140px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s;
}

#img-gauche:hover,
#img-droite:hover {
  transform: scale(1.05);
}

#mainImage {
  max-width: clamp(420px, 70vw, 680px);
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s;
}

#mainImage:hover {
  transform: scale(1.02);
}

/* Flèches LightGallery */
.lg-prev,
.lg-next {
  color: var(--cuivre) !important;
  font-size: 2.2rem !important;
  transition: color 0.3s ease, transform 0.3s ease;
}

.lg-prev:hover,
.lg-next:hover {
  color: #b0451f !important;
  transform: scale(1.2);
}

.lg-prev {
  left: 25px !important;
}

.lg-next {
  right: 25px !important;
}

/* ===== MENTIONS LÉGALES / POLITIQUE ===== */

.main-confidentialite h1 {
  text-align: center;
}

.main-confidentialite h2 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 1.1em 0 0.5em;
}

.main-confidentialite p {
  line-height: 1.65;
  color: #222;
  margin: 0.4em 0;
}

/* ===== PRÉSENTATION ===== */

.presentation-content {
  max-width: 900px;
  margin: 0 auto;
}

.presentation-content h2 {
  color: var(--cuivre);
  margin-top: 1.5em;
}

.presentation-content ul {
  margin: 0.5em 0 1em 1.5em;
}

.presentation-content li {
  margin: 0.3em 0;
  line-height: 1.7;
}

.presentation-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* ===== BOUTON HAUT DE PAGE ===== */

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-size: 20px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

#scrollTopBtn:hover {
  background: #222;
  transform: translateY(-2px);
}

/* Focus accessible */
#scrollTopBtn:focus {
  outline: 3px solid var(--cuivre1);
  outline-offset: 3px;
}

#scrollTopBtn:focus:not(:focus-visible) {
  outline: none;
}

/* ===== LIENS ===== */

a {
  color: var(--cuivre);
  transition: color 0.2s;
}

a:hover {
  color: #b0451f;
}

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

@media (max-width: 768px) {
  main {
    padding: 20px 14px 36px;
  }

  #galerie-carousel-wrapper {
    flex-direction: column;
    align-items: center;
  }

  #img-gauche,
  #img-droite {
    width: 120px;
  }

  form {
    max-width: 100%;
  }
}

@media (max-width: 600px) {

  .main-confidentialite h1,
  .main-confidentialite h2 {
    font-size: 1.2rem;
  }

  .main-confidentialite p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #map {
    height: 300px;
  }
}

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  button[type="submit"]:hover {
    box-shadow: none;
  }

  button[type="submit"]::before,
  button[type="submit"]:active::after {
    animation: none !important;
  }

  * {
    transition: none !important;
  }
}

/* ===== STYLES SPÉCIFIQUES - PRESENTATION.PHP ===== */

.lead {
  color: #2a2a2a;
  font-size: clamp(16px, 2vw, 18px);
  max-width: 78ch;
  line-height: 1.6;
}

/* Sécurise le layout texte + image (évite le retour à la ligne sur desktop) */
.lead-media>* {
  min-width: 0;
}

/* Lead + image (presentation.php) */
.lead-media {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: center;
}

.lead-media .lead {
  max-width: none;
  /* important : sinon le texte reste trop étroit */
}

.lead-figure {
  margin: 0;
}

@media (max-width: 860px) {
  .lead-media {
    grid-template-columns: 1fr;
  }
}

/* Grilles */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 880px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chip {
  display: inline-block;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  margin: 4px 6px 0 0;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--cuivre);
  background: #fafafa;
}

.ic-btn {
  background: linear-gradient(180deg, var(--cuivre1), var(--cuivre2));
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.ic-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Étapes */
.steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: 16px 16px 16px 54px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.step:before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cuivre);
  color: var(--cuivre);
  font-weight: 700;
}

/* Matériaux & partenaires */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 8px 12px;
  background: #fafafa;
  font-size: 0.95rem;
}

/* Équipe */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 880px) {
  .team {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .team {
    grid-template-columns: 1fr;
  }
}

.member {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.role {
  color: #555;
  font-size: 0.95rem;
  margin: 0.1em 0 0.4em;
}

/* Mini visuels (atelier / pose) */
.mini-visuals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 880px) {
  .mini-visuals {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .mini-visuals {
    grid-template-columns: 1fr;
  }
}

.mini-visuals figure {
  margin: 0;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.mini-visuals figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  border-color: rgba(218, 83, 44, 0.35);
}

.mini-visuals img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform;
}

.mini-visuals figure:hover img {
  transform: scale(1.03);
}

.mini-visuals figcaption {
  padding: 10px 12px 12px;
  font-size: 0.95rem;
  color: #444;
  position: relative;
}

.mini-visuals figure figcaption::after {
  content: "";
  position: absolute;
  left: 12px;
  right: calc(100% - 52px);
  bottom: 6px;
  height: 2px;
  background: var(--cuivre);
  border-radius: 2px;
  transition: right 0.4s ease;
}

.mini-visuals figure:hover figcaption::after {
  right: 12px;
}

/* CTA bandeau bas de page */
.cta-band {
  background: linear-gradient(90deg, #1b1b1b, #2a2a2a);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cta-band h3 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
}

.cta-band .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Réduire animations si demandé (pour mini-visuals) */
@media (prefers-reduced-motion: reduce) {

  .mini-visuals figure,
  .mini-visuals figure img,
  .mini-visuals figure figcaption::after {
    transition: none !important;
  }
}