/* Refonte de l’accueil et de la page Le cabinet (chargé sur ces deux pages seulement).
   Les règles s’appliquent sous le conteneur .refonte. Aucun texte ni contenu modifié ici. */

/* Haut de page de l’accueil : sur téléphone (moins de 600 px), phrase légère à la place de la phrase longue */
.refonte .hero-trust-mobile{display:none}
@media (max-width:599px){
  .refonte .hero-trust-wide{display:none}
  .refonte .hero-trust-mobile{display:block}
}

/* Titre de l’accueil : « 18-07 » ne se coupe pas en fin de ligne (balise produite par PHP, fonctionne sans JavaScript) */
.refonte .hero h1 .nb{white-space:nowrap}

/* Lignes repliables (même rendu que les questions des pages domaines) */
.refonte .faq{margin-top:1.5rem}
.refonte .faq details{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:.8rem;transition:border-color .2s}
.refonte .faq details[open]{border-color:var(--gold)}
.refonte .faq summary{display:flex;align-items:center;gap:.8rem;padding:.9rem 1.2rem;min-height:44px;font-weight:700;color:var(--navy);cursor:pointer;list-style:none}
.refonte .faq summary::-webkit-details-marker{display:none}
.refonte .faq summary::after{content:"+";flex:none;margin-inline-start:auto;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--navy);color:var(--gold);font-size:1.2rem;line-height:1}
.refonte .faq details[open] summary::after{content:"–"}
.refonte .faq summary:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.refonte .faq details p{margin:0;padding:0 1.2rem 1.1rem;color:var(--muted)}
.refonte .step-no{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--gold);color:var(--navy);font-weight:800;font-size:.95rem}
.refonte .fold-why .why-icon{flex:none;width:36px;height:36px;margin:0;border-radius:10px}

/* Cartes des domaines (accueil) : toute la carte est cliquable, avec un focus clavier visible */
.refonte #domaines .card-link:focus-visible{outline:none}
.refonte #domaines .card-link:focus-visible::after{outline:3px solid var(--navy);outline-offset:2px}

/* Ordinateur : les lignes sont ouvertes (script en bas de page) et rangées sur deux colonnes */
@media (min-width:760px){
  .refonte .fold-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
  .refonte .fold-rows details{margin:0}
}

/* Téléphone */
@media (max-width:599px){
  /* Domaines : titre et phrase, la carte entière reste cliquable ; le « Résultat concret », « En savoir plus » et l’icône restent sur la page du domaine */
  body .refonte #domaines .card{padding:.75rem 1rem}
  body .refonte #domaines .card-icon,body .refonte #domaines .card-result,body .refonte #domaines .card-more{display:none}
  body .refonte #domaines .card h4{margin-bottom:.3em}
  body .refonte #domaines .group{margin-top:1.3rem}
  body .refonte #domaines .group-title{margin-bottom:.7rem}

  /* Le cabinet (accueil et page) : cartes de l’équipe serrées, sans icône */
  body .refonte .crew-card{padding:.9rem 1.1rem}
  body .refonte .crew-card .crew-icon{display:none}
  body .refonte .crew-card h3{margin:0 0 .15rem}

  /* Blocs un peu plus serrés (haut et bas), phrases d’introduction à 17 px au lieu de 20 px */
  body .refonte .lead{font-size:1.05rem}
  body .refonte .cards,body .refonte .crew-grid{gap:.6rem}
  body .refonte .section,body .refonte .final{padding-block:2rem}

  /* Chiffres clés : le chiffre à gauche, la légende à droite, une ligne par chiffre */
  body .refonte .stats-grid{grid-template-columns:1fr}
  body .refonte .stat{display:flex;align-items:center;gap:1rem;padding:.6rem 1rem;text-align:start}
  body .refonte .stat-num{flex:none;width:6.4rem;font-size:1.9rem;text-align:center}
  body .refonte .stat-label{margin:0;line-height:1.35}
  body .refonte .fold-why .why-icon{display:none}
  body .refonte .clients-band{padding-block:1.4rem}

  /* DPO Academy : la petite ligne répète le début du titre */
  body .refonte .academy .kicker{display:none}

  /* Publications : deux dernières seulement sur téléphone, sans vignette (« Toutes nos publications » mène aux autres) */
  body .refonte .post-img{display:none}
  body .refonte .post-body{padding:.9rem 1.1rem}
  body .refonte .cards-3 .post:nth-child(n+3){display:none}
  body .refonte .post-meta{margin-bottom:.25em}
}

/* Ordinateur : les paragraphes des cartes de l’accueil passent de 15,2 à 16 px (sous 600 px, ils sont déjà à 16 px) */
@media (min-width:600px){
  .refonte :is(.card,.why,.crew-card,.faq details) > p{font-size:1rem}
}

/* Accueil (équipe) et Le cabinet (fondateur) : bloc marine central avec motif doré discret (SVG intégré, sans animation, en fond du bloc) */
#cabinet-fusion{background-color:var(--navy);background-repeat:repeat;background-size:200px 200px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%23D4AF37' stroke-opacity='.13' stroke-width='1.5'%3E%3Ccircle cx='30' cy='40' r='6'/%3E%3Ccircle cx='110' cy='28' r='6'/%3E%3Ccircle cx='80' cy='100' r='6'/%3E%3Ccircle cx='140' cy='120' r='6'/%3E%3Ccircle cx='25' cy='135' r='6'/%3E%3Cpath d='M36 40L104 28M110 34L84 95M80 106L30 131M86 100L135 118M116 28L138 114'/%3E%3C/svg%3E")}
#fondateur{background-color:var(--navy);background-repeat:no-repeat;background-position:right 4% bottom 8%;background-size:min(300px,34%);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220' fill='none' stroke='%23D4AF37' stroke-opacity='.14' stroke-width='2'%3E%3Cpath d='M110 30v150M70 180h80M60 60h100M60 60L35 120h50zM160 60l-25 60h50z'/%3E%3Cpath d='M35 120a25 12 0 0 0 50 0M135 120a25 12 0 0 0 50 0'/%3E%3C/svg%3E")}
html[dir=rtl] #fondateur{background-position:left 4% bottom 8%}
@media (max-width:599px){
  #cabinet-fusion{background-size:140px 140px}
  #fondateur{background-size:120px;background-position:right 2% bottom 1%}
  html[dir=rtl] #fondateur{background-position:left 2% bottom 1%}
}
